80 const QString undoLabel();
85 const QString redoLabel();
91 bool ignoreAllChanges()
const;
101 bool getInUndo()
const;
102 bool getInRedo()
const;
108 void Push(
const char* label,
vtkUndoSet*
set);
120 void updateAllModifiedProxies();
123 void beginUndoSet(QString label);
148 void beginNonUndoableChanges();
149 void endNonUndoableChanges();
162 void stackChanged(
bool canUndo, QString undoLabel,
bool canRedo, QString redoLabel);
164 void canUndoChanged(
bool);
165 void canRedoChanged(
bool);
166 void undoLabelChanged(
const QString&);
167 void redoLabelChanged(
const QString&);
175 void onStackChanged();
178 class pqImplementation;
179 pqImplementation* Implementation;
256 #define SCOPED_UNDO_EXCLUDE() SCOPED_UNDO_EXCLUDE__0(__LINE__) 257 #define SCOPED_UNDO_EXCLUDE__0(line) pqScopedUndoExclude val##line 259 #define SCOPED_UNDO_SET(txt) SCOPED_UNDO_SET__0(__LINE__, txt) 260 #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().