![]() |
Cadabra
Computer algebra system for field theory problems
|
Replace the contents of a cell.
Not undo-able.
#include <Actions.hh>
Public Member Functions | |
ActionReplaceCell (DataCell::id_t ref_id_) | |
virtual | ~ActionReplaceCell () |
virtual void | execute (DocumentThread &, GUIBase &) override |
Perform the action. More... | |
virtual void | revert (DocumentThread &, GUIBase &) override |
Revert the change to the DTree document and the GUI. More... | |
virtual bool | undoable () const override |
Can this action be undone? More... | |
![]() | |
ActionBase (DataCell::id_t ref_id) | |
Additional Inherited Members | |
![]() | |
DataCell::id_t | ref_id |
![]() | |
DTree::iterator | ref |
ActionReplaceCell::ActionReplaceCell | ( | DataCell::id_t | ref_id_ | ) |
|
virtual |
|
overridevirtual |
Perform the action.
This should update both the document tree data structure and the GUI. The latter is updated by calling relevant methods on the GUIBase object passed in.
Reimplemented from cadabra::ActionBase.
|
overridevirtual |
Revert the change to the DTree document and the GUI.
Implements cadabra::ActionBase.
|
overridevirtual |
Can this action be undone?
Reimplemented from cadabra::ActionBase.