Go to the documentation of this file.
7 #include "pqCoreModule.h"
62 bool ignoreAllChanges()
const;
72 bool getInUndo()
const;
73 bool getInRedo()
const;
91 void updateAllModifiedProxies();
94 void beginUndoSet(QString label);
118 void beginNonUndoableChanges();
119 void endNonUndoableChanges();
131 void stackChanged(
bool canUndo, QString undoLabel,
bool canRedo, QString redoLabel);
133 void canUndoChanged(
bool);
134 void canRedoChanged(
bool);
135 void undoLabelChanged(
const QString&);
136 void redoLabelChanged(
const QString&);
144 void onStackChanged();
147 class pqImplementation;
148 pqImplementation* Implementation;
227 #define SCOPED_UNDO_EXCLUDE() SCOPED_UNDO_EXCLUDE__0(__LINE__)
228 #define SCOPED_UNDO_EXCLUDE__0(line) pqScopedUndoExclude val##line
230 #define SCOPED_UNDO_SET(txt) SCOPED_UNDO_SET__0(__LINE__, txt)
231 #define SCOPED_UNDO_SET__0(line, txt) pqScopedUndoSet val##line(txt)
Maintains a collection of vtkUndoElement that can be undone/redone in a single step.
void BEGIN_UNDO_EXCLUDE()
pqUndoStack represents a vtkSMUndoStack along with a a vtkSMUndoStackBuilder.
abstract superclass for Server Manager undo elements.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
void beginUndoSet(QString label)
unit undo-redo-able operation.
void clear()
Clears undo stack.
void addToActiveUndoSet(vtkUndoElement *element)
One can add arbitrary elements to the undo set currently being built.
void ADD_UNDO_ELEM(vtkUndoElement *elem)
void endNonUndoableChanges()
pqUndoStack * getUndoStack() const
builds server manager undo sets and pushes them on the undo stack.
static pqApplicationCore * instance()
pqScopedUndoSet(const QString &label)
void beginNonUndoableChanges()
when the GUI is performing some changes that should not go on the UndoStack at all,...
void BEGIN_UNDO_SET(const QString &name)