Cadabra
Computer algebra system for field theory problems
|
Update the running status of the indicated cell.
#include <Actions.hh>
Public Member Functions | |
ActionSetRunStatus (DataCell::id_t ref_id_, bool running) | |
virtual | ~ActionSetRunStatus () |
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... | |
Public Member Functions inherited from cadabra::ActionBase | |
ActionBase (DataCell::id_t ref_id) | |
Private Attributes | |
DTree::iterator | this_cell |
bool | was_running_ |
bool | new_running_ |
Additional Inherited Members | |
Public Attributes inherited from cadabra::ActionBase | |
DataCell::id_t | ref_id |
Protected Attributes inherited from cadabra::ActionBase | |
DTree::iterator | ref |
ActionSetRunStatus::ActionSetRunStatus | ( | DataCell::id_t | ref_id_, |
bool | running | ||
) |
|
inlinevirtual |
|
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.
|
private |
|
private |
|
private |