83 virtual bool undoable()
const override;
137 virtual bool undoable()
const override;
155 virtual bool undoable()
const override;
197 virtual bool undoable()
const override;
234 virtual bool undoable()
const override;
251 virtual bool undoable()
const override;
Position pos
Definition Actions.hh:90
virtual ~ActionAddCell()
Definition Actions.hh:77
int child_num
Definition Actions.hh:91
bool activate
Definition Actions.hh:92
bool is_input_form
Definition Actions.hh:100
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition Actions.cc:72
DTree::iterator newref
Definition Actions.hh:89
bool is_replacement
Definition Actions.hh:96
Position
Definition Actions.hh:74
DataCell newcell
Definition Actions.hh:88
ActionAddCell(DataCell, DataCell::id_t ref_, Position pos_, bool activate=false)
Definition Actions.cc:62
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition Actions.cc:121
virtual bool undoable() const override
Can this action be undone?
Definition Actions.cc:149
DTree::iterator ref
Definition Actions.hh:65
DataCell::id_t ref_cell_id() const
The id of the cell this action acted on.
Definition Actions.cc:28
virtual void execute(DocumentThread &, GUIBase &)
Perform the action.
Definition Actions.cc:38
ActionBase(DataCell::id_t ref_id)
Definition Actions.cc:18
virtual bool undoable() const
Can this action be undone?
Definition Actions.cc:23
std::function< void()> callback
If you want a callback once this action has finished, set it here before queuing.
Definition Actions.hh:62
DataCell::id_t ref_id
Definition Actions.hh:58
virtual void revert(DocumentThread &, GUIBase &)=0
Revert the change to the DTree document and the GUI.
int alternative() const
Definition Actions.cc:502
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition Actions.cc:480
std::string text
Definition Actions.hh:302
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition Actions.cc:490
virtual ~ActionCompleteText()
Definition Actions.hh:291
int alternative_
Definition Actions.hh:303
ActionCompleteText(DataCell::id_t ref_id, int pos, const std::string &, int alternative)
Definition Actions.cc:475
int length() const
Definition Actions.cc:497
DTree::iterator this_cell
Definition Actions.hh:300
int insert_pos
Definition Actions.hh:301
int to_pos
Definition Actions.hh:325
std::string removed_text
Definition Actions.hh:326
virtual ~ActionEraseText()
Definition Actions.hh:318
int from_pos
Definition Actions.hh:325
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition Actions.cc:512
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition Actions.cc:521
DTree::iterator this_cell
Definition Actions.hh:324
ActionEraseText(DataCell::id_t ref_id, int, int)
Definition Actions.cc:507
virtual ~ActionInsertText()
Definition Actions.hh:269
std::string text
Definition Actions.hh:277
ActionInsertText(DataCell::id_t ref_id, int pos, const std::string &)
Definition Actions.cc:453
int insert_pos
Definition Actions.hh:276
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition Actions.cc:467
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition Actions.cc:458
DTree::iterator this_cell
Definition Actions.hh:275
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition Actions.cc:426
virtual bool undoable() const override
Can this action be undone?
Definition Actions.cc:410
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition Actions.cc:415
std::string notebook_name
Definition Actions.hh:253
ActionOpen(const std::string &)
Definition Actions.cc:401
virtual ~ActionPositionCursor()
Definition Actions.hh:114
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition Actions.cc:230
ActionPositionCursor(DataCell::id_t ref_id_, Position pos_)
Definition Actions.cc:154
DTree::iterator newref
Definition Actions.hh:121
Position pos
Definition Actions.hh:122
Position
Definition Actions.hh:111
uint64_t needed_new_cell_with_id
Definition Actions.hh:120
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition Actions.cc:159
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition Actions.cc:262
DTree::iterator reference_parent_cell
Definition Actions.hh:181
size_t reference_child_index
Definition Actions.hh:182
ActionRemoveCell(DataCell::id_t ref_id_)
Definition Actions.cc:240
DTree removed_tree
Definition Actions.hh:180
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition Actions.cc:249
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition Actions.cc:293
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition Actions.cc:289
ActionReplaceCell(DataCell::id_t ref_id_)
Definition Actions.cc:280
virtual bool undoable() const override
Can this action be undone?
Definition Actions.cc:297
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition Actions.cc:385
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition Actions.cc:396
ActionRunCell()
Definition Actions.cc:371
bool run_all_cells
Definition Actions.hh:236
virtual bool undoable() const override
Can this action be undone?
Definition Actions.cc:380
ActionRunCell(DataCell::id_t ref_id)
Definition Actions.cc:366
DTree::iterator this_cell
Definition Actions.hh:139
bool was_running_
Definition Actions.hh:140
virtual ~ActionSetRunStatus()
Definition Actions.hh:132
virtual bool undoable() const override
Can this action be undone?
Definition Actions.cc:346
bool new_running_
Definition Actions.hh:140
ActionSetRunStatus(DataCell::id_t ref_id_, bool running)
Definition Actions.cc:341
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition Actions.cc:351
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition Actions.cc:361
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition Actions.cc:448
virtual ~ActionSetVariableList()
Definition Actions.hh:150
virtual bool undoable() const override
Can this action be undone?
Definition Actions.cc:436
std::set< std::string > new_variables_
Definition Actions.hh:158
DTree::iterator this_cell
Definition Actions.hh:157
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition Actions.cc:441
ActionSetVariableList(DataCell::id_t ref_id_, std::set< std::string >)
Definition Actions.cc:431
virtual void revert(DocumentThread &, GUIBase &) override
Revert the change to the DTree document and the GUI.
Definition Actions.cc:334
ActionSplitCell(DataCell::id_t ref_id)
Definition Actions.cc:302
virtual void execute(DocumentThread &, GUIBase &) override
Perform the action.
Definition Actions.cc:311
DTree::iterator newref
Definition Actions.hh:214
Definition DataCell.hh:116
Each cell is identified by a serial number 'id' which is used to keep track of it across network call...
Definition DataCell.hh:53
DataCells are the basic building blocks for a document.
Definition DataCell.hh:27
A base class with all the logic to manipulate a Cadabra notebook document.
Definition DocumentThread.hh:41
Abstract base class with methods that need to be implemented by any GUI.
Definition GUIBase.hh:16
Functions to handle the exchange properties of two or more symbols in a product.
Definition Adjform.cc:83