15 class ActionPositionCursor;
16 class ActionRemoveCell;
17 class ActionSetRunStatus;
18 class ActionSplitCell;
19 class ActionInsertText;
20 class ActionEraseText;
107 void set_user_details(
const std::string& name,
const std::string&
email,
const std::string& affiliation);
143 help_t& help_type, std::string& help_topic)
const;
ActionStack undo_stack
Definition: DocumentThread.hh:129
friend ActionInsertText
Definition: DocumentThread.hh:88
ComputeThread * compute
Definition: DocumentThread.hh:111
Prefs()
Definition: DocumentThread.cc:148
A base class with all the logic to manipulate a Cadabra notebook document.
Definition: DocumentThread.hh:38
void new_document()
Setup an empty new document with a single Python input cell.
Definition: DocumentThread.cc:39
std::mutex stack_mutex
The action undo/redo/todo stacks and logic to execute.
Definition: DocumentThread.hh:127
std::stack< std::shared_ptr< ActionBase > > ActionStack
Definition: DocumentThread.hh:128
friend ActionBase
Definition: DocumentThread.hh:82
bool is_registered
Definition: DocumentThread.hh:97
Json::Value data
Definition: DocumentThread.hh:99
const char email[]
Definition: Snoop.hh:162
friend ActionSetRunStatus
Definition: DocumentThread.hh:87
friend ActionAddCell
Definition: DocumentThread.hh:83
void save()
Definition: DocumentThread.cc:175
Definition: DocumentThread.hh:91
Prefs prefs
Definition: DocumentThread.hh:102
DocumentThread(GUIBase *)
Definition: DocumentThread.cc:23
Abstract base class with methods that need to be implemented by any GUI.
Definition: GUIBase.hh:16
void queue_action(std::shared_ptr< ActionBase >)
All changes to the document should be made by submitting ActionBase derived objects to the 'queue_act...
Definition: DocumentThread.cc:111
std::queue< std::shared_ptr< ActionBase > > pending_actions
Definition: DocumentThread.hh:130
friend ActionRemoveCell
Definition: DocumentThread.hh:85
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Algorithm.cc:1626
std::string config_path
Definition: DocumentThread.hh:100
friend ActionEraseText
Definition: DocumentThread.hh:89
void load_from_string(const std::string &)
Load a new notebook from a JSON string.
Definition: DocumentThread.cc:62
friend ActionPositionCursor
Definition: DocumentThread.hh:84
void set_user_details(const std::string &name, const std::string &email, const std::string &affiliation)
Set user details which will be sent to the Cadabra log server.
Definition: DocumentThread.cc:188
bool help_type_and_topic(const std::string &before, const std::string &after, help_t &help_type, std::string &help_topic) const
Definition: DocumentThread.cc:198
void undo()
One undo step.
Definition: DocumentThread.cc:72
void set_compute_thread(ComputeThread *)
Let the notebook know about the ComputeThread so that it can send cells for evaluation.
Definition: DocumentThread.cc:34
tree< DataCell > DTree
Definition: DataCell.hh:107
int font_step
Definition: DocumentThread.hh:95
void process_action_queue()
Process the action queue.
Definition: DocumentThread.cc:118
bool disable_stacks
Definition: DocumentThread.hh:131
bool highlight
Definition: DocumentThread.hh:96
help_t
Help system.
Definition: DocumentThread.hh:141
DTree doc
The actual document tree.
Definition: DocumentThread.hh:119
Base class which talks to the server and sends Action objects back to the DocumentThread.
Definition: ComputeThread.hh:35
ActionStack redo_stack
Definition: DocumentThread.hh:129
GUIBase * gui
Definition: DocumentThread.hh:110
void build_visual_representation()
Ensure that the gui has an up-to-date representation of the dtree.
Definition: DocumentThread.cc:93
friend ActionSplitCell
Definition: DocumentThread.hh:86