GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
main-window.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2013-2018 John W. Eaton
4 Copyright (C) 2011-2018 Jacob Dawid
5 
6 This file is part of Octave.
7 
8 Octave is free software: you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12 
13 Octave is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with Octave; see the file COPYING. If not, see
20 <https://www.gnu.org/licenses/>.
21 
22 */
23 
24 #if ! defined (octave_main_window_h)
25 #define octave_main_window_h 1
26 
27 // Qt includes
28 #include <QMainWindow>
29 #include <QThread>
30 #include <QTabWidget>
31 #include <QStatusBar>
32 #include <QToolBar>
33 #include <QQueue>
34 #include <QCloseEvent>
35 #include <QToolButton>
36 #include <QComboBox>
37 #include <QPointer>
38 
39 // Editor includes
40 #include "file-editor-interface.h"
42 
43 // QTerminal includes
44 #include "QTerminal.h"
45 
46 // Own includes
47 #include "dialog.h"
49 #include "files-dock-widget.h"
50 #include "find-files-dialog.h"
51 #include "history-dock-widget.h"
52 #include "octave-cmd.h"
53 #include "octave-dock-widget.h"
54 #include "octave-gui.h"
55 #include "octave-qt-link.h"
56 #include "resource-manager.h"
57 #include "terminal-dock-widget.h"
58 #include "variable-editor.h"
59 #include "workspace-model.h"
60 #include "workspace-view.h"
61 
62 class settings_dialog;
63 
64 class octave_value;
65 
66 namespace octave
67 {
68  class octave_interpreter : public QObject
69  {
70  Q_OBJECT
71 
72  public:
73 
74  octave_interpreter (application *app_context);
75 
76  ~octave_interpreter (void) = default;
77 
78  signals:
79 
80  void octave_ready_signal (void);
81  void octave_finished_signal (int);
82 
83  public slots:
84 
85  //! Initialize and execute the octave interpreter.
86 
87  void execute (void);
88 
89  private:
90 
92  };
93 
94  //! Represents the main window.
95 
96  class main_window : public QMainWindow
97  {
98  Q_OBJECT
99 
100  public:
101 
102  typedef std::pair <std::string, std::string> name_pair;
103  typedef std::pair <int, int> int_pair;
104 
105  main_window (QWidget *parent, gui_application *app_context);
106 
107  ~main_window (void);
108 
109  bool command_window_has_focus (void) const;
110 
111  void focus_command_window (void);
112 
113  signals:
114 
116  void editor_focus_changed (bool);
117 
118  void settings_changed (const QSettings *);
119  void init_terminal_size_signal (void);
120  void new_file_signal (const QString&);
121  void open_file_signal (const QString&);
122  void open_file_signal (const QString& file, const QString& enc, int line);
123 
124  void show_doc_signal (const QString&);
125  void register_doc_signal (const QString&);
126  void unregister_doc_signal (const QString&);
127 
128  void insert_debugger_pointer_signal (const QString& file, int line);
129  void delete_debugger_pointer_signal (const QString& file, int line);
130  void update_breakpoint_marker_signal (bool insert, const QString& file,
131  int line, const QString& cond);
132 
133  void copyClipboard_signal (void);
134  void pasteClipboard_signal (void);
135  void selectAll_signal (void);
136  void undo_signal (void);
137 
138  void add_actions_signal (QList <QAction *> action_list);
139 
140  public slots:
141 
142  void focus_changed (QWidget *w_old, QWidget *w_new);
143  void request_reload_settings (void);
144 
145  void report_status_message (const QString& statusMessage);
146  void handle_save_workspace_request (void);
147  void handle_load_workspace_request (const QString& file = QString ());
148  void handle_clear_workspace_request (void);
150  void handle_clear_history_request (void);
151  void handle_undo_request (void);
152  void handle_rename_variable_request (const QString& old_name,
153  const QString& new_name);
154  void new_file (const QString& commands = QString ());
155  void open_file (const QString& file_name = QString (), int line = -1);
156  void edit_mfile (const QString&, int);
157  void open_online_documentation_page (void);
158  void display_release_notes (void);
159  void load_and_display_community_news (int serial = -1);
160  void display_community_news (const QString& news);
161  void open_bug_tracker_page (void);
162  void open_octave_packages_page (void);
163  void open_contribute_page (void);
164  void open_donate_page (void);
165  void process_settings_dialog_request (const QString& desired_tab
166  = QString ());
167 
168  void copy_image_to_clipboard (const QString& file, bool remove_file);
169 
170  void show_about_octave (void);
171  void notice_settings (const QSettings *settings);
172  void confirm_shutdown_octave (void);
173  void prepare_to_exit (void);
174  void reset_windows (void);
175 
176  void change_directory (const QString& dir);
177  void browse_for_directory (void);
178  void set_current_working_directory (const QString& dir);
179  void change_directory_up (void);
180  void accept_directory_line_edit (void);
181 
182  void execute_command_in_terminal (const QString& dir);
183  void run_file_in_terminal (const QFileInfo& info);
184 
185  void handle_new_figure_request (void);
186 
187  void handle_enter_debugger (void);
188  void handle_exit_debugger (void);
189  void debug_continue (void);
190  void debug_step_into (void);
191  void debug_step_over (void);
192  void debug_step_out (void);
193  void debug_quit (void);
194 
195  void request_open_file (void);
196  void request_new_script (const QString& commands = QString ());
197  void request_new_function (bool triggered = true);
198  void handle_edit_mfile_request (const QString& name, const QString& file,
199  const QString& curr_dir, int line);
200 
201  void handle_insert_debugger_pointer_request (const QString& file, int line);
202  void handle_delete_debugger_pointer_request (const QString& file, int line);
203  void handle_update_breakpoint_marker_request (bool insert,
204  const QString& file, int line,
205  const QString& cond);
206 
207  void read_settings (void);
208  void init_terminal_size (void);
209  void set_window_layout (QSettings *settings);
210  void write_settings (void);
211  void connect_visibility_changed (void);
212 
213  void copyClipboard (void);
214  void pasteClipboard (void);
215  void selectAll (void);
216 
217  void connect_uiwidget_links (void);
218 
219  void handle_create_dialog (const QString& message, const QString& title,
220  const QString& icon, const QStringList& button,
221  const QString& defbutton,
222  const QStringList& role);
223 
224  void handle_create_listview (const QStringList& list, const QString& mode,
225  int width, int height,
226  const QIntList& initial,
227  const QString& name,
228  const QStringList& prompt,
229  const QString& ok_string,
230  const QString& cancel_string);
231 
232  void handle_create_inputlayout (const QStringList&, const QString&,
233  const QFloatList&, const QFloatList&,
234  const QStringList&);
235 
236  void handle_create_filedialog (const QStringList& filters,
237  const QString& title,
238  const QString& filename,
239  const QString& dirname,
240  const QString& multimode);
241 
242  void handle_show_doc (const QString& file);
243  void handle_register_doc (const QString& file);
244  void handle_unregister_doc (const QString& file);
245 
246  void handle_octave_ready ();
247  void handle_octave_finished (int);
248 
249  //! Find files dialog.
250  //!@{
251  void find_files (const QString& startdir = QDir::currentPath ());
252  void find_files_finished (int) { }
253  //!@}
254 
255  //! Setting global shortcuts.
256 
257  void set_global_shortcuts (bool enable);
258 
259  void set_screen_size (int ht, int wd);
260 
261  //! Handling the clipboard.
262  //!@{
263  void clipboard_has_changed (void);
264  void clear_clipboard ();
265  //!@}
266 
267  //! Returns a list of dock widgets.
268 
270  {
271  return dock_widget_list ();
272  }
273 
274  private slots:
275 
276  void disable_menu_shortcuts (bool disable);
277  void restore_create_file_setting (void);
278  void set_file_encoding (const QString& new_encoding);
279  void request_open_files (const QStringList& open_file_names);
280 
281  //! Opens the variable editor for @p name.
282 
283  void edit_variable (const QString &name, const octave_value&);
284 
285  void refresh_variable_editor (void);
286 
287  void handle_variable_editor_update (void);
288 
289  protected:
290 
291  void closeEvent (QCloseEvent *closeEvent);
292 
293  private:
294 
295  void construct (void);
296 
297  void construct_octave_qt_link (void);
298 
299  QAction * add_action (QMenu *menu, const QIcon& icon,
300  const QString& text, const char *member,
301  const QWidget *receiver = nullptr);
302 
303  QMenu * m_add_menu (QMenuBar *p, QString text);
304  void construct_menu_bar (void);
306  void construct_new_menu (QMenu *p);
308  QAction * construct_debug_menu_item (const char *icon, const QString& item,
309  const char *member);
311  QAction * construct_window_menu_item (QMenu *p, const QString& item,
312  bool checkable, QWidget*);
316 
318 
319  void construct_tool_bar (void);
320 
322 
324 
325  void rename_variable_callback (const name_pair& names);
326 
327  void command_window_undo_callback (void);
328 
329  void clear_command_window_callback (void);
330 
331  void resize_command_window_callback (void);
332 
333  void set_screen_size_callback (const int_pair&);
334 
335  void clear_workspace_callback (void);
336 
337  void clear_history_callback (void);
338 
339  void refresh_workspace_callback (void);
340 
341  bool focus_console_after_command (void);
342 
343  void new_figure_callback (void);
344 
346 
347  void configure_shortcuts (void);
348 
350 
352 
354 
356 
358 
359  QHash<QMenu*, QStringList> m_hash_menu_text;
360 
361  //! Toolbar.
362 
363  QStatusBar *m_status_bar;
364 
365  //! Dock widgets.
366  //!@{
374  //!@}
375 
378 
380 
382 
383  QToolBar *m_main_tool_bar;
384 
386 
391  QAction *m_debug_quit;
392 
395  QAction *m_open_action;
400  QAction *m_exit_action;
401 
402  QAction *m_copy_action;
403  QAction *m_paste_action;
405  QAction *m_undo_action;
411 
423  QAction *m_editor_action;
427 
435 
438 
439  //! For Toolbars.
440  //!@{
442  static const int current_directory_max_visible = 16;
443  static const int current_directory_max_count = 16;
445  //!@}
446 
447  //! Settings dialog as guarded pointer (set to 0 when deleted).
448 
449  QPointer<settings_dialog> m_settings_dlg;
450 
451  //! Find files dialog.
452 
454 
455  //! Release notes window.
456 
458 
460 
462 
463  QClipboard *m_clipboard;
464 
465  //! Command queue and semaphore to synchronize execution signals and
466  //! related callbacks.
467 
469 
470  //! Some class global flags.
471  //!@{
475 
476  //! Flag for closing the whole application.
477 
478  bool m_closing;
479  //!@}
480 
482  };
483 
484  class news_reader : public QObject
485  {
486  Q_OBJECT
487 
488  public:
489 
490  news_reader (const QString& base_url, const QString& page,
491  int serial = -1, bool connect_to_web = false)
492  : QObject (), m_base_url (base_url), m_page (page), m_serial (serial),
493  m_connect_to_web (connect_to_web)
494  { }
495 
496  public slots:
497 
498  void process (void);
499 
500  signals:
501 
502  void display_news_signal (const QString& news);
503 
504  void finished (void);
505 
506  private:
507 
508  QString m_base_url;
509  QString m_page;
510  int m_serial;
512  };
513 }
514 
515 #endif
QAction * m_debug_continue
Definition: main-window.h:387
void request_new_function(bool triggered=true)
QAction * m_contribute_action
Definition: main-window.h:432
workspace_model * m_workspace_model
Definition: main-window.h:357
void clear_history_callback(void)
void handle_edit_mfile_request(const QString &name, const QString &file, const QString &curr_dir, int line)
static const int current_directory_max_visible
For Toolbars.
Definition: main-window.h:442
QAction * m_undo_action
Definition: main-window.h:405
void handle_clear_command_window_request(void)
Definition: main-window.cc:388
void unregister_doc_signal(const QString &)
void construct_edit_menu(QMenuBar *p)
void find_files(const QString &startdir=QDir::currentPath())
Find files dialog.
std::pair< std::string, std::string > name_pair
Definition: main-window.h:102
void handle_register_doc(const QString &file)
void open_online_documentation_page(void)
Definition: main-window.cc:434
variable_editor * m_variable_editor_window
Dock widgets.
Definition: main-window.h:373
void set_screen_size_callback(const int_pair &)
terminal_dock_widget * m_command_window
Dock widgets.
Definition: main-window.h:367
For example cd octave end example noindent changes the current working directory to file
Definition: dirfns.cc:124
workspace_view * m_workspace_window
Dock widgets.
Definition: main-window.h:372
void browse_for_directory(void)
Definition: main-window.cc:832
QString m_release_notes_icon
Definition: main-window.h:381
void change_directory(const QString &dir)
Definition: main-window.cc:817
file_editor_interface * m_editor_window
Dock widgets.
Definition: main-window.h:371
void execute_command_in_terminal(const QString &dir)
Definition: main-window.cc:883
find_files_dialog * m_find_files_dlg
Find files dialog.
Definition: main-window.h:453
QAction * m_new_script_action
Definition: main-window.h:393
void handle_create_filedialog(const QStringList &filters, const QString &title, const QString &filename, const QString &dirname, const QString &multimode)
The value of lines which begin with a space character are not saved in the history list A value of all commands are saved on the history list
Definition: oct-hist.cc:734
void load_and_display_community_news(int serial=-1)
Definition: main-window.cc:506
void handle_enter_debugger(void)
Definition: main-window.cc:908
QAction * m_paste_action
Definition: main-window.h:403
QAction * m_debug_quit
Definition: main-window.h:391
void settings_changed(const QSettings *)
QAction * m_exit_action
Definition: main-window.h:400
history_dock_widget * m_history_window
Dock widgets.
Definition: main-window.h:368
QWidget * m_active_editor
Definition: main-window.h:377
QAction * m_editor_action
Definition: main-window.h:423
void pasteClipboard(void)
QHash< QMenu *, QStringList > m_hash_menu_text
Definition: main-window.h:359
QAction * m_workspace_action
Definition: main-window.h:421
QAction * m_save_workspace_action
Definition: main-window.h:398
void handle_unregister_doc(const QString &file)
Dock widget to display files in the current directory.
void construct_file_menu(QMenuBar *p)
Return the CPU time used by your Octave session The first output is the total time spent executing your process and is equal to the sum of second and third which are the number of CPU seconds spent executing in user mode and the number of CPU seconds spent executing in system mode
Definition: data.cc:6348
application * m_app_context
Definition: main-window.h:91
void init_terminal_size_signal(void)
void rename_variable_callback(const name_pair &names)
void pasteClipboard_signal(void)
void construct_window_menu(QMenuBar *p)
OCTAVE_EXPORT octave_value_list page
Definition: sub2ind.cc:107
void add_actions_signal(QList< QAction *> action_list)
QAction * m_new_figure_action
Definition: main-window.h:396
void active_dock_changed(octave_dock_widget *, octave_dock_widget *)
void open_contribute_page(void)
Definition: main-window.cc:595
QAction * m_report_bug_action
Definition: main-window.h:430
QWidget * m_release_notes_window
Release notes window.
Definition: main-window.h:457
~octave_interpreter(void)=default
void open_donate_page(void)
Definition: main-window.cc:600
QAction * add_action(QMenu *menu, const QIcon &icon, const QString &text, const char *member, const QWidget *receiver=nullptr)
void display_community_news(const QString &news)
Definition: main-window.cc:541
QAction * m_file_browser_action
Definition: main-window.h:422
void set_global_shortcuts(bool enable)
Setting global shortcuts.
void command_window_undo_callback(void)
void editor_focus_changed(bool)
QAction * m_new_function_action
Definition: main-window.h:394
QAction * m_ondisk_doc_action
Definition: main-window.h:428
void execute(void)
Initialize and execute the octave interpreter.
Definition: main-window.cc:94
void refresh_workspace_callback(void)
std::string filename
Definition: urlwrite.cc:121
void edit_mfile(const QString &, int)
Definition: main-window.cc:429
void edit_variable(const QString &name, const octave_value &)
Opens the variable editor for name.
std::string dirname(const std::string &path)
Definition: file-ops.cc:353
void request_reload_settings(void)
Definition: main-window.cc:344
void debug_quit(void)
Definition: main-window.cc:964
QToolBar * m_main_tool_bar
Definition: main-window.h:383
void handle_load_workspace_request(const QString &file=QString())
Definition: main-window.cc:369
void change_directory_callback(const std::string &directory)
QAction * m_show_workspace_action
Definition: main-window.h:414
bool m_prevent_readline_conflicts
Some class global flags.
Definition: main-window.h:472
QAction * m_history_action
Definition: main-window.h:420
void copyClipboard_signal(void)
QAction * m_debug_step_into
Definition: main-window.h:388
bool m_closing
Flag for closing the whole application.
Definition: main-window.h:478
bool command_window_has_focus(void) const
Definition: main-window.cc:273
void clear_clipboard()
Handling the clipboard.
void request_new_script(const QString &commands=QString())
void new_file(const QString &commands=QString())
Definition: main-window.cc:416
void debug_step_out(void)
Definition: main-window.cc:958
void save_workspace_callback(const std::string &file)
void construct_menu_bar(void)
void reset_windows(void)
Definition: main-window.cc:808
void show_about_octave(void)
Definition: main-window.cc:644
QAction * m_variable_editor_action
Definition: main-window.h:425
void construct_octave_qt_link(void)
bool focus_console_after_command(void)
QAction * m_debug_step_over
Definition: main-window.h:389
void disable_menu_shortcuts(bool disable)
void handle_clear_history_request(void)
Definition: main-window.cc:393
void clear_workspace_callback(void)
void copyClipboard(void)
void focus_command_window(void)
Definition: main-window.cc:278
void debug_continue(void)
Definition: main-window.cc:938
void message(const char *name, const char *fmt,...)
Definition: error.cc:435
void notice_settings(const QSettings *settings)
Definition: main-window.cc:653
QAction * m_show_variable_editor_action
Definition: main-window.h:418
void connect_visibility_changed(void)
void report_status_message(const QString &statusMessage)
Definition: main-window.cc:352
nd deftypefn *std::string name
Definition: sysdep.cc:647
void debug_step_over(void)
Definition: main-window.cc:951
QAction * m_select_all_action
Definition: main-window.h:410
void construct_debug_menu(QMenuBar *p)
QAction * m_find_files_action
Definition: main-window.h:409
void read_settings(void)
void accept_directory_line_edit(void)
Definition: main-window.cc:869
QAction * m_show_file_browser_action
Definition: main-window.h:415
QAction * m_documentation_action
Definition: main-window.h:424
QAction * construct_debug_menu_item(const char *icon, const QString &item, const char *member)
void confirm_shutdown_octave(void)
Definition: main-window.cc:760
QAction * m_show_command_window_action
Definition: main-window.h:412
QAction * m_release_notes_action
Definition: main-window.h:436
QThread * m_main_thread
Definition: main-window.h:355
static const int current_directory_max_count
For Toolbars.
Definition: main-window.h:443
bool m_start_gui
Some class global flags.
Definition: main-window.h:474
void connect_uiwidget_links(void)
void prepare_to_exit(void)
Definition: main-window.cc:797
void display_news_signal(const QString &news)
void handle_rename_variable_request(const QString &old_name, const QString &new_name)
Definition: main-window.cc:406
QList< octave_dock_widget * > get_dock_widget_list(void)
Returns a list of dock widgets.
Definition: main-window.h:269
void set_file_encoding(const QString &new_encoding)
void process_settings_dialog_request(const QString &desired_tab=QString())
Definition: main-window.cc:605
QComboBox * m_current_directory_combo_box
For Toolbars.
Definition: main-window.h:441
main_window(QWidget *parent, gui_application *app_context)
Definition: main-window.cc:144
void handle_new_figure_request(void)
Definition: main-window.cc:903
void closeEvent(QCloseEvent *closeEvent)
QAction * m_show_history_action
Definition: main-window.h:413
bool m_suppress_dbg_location
Some class global flags.
Definition: main-window.h:473
void write_settings(void)
void focus_changed(QWidget *w_old, QWidget *w_new)
Definition: main-window.cc:284
QClipboard * m_clipboard
Definition: main-window.h:463
octave_dock_widget * m_active_dock
Definition: main-window.h:379
void debug_step_into(void)
Definition: main-window.cc:945
QAction * m_preferences_action
Definition: main-window.h:399
QAction * m_copy_action
Definition: main-window.h:402
void delete_debugger_pointer_signal(const QString &file, int line)
void new_figure_callback(void)
void selectAll_signal(void)
void update_breakpoint_marker_signal(bool insert, const QString &file, int line, const QString &cond)
void handle_save_workspace_request(void)
Definition: main-window.cc:357
void handle_insert_debugger_pointer_request(const QString &file, int line)
void set_window_layout(QSettings *settings)
Represents the main window.
Definition: main-window.h:96
void request_open_file(void)
Definition: main-window.cc:977
QAction * construct_window_menu_item(QMenu *p, const QString &item, bool checkable, QWidget *)
octave_interpreter(application *app_context)
Definition: main-window.cc:90
void register_doc_signal(const QString &)
QAction * m_load_workspace_action
Definition: main-window.h:397
void undo_signal(void)
void handle_clear_workspace_request(void)
Definition: main-window.cc:383
void open_file(const QString &file_name=QString(), int line=-1)
Definition: main-window.cc:421
Queuing octave commands from the GUI for the worker thread.
Definition: octave-cmd.h:90
void handle_create_dialog(const QString &message, const QString &title, const QString &icon, const QStringList &button, const QString &defbutton, const QStringList &role)
QAction * m_current_news_action
Definition: main-window.h:437
void configure_shortcuts(void)
void handle_variable_editor_update(void)
void construct_new_menu(QMenu *p)
void clear_command_window_callback(void)
void handle_update_breakpoint_marker_request(bool insert, const QString &file, int line, const QString &cond)
p
Definition: lu.cc:138
documentation_dock_widget * m_doc_browser_window
Dock widgets.
Definition: main-window.h:370
QLineEdit * m_current_directory_line_edit
For Toolbars.
Definition: main-window.h:444
void set_current_working_directory(const QString &dir)
Definition: main-window.cc:847
QAction * m_open_action
Definition: main-window.h:395
void show_doc_signal(const QString &)
QAction * m_clear_workspace_action
Definition: main-window.h:408
void handle_create_inputlayout(const QStringList &, const QString &, const QFloatList &, const QFloatList &, const QStringList &)
void open_file_signal(const QString &)
octave_qt_link * m_octave_qt_link
Definition: main-window.h:461
void display_release_notes(void)
Definition: main-window.cc:440
void run_file_in_terminal(const QFileInfo &info)
Definition: main-window.cc:893
void handle_undo_request(void)
Definition: main-window.cc:398
std::pair< int, int > int_pair
Definition: main-window.h:103
news_reader(const QString &base_url, const QString &page, int serial=-1, bool connect_to_web=false)
Definition: main-window.h:490
void load_workspace_callback(const std::string &file)
QStatusBar * m_status_bar
Toolbar.
Definition: main-window.h:363
void restore_create_file_setting(void)
void construct_documentation_menu(QMenu *p)
void construct_tool_bar(void)
QAction * m_clear_clipboard_action
Definition: main-window.h:404
void refresh_variable_editor(void)
void handle_create_listview(const QStringList &list, const QString &mode, int width, int height, const QIntList &initial, const QString &name, const QStringList &prompt, const QString &ok_string, const QString &cancel_string)
QList< int > QIntList
Definition: dialog.h:38
QAction * m_reset_windows_action
Definition: main-window.h:426
QMenu * m_add_menu(QMenuBar *p, QString text)
void insert_debugger_pointer_signal(const QString &file, int line)
void clipboard_has_changed(void)
Handling the clipboard.
QList< octave_dock_widget * > dock_widget_list(void)
gui_application * m_app_context
Definition: main-window.h:351
void open_octave_packages_page(void)
Definition: main-window.cc:590
void request_open_files(const QStringList &open_file_names)
QAction * m_clear_command_history_action
Definition: main-window.h:407
void handle_show_doc(const QString &file)
QAction * m_about_octave_action
Definition: main-window.h:434
octave_interpreter * m_interpreter
Definition: main-window.h:353
QPointer< settings_dialog > m_settings_dlg
Settings dialog as guarded pointer (set to 0 when deleted).
Definition: main-window.h:449
void copy_image_to_clipboard(const QString &file, bool remove_file)
Definition: main-window.cc:625
QAction * m_show_editor_action
Definition: main-window.h:416
void set_screen_size(int ht, int wd)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
Definition: utils.cc:888
void handle_delete_debugger_pointer_request(const QString &file, int line)
void init_terminal_size(void)
void construct_help_menu(QMenuBar *p)
QAction * m_online_doc_action
Definition: main-window.h:429
void construct_news_menu(QMenuBar *p)
void handle_octave_finished(int)
void resize_command_window_callback(void)
QAction * m_debug_step_out
Definition: main-window.h:390
QAction * m_clear_command_window_action
Definition: main-window.h:406
QAction * m_octave_packages_action
Definition: main-window.h:431
void find_files_finished(int)
Find files dialog.
Definition: main-window.h:252
QAction * m_show_documentation_action
Definition: main-window.h:417
void handle_exit_debugger(void)
Definition: main-window.cc:923
QAction * m_developer_action
Definition: main-window.h:433
void change_directory_up(void)
Definition: main-window.cc:860
void open_bug_tracker_page(void)
Definition: main-window.cc:585
to define functions rather than attempting to enter them directly on the command line The block of commands is executed as soon as you exit the editor To avoid executing any commands
Definition: oct-hist.cc:587
octave_command_queue m_cmd_queue
Command queue and semaphore to synchronize execution signals and related callbacks.
Definition: main-window.h:468
files_dock_widget * m_file_browser_window
Dock widgets.
Definition: main-window.h:369
QAction * m_command_window_action
Definition: main-window.h:419
OCTAVE_EXPORT octave_value_list directory
Definition: variables.cc:593
external_editor_interface * m_external_editor
Definition: main-window.h:376
void new_file_signal(const QString &)
QWidget * m_community_news_window
Definition: main-window.h:459