ACF $AcfVersion:0$
IUndoManager.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
7
8
9namespace idoc
10{
11
12
70{
71public:
78 virtual int GetAvailableUndoSteps() const = 0;
79
86 virtual int GetAvailableRedoSteps() const = 0;
92 virtual QString GetUndoLevelDescription(int stepIndex) const = 0;
93
99 virtual QString GetRedoLevelDescription(int stepIndex) const = 0;
100
106 virtual void ResetUndo() = 0;
107
113 virtual bool DoUndo(int steps = 1) = 0;
114
120 virtual bool DoRedo(int steps = 1) = 0;
121};
122
123
126
127
128} // namespace idoc
129
130
131
132
Allows to store some document state used as reference for comparison.
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 REDO level.
Shared ownership smart pointer for interface types.
Unique ownership smart pointer for interface types.
Contains the system independent basic implementations of Document/View design pattern.
istd::TUniqueInterfacePtr< idoc::IUndoManager > IUndoManagerUniquePtr
istd::TSharedInterfacePtr< idoc::IUndoManager > IUndoManagerSharedPtr