IUndoManager.h
Go to the documentation of this file.
1 #ifndef idoc_IUndoManager_included
2 #define idoc_IUndoManager_included
3 
4 
5 // ACF includes
7 
8 
9 namespace idoc
10 {
11 
12 
17 {
18 public:
23  virtual int GetAvailableUndoSteps() const = 0;
28  virtual int GetAvailableRedoSteps() const = 0;
32  virtual QString GetUndoLevelDescription(int stepIndex) const = 0;
36  virtual QString GetRedoLevelDescription(int stepIndex) const = 0;
40  virtual void ResetUndo() = 0;
45  virtual bool DoUndo(int steps = 1) = 0;
50  virtual bool DoRedo(int steps = 1) = 0;
51 };
52 
53 
54 } // namespace idoc
55 
56 
57 #endif // !idoc_IUndoManager_included
58 
59 
virtual QString GetRedoLevelDescription(int stepIndex) const =0
Get description of single UNDO level.
Allows to store some document state used as reference for comarision.
virtual bool DoRedo(int steps=1)=0
Process REDO steps.
virtual int GetAvailableUndoSteps() const =0
Get number of available UNDO levels.
virtual void ResetUndo()=0
Reset all UNDO and REDO steps.
virtual int GetAvailableRedoSteps() const =0
Get number of available REDO levels.
virtual QString GetUndoLevelDescription(int stepIndex) const =0
Get description of single UNDO level.
Interface providing UNDO/REDO functionality.
Definition: IUndoManager.h:16
virtual bool DoUndo(int steps=1)=0
Process UNDO steps.

© 2007-2017 Witold Gantzke and Kirill Lepskiy