Public Member Functions | List of all members
idoc::IUndoManager Class Referenceabstract

Interface providing UNDO/REDO functionality. More...

#include <IUndoManager.h>

Inheritance diagram for idoc::IUndoManager:
idoc::IDocumentStateComparator istd::IChangeable istd::IPolymorphic idoc::CSerializedUndoManagerComp

Public Member Functions

virtual int GetAvailableUndoSteps () const =0
 Get number of available UNDO levels. More...
 
virtual int GetAvailableRedoSteps () const =0
 Get number of available REDO levels. More...
 
virtual QString GetUndoLevelDescription (int stepIndex) const =0
 Get description of single UNDO level. More...
 
virtual QString GetRedoLevelDescription (int stepIndex) const =0
 Get description of single UNDO level. More...
 
virtual void ResetUndo ()=0
 Reset all UNDO and REDO steps. More...
 
virtual bool DoUndo (int steps=1)=0
 Process UNDO steps. More...
 
virtual bool DoRedo (int steps=1)=0
 Process REDO steps. More...
 
- Public Member Functions inherited from idoc::IDocumentStateComparator
virtual bool HasStoredDocumentState () const =0
 Check if there is stored document available. More...
 
virtual bool StoreDocumentState ()=0
 Store state of some document. More...
 
virtual bool RestoreDocumentState ()=0
 Restore last stored document state. More...
 
virtual DocumentChangeFlag GetDocumentChangeFlag () const =0
 Check if document state is the same as stored state. More...
 
- Public Member Functions inherited from istd::IChangeable
virtual int GetSupportedOperations () const
 Get set of flags for supported operations. More...
 
virtual bool CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
 Copy this object from another one. More...
 
virtual bool IsEqual (const IChangeable &object) const
 Compare this object with another object. More...
 
virtual IChangeableCloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const
 Make a copy of this object. More...
 
virtual bool ResetData (CompatibilityMode mode=CM_WITHOUT_REFS)
 Reset data to its default state. More...
 
virtual void BeginChanges (const ChangeSet &changeSet)
 Starts the change transaction. More...
 
virtual void EndChanges (const ChangeSet &changeSet)
 Ends the change transaction. More...
 
virtual void BeginChangeGroup (const ChangeSet &changeSet)
 Starts group of changes. More...
 
virtual void EndChangeGroup (const ChangeSet &changeSet)
 Ends group of changes. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Additional Inherited Members

- Public Types inherited from idoc::IDocumentStateComparator
enum  DocumentChangeFlag { DCF_UNKNOWN, DCF_EQUAL, DCF_DIFFERENT }
 
- Public Types inherited from istd::IChangeable
enum  ChangeFlags {
  CF_ACF_INTERNAL = 0, CF_ALL_DATA, CF_ANY, CF_DESTROYING,
  CF_DELEGATED, CF_NO_UNDO
}
 Data model change notification flags. More...
 
enum  SupportedOperations {
  SO_NONE = 0, SO_OBSERVE = 1 << 0, SO_COPY = 1 << 1, SO_CLONE = 1 << 2,
  SO_COMPARE = 1 << 3, SO_RESET = 1 << 4
}
 Flags for supported operations. More...
 
enum  CompatibilityMode { CM_STRICT, CM_WITHOUT_REFS, CM_WITH_REFS, CM_CONVERT }
 Control how relationship betweeen objects are interpreted. More...
 
- Static Public Member Functions inherited from istd::IChangeable
static const ChangeSetGetNoChanges ()
 Get empty set of changes. More...
 
static const ChangeSetGetAnyChange ()
 Get anonymous change set. More...
 
static const ChangeSetGetAllChanges ()
 Get anonymous change set. More...
 
static const ChangeSetGetDelegatedChanges ()
 Get delegated change set. More...
 
- Protected Member Functions inherited from istd::IChangeable
virtual void OnBeginChanges ()
 Callback function for begin change event. More...
 
virtual void OnEndChanges (const ChangeSet &changeSet)
 Callback function for end change event. More...
 

Detailed Description

Interface providing UNDO/REDO functionality.

Definition at line 16 of file IUndoManager.h.

Member Function Documentation

virtual bool idoc::IUndoManager::DoRedo ( int  steps = 1)
pure virtual

Process REDO steps.

Parameters
levellevel of REDO.

Implemented in idoc::CSerializedUndoManagerComp.

virtual bool idoc::IUndoManager::DoUndo ( int  steps = 1)
pure virtual

Process UNDO steps.

Parameters
levellevel of UNDO.

Implemented in idoc::CSerializedUndoManagerComp.

virtual int idoc::IUndoManager::GetAvailableRedoSteps ( ) const
pure virtual

Get number of available REDO levels.

Returns
number of REDO levels, or 0 if there is no REDO available.

Implemented in idoc::CSerializedUndoManagerComp.

virtual int idoc::IUndoManager::GetAvailableUndoSteps ( ) const
pure virtual

Get number of available UNDO levels.

Returns
number of UNDO levels, or 0 if there is no UNDO available.

Implemented in idoc::CSerializedUndoManagerComp.

virtual QString idoc::IUndoManager::GetRedoLevelDescription ( int  stepIndex) const
pure virtual

Get description of single UNDO level.

Implemented in idoc::CSerializedUndoManagerComp.

virtual QString idoc::IUndoManager::GetUndoLevelDescription ( int  stepIndex) const
pure virtual

Get description of single UNDO level.

Implemented in idoc::CSerializedUndoManagerComp.

virtual void idoc::IUndoManager::ResetUndo ( )
pure virtual

Reset all UNDO and REDO steps.

Implemented in idoc::CSerializedUndoManagerComp.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy