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) unit undo-redo-able operation.
builds server manager undo sets and pushes them on the undo stack.
void BEGIN_UNDO_SET(const QString &name)
void ADD_UNDO_ELEM(vtkUndoElement *elem)
This is the undo/redo stack for the Server Manager.
void beginUndoSet(QString label)
void BEGIN_UNDO_EXCLUDE()
void clear()
Clears undo stack.
Maintains a collection of vtkUndoElement that can be undone/redone in a single step.
void addToActiveUndoSet(vtkUndoElement *element)
One can add arbitrary elements to the undo set currently being built.
void endNonUndoableChanges()
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
pqUndoStack * getUndoStack() const
pqUndoStack represents a vtkSMUndoStack along with a a vtkSMUndoStackBuilder.
abstract superclass for Server Manager undo elements.
static pqApplicationCore * instance()
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
pqScopedUndoSet(const QString &label)
void beginNonUndoableChanges()
when the GUI is performing some changes that should not go on the UndoStack at all, it should call beginNonUndoableChanges().