113 virtual bool undoable()
const override;
DTree::iterator this_cell
Definition: Actions.hh:227
Update the running status of the indicated cell.
Definition: Actions.hh:105
virtual ~ActionPositionCursor()
Definition: Actions.hh:90
Add a cell to the notebook.
Definition: Actions.hh:59
Abstract base class with methods that need to be implemented by any GUI.
Definition: GUIBase.hh:16
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition: Actions.cc:80
std::string text
Definition: Actions.hh:205
Remove a text string starting at the indicated position, and with the indicated length, from the indicated cell.
Definition: Actions.hh:218
bool needed_new_cell
Definition: Actions.hh:96
ActionPositionCursor(DataCell::id_t ref_id_, Position pos_)
Definition: Actions.cc:75
DTree::iterator newref
Definition: Actions.hh:156
DTree::iterator newref
Definition: Actions.hh:97
Position
Definition: Actions.hh:87
Position pos
Definition: Actions.hh:98
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition: Actions.cc:239
size_t reference_child_index
Definition: Actions.hh:140
int length() const
Definition: Actions.cc:296
ActionSplitCell(DataCell::id_t ref_id)
Definition: Actions.cc:190
virtual ~ActionSplitCell()
Definition: Actions.cc:195
int child_num
Definition: Actions.hh:76
A base class with all the logic to manipulate a Cadabra notebook document.
Definition: DocumentThread.hh:40
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition: Actions.cc:259
int insert_pos
Definition: Actions.hh:179
bool was_running_
Definition: Actions.hh:116
int from_pos
Definition: Actions.hh:228
DataCells are the basic building blocks for a document.
Definition: DataCell.hh:27
int alternative_
Definition: Actions.hh:206
Remove a cell and all its child cells from the document.
Definition: Actions.hh:124
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition: Actions.cc:279
ActionInsertText(DataCell::id_t ref_id, int pos, const std::string &)
Definition: Actions.cc:254
DataCell newcell
Definition: Actions.hh:73
Position the cursor relative to the indicated cell.
Definition: Actions.hh:85
virtual ~ActionRemoveCell()
Definition: Actions.cc:155
virtual void revert(DocumentThread &, GUIBase &)=0
Revert the change to the DTree document and the GUI.
DataCell::id_t ref_id
Definition: Actions.hh:50
std::string text
Definition: Actions.hh:180
DTree::iterator ref
Definition: Actions.hh:52
bool new_running_
Definition: Actions.hh:116
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition: Actions.cc:159
ActionRemoveCell(DataCell::id_t ref_id_)
Definition: Actions.cc:150
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition: Actions.cc:172
virtual bool undoable() const
Can this action be undone?
Definition: Actions.cc:18
All actions derive from the ActionBase object, which defines the interface they need to implement...
Definition: Actions.hh:32
ActionAddCell(DataCell, DataCell::id_t ref_, Position pos_)
Definition: Actions.cc:37
DTree::iterator newref
Definition: Actions.hh:74
ActionSetRunStatus(DataCell::id_t ref_id_, bool running)
Definition: Actions.cc:229
virtual ~ActionAddCell()
Definition: Actions.hh:64
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition: Actions.cc:320
std::string removed_text
Definition: Actions.hh:229
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition: Actions.cc:222
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Adjform.cc:83
Complete text at a point in a GUI cell with one or more alternative.
Definition: Actions.hh:191
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition: Actions.cc:249
Add a text string (can be just a single character) at the point of the cursor.
Definition: Actions.hh:169
ActionBase(DataCell::id_t ref_id)
Definition: Actions.cc:13
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition: Actions.cc:63
int insert_pos
Definition: Actions.hh:204
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition: Actions.cc:140
virtual ~ActionCompleteText()
Definition: Actions.hh:194
virtual ~ActionSetRunStatus()
Definition: Actions.hh:108
int to_pos
Definition: Actions.hh:228
DTree::iterator this_cell
Definition: Actions.hh:115
virtual void execute(DocumentThread &, GUIBase &)
Perform the action.
Definition: Actions.cc:23
tree< DataCell > DTree
Definition: DataCell.hh:108
ActionCompleteText(DataCell::id_t ref_id, int pos, const std::string &, int alternative)
Definition: Actions.cc:274
Position
Definition: Actions.hh:61
virtual bool undoable() const override
Can this action be undone?
Definition: Actions.cc:234
DTree::iterator this_cell
Definition: Actions.hh:203
Position pos
Definition: Actions.hh:75
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition: Actions.cc:42
Each cell is identified by a serial number 'id' which is used to keep track of it across network call...
Definition: DataCell.hh:51
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition: Actions.cc:289
Split a cell into two separate cells, at the point of the cursor.
Definition: Actions.hh:147
ActionEraseText(DataCell::id_t ref_id, int, int)
Definition: Actions.cc:306
DTree::iterator this_cell
Definition: Actions.hh:178
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition: Actions.cc:267
virtual ~ActionInsertText()
Definition: Actions.hh:172
virtual ~ActionEraseText()
Definition: Actions.hh:221
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition: Actions.cc:311
DTree::iterator reference_parent_cell
Definition: Actions.hh:139
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition: Actions.cc:199
DTree removed_tree
Definition: Actions.hh:138
int alternative() const
Definition: Actions.cc:301