67 DTree::iterator
ref, newref;
89 DTree::iterator
ref, newref;
104 virtual bool undoable()
const override;
std::string text
Definition: Actions.hh:170
bool was_running_
Definition: Actions.hh:107
Update the running status of the indicated cell.
Definition: Actions.hh:97
Position pos
Definition: Actions.hh:90
DataCells are the basic building blocks for a document.
Definition: DataCell.hh:27
virtual void execute(DocumentThread &, GUIBase &)=0
Perform the action.
A base class with all the logic to manipulate a Cadabra notebook document.
Definition: DocumentThread.hh:38
Position
Definition: Actions.hh:55
All actions derive from the ActionBase object, which defines the interface they need to implement...
Definition: Actions.hh:32
Position pos
Definition: Actions.hh:68
Split a cell into two separate cells, at the point of the cursor.
Definition: Actions.hh:138
virtual bool undoable() const
Can this action be undone?
Definition: Actions.cc:12
bool needed_new_cell
Definition: Actions.hh:88
DTree removed_tree
Definition: Actions.hh:129
DTree::iterator this_cell
Definition: Actions.hh:190
Remove a cell and all its child cells from the document.
Definition: Actions.hh:115
DTree::iterator ref
Definition: Actions.hh:67
std::string removed_text
Definition: Actions.hh:192
DTree::iterator this_cell
Definition: Actions.hh:106
Add a text string (can be just a single character) at the point of the cursor.
Definition: Actions.hh:160
virtual void revert(DocumentThread &, GUIBase &)=0
Revert the change to the DTree document and the GUI.
Abstract base class with methods that need to be implemented by any GUI.
Definition: GUIBase.hh:16
int child_num
Definition: Actions.hh:69
Class to display expressions in a format that Sympy can parse.
Definition: Algorithm.cc:1614
size_t reference_child_index
Definition: Actions.hh:131
DTree::iterator this_cell
Definition: Actions.hh:147
DTree::iterator this_cell
Definition: Actions.hh:130
DTree::iterator ref
Definition: Actions.hh:89
Position the cursor relative to the indicated cell.
Definition: Actions.hh:78
DataCell newcell
Definition: Actions.hh:66
Add a cell to the notebook.
Definition: Actions.hh:53
int to_pos
Definition: Actions.hh:191
DTree::iterator this_cell
Definition: Actions.hh:168
int insert_pos
Definition: Actions.hh:169
tree< DataCell > DTree
Definition: DataCell.hh:105
Position
Definition: Actions.hh:80
Remove a text string starting at the indicated position, and with the indicated length, from the indicated cell.
Definition: Actions.hh:182