GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
file-editor.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (C) 2011-2023 The Octave Project Developers
4 //
5 // See the file COPYRIGHT.md in the top-level directory of this
6 // distribution or <https://octave.org/copyright/>.
7 //
8 // This file is part of Octave.
9 //
10 // Octave is free software: you can redistribute it and/or modify it
11 // under the terms of the GNU General Public License as published by
12 // the Free Software Foundation, either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // Octave is distributed in the hope that it will be useful, but
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with Octave; see the file COPYING. If not, see
22 // <https://www.gnu.org/licenses/>.
23 //
24 ////////////////////////////////////////////////////////////////////////
25 
26 #if ! defined (octave_file_editor_h)
27 #define octave_file_editor_h 1
28 
29 #include <list>
30 #include <map>
31 
32 #include <QAction>
33 #include <QCloseEvent>
34 #include <QDragEnterEvent>
35 #include <QDropEvent>
36 #include <QMenuBar>
37 #include <QStackedWidget>
38 #include <QStatusBar>
39 #include <QTabWidget>
40 #include <QToolBar>
41 
42 #include "file-editor-interface.h"
43 #include "file-editor-tab.h"
44 #include "find-dialog.h"
45 #include "tab-bar.h"
46 
48 
49 class base_qobject;
50 class file_editor;
51 
52 // subclassed QTabWidget for using custom tabbar
53 
55 {
56  Q_OBJECT
57 
58 public:
59 
61 
62  ~file_editor_tab_widget (void) = default;
63 
64  tab_bar * get_tab_bar (void) const;
65 
66  std::list<file_editor_tab *> tab_list (void) const;
67 };
68 
69 // the class for the file editor
70 
72 {
73  Q_OBJECT
74 
75 public:
76 
77  // struct that allows to sort with respect to the tab index
78  struct session_data
79  {
80  int index;
81  int line;
82  QString file_name;
83  QString new_file_name;
84  QString encoding;
85  QString bookmarks;
86 
87  bool operator < (const session_data& other) const
88  {
89  return index < other.index;
90  }
91  };
92 
94  {
96  QString new_file_name;
97  };
98 
99  file_editor (QWidget *p, base_qobject& oct_qobj);
100 
101  ~file_editor (void) = default;
102 
103  QMenu * get_mru_menu (void) { return m_mru_file_menu; }
104 
105  QMenu * debug_menu (void) { return m_debug_menu; }
106 
107  QToolBar * toolbar (void) { return m_tool_bar; }
108 
109  QMenuBar * menubar (void) { return m_menu_bar; }
110 
112 
114  {
123  };
124 
125  void check_actions (void);
126  void empty_script (bool startup, bool visible);
128 
129 signals:
130 
132  void fetab_change_request (const QWidget *ID);
133  // Save is a ping-pong type of communication
134  void fetab_save_file (const QWidget *ID, const QString& fileName,
135  bool remove_on_success);
136  // No fetab_open, functionality in editor
137  // No fetab_new, functionality in editor
138  void fetab_context_help (const QWidget *ID, bool);
139  void fetab_context_edit (const QWidget *ID);
140  void fetab_save_file (const QWidget *ID);
141  void fetab_save_file_as (const QWidget *ID);
142  void fetab_print_file (const QWidget *ID);
143  void fetab_run_file (const QWidget *ID, bool step_into = false);
144  void fetab_context_run (const QWidget *ID);
145  void fetab_toggle_bookmark (const QWidget *ID);
146  void fetab_next_bookmark (const QWidget *ID);
148  void fetab_remove_bookmark (const QWidget *ID);
150  void fetab_next_breakpoint (const QWidget *ID);
153  void fetab_comment_selected_text (const QWidget *ID, bool);
158  void fetab_convert_eol (const QWidget *ID, QsciScintilla::EolMode eol_mode);
159  void fetab_goto_line (const QWidget *ID, int line = -1);
160  void fetab_move_match_brace (const QWidget *ID, bool select);
161  void fetab_completion (const QWidget *);
162  void fetab_insert_debugger_pointer (const QWidget *ID, int line = -1);
163  void fetab_delete_debugger_pointer (const QWidget *ID, int line = -1);
164  void fetab_do_breakpoint_marker (bool insert, const QWidget *ID,
165  int line = -1, const QString& = "");
166  void fetab_set_focus (const QWidget *ID);
167  void fetab_scintilla_command (const QWidget *ID, unsigned int sci_msg);
168 
169  void fetab_zoom_in (const QWidget *ID);
170  void fetab_zoom_out (const QWidget *ID);
171  void fetab_zoom_normal (const QWidget *ID);
172 
173  void fetab_set_directory (const QString& dir);
175 
177 
178  void request_settings_dialog (const QString&);
179  void request_open_file_external (const QString& file_name, int line);
180  void file_loaded_signal (void);
181 
182  void editor_tabs_changed_signal (bool, bool);
184 
187 
189  void execute_command_in_terminal_signal (const QString&);
191  void run_file_signal (const QFileInfo&);
192  void edit_mfile_request (const QString&, const QString&, const QString&, int);
193  void debug_quit_signal (void);
194 
195 public slots:
196 
197  void activate (void);
198  void set_focus (QWidget *fet);
199  void enable_menu_shortcuts (bool);
200  void save_session (void);
201  bool check_closing (void);
202  void handle_tab_ready_to_close (void);
203 
204  void handle_enter_debug_mode (void);
205  void handle_exit_debug_mode (void);
206 
207  void request_new_file (const QString& commands);
208  void request_close_file (bool);
209  void request_close_all_files (bool);
210  void request_close_other_files (bool);
211  void copy_full_file_path (bool);
212  void request_mru_open_file (QAction *action);
213  void request_print_file (bool);
214 
215  void request_redo (bool);
216  void request_cut (bool);
217  void request_context_help (bool);
218  void request_context_doc (bool);
219  void request_context_edit (bool);
220  void request_save_file (bool);
221  void request_save_file_as (bool);
222  void request_run_file (bool);
223  void request_step_into_file ();
224  void request_context_run (bool);
225  void request_toggle_bookmark (bool);
226  void request_next_bookmark (bool);
227  void request_previous_bookmark (bool);
228  void request_remove_bookmark (bool);
229 
230  void request_move_match_brace (bool);
231  void request_sel_match_brace (bool);
232  void request_toggle_breakpoint (bool);
233  void request_next_breakpoint (bool);
234  void request_previous_breakpoint (bool);
235  void request_remove_breakpoint (bool);
236 
237  void request_delete_start_word (bool);
238  void request_delete_end_word (bool);
239  void request_delete_start_line (bool);
240  void request_delete_end_line (bool);
241  void request_delete_line (bool);
242  void request_copy_line (bool);
243  void request_cut_line (bool);
244  void request_duplicate_selection (bool);
245  void request_transpose_line (bool);
246 
247  void request_comment_selected_text (bool);
250 
251  void request_upper_case (bool);
252  void request_lower_case (bool);
253  void request_indent_selected_text (bool);
254  void request_unindent_selected_text (bool);
256  void request_conv_eol_windows (bool);
257  void request_conv_eol_unix (bool);
258  void request_conv_eol_mac (bool);
259 
260  void request_find (bool);
261  void request_find_next (bool);
262  void request_find_previous (bool);
263 
264  void request_goto_line (bool);
265  void request_completion (bool);
266 
267  void handle_file_name_changed (const QString& fileName,
268  const QString& toolTip,
269  bool modified);
270  void handle_tab_close_request (int index);
271  void handle_tab_remove_request (void);
272  void active_tab_changed (int index);
273  void handle_editor_state_changed (bool enableCopy, bool is_octave_file,
274  bool is_modified);
275  void handle_mru_add_file (const QString& file_name, const QString& encoding);
276  void check_conflict_save (const QString& fileName, bool remove_on_success);
277 
278  void handle_insert_debugger_pointer_request (const QString& file, int line);
279  void handle_delete_debugger_pointer_request (const QString& file, int line);
280  void handle_update_breakpoint_marker_request (bool insert,
281  const QString& file, int line,
282  const QString& cond);
283 
284  void handle_edit_file_request (const QString& file);
285 
286  void handle_file_remove (const QString&, const QString&);
287  void handle_file_renamed (bool load_new = true);
288 
289  // Tells the editor to react on changed settings.
290  void notice_settings (const gui_settings *settings);
291 
292  void set_shortcuts (void);
293 
294  void handle_visibility (bool visible);
295 
296  void update_octave_directory (const QString& dir);
297 
298  void toplevel_change (bool toplevel);
299 
300  void handle_autoc_cancelled (void);
301 
302  file_editor_tab * reset_focus (void);
303 
304 protected slots:
305 
306  void copyClipboard (void);
307  void pasteClipboard (void);
308  void selectAll (void);
309  void do_undo (void);
310 
311 private slots:
312 
313  void request_open_file (const QString& fileName,
314  const QString& encoding = QString (),
315  int line = -1, bool debug_pointer = false,
316  bool breakpoint_marker = false, bool insert = true,
317  const QString& cond = "", int index = -1,
318  const QString& bookmarks = QString ());
319  void request_preferences (bool);
320  void request_styles_preferences (bool);
321 
322  void show_line_numbers (bool);
323  void show_white_space (bool);
324  void show_eol_chars (bool);
325  void show_indent_guides (bool);
326  void show_long_line (bool);
327  void show_toolbar (bool);
328  void show_statusbar (bool);
329  void show_hscrollbar (bool);
330  void zoom_in (bool);
331  void zoom_out (bool);
332  void zoom_normal (bool);
333 
334  void create_context_menu (QMenu *);
335  void edit_status_update (bool, bool);
336 
337 protected:
338 
339  void closeEvent (QCloseEvent *event);
340  void dragEnterEvent (QDragEnterEvent *event);
341  void dropEvent (QDropEvent *event);
342  void focusInEvent (QFocusEvent *e);
343 
344 private:
345 
346  file_editor_tab * make_file_editor_tab (const QString& directory = "");
347 
348  bool is_editor_console_tabbed (void);
349  void construct (void);
350  void add_file_editor_tab (file_editor_tab *f, const QString& fn,
351  int index = -1);
352  void mru_menu_update (void);
353  bool call_custom_editor (const QString& file_name = QString (), int line = -1);
354 
355  void toggle_preference (const gui_pref& preference);
356 
357  void handle_dir_remove (const QString& old_name, const QString& new_name);
358 
359  bool editor_tab_has_focus (void);
360 
361  void find_create (void);
362 
363  file_editor_tab * find_tab_widget (const QString& openFileName);
364  QAction * add_action (QMenu *menu, const QString& text,
365  const char *member, QWidget *receiver = nullptr);
366  QAction * add_action (QMenu *menu, const QIcon& icon, const QString& text,
367  const char *member, QWidget *receiver = nullptr);
368 
369  QMenu * add_menu (QMenuBar *p, QString text);
370 
372  QHash<QMenu *, QStringList> m_hash_menu_text;
373 
374  QString m_ced;
375 
377  QToolBar *m_tool_bar;
379 
380  QAction *m_new_action;
382  QAction *m_open_action;
383 
395 
396  QAction *m_copy_action;
397  QAction *m_cut_action;
398  QAction *m_paste_action;
402 
414 
424 
425  QAction *m_find_action;
431 
438 
439  QAction *m_print_action;
440  QAction *m_run_action;
442 
445  QAction *m_save_action;
447  QAction *m_close_action;
450 
451  QAction *m_redo_action;
452  QAction *m_undo_action;
453 
456 
462 
467 
472 
479 
481 
483 
485  bool m_closed;
488 
489  enum { MaxMRUFiles = 10 };
492  QStringList m_mru_files;
494 
495  QPointer<find_dialog> m_find_dialog;
496 
497  // List of data on temporarily closed files for later reloading.
499 };
500 
502 
503 #endif
OCTAVE_END_NAMESPACE(octave)
Base class for Octave interfaces that use Qt.
file_editor_tab_widget(QWidget *p, file_editor *fe)
Definition: file-editor.cc:70
std::list< file_editor_tab * > tab_list(void) const
Definition: file-editor.cc:91
~file_editor_tab_widget(void)=default
tab_bar * get_tab_bar(void) const
Definition: file-editor.cc:85
QAction * m_find_next_action
Definition: file-editor.h:426
void request_new_file(const QString &commands)
Definition: file-editor.cc:568
void toplevel_change(bool toplevel)
void handle_insert_debugger_pointer_request(const QString &file, int line)
QMenu * m_edit_fmt_menu
Definition: file-editor.h:475
void handle_exit_debug_mode(void)
Definition: file-editor.cc:196
void request_remove_breakpoint(bool)
Definition: file-editor.cc:773
void fetab_smart_indent_line_or_selected_text(const QWidget *ID)
void request_preferences(bool)
QAction * m_cut_action
Definition: file-editor.h:397
void fetab_zoom_out(const QWidget *ID)
QAction * m_zoom_out_action
Definition: file-editor.h:412
void request_copy_line(bool)
Definition: file-editor.cc:809
QToolBar * m_tool_bar
Definition: file-editor.h:377
void fetab_toggle_breakpoint(const QWidget *ID)
void zoom_out(bool)
QAction * m_close_others_action
Definition: file-editor.h:449
QAction * m_zoom_normal_action
Definition: file-editor.h:413
bool m_copy_action_enabled
Definition: file-editor.h:468
void request_open_file_external(const QString &file_name, int line)
QAction * m_conv_eol_mac_action
Definition: file-editor.h:394
void do_undo(void)
QString m_ced
Definition: file-editor.h:374
QAction * m_context_help_action
Definition: file-editor.h:400
void fetab_remove_bookmark(const QWidget *ID)
void request_conv_eol_windows(bool)
Definition: file-editor.cc:876
QAction * m_show_statusbar_action
Definition: file-editor.h:409
QAction * m_redo_action
Definition: file-editor.h:451
void fetab_recover_from_exit(void)
QAction * m_unindent_selection_action
Definition: file-editor.h:390
void request_comment_selected_text(bool)
Definition: file-editor.cc:833
bool m_closing_canceled
Definition: file-editor.h:484
QAction * m_conv_eol_unix_action
Definition: file-editor.h:393
QAction * m_transpose_line_action
Definition: file-editor.h:423
void handle_tab_close_request(int index)
void fetab_context_edit(const QWidget *ID)
void request_smart_indent_line_or_selected_text(void)
Definition: file-editor.cc:871
QAction * m_comment_selection_action
Definition: file-editor.h:386
void request_close_other_files(bool)
Definition: file-editor.cc:604
void request_delete_end_word(bool)
Definition: file-editor.cc:785
QMenu * m_edit_cmd_menu
Definition: file-editor.h:474
void enable_menu_shortcuts(bool)
Definition: file-editor.cc:401
QAction * m_previous_breakpoint_action
Definition: file-editor.h:465
void request_find_next(bool)
Definition: file-editor.cc:961
bool call_custom_editor(const QString &file_name=QString(), int line=-1)
void request_delete_line(bool)
Definition: file-editor.cc:803
void handle_tab_remove_request(void)
QAction * m_popdown_mru_action
Definition: file-editor.h:444
void empty_script(bool startup, bool visible)
Definition: file-editor.cc:256
QAction * m_find_previous_action
Definition: file-editor.h:427
void request_close_file(bool)
Definition: file-editor.cc:585
QAction * m_close_all_action
Definition: file-editor.h:448
QAction * m_preferences_action
Definition: file-editor.h:454
void show_line_numbers(bool)
bool check_closing(void)
Definition: file-editor.cc:483
void fetab_next_bookmark(const QWidget *ID)
void construct(void)
QAction * m_close_action
Definition: file-editor.h:447
QMenu * m_view_editor_menu
Definition: file-editor.h:478
void fetab_comment_selected_text(const QWidget *ID, bool)
void request_context_help(bool)
Definition: file-editor.cc:657
void zoom_in(bool)
void request_toggle_breakpoint(bool)
Definition: file-editor.cc:758
void request_open_file(const QString &fileName, const QString &encoding=QString(), int line=-1, bool debug_pointer=false, bool breakpoint_marker=false, bool insert=true, const QString &cond="", int index=-1, const QString &bookmarks=QString())
void show_toolbar(bool)
void save_session(void)
Definition: file-editor.cc:440
QAction * m_move_tab_right_action
Definition: file-editor.h:460
void request_move_match_brace(bool)
Definition: file-editor.cc:747
file_editor(QWidget *p, base_qobject &oct_qobj)
Definition: file-editor.cc:101
QMenu * add_menu(QMenuBar *p, QString text)
void fetab_zoom_normal(const QWidget *ID)
void fetab_context_help(const QWidget *ID, bool)
void check_conflict_save(const QString &fileName, bool remove_on_success)
bool editor_tab_has_focus(void)
QAction * m_find_files_action
Definition: file-editor.h:428
void show_long_line(bool)
void selectAll(void)
QAction * m_show_whitespace_action
Definition: file-editor.h:404
QAction * m_new_function_action
Definition: file-editor.h:381
QMenu * m_mru_file_menu
Definition: file-editor.h:490
void handle_file_name_changed(const QString &fileName, const QString &toolTip, bool modified)
Definition: file-editor.cc:983
void request_delete_start_line(bool)
Definition: file-editor.cc:791
void request_upper_case(bool)
Definition: file-editor.cc:849
void handle_mru_add_file(const QString &file_name, const QString &encoding)
void fetab_save_file(const QWidget *ID)
QMenu * m_fileMenu
Definition: file-editor.h:477
QAction * m_completion_action
Definition: file-editor.h:430
QAction * add_action(QMenu *menu, const QString &text, const char *member, QWidget *receiver=nullptr)
void request_context_run(bool)
Definition: file-editor.cc:722
void fetab_zoom_in(const QWidget *ID)
QAction * m_conv_eol_windows_action
Definition: file-editor.h:392
bool m_is_octave_file
Definition: file-editor.h:470
void request_conv_eol_mac(bool)
Definition: file-editor.cc:888
void insert_global_actions(QList< QAction * >)
Definition: file-editor.cc:146
void show_white_space(bool)
QAction * m_goto_line_action
Definition: file-editor.h:429
QAction * m_toggle_bookmark_action
Definition: file-editor.h:436
QAction * m_show_eol_action
Definition: file-editor.h:405
void request_close_all_files(bool)
Definition: file-editor.cc:592
void add_file_editor_tab(file_editor_tab *f, const QString &fn, int index=-1)
void edit_status_update(bool, bool)
void closeEvent(QCloseEvent *event)
QHash< QMenu *, QStringList > m_hash_menu_text
Definition: file-editor.h:372
QMenu * debug_menu(void)
Definition: file-editor.h:105
void fetab_previous_breakpoint(const QWidget *ID)
QAction * m_styles_preferences_action
Definition: file-editor.h:455
void handle_edit_file_request(const QString &file)
void request_redo(bool)
Definition: file-editor.cc:645
void fetab_goto_line(const QWidget *ID, int line=-1)
QMenu * m_debug_menu
Definition: file-editor.h:378
QAction * m_show_hscrollbar_action
Definition: file-editor.h:410
void handle_autoc_cancelled(void)
void copyClipboard(void)
QToolBar * toolbar(void)
Definition: file-editor.h:107
void handle_editor_state_changed(bool enableCopy, bool is_octave_file, bool is_modified)
QAction * m_delete_line_action
Definition: file-editor.h:419
void handle_file_remove(const QString &, const QString &)
bool is_editor_console_tabbed(void)
void check_actions(void)
Definition: file-editor.cc:205
QMenuBar * menubar(void)
Definition: file-editor.h:109
void pasteClipboard(void)
void request_save_file(bool)
Definition: file-editor.cc:672
QAction * m_delete_start_line_action
Definition: file-editor.h:417
QAction * m_find_action
Definition: file-editor.h:425
QAction * m_delete_end_word_action
Definition: file-editor.h:416
void request_next_breakpoint(bool)
Definition: file-editor.cc:763
void request_find_previous(bool)
Definition: file-editor.cc:967
void show_eol_chars(bool)
int m_number_of_tabs
Definition: file-editor.h:371
void focus_console_after_command_signal(void)
void find_create(void)
Definition: file-editor.cc:911
void request_next_bookmark(bool)
Definition: file-editor.cc:732
QAction * m_print_action
Definition: file-editor.h:439
void handle_tab_ready_to_close(void)
Definition: file-editor.cc:533
void handle_visibility(bool visible)
void request_context_edit(bool)
Definition: file-editor.cc:667
void fetab_set_directory(const QString &dir)
QAction * m_zoom_in_action
Definition: file-editor.h:411
void update_octave_directory(const QString &dir)
QAction * m_save_as_action
Definition: file-editor.h:446
void handle_delete_debugger_pointer_request(const QString &file, int line)
QAction * m_edit_function_action
Definition: file-editor.h:443
void dragEnterEvent(QDragEnterEvent *event)
QAction * m_toggle_breakpoint_action
Definition: file-editor.h:463
void fetab_save_file(const QWidget *ID, const QString &fileName, bool remove_on_success)
void edit_area_changed(octave_qscintilla *edit_area)
void request_conv_eol_unix(bool)
Definition: file-editor.cc:882
void zoom_normal(bool)
void activate(void)
Definition: file-editor.cc:379
void fetab_previous_bookmark(const QWidget *ID)
void fetab_next_breakpoint(const QWidget *ID)
QAction * m_run_action
Definition: file-editor.h:440
void fetab_run_file(const QWidget *ID, bool step_into=false)
QStringList m_mru_files_encodings
Definition: file-editor.h:493
void request_step_into_file()
Definition: file-editor.cc:717
void request_dbcont_signal(void)
QAction * m_remove_bookmark_action
Definition: file-editor.h:437
QAction * m_new_action
Definition: file-editor.h:380
file_editor_tab * make_file_editor_tab(const QString &directory="")
QAction * m_context_doc_action
Definition: file-editor.h:401
void fetab_do_breakpoint_marker(bool insert, const QWidget *ID, int line=-1, const QString &="")
QAction * m_show_toolbar_action
Definition: file-editor.h:408
void toggle_preference(const gui_pref &preference)
QAction * m_next_breakpoint_action
Definition: file-editor.h:464
void request_run_file(bool)
Definition: file-editor.cc:682
void fetab_convert_eol(const QWidget *ID, QsciScintilla::EolMode eol_mode)
file_editor_tab_widget * m_tab_widget
Definition: file-editor.h:480
QAction * m_undo_action
Definition: file-editor.h:452
QAction * m_copy_action
Definition: file-editor.h:396
void notice_settings(const gui_settings *settings)
QMenu * m_edit_nav_menu
Definition: file-editor.h:476
void request_toggle_bookmark(bool)
Definition: file-editor.cc:727
QStringList m_mru_files
Definition: file-editor.h:492
void mru_menu_update(void)
QAction * m_cut_line_action
Definition: file-editor.h:421
void request_previous_bookmark(bool)
Definition: file-editor.cc:737
void update_gui_lexer_signal(bool)
void run_file_signal(const QFileInfo &)
void request_cut(bool)
Definition: file-editor.cc:651
QAction * m_open_action
Definition: file-editor.h:382
void fetab_save_file_as(const QWidget *ID)
QAction * m_save_action
Definition: file-editor.h:445
void request_save_file_as(bool)
Definition: file-editor.cc:677
void show_hscrollbar(bool)
QAction * m_run_selection_action
Definition: file-editor.h:441
QAction * m_switch_left_tab_action
Definition: file-editor.h:457
void request_print_file(bool)
Definition: file-editor.cc:640
void request_indent_selected_text(bool)
Definition: file-editor.cc:861
QAction * m_move_tab_left_action
Definition: file-editor.h:459
void request_completion(bool)
Definition: file-editor.cc:978
void request_goto_line(bool)
Definition: file-editor.cc:973
void request_duplicate_selection(bool)
Definition: file-editor.cc:821
bool m_editor_ready
Definition: file-editor.h:487
bool m_current_tab_modified
Definition: file-editor.h:471
void fetab_uncomment_selected_text(const QWidget *ID)
QAction * m_switch_right_tab_action
Definition: file-editor.h:458
void fetab_change_request(const QWidget *ID)
void request_unindent_selected_text(bool)
Definition: file-editor.cc:866
void handle_file_renamed(bool load_new=true)
QAction * m_next_bookmark_action
Definition: file-editor.h:434
void request_delete_start_word(bool)
Definition: file-editor.cc:779
void exit_debug_mode_signal(void)
void request_uncomment_selected_text(bool)
Definition: file-editor.cc:838
QAction * m_comment_var_selection_action
Definition: file-editor.h:387
QAction * m_duplicate_selection_action
Definition: file-editor.h:422
void execute_command_in_terminal_signal(const QString &)
void request_transpose_line(bool)
Definition: file-editor.cc:827
QAction * m_sel_to_matching_brace
Definition: file-editor.h:433
QAction * m_indent_selection_action
Definition: file-editor.h:389
QAction * m_smart_indent_line_or_selection_action
Definition: file-editor.h:391
void fetab_print_file(const QWidget *ID)
void request_delete_end_line(bool)
Definition: file-editor.cc:797
QAction * m_show_indguide_action
Definition: file-editor.h:406
void request_context_doc(bool)
Definition: file-editor.cc:662
QList< removed_file_data > m_tmp_closed_files
Definition: file-editor.h:498
file_editor_tab * reset_focus(void)
QAction * m_show_longline_action
Definition: file-editor.h:407
void show_indent_guides(bool)
void fetab_settings_changed(const gui_settings *settings)
file_editor_tab * find_tab_widget(const QString &openFileName)
void fetab_scintilla_command(const QWidget *ID, unsigned int sci_msg)
QAction * m_sort_tabs_action
Definition: file-editor.h:461
@ NEW_FUNCTION_ACTION
Definition: file-editor.h:116
void request_lower_case(bool)
Definition: file-editor.cc:855
void request_find(bool)
Definition: file-editor.cc:895
void edit_mfile_request(const QString &, const QString &, const QString &, int)
int m_marker_breakpoint
Definition: file-editor.h:482
QAction * m_upper_case_action
Definition: file-editor.h:384
QAction * m_move_to_matching_brace
Definition: file-editor.h:432
void fetab_remove_all_breakpoints(const QWidget *ID)
QAction * m_remove_all_breakpoints_action
Definition: file-editor.h:466
void set_focus(QWidget *fet)
Definition: file-editor.cc:390
void handle_update_breakpoint_marker_request(bool insert, const QString &file, int line, const QString &cond)
void request_cut_line(bool)
Definition: file-editor.cc:815
QAction * m_previous_bookmark_action
Definition: file-editor.h:435
void request_comment_var_selected_text(bool)
Definition: file-editor.cc:843
void fetab_toggle_bookmark(const QWidget *ID)
void request_settings_dialog(const QString &)
QPointer< find_dialog > m_find_dialog
Definition: file-editor.h:495
QAction * m_show_linenum_action
Definition: file-editor.h:403
void fetab_unindent_selected_text(const QWidget *ID)
void copy_full_file_path(bool)
Definition: file-editor.cc:621
QAction * m_selectall_action
Definition: file-editor.h:399
void request_previous_breakpoint(bool)
Definition: file-editor.cc:768
void debug_quit_signal(void)
bool m_undo_action_enabled
Definition: file-editor.h:469
QAction * m_uncomment_selection_action
Definition: file-editor.h:388
void fetab_indent_selected_text(const QWidget *ID)
QAction * m_paste_action
Definition: file-editor.h:398
QAction * m_lower_case_action
Definition: file-editor.h:385
void handle_enter_debug_mode(void)
Definition: file-editor.cc:181
void fetab_context_run(const QWidget *ID)
void focusInEvent(QFocusEvent *e)
Definition: file-editor.cc:132
void request_styles_preferences(bool)
void fetab_set_focus(const QWidget *ID)
void set_shortcuts(void)
void request_remove_bookmark(bool)
Definition: file-editor.cc:742
void create_context_menu(QMenu *)
void dropEvent(QDropEvent *event)
QMenu * m_edit_menu
Definition: file-editor.h:473
void fetab_completion(const QWidget *)
void file_loaded_signal(void)
void editor_tabs_changed_signal(bool, bool)
QAction * m_delete_end_line_action
Definition: file-editor.h:418
void fetab_move_match_brace(const QWidget *ID, bool select)
QMenuBar * m_menu_bar
Definition: file-editor.h:376
void request_mru_open_file(QAction *action)
Definition: file-editor.cc:631
QAction * m_copy_line_action
Definition: file-editor.h:420
void enter_debug_mode_signal(void)
QAction * m_mru_file_actions[MaxMRUFiles]
Definition: file-editor.h:491
void active_tab_changed(int index)
void handle_dir_remove(const QString &old_name, const QString &new_name)
QMenu * get_mru_menu(void)
Definition: file-editor.h:103
QAction * m_delete_start_word_action
Definition: file-editor.h:415
void fetab_insert_debugger_pointer(const QWidget *ID, int line=-1)
void show_statusbar(bool)
void restore_session(gui_settings *settings)
Definition: file-editor.cc:320
void request_sel_match_brace(bool)
Definition: file-editor.cc:752
void fetab_delete_debugger_pointer(const QWidget *ID, int line=-1)
~file_editor(void)=default
bool m_no_focus
Definition: file-editor.h:486
bool event(QEvent *event)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
F77_RET_T const F77_DBLE const F77_DBLE * f
static double fe[256]
Definition: randmtzig.cc:466
file_editor_tab * editor_tab
Definition: file-editor.h:95
bool operator<(const session_data &other) const
Definition: file-editor.h:87