![]() |
Cadabra
Computer algebra system for field theory problems
|
Update the list of referenced variables in this cell.
#include <Actions.hh>
Public Member Functions | |
ActionSetVariableList (DataCell::id_t ref_id_, std::set< std::string >) | |
virtual | ~ActionSetVariableList () |
virtual void | execute (DocumentThread &, GUIBase &) override |
Perform the action. | |
virtual void | revert (DocumentThread &, GUIBase &) override |
Revert the change to the DTree document and the GUI. | |
virtual bool | undoable () const override |
Can this action be undone? | |
![]() | |
ActionBase (DataCell::id_t ref_id) | |
Private Attributes | |
DTree::iterator | this_cell |
std::set< std::string > | new_variables_ |
Additional Inherited Members | |
![]() | |
DataCell::id_t | ref_id |
![]() | |
DTree::iterator | ref |
ActionSetVariableList::ActionSetVariableList | ( | DataCell::id_t | ref_id_, |
std::set< std::string > | variables | ||
) |
|
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 |