ICF 3.1.1.10
Technical documentation of ICF Libraries
IUndoManager.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#pragma once
7
8
9// ICF includes
11
12
13namespace idoc
14{
15
16
21{
22public:
27 virtual int GetAvailableUndoSteps() const = 0;
32 virtual int GetAvailableRedoSteps() const = 0;
36 virtual QString GetUndoLevelDescription(int stepIndex) const = 0;
40 virtual QString GetRedoLevelDescription(int stepIndex) const = 0;
44 virtual void ResetUndo() = 0;
49 virtual bool DoUndo(int steps = 1) = 0;
54 virtual bool DoRedo(int steps = 1) = 0;
55};
56
57
58} // namespace idoc
59
60
Allows to store some document state used as reference for comarision.
Interface providing UNDO/REDO functionality.
virtual int GetAvailableRedoSteps() const =0
Get number of available REDO levels.
virtual bool DoRedo(int steps=1)=0
Process REDO steps.
virtual bool DoUndo(int steps=1)=0
Process UNDO steps.
virtual void ResetUndo()=0
Reset all UNDO and REDO steps.
virtual QString GetUndoLevelDescription(int stepIndex) const =0
Get description of single UNDO level.
virtual int GetAvailableUndoSteps() const =0
Get number of available UNDO levels.
virtual QString GetRedoLevelDescription(int stepIndex) const =0
Get description of single UNDO level.
Contains the system indenendent basic implementations of Document/View design pattern.

© Witold Gantzke and Kirill Lepskiy