11 #include "vtkObject.h"
13 class vtkUndoStackInternal;
18 enum EventIds { UndoSetRemovedEvent = 1989, UndoSetClearedEvent = 1990 };
22 void PrintSelf(ostream& os, vtkIndent indent)
override;
28 virtual void Push(
const char* label,
vtkUndoSet* changeSet);
37 const char* GetUndoSetLabel(
unsigned int position);
46 const char* GetRedoSetLabel(
unsigned int position);
51 unsigned int GetNumberOfUndoSets();
56 unsigned int GetNumberOfRedoSets();
61 int CanUndo() {
return (this->GetNumberOfUndoSets() > 0); }
66 int CanRedo() {
return (this->GetNumberOfRedoSets() > 0); }
141 vtkUndoStackInternal* Internal;
vtkSetClampMacro(StackDepth, int, 1, 100)
vtkGetMacro(InUndo, bool)
static vtkUndoStack * New()
vtkGetMacro(InRedo, bool)
vtkGetMacro(StackDepth, int)
vtkTypeMacro(vtkUndoStack, vtkObject)
#define QPCL_ENGINE_LIB_API