![]() |
Cadabra
Computer algebra system for field theory problems
|
Remove a cell and all its child cells from the document.
#include <Actions.hh>
Public Member Functions | |
ActionRemoveCell (DataCell::id_t ref_id_) | |
virtual | ~ActionRemoveCell () |
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... | |
![]() | |
ActionBase (DataCell::id_t ref_id) | |
virtual bool | undoable () const |
Can this action be undone? More... | |
Private Attributes | |
DTree | removed_tree |
DTree::iterator | reference_parent_cell |
size_t | reference_child_index |
Additional Inherited Members | |
![]() | |
DataCell::id_t | ref_id |
![]() | |
DTree::iterator | ref |
ActionRemoveCell::ActionRemoveCell | ( | 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.
|
private |
|
private |
|
private |