75 void endUndoGroup(
int coalesceId ,
bool flatten);
76 void endUndoGroupAndDiscard();
79 int lastCoalesceIdAtCurrentLevel();
80 void setLastCoalesceIdAtCurrentLevel(
int id);
81 void resetAllLastCoalesceIds();
103 int sizeInDocChanges();
104 int currentIndexInDocChanges();
109 void setPersisted(
bool enabled);
111 int persistedIndex();
116 void dumpStackInternal();
123 void undoDocumentChange();
125 void redoDocumentChange();
127 void setPersistedIndex(
int index );
128 void setChangeIndex(
int index );
136 void undoGroupEnded(
int coalesceId,
bool merged,
int action );
143 void persistedChanged(
bool persisted);
147 void clearHistoryLists();
152 QList<Change*> changeList_;
154 QMap<TextEditorController*,int> controllerIndexMap_;
157 QStack<ChangeGroup*> undoGroupStack_;
158 QStack<int> lastCoalesceIdStack_;
162 bool collectionEnabled_;
This is the base and abstract class of a text document A TextDocument is the model part of the editor...
Definition textdocument.h:42
The texteditor works via the controller. The controller is the central point/mediator which maps/cont...
Definition texteditorcontroller.h:39
This is the undo stack for the texteditor. This stack is SHARED by all views of the document The stac...
Definition textundostack.h:51
bool isUndoRunning()
Definition textundostack.h:94
void setCollectionEnabled(bool enabled)
Definition textundostack.h:92
bool isRedoRunning()
Definition textundostack.h:95
EndUndoGroupAction
This enumeration is signaled to the listeners to notify what happend when ending an undo group.
Definition textundostack.h:57
@ ActionFullDiscard
The group contained nothing usefull, nothing is added to the stack.
Definition textundostack.h:59
@ ActionEnd
A normal group end.
Definition textundostack.h:60
@ ActionUngrouped
The group has been ungrouped, the single change has been added to the stack.
Definition textundostack.h:58
bool isCollectionEnabled()
Definition textundostack.h:91
TextDocument * document()
Definition textundostack.h:113
TextUndoStack(TextDocument *doc, QObject *parent=0)
Constructs the main undostack.
Definition textundostack.cpp:18