Cadabra
Computer algebra system for field theory problems
NotebookWindow.hh
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <gtkmm/window.h>
5 #include <gtkmm/box.h>
6 #include <gtkmm/progressbar.h>
7 #include <gtkmm/spinner.h>
8 #include <gtkmm/label.h>
9 #include <gtkmm/stock.h>
10 #include <gtkmm/button.h>
11 #include <gtkmm/uimanager.h>
12 #include <gtkmm/cssprovider.h>
13 #include <glibmm/dispatcher.h>
14 #include <giomm/settings.h>
15 #include <gtkmm/action.h>
16 
17 #include <thread>
18 #include <mutex>
19 
20 #include "DocumentThread.hh"
21 #include "ComputeThread.hh"
22 #include "Console.hh"
23 #include "GUIBase.hh"
24 #include "NotebookCanvas.hh"
25 #include "../common/TeXEngine.hh"
26 #include "DiffViewer.hh"
27 
28 class Cadabra;
29 
30 namespace cadabra {
31 
36 
37  class NotebookWindow : public Gtk::Window, public DocumentThread, public GUIBase {
38  public:
39  NotebookWindow(Cadabra *, bool read_only=false);
41 
42  // Virtual functions from GUIBase.
43 
44  virtual void add_cell(const DTree&, DTree::iterator, bool) override;
45  virtual void remove_cell(const DTree&, DTree::iterator) override;
46  virtual void remove_all_cells() override;
47  virtual void update_cell(const DTree&, DTree::iterator) override;
48  virtual void position_cursor(const DTree&, DTree::iterator, int pos) override;
49  virtual size_t get_cursor_position(const DTree&, DTree::iterator) override;
50 
51  virtual void on_connect() override;
52  virtual void on_disconnect(const std::string&) override;
53  virtual void on_network_error() override;
54  virtual void on_kernel_runstatus(bool) override;
55 
56  virtual void process_data() override;
57 
58  // TeX stuff
60  double scale; // total scale factor (hdpi and textscale)
61  double display_scale; // hdpi scale only
62 
63  // Handler for vertical scrollbar changes.
64  bool on_vscroll_changed(Gtk::ScrollType, double);
65 
66  // Handler for mouse wheel events.
67  // bool on_mouse_wheel(GdkEventButton*);
68 
69  // Handler for scroll events.
70  bool on_scroll(GdkEventScroll*);
71 
72  // When something inside the large notebook canvas changes, we need
73  // to make sure that the current cell stays into view (if we are
74  // editing that cell). We can only do that once all size info is
75  // known, which is when the scrolledwindow gets its size_allocate
76  // signal. Here's the handler for it.
77  void on_scroll_size_allocate(Gtk::Allocation&);
78 
79  // Ensure that the current cell is visible. This will assume
80  // that all size allocations of widgets inside the scrolled window
81  // have been made; it only does scrolling, based on the current
82  // allocations.
84 
85  void set_name(const std::string&);
86  void set_title_prefix(const std::string&);
87 
88  void load_file(const std::string& notebook_contents);
89  void refresh_highlighting();
90  void on_help_register();
91 
93  void select_git_path();
94  void compare_to_file();
95  void compare_git_latest();
96  void compare_git_choose();
97  void compare_git_specific();
98  void compare_git(const std::string& commit_hash);
99  std::string run_git_command(const std::string& args);
100 
101  virtual void set_compute_thread(ComputeThread* compute) override;
102 
103  virtual void on_interactive_output(const Json::Value& msg) override;
104 
105  protected:
106  virtual bool on_key_press_event(GdkEventKey*) override;
107  virtual bool on_delete_event(GdkEventAny*) override;
108  virtual bool on_configure_event(GdkEventConfigure *cfg) override;
109 
110  DTree::iterator current_cell;
111 
112  bool handle_outbox_select(GdkEventButton *, DTree::iterator it);
113  DTree::iterator selected_cell;
114  void unselect_output_cell();
115  void on_outbox_copy(Glib::RefPtr<Gtk::Clipboard> refClipboard, DTree::iterator it);
116 
117  private:
119 
120  std::vector<Glib::RefPtr<Gtk::Action>> default_actions;
121 
122  // Main handler which fires whenever the Client object signals
123  // that the document is changing or the network status is modified.
124  // Runs on the GUI thread.
125 
126  Glib::Dispatcher dispatcher;
127 
128  // GUI elements.
129 
130  Glib::RefPtr<Gtk::ActionGroup> actiongroup;
131  Glib::RefPtr<Gtk::UIManager> uimanager;
132 
133  Gtk::VBox topbox;
134  Gtk::HBox supermainbox;
135  Gtk::VBox mainbox;
136  // Gtk::HBox buttonbox;
137  Gtk::HBox statusbarbox;
138 
140  Gtk::Dialog console_win;
141 
142  std::unique_ptr<DiffViewer> diffviewer;
143 
144  // All canvasses which are stored in the ...
145  // These pointers are managed by gtkmm.
146  std::vector<NotebookCanvas *> canvasses;
148 
149  // Buttons
150  // Gtk::Button b_kill, b_run, b_run_to, b_run_from, b_help, b_stop, b_undo, b_redo;
151 
152  // Status bar
153  Gtk::ProgressBar progressbar;
154  Gtk::Spinner kernel_spinner;
157 
158  // GUI data which is the autoritative source for things displayed in
159  // the status bars declared above. These strings are filled on the
160  // compute thread and then updated into the gui on the gui thread.
161 
162  std::mutex status_mutex;
164 
165  // Name and modification data.
166  void update_title();
167  void set_stop_sensitive(bool);
168  std::string name, title_prefix;
170 
171  // Menu and button callbacks.
172  void on_file_new();
173  void on_file_open();
174  void on_file_close();
175  void on_file_save();
176  void on_file_save_as();
177  void on_file_export_html();
179  void on_file_export_latex();
180  void on_file_export_python();
181  void on_file_quit();
182  bool quit_safeguard(bool quit);
183 
184  void on_edit_undo();
185  void on_edit_copy();
186  Glib::RefPtr<Gtk::Action> action_copy, action_paste;
187  void on_edit_paste();
188  void on_edit_insert_above();
189  void on_edit_insert_below();
190  void on_edit_delete();
191  void on_edit_split();
192  void on_edit_cell_is_latex();
193  void on_edit_cell_is_python();
194  void on_ignore_cell_on_import();
195 
196  void on_view_split();
197  void on_view_close();
198 
199  void on_run_cell();
200  void on_run_runall();
201  void on_run_runtocursor();
202  void on_run_stop();
203 
204  void on_prefs_set_cv(int vis);
205  void on_prefs_font_size(int num);
206  void on_prefs_highlight_syntax(bool on);
208  void on_prefs_use_defaults();
209  void on_help_about();
210  void on_help() const;
211 
212  void on_kernel_restart();
213 
215  void on_clipboard_get(Gtk::SelectionData&, guint info);
216  void on_clipboard_clear();
218 
219  // FIXME: move to DocumentThread
220  std::string save(const std::string& fn) const;
221 
225  void process_todo_queue();
226 
227  void on_crash_window_closed(int);
229 
230  // The following are handlers that get called when the cell
231  // gets focus, the content of a cell is changed, the user
232  // requests to run it (shift-enter). The last two parameters are
233  // always the cell in the DTree and the canvas number.
234 
235  bool cell_got_focus(DTree::iterator, int);
236  bool cell_toggle_visibility(DTree::iterator it, int);
237  bool cell_content_insert(const std::string&, int, DTree::iterator, int);
238  bool cell_content_erase(int, int, DTree::iterator, int);
239  bool cell_content_execute(DTree::iterator, int, bool shift_enter_pressed);
240  bool cell_content_changed(DTree::iterator it, int i);
241 
242  void interactive_execute();
243 
244  void dim_output_cells(DTree::iterator it);
245 
246  // Handler for callbacks from TeXView cells.
247 
248  bool on_tex_error(const std::string&, DTree::iterator);
249 
250  // Styling through CSS
251  void load_css(const std::string&);
252  Glib::RefPtr<Gtk::CssProvider> css_provider;
253  Glib::RefPtr<Gio::Settings> settings;
254  void on_text_scaling_factor_changed(const std::string& key);
255 
257  DTree::iterator follow_cell;
258 
259 
261 
262  Glib::RefPtr<Gtk::Action> menu_help_register;
263 
264  // Transition animations.
265 #if GTKMM_MINOR_VERSION>=10
266  std::vector<Gtk::Revealer *> to_reveal;
267 #endif
268  bool idle_handler();
269  };
270 
271  };
cadabra::NotebookWindow::process_data
virtual void process_data() override
When the ComputeThread needs to modify the document, it stores an ActionBase object on the stack (see...
Definition: NotebookWindow.cc:527
cadabra::NotebookWindow::compare_to_file
void compare_to_file()
Definition: NotebookWindow.cc:1793
DocumentThread.hh
cadabra::NotebookWindow::interactive_execute
void interactive_execute()
Definition: NotebookWindow.cc:1110
cadabra::NotebookWindow::on_clipboard_clear
void on_clipboard_clear()
Definition: NotebookWindow.cc:2181
cadabra::NotebookWindow::compare_git_latest
void compare_git_latest()
Definition: NotebookWindow.cc:1865
cadabra::NotebookWindow::statusbarbox
Gtk::HBox statusbarbox
Definition: NotebookWindow.hh:137
cadabra::NotebookWindow::on_prefs_font_size
void on_prefs_font_size(int num)
Definition: NotebookWindow.cc:1986
cadabra::NotebookWindow::on_interactive_output
virtual void on_interactive_output(const Json::Value &msg) override
Definition: NotebookWindow.cc:807
cadabra::NotebookWindow::on_help_about
void on_help_about()
Definition: NotebookWindow.cc:1663
cadabra::NotebookWindow::on_file_export_latex
void on_file_export_latex()
Definition: NotebookWindow.cc:1320
ComputeThread.hh
NotebookCanvas.hh
cadabra::NotebookWindow::on_edit_insert_above
void on_edit_insert_above()
Definition: NotebookWindow.cc:1477
cadabra::NotebookWindow::on_connect
virtual void on_connect() override
Network status is propagated from the ComputeThread to the GUI using the following methods.
Definition: NotebookWindow.cc:533
cadabra::NotebookWindow::on_file_save_as
void on_file_save_as()
Definition: NotebookWindow.cc:1268
cadabra::NotebookWindow::cell_got_focus
bool cell_got_focus(DTree::iterator, int)
Definition: NotebookWindow.cc:1100
cadabra::NotebookWindow::on_file_new
void on_file_new()
Definition: NotebookWindow.cc:1183
cadabra::ComputeThread
Definition: ComputeThread.hh:35
cadabra::NotebookWindow::on_kernel_runstatus
virtual void on_kernel_runstatus(bool) override
Definition: NotebookWindow.cc:555
cadabra::NotebookWindow::console
Console console
Definition: NotebookWindow.hh:139
cadabra::NotebookWindow::menu_help_register
Glib::RefPtr< Gtk::Action > menu_help_register
Definition: NotebookWindow.hh:262
cadabra::NotebookWindow::idle_handler
bool idle_handler()
Definition: NotebookWindow.cc:2096
cadabra::NotebookWindow::default_actions
std::vector< Glib::RefPtr< Gtk::Action > > default_actions
Definition: NotebookWindow.hh:120
cadabra::NotebookWindow::canvasses
std::vector< NotebookCanvas * > canvasses
Definition: NotebookWindow.hh:146
cadabra::NotebookWindow::actiongroup
Glib::RefPtr< Gtk::ActionGroup > actiongroup
Definition: NotebookWindow.hh:130
cadabra::NotebookWindow::on_file_export_python
void on_file_export_python()
Definition: NotebookWindow.cc:1343
cadabra::NotebookWindow::diffviewer
std::unique_ptr< DiffViewer > diffviewer
Definition: NotebookWindow.hh:142
cadabra::NotebookWindow::dispatcher
Glib::Dispatcher dispatcher
Definition: NotebookWindow.hh:126
cadabra::NotebookWindow::cell_content_erase
bool cell_content_erase(int, int, DTree::iterator, int)
Definition: NotebookWindow.cc:1070
cadabra::NotebookWindow::set_stop_sensitive
void set_stop_sensitive(bool)
Definition: NotebookWindow.cc:519
cadabra::NotebookWindow::set_compute_thread
virtual void set_compute_thread(ComputeThread *compute) override
Let the notebook know about the ComputeThread so that it can send cells for evaluation.
Definition: NotebookWindow.cc:1657
cadabra::NotebookWindow::on_tex_error
bool on_tex_error(const std::string &, DTree::iterator)
Definition: NotebookWindow.cc:1155
cadabra::TeXEngine
Definition: TeXEngine.hh:23
cadabra::NotebookWindow::status_mutex
std::mutex status_mutex
Definition: NotebookWindow.hh:162
cadabra::GUIBase
Definition: GUIBase.hh:16
cadabra::NotebookWindow::on_file_export_html
void on_file_export_html()
Definition: NotebookWindow.cc:1300
cadabra::NotebookWindow::display_scale
double display_scale
Definition: NotebookWindow.hh:61
cadabra::NotebookWindow::on_disconnect
virtual void on_disconnect(const std::string &) override
Definition: NotebookWindow.cc:541
cadabra::NotebookWindow::on_crash_window_closed
void on_crash_window_closed(int)
Definition: NotebookWindow.cc:610
cadabra::NotebookWindow::compare_git_specific
void compare_git_specific()
Definition: NotebookWindow.cc:1959
cadabra::NotebookWindow::run_git_command
std::string run_git_command(const std::string &args)
Definition: NotebookWindow.cc:1820
cadabra::NotebookWindow::on_ignore_cell_on_import
void on_ignore_cell_on_import()
Definition: NotebookWindow.cc:1535
quit
int quit(void *)
Definition: Server.cc:241
Console.hh
cadabra::NotebookWindow::title_prefix
std::string title_prefix
Definition: NotebookWindow.hh:168
cadabra::NotebookWindow::scale
double scale
Definition: NotebookWindow.hh:60
cadabra::NotebookWindow::quit_safeguard
bool quit_safeguard(bool quit)
Definition: NotebookWindow.cc:1411
cadabra::NotebookWindow::on_edit_cell_is_python
void on_edit_cell_is_python()
Definition: NotebookWindow.cc:1524
cadabra::NotebookWindow::name
std::string name
Definition: NotebookWindow.hh:168
cadabra::NotebookWindow::update_title
void update_title()
Definition: NotebookWindow.cc:503
cadabra::NotebookWindow::kernel_string
std::string kernel_string
Definition: NotebookWindow.hh:163
cadabra::NotebookWindow::on_view_close
void on_view_close()
Definition: NotebookWindow.cc:1565
cadabra::NotebookWindow::action_copy
Glib::RefPtr< Gtk::Action > action_copy
Definition: NotebookWindow.hh:186
cadabra::NotebookWindow::position_cursor
virtual void position_cursor(const DTree &, DTree::iterator, int pos) override
Position the cursor in the current canvas in the widget corresponding to the indicated cell.
Definition: NotebookWindow.cc:907
cadabra::NotebookWindow::clipboard_txt
std::string clipboard_txt
Definition: NotebookWindow.hh:217
cadabra::NotebookWindow::kernel_spinner
Gtk::Spinner kernel_spinner
Definition: NotebookWindow.hh:154
cadabra::NotebookWindow::read_only
bool read_only
Definition: NotebookWindow.hh:169
cadabra::NotebookWindow::refresh_highlighting
void refresh_highlighting()
Definition: NotebookWindow.cc:2088
cadabra::NotebookWindow::remove_cell
virtual void remove_cell(const DTree &, DTree::iterator) override
Remove a single cell together with all its child cells.
Definition: NotebookWindow.cc:812
Cadabra
The Cadabra notebook application.
Definition: Cadabra.hh:11
cadabra::NotebookWindow::~NotebookWindow
~NotebookWindow()
Definition: NotebookWindow.cc:403
cadabra::NotebookWindow::on_run_stop
void on_run_stop()
Definition: NotebookWindow.cc:1613
cadabra::NotebookWindow::on_edit_paste
void on_edit_paste()
Definition: NotebookWindow.cc:1473
cadabra::NotebookWindow::modified
bool modified
Definition: NotebookWindow.hh:169
cadabra::NotebookWindow::on_file_close
void on_file_close()
Definition: NotebookWindow.cc:1196
cadabra::NotebookWindow::on_vscroll_changed
bool on_vscroll_changed(Gtk::ScrollType, double)
Definition: NotebookWindow.cc:979
cadabra::NotebookWindow::compare_git
void compare_git(const std::string &commit_hash)
Definition: NotebookWindow.cc:1847
cadabra::NotebookWindow::unselect_output_cell
void unselect_output_cell()
Definition: NotebookWindow.cc:2107
cadabra::NotebookWindow::status_label
Gtk::Label status_label
Definition: NotebookWindow.hh:156
cadabra::NotebookWindow::on_prefs_choose_colours
void on_prefs_choose_colours()
Definition: NotebookWindow.cc:2065
cadabra::NotebookWindow::on_edit_copy
void on_edit_copy()
Definition: NotebookWindow.cc:1462
cadabra::NotebookWindow::action_paste
Glib::RefPtr< Gtk::Action > action_paste
Definition: NotebookWindow.hh:186
cadabra::NotebookWindow::load_file
void load_file(const std::string &notebook_contents)
Definition: NotebookWindow.cc:1239
cadabra::NotebookWindow::progressbar
Gtk::ProgressBar progressbar
Definition: NotebookWindow.hh:153
cadabra::NotebookWindow::on_configure_event
virtual bool on_configure_event(GdkEventConfigure *cfg) override
Definition: NotebookWindow.cc:473
cadabra::NotebookWindow::kernel_label
Gtk::Label kernel_label
Definition: NotebookWindow.hh:156
cadabra::NotebookWindow::update_cell
virtual void update_cell(const DTree &, DTree::iterator) override
The basic manipulations that a GUI needs to implement are adding, removing and updating (refreshing t...
Definition: NotebookWindow.cc:893
cadabra::NotebookWindow::is_configured
bool is_configured
Definition: NotebookWindow.hh:260
cadabra::NotebookWindow::on_scroll_size_allocate
void on_scroll_size_allocate(Gtk::Allocation &)
Definition: NotebookWindow.cc:1003
cadabra::NotebookWindow::process_todo_queue
void process_todo_queue()
Todo deque processing logic.
Definition: NotebookWindow.cc:562
cadabra::NotebookWindow::on_help_register
void on_help_register()
Definition: NotebookWindow.cc:1693
cadabra::NotebookWindow::remove_all_cells
virtual void remove_all_cells() override
Remove all GUI cells from the display (used as a quick way to clear all before loading a new document...
Definition: NotebookWindow.cc:883
cadabra::NotebookWindow::cell_content_execute
bool cell_content_execute(DTree::iterator, int, bool shift_enter_pressed)
Definition: NotebookWindow.cc:1115
cadabra::NotebookWindow::set_name
void set_name(const std::string &)
Definition: NotebookWindow.cc:1233
cadabra::NotebookWindow::on_key_press_event
virtual bool on_key_press_event(GdkEventKey *) override
Definition: NotebookWindow.cc:615
cadabra::NotebookWindow::kernel_spinner_status
bool kernel_spinner_status
Definition: NotebookWindow.hh:155
cadabra::NotebookWindow::add_cell
virtual void add_cell(const DTree &, DTree::iterator, bool) override
Add a GUI cell corresponding to the document cell at the iterator.
Definition: NotebookWindow.cc:639
cadabra::NotebookWindow::css_provider
Glib::RefPtr< Gtk::CssProvider > css_provider
Definition: NotebookWindow.hh:252
cadabra::NotebookWindow::on_prefs_use_defaults
void on_prefs_use_defaults()
Definition: NotebookWindow.cc:2072
cadabra::NotebookWindow::follow_cell
DTree::iterator follow_cell
Definition: NotebookWindow.hh:257
DiffViewer.hh
snoop::info
const char info[]
Definition: Snoop.hh:159
cadabra::NotebookWindow::compare_git_choose
void compare_git_choose()
Definition: NotebookWindow.cc:1897
cadabra::NotebookWindow::on_delete_event
virtual bool on_delete_event(GdkEventAny *) override
Definition: NotebookWindow.cc:427
cadabra::NotebookWindow::on_kernel_restart
void on_kernel_restart()
Definition: NotebookWindow.cc:1618
cadabra::DTree
tree< DataCell > DTree
Definition: DataCell.hh:108
cadabra::DocumentThread
Definition: DocumentThread.hh:39
cadabra::NotebookWindow::cell_content_insert
bool cell_content_insert(const std::string &, int, DTree::iterator, int)
Definition: NotebookWindow.cc:1057
cadabra::NotebookWindow::mainbox
Gtk::VBox mainbox
Definition: NotebookWindow.hh:135
cadabra::NotebookWindow::uimanager
Glib::RefPtr< Gtk::UIManager > uimanager
Definition: NotebookWindow.hh:131
cadabra::NotebookWindow::selected_cell
DTree::iterator selected_cell
Definition: NotebookWindow.hh:113
cadabra::NotebookWindow::on_file_save
void on_file_save()
Definition: NotebookWindow.cc:1248
GUIBase.hh
cadabra::NotebookWindow::on_scroll
bool on_scroll(GdkEventScroll *)
Definition: NotebookWindow.cc:994
cadabra::NotebookWindow::supermainbox
Gtk::HBox supermainbox
Definition: NotebookWindow.hh:134
cadabra::Console
Definition: Console.hh:27
cadabra::NotebookWindow::cell_toggle_visibility
bool cell_toggle_visibility(DTree::iterator it, int)
Definition: NotebookWindow.cc:1020
cadabra::NotebookWindow::cell_content_changed
bool cell_content_changed(DTree::iterator it, int i)
Definition: NotebookWindow.cc:1048
cadabra
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Adjform.cc:80
cadabra::NotebookWindow::on_edit_undo
void on_edit_undo()
Definition: NotebookWindow.cc:1457
cadabra::NotebookWindow::on_run_cell
void on_run_cell()
Definition: NotebookWindow.cc:1576
cadabra::NotebookWindow::on_file_export_html_segment
void on_file_export_html_segment()
Definition: NotebookWindow.cc:1363
cadabra::NotebookWindow::get_cursor_position
virtual size_t get_cursor_position(const DTree &, DTree::iterator) override
Retrieve the position of the cursor in the current cell.
Definition: NotebookWindow.cc:932
cadabra::NotebookWindow::on_network_error
virtual void on_network_error() override
Definition: NotebookWindow.cc:548
cadabra::NotebookWindow::on_outbox_copy
void on_outbox_copy(Glib::RefPtr< Gtk::Clipboard > refClipboard, DTree::iterator it)
Definition: NotebookWindow.cc:2143
cadabra::NotebookWindow::clipboard_cdb
std::string clipboard_cdb
Definition: NotebookWindow.hh:217
cadabra::NotebookWindow::on_clipboard_get
void on_clipboard_get(Gtk::SelectionData &, guint info)
Clipboard handling.
Definition: NotebookWindow.cc:2170
cadabra::NotebookWindow::on_edit_cell_is_latex
void on_edit_cell_is_latex()
Definition: NotebookWindow.cc:1544
cadabra::NotebookWindow::load_css
void load_css(const std::string &)
Definition: NotebookWindow.cc:407
cadabra::NotebookWindow::on_run_runall
void on_run_runall()
Definition: NotebookWindow.cc:1589
cadabra::NotebookWindow::console_win
Gtk::Dialog console_win
Definition: NotebookWindow.hh:140
cadabra::NotebookWindow::on_file_quit
void on_file_quit()
Definition: NotebookWindow.cc:1449
cadabra::NotebookWindow::on_edit_split
void on_edit_split()
Definition: NotebookWindow.cc:1517
cadabra::NotebookWindow::status_string
std::string status_string
Definition: NotebookWindow.hh:163
cadabra::NotebookWindow::settings
Glib::RefPtr< Gio::Settings > settings
Definition: NotebookWindow.hh:253
cadabra::NotebookWindow::last_configure_width
int last_configure_width
Definition: NotebookWindow.hh:256
cadabra::NotebookWindow::handle_outbox_select
bool handle_outbox_select(GdkEventButton *, DTree::iterator it)
Definition: NotebookWindow.cc:2121
cadabra::NotebookWindow::on_help
void on_help() const
Definition: NotebookWindow.cc:1625
cadabra::NotebookWindow::current_cell
DTree::iterator current_cell
Definition: NotebookWindow.hh:110
cadabra::NotebookWindow::dim_output_cells
void dim_output_cells(DTree::iterator it)
Definition: NotebookWindow.cc:1083
cadabra::NotebookWindow::on_text_scaling_factor_changed
void on_text_scaling_factor_changed(const std::string &key)
Definition: NotebookWindow.cc:1761
cadabra::NotebookWindow::engine
TeXEngine engine
Definition: NotebookWindow.hh:59
cadabra::NotebookWindow::current_canvas
int current_canvas
Definition: NotebookWindow.hh:147
cadabra::NotebookWindow::crash_window_hidden
bool crash_window_hidden
Definition: NotebookWindow.hh:228
cadabra::NotebookWindow::save
std::string save(const std::string &fn) const
Definition: NotebookWindow.cc:1386
cadabra::NotebookWindow::on_file_open
void on_file_open()
Definition: NotebookWindow.cc:1202
cadabra::NotebookWindow::on_prefs_highlight_syntax
void on_prefs_highlight_syntax(bool on)
Definition: NotebookWindow.cc:2034
cadabra::NotebookWindow::cdbapp
Cadabra * cdbapp
Definition: NotebookWindow.hh:118
cadabra::DocumentThread::compute
ComputeThread * compute
Definition: DocumentThread.hh:118
cadabra::NotebookWindow
Definition: NotebookWindow.hh:37
cadabra::NotebookWindow::topbox
Gtk::VBox topbox
Definition: NotebookWindow.hh:133
cadabra::NotebookWindow::on_edit_insert_below
void on_edit_insert_below()
Definition: NotebookWindow.cc:1488
cadabra::NotebookWindow::scroll_current_cell_into_view
void scroll_current_cell_into_view()
Definition: NotebookWindow.cc:945
cadabra::NotebookWindow::on_edit_delete
void on_edit_delete()
Definition: NotebookWindow.cc:1499
cadabra::NotebookWindow::set_title_prefix
void set_title_prefix(const std::string &)
Definition: NotebookWindow.cc:498
cadabra::NotebookWindow::NotebookWindow
NotebookWindow(Cadabra *, bool read_only=false)
Definition: NotebookWindow.cc:31
cadabra::NotebookWindow::select_git_path
void select_git_path()
Functionality for the diff viewer.
Definition: NotebookWindow.cc:1783
cadabra::NotebookWindow::on_view_split
void on_view_split()
Definition: NotebookWindow.cc:1555
cadabra::NotebookWindow::on_run_runtocursor
void on_run_runtocursor()
Definition: NotebookWindow.cc:1601
cadabra::NotebookWindow::on_prefs_set_cv
void on_prefs_set_cv(int vis)
Definition: NotebookWindow.cc:437