GNU Octave  4.4.1
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-2018 Jacob Dawid
4 
5 This file is part of Octave.
6 
7 Octave is free software: you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <https://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if ! defined (octave_file_editor_h)
24 #define octave_file_editor_h 1
25 
26 #include <QToolBar>
27 #include <QAction>
28 #include <QMenuBar>
29 #include <QStatusBar>
30 #include <QCloseEvent>
31 #include <QTabWidget>
32 #include <QStackedWidget>
33 
34 #include <QDragEnterEvent>
35 #include <QDropEvent>
36 
37 #include <map>
38 
39 #include "file-editor-interface.h"
40 #include "file-editor-tab.h"
41 #include "tab-bar.h"
42 
43 namespace octave
44 {
45  // subclassed QTabWidget for using custom tabbar
46 
48  {
49  Q_OBJECT
50 
51  public:
52 
54 
55  ~file_editor_tab_widget (void) = default;
56 
57  tab_bar * get_tab_bar (void) const;
58  };
59 
60  // the class for the file editor
61 
63  {
64  Q_OBJECT
65 
66  public:
67 
68  struct tab_info
69  {
71  QString encoding;
72  };
73 
74  typedef std::map<QString, tab_info>::iterator editor_tab_map_iterator;
75  typedef std::map<QString, tab_info>::const_iterator editor_tab_map_const_iterator;
76 
77  // struct that allows to sort with respect to the tab index
78  struct session_data
79  {
80  int index;
81  QString file_name;
82  QString encoding;
83 
84  bool operator < (const session_data& other) const
85  {
86  return index < other.index;
87  }
88  };
89 
91 
92  ~file_editor (void);
93 
94  QMenu * get_mru_menu (void) { return m_mru_file_menu; }
95 
96  QMenu * debug_menu (void) { return m_debug_menu; }
97 
98  QToolBar * toolbar (void) { return m_tool_bar; }
99 
101 
103  {
112  };
113 
114  void handle_enter_debug_mode (void);
115  void handle_exit_debug_mode (void);
116 
117  void check_actions (void);
118  void empty_script (bool startup, bool visible);
119  void restore_session (QSettings *settings);
120 
121  signals:
122 
123  void fetab_settings_changed (const QSettings *settings);
124  void fetab_change_request (const QWidget *ID);
125  void fetab_file_name_query (const QWidget *ID);
126  // Save is a ping-pong type of communication
127  void fetab_save_file (const QWidget *ID, const QString& fileName,
128  bool remove_on_success);
129  // No fetab_open, functionality in editor
130  // No fetab_new, functionality in editor
131  void fetab_context_help (const QWidget *ID, bool);
132  void fetab_context_edit (const QWidget *ID);
133  void fetab_check_modified_file (void);
134  void fetab_save_file (const QWidget *ID);
135  void fetab_save_file_as (const QWidget *ID);
136  void fetab_print_file (const QWidget *ID);
137  void fetab_run_file (const QWidget *ID);
138  void fetab_context_run (const QWidget *ID);
139  void fetab_toggle_bookmark (const QWidget *ID);
140  void fetab_next_bookmark (const QWidget *ID);
141  void fetab_previous_bookmark (const QWidget *ID);
142  void fetab_remove_bookmark (const QWidget *ID);
143  void fetab_toggle_breakpoint (const QWidget *ID);
144  void fetab_next_breakpoint (const QWidget *ID);
145  void fetab_previous_breakpoint (const QWidget *ID);
146  void fetab_remove_all_breakpoints (const QWidget *ID);
147  void fetab_comment_selected_text (const QWidget *ID, bool);
148  void fetab_uncomment_selected_text (const QWidget *ID);
149  void fetab_indent_selected_text (const QWidget *ID);
150  void fetab_unindent_selected_text (const QWidget *ID);
152  void fetab_convert_eol (const QWidget *ID, QsciScintilla::EolMode eol_mode);
153  void fetab_find (const QWidget *ID, QList<QAction *>);
154  void fetab_find_next (const QWidget *ID);
155  void fetab_find_previous (const QWidget *ID);
156  void fetab_goto_line (const QWidget *ID, int line = -1);
157  void fetab_move_match_brace (const QWidget *ID, bool select);
158  void fetab_completion (const QWidget*);
159  void fetab_insert_debugger_pointer (const QWidget *ID, int line = -1);
160  void fetab_delete_debugger_pointer (const QWidget *ID, int line = -1);
161  void fetab_do_breakpoint_marker (bool insert, const QWidget *ID,
162  int line = -1, const QString& = "");
163  void fetab_set_focus (const QWidget *ID);
164  void fetab_scintilla_command (const QWidget *ID, unsigned int sci_msg);
165 
166  void fetab_zoom_in (const QWidget *ID);
167  void fetab_zoom_out (const QWidget *ID);
168  void fetab_zoom_normal (const QWidget *ID);
169 
170  void fetab_set_directory (const QString& dir);
171  void fetab_recover_from_exit (void);
172 
173  void request_settings_dialog (const QString&);
174  void execute_command_in_terminal_signal (const QString&);
175  void request_open_file_external (const QString& file_name, int line);
176  void file_loaded_signal (void);
177 
178  public slots:
179 
180  void focus (void);
181  void set_focus (QWidget *fet);
182  void enable_menu_shortcuts (bool);
183  bool check_closing (void);
184 
185  void request_new_file (const QString& commands);
186  void request_close_file (bool);
187  void request_close_all_files (bool);
188  void request_close_other_files (bool);
189  void request_mru_open_file (QAction *action);
190  void request_print_file (bool);
191 
192  void request_redo (bool);
193  void request_cut (bool);
194  void request_context_help (bool);
195  void request_context_doc (bool);
196  void request_context_edit (bool);
197  void request_save_file (bool);
198  void request_save_file_as (bool);
199  void request_run_file (bool);
200  void request_context_run (bool);
201  void request_toggle_bookmark (bool);
202  void request_next_bookmark (bool);
203  void request_previous_bookmark (bool);
204  void request_remove_bookmark (bool);
205 
206  void request_move_match_brace (bool);
207  void request_sel_match_brace (bool);
208  void request_toggle_breakpoint (bool);
209  void request_next_breakpoint (bool);
210  void request_previous_breakpoint (bool);
211  void request_remove_breakpoint (bool);
212 
213  void request_delete_start_word (bool);
214  void request_delete_end_word (bool);
215  void request_delete_start_line (bool);
216  void request_delete_end_line (bool);
217  void request_delete_line (bool);
218  void request_copy_line (bool);
219  void request_cut_line (bool);
220  void request_duplicate_selection (bool);
221  void request_transpose_line (bool);
222 
223  void request_comment_selected_text (bool);
226 
227  void request_upper_case (bool);
228  void request_lower_case (bool);
229  void request_indent_selected_text (bool);
230  void request_unindent_selected_text (bool);
232  void request_conv_eol_windows (bool);
233  void request_conv_eol_unix (bool);
234  void request_conv_eol_mac (bool);
235 
236  void request_find (bool);
237  void request_find_next (bool);
238  void request_find_previous (bool);
239 
240  void request_goto_line (bool);
241  void request_completion (bool);
242 
243  void handle_file_name_changed (const QString& fileName,
244  const QString& toolTip);
245  void handle_tab_close_request (int index);
246  void handle_tab_remove_request (void);
247  void handle_add_filename_to_list (const QString& fileName,
248  const QString& encoding, QWidget *ID);
249  void active_tab_changed (int index);
250  void handle_editor_state_changed (bool enableCopy, bool is_octave_file);
251  void handle_mru_add_file (const QString& file_name, const QString& encoding);
252  void check_conflict_save (const QString& fileName, bool remove_on_success);
253 
254  void handle_insert_debugger_pointer_request (const QString& file, int line);
255  void handle_delete_debugger_pointer_request (const QString& file, int line);
256  void handle_update_breakpoint_marker_request (bool insert,
257  const QString& file, int line,
258  const QString& cond);
259 
260  void handle_edit_file_request (const QString& file);
261 
262  void handle_file_remove (const QString&, const QString&);
263  void handle_file_renamed (bool load_new = true);
264 
265  // Tells the editor to react on changed settings.
266  void notice_settings (const QSettings *settings);
267 
268  void set_shortcuts (void);
269 
270  void handle_visibility (bool visible);
271 
272  void update_octave_directory (const QString& dir);
273 
274  protected slots:
275 
276  void copyClipboard (void);
277  void pasteClipboard (void);
278  void selectAll (void);
279  void do_undo (void);
280 
281  private slots:
282 
283  void request_open_file (const QString& fileName,
284  const QString& encoding = QString (),
285  int line = -1, bool debug_pointer = false,
286  bool breakpoint_marker = false, bool insert = true,
287  const QString& cond = "");
288  void request_preferences (bool);
289  void request_styles_preferences (bool);
290 
291  void show_line_numbers (bool);
292  void show_white_space (bool);
293  void show_eol_chars (bool);
294  void show_indent_guides (bool);
295  void show_long_line (bool);
296  void show_toolbar (bool);
297  void show_statusbar (bool);
298  void show_hscrollbar (bool);
299  void zoom_in (bool);
300  void zoom_out (bool);
301  void zoom_normal (bool);
302 
303  void create_context_menu (QMenu *);
304  void edit_status_update (bool, bool);
305 
306  protected:
307 
308  void closeEvent (QCloseEvent *event);
309  void dragEnterEvent (QDragEnterEvent *event);
310  void dropEvent (QDropEvent *event);
311 
312  private:
313 
314  bool is_editor_console_tabbed (void);
315  void construct (void);
316  void add_file_editor_tab (file_editor_tab *f, const QString& fn);
317  void mru_menu_update (void);
318  bool call_custom_editor (const QString& file_name = QString (), int line = -1);
319 
320  void toggle_preference (const QString& preference, bool def);
321 
322  void handle_dir_remove (const QString& old_name, const QString& new_name);
323 
324  bool editor_tab_has_focus (void);
325 
326  QWidget * find_tab_widget (const QString& openFileName);
327  QAction * add_action (QMenu *menu, const QString& text,
328  const char *member, QWidget *receiver = nullptr);
329  QAction * add_action (QMenu *menu, const QIcon& icon, const QString& text,
330  const char *member, QWidget *receiver = nullptr);
331 
332  QMenu * add_menu (QMenuBar *p, QString text);
333 
334  std::map<QString, tab_info> m_editor_tab_map;
335  QHash<QMenu*, QStringList> m_hash_menu_text;
336 
337  QString m_ced;
338 
340  QToolBar *m_tool_bar;
342 
343  QAction *m_new_action;
345  QAction *m_open_action;
346 
358 
359  QAction *m_copy_action;
360  QAction *m_cut_action;
361  QAction *m_paste_action;
365 
377 
387 
388  QAction *m_find_action;
394 
401 
402  QAction *m_print_action;
403  QAction *m_run_action;
405 
408  QAction *m_save_action;
410  QAction *m_close_action;
413 
414  QAction *m_redo_action;
415  QAction *m_undo_action;
416 
419 
424 
429 
436 
438 
440 
442 
443  bool m_closed;
445 
446  enum { MaxMRUFiles = 10 };
449  QStringList m_mru_files;
451 
452  // List of temporarily closed files for later reloading.
453  // Order: first closed old file
454  // first new location of closed file
455  // encoding to use for reload
456  QStringList m_tmp_closed_files;
457  };
458 }
459 
460 #endif
bool check_closing(void)
Definition: file-editor.cc:341
void fetab_zoom_normal(const QWidget *ID)
QAction * m_cut_line_action
Definition: file-editor.h:384
QAction * m_switch_right_tab_action
Definition: file-editor.h:421
void update_octave_directory(const QString &dir)
QAction * m_styles_preferences_action
Definition: file-editor.h:418
QAction * m_run_selection_action
Definition: file-editor.h:404
void fetab_context_edit(const QWidget *ID)
QAction * m_mru_file_actions[MaxMRUFiles]
Definition: file-editor.h:448
bool is_editor_console_tabbed(void)
QAction * m_new_function_action
Definition: file-editor.h:344
void request_context_edit(bool)
Definition: file-editor.cc:504
void handle_insert_debugger_pointer_request(const QString &file, int line)
Definition: file-editor.cc:877
For example cd octave end example noindent changes the current working directory to file
Definition: dirfns.cc:124
file_editor_tab_widget * m_tab_widget
Definition: file-editor.h:439
void zoom_normal(bool)
void notice_settings(const QSettings *settings)
Definition: file-editor.cc:977
QAction * m_uncomment_selection_action
Definition: file-editor.h:351
QAction * m_show_longline_action
Definition: file-editor.h:370
void fetab_smart_indent_line_or_selected_text(const QWidget *ID)
void request_delete_start_word(bool)
Definition: file-editor.cc:581
QAction * m_edit_function_action
Definition: file-editor.h:406
void request_delete_end_line(bool)
Definition: file-editor.cc:599
void edit_status_update(bool, bool)
void copyClipboard(void)
QMenu * add_menu(QMenuBar *p, QString text)
void request_goto_line(bool)
Definition: file-editor.cc:711
void request_toggle_bookmark(bool)
Definition: file-editor.cc:529
bool operator<(const session_data &other) const
Definition: file-editor.h:84
void fetab_zoom_out(const QWidget *ID)
QAction * m_lower_case_action
Definition: file-editor.h:348
void request_remove_breakpoint(bool)
Definition: file-editor.cc:575
void fetab_indent_selected_text(const QWidget *ID)
void request_sel_match_brace(bool)
Definition: file-editor.cc:554
void fetab_set_focus(const QWidget *ID)
void fetab_unindent_selected_text(const QWidget *ID)
void show_eol_chars(bool)
QAction * m_zoom_normal_action
Definition: file-editor.h:376
void request_mru_open_file(QAction *action)
Definition: file-editor.cc:468
void fetab_toggle_bookmark(const QWidget *ID)
QToolBar * m_tool_bar
Definition: file-editor.h:340
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE * f
QAction * m_smart_indent_line_or_selection_action
Definition: file-editor.h:354
QAction * m_conv_eol_mac_action
Definition: file-editor.h:357
void fetab_check_modified_file(void)
QAction * m_conv_eol_windows_action
Definition: file-editor.h:355
void request_remove_bookmark(bool)
Definition: file-editor.cc:544
void request_redo(bool)
Definition: file-editor.cc:482
void request_context_run(bool)
Definition: file-editor.cc:524
void create_context_menu(QMenu *)
void request_upper_case(bool)
Definition: file-editor.cc:651
void closeEvent(QCloseEvent *event)
void check_actions(void)
Definition: file-editor.cc:160
file_editor(QWidget *p)
Definition: file-editor.cc:80
QStringList m_tmp_closed_files
Definition: file-editor.h:456
void fetab_remove_bookmark(const QWidget *ID)
QAction * m_comment_var_selection_action
Definition: file-editor.h:350
void request_indent_selected_text(bool)
Definition: file-editor.cc:663
QMenu * debug_menu(void)
Definition: file-editor.h:96
void show_toolbar(bool)
QAction * m_show_whitespace_action
Definition: file-editor.h:367
void execute_command_in_terminal_signal(const QString &)
QStringList m_mru_files
Definition: file-editor.h:449
void request_duplicate_selection(bool)
Definition: file-editor.cc:623
QAction * m_delete_start_line_action
Definition: file-editor.h:380
void request_lower_case(bool)
Definition: file-editor.cc:657
void fetab_file_name_query(const QWidget *ID)
QAction * m_print_action
Definition: file-editor.h:402
void dragEnterEvent(QDragEnterEvent *event)
QAction * m_indent_selection_action
Definition: file-editor.h:352
void handle_file_remove(const QString &, const QString &)
Definition: file-editor.cc:918
QAction * m_selectall_action
Definition: file-editor.h:362
void fetab_insert_debugger_pointer(const QWidget *ID, int line=-1)
QAction * m_find_action
Definition: file-editor.h:388
QHash< QMenu *, QStringList > m_hash_menu_text
Definition: file-editor.h:335
QAction * m_unindent_selection_action
Definition: file-editor.h:353
QAction * m_move_to_matching_brace
Definition: file-editor.h:395
void request_save_file(bool)
Definition: file-editor.cc:509
void fetab_toggle_breakpoint(const QWidget *ID)
QAction * m_comment_selection_action
Definition: file-editor.h:349
void fetab_find(const QWidget *ID, QList< QAction *>)
void request_conv_eol_mac(bool)
Definition: file-editor.cc:690
void request_close_all_files(bool)
Definition: file-editor.cc:438
void show_long_line(bool)
std::map< QString, tab_info >::const_iterator editor_tab_map_const_iterator
Definition: file-editor.h:75
void fetab_print_file(const QWidget *ID)
bool call_custom_editor(const QString &file_name=QString(), int line=-1)
QAction * m_move_tab_right_action
Definition: file-editor.h:423
void fetab_zoom_in(const QWidget *ID)
void request_previous_bookmark(bool)
Definition: file-editor.cc:539
void request_copy_line(bool)
Definition: file-editor.cc:611
QAction * m_show_linenum_action
Definition: file-editor.h:366
void request_smart_indent_line_or_selected_text(void)
Definition: file-editor.cc:673
void handle_mru_add_file(const QString &file_name, const QString &encoding)
Definition: file-editor.cc:801
void fetab_remove_all_breakpoints(const QWidget *ID)
QMenuBar * m_menu_bar
Definition: file-editor.h:339
void request_comment_var_selected_text(bool)
Definition: file-editor.cc:645
QAction * m_open_action
Definition: file-editor.h:345
QAction * m_find_next_action
Definition: file-editor.h:389
QAction * m_delete_end_line_action
Definition: file-editor.h:381
QAction * m_show_indguide_action
Definition: file-editor.h:369
QAction * m_previous_breakpoint_action
Definition: file-editor.h:427
void request_delete_end_word(bool)
Definition: file-editor.cc:587
void handle_delete_debugger_pointer_request(const QString &file, int line)
Definition: file-editor.cc:883
QAction * m_copy_line_action
Definition: file-editor.h:383
void fetab_previous_breakpoint(const QWidget *ID)
QAction * m_remove_all_breakpoints_action
Definition: file-editor.h:428
QAction * m_switch_left_tab_action
Definition: file-editor.h:420
void handle_add_filename_to_list(const QString &fileName, const QString &encoding, QWidget *ID)
Definition: file-editor.cc:769
QAction * m_zoom_in_action
Definition: file-editor.h:374
QAction * add_action(QMenu *menu, const QString &text, const char *member, QWidget *receiver=nullptr)
void show_indent_guides(bool)
void fetab_recover_from_exit(void)
QAction * m_next_breakpoint_action
Definition: file-editor.h:426
void request_settings_dialog(const QString &)
void fetab_set_directory(const QString &dir)
QAction * m_delete_line_action
Definition: file-editor.h:382
QAction * m_show_hscrollbar_action
Definition: file-editor.h:373
QList< QAction * > m_fetab_actions
Definition: file-editor.h:437
void fetab_previous_bookmark(const QWidget *ID)
void active_tab_changed(int index)
Definition: file-editor.cc:778
QAction * m_zoom_out_action
Definition: file-editor.h:375
void request_completion(bool)
Definition: file-editor.cc:716
QAction * m_move_tab_left_action
Definition: file-editor.h:422
void set_shortcuts(void)
void dropEvent(QDropEvent *event)
void request_move_match_brace(bool)
Definition: file-editor.cc:549
void fetab_move_match_brace(const QWidget *ID, bool select)
tab_bar * get_tab_bar(void) const
Definition: file-editor.cc:72
~file_editor_tab_widget(void)=default
void handle_visibility(bool visible)
void request_unindent_selected_text(bool)
Definition: file-editor.cc:668
QAction * m_redo_action
Definition: file-editor.h:414
void request_cut(bool)
Definition: file-editor.cc:488
void request_find(bool)
Definition: file-editor.cc:696
void request_next_breakpoint(bool)
Definition: file-editor.cc:565
void fetab_find_previous(const QWidget *ID)
void handle_file_name_changed(const QString &fileName, const QString &toolTip)
Definition: file-editor.cc:721
void show_white_space(bool)
void fetab_completion(const QWidget *)
void handle_enter_debug_mode(void)
Definition: file-editor.cc:148
void request_uncomment_selected_text(bool)
Definition: file-editor.cc:640
QAction * m_new_action
Definition: file-editor.h:343
void request_context_help(bool)
Definition: file-editor.cc:494
void fetab_run_file(const QWidget *ID)
void handle_tab_remove_request(void)
Definition: file-editor.cc:746
QAction * m_find_previous_action
Definition: file-editor.h:390
QAction * m_delete_end_word_action
Definition: file-editor.h:379
QAction * m_delete_start_word_action
Definition: file-editor.h:378
void request_close_file(bool)
Definition: file-editor.cc:431
void enable_menu_shortcuts(bool)
Definition: file-editor.cc:322
void request_find_previous(bool)
Definition: file-editor.cc:706
void show_statusbar(bool)
QAction * m_show_statusbar_action
Definition: file-editor.h:372
void fetab_settings_changed(const QSettings *settings)
void show_hscrollbar(bool)
QAction * m_remove_bookmark_action
Definition: file-editor.h:400
QAction * m_sel_to_matching_brace
Definition: file-editor.h:396
QAction * m_run_action
Definition: file-editor.h:403
QAction * m_close_others_action
Definition: file-editor.h:412
void request_styles_preferences(bool)
void restore_session(QSettings *settings)
Definition: file-editor.cc:251
QStringList m_mru_files_encodings
Definition: file-editor.h:450
QAction * m_show_toolbar_action
Definition: file-editor.h:371
void request_delete_start_line(bool)
Definition: file-editor.cc:593
QAction * m_preferences_action
Definition: file-editor.h:417
void request_next_bookmark(bool)
Definition: file-editor.cc:534
void set_focus(QWidget *fet)
Definition: file-editor.cc:311
void request_preferences(bool)
void file_loaded_signal(void)
void fetab_context_help(const QWidget *ID, bool)
void fetab_do_breakpoint_marker(bool insert, const QWidget *ID, int line=-1, const QString &="")
QAction * m_show_eol_action
Definition: file-editor.h:368
QAction * m_duplicate_selection_action
Definition: file-editor.h:385
void request_new_file(const QString &commands)
Definition: file-editor.cc:411
void handle_editor_state_changed(bool enableCopy, bool is_octave_file)
Definition: file-editor.cc:784
void toggle_preference(const QString &preference, bool def)
void fetab_next_breakpoint(const QWidget *ID)
void fetab_scintilla_command(const QWidget *ID, unsigned int sci_msg)
void request_run_file(bool)
Definition: file-editor.cc:519
void handle_dir_remove(const QString &old_name, const QString &new_name)
QAction * m_conv_eol_unix_action
Definition: file-editor.h:356
QAction * m_transpose_line_action
Definition: file-editor.h:386
void request_open_file_external(const QString &file_name, int line)
void handle_exit_debug_mode(void)
Definition: file-editor.cc:154
QAction * m_completion_action
Definition: file-editor.h:393
std::map< QString, tab_info > m_editor_tab_map
Definition: file-editor.h:334
void fetab_context_run(const QWidget *ID)
void request_close_other_files(bool)
Definition: file-editor.cc:450
void request_transpose_line(bool)
Definition: file-editor.cc:629
p
Definition: lu.cc:138
QAction * m_save_as_action
Definition: file-editor.h:409
QAction * m_context_help_action
Definition: file-editor.h:363
void request_comment_selected_text(bool)
Definition: file-editor.cc:635
void show_line_numbers(bool)
void fetab_save_file(const QWidget *ID, const QString &fileName, bool remove_on_success)
QAction * m_copy_action
Definition: file-editor.h:359
QMenu * get_mru_menu(void)
Definition: file-editor.h:94
void request_delete_line(bool)
Definition: file-editor.cc:605
void check_conflict_save(const QString &fileName, bool remove_on_success)
Definition: file-editor.cc:817
void handle_file_renamed(bool load_new=true)
Definition: file-editor.cc:965
void fetab_comment_selected_text(const QWidget *ID, bool)
QAction * m_paste_action
Definition: file-editor.h:361
void add_file_editor_tab(file_editor_tab *f, const QString &fn)
QToolBar * toolbar(void)
Definition: file-editor.h:98
void fetab_convert_eol(const QWidget *ID, QsciScintilla::EolMode eol_mode)
void request_toggle_breakpoint(bool)
Definition: file-editor.cc:560
void fetab_save_file_as(const QWidget *ID)
void fetab_delete_debugger_pointer(const QWidget *ID, int line=-1)
void handle_update_breakpoint_marker_request(bool insert, const QString &file, int line, const QString &cond)
Definition: file-editor.cc:903
QAction * m_next_bookmark_action
Definition: file-editor.h:397
void request_find_next(bool)
Definition: file-editor.cc:701
QAction * m_cut_action
Definition: file-editor.h:360
QAction * m_close_action
Definition: file-editor.h:410
QAction * m_toggle_bookmark_action
Definition: file-editor.h:399
void request_previous_breakpoint(bool)
Definition: file-editor.cc:570
void fetab_next_bookmark(const QWidget *ID)
void handle_edit_file_request(const QString &file)
Definition: file-editor.cc:911
QAction * m_save_action
Definition: file-editor.h:408
void request_context_doc(bool)
Definition: file-editor.cc:499
void request_cut_line(bool)
Definition: file-editor.cc:617
bool editor_tab_has_focus(void)
void handle_tab_close_request(int index)
Definition: file-editor.cc:738
void request_conv_eol_windows(bool)
Definition: file-editor.cc:678
QAction * m_context_doc_action
Definition: file-editor.h:364
std::map< QString, tab_info >::iterator editor_tab_map_iterator
Definition: file-editor.h:74
void fetab_change_request(const QWidget *ID)
QAction * m_undo_action
Definition: file-editor.h:415
void mru_menu_update(void)
QAction * m_upper_case_action
Definition: file-editor.h:347
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="")
QAction * m_find_files_action
Definition: file-editor.h:391
QAction * m_goto_line_action
Definition: file-editor.h:392
QAction * m_previous_bookmark_action
Definition: file-editor.h:398
void pasteClipboard(void)
void request_save_file_as(bool)
Definition: file-editor.cc:514
void empty_script(bool startup, bool visible)
Definition: file-editor.cc:201
QWidget * find_tab_widget(const QString &openFileName)
QMenu * m_view_editor_menu
Definition: file-editor.h:435
QAction * m_popdown_mru_action
Definition: file-editor.h:407
void fetab_find_next(const QWidget *ID)
void request_print_file(bool)
Definition: file-editor.cc:477
QAction * m_close_all_action
Definition: file-editor.h:411
void fetab_goto_line(const QWidget *ID, int line=-1)
void fetab_uncomment_selected_text(const QWidget *ID)
void insert_global_actions(QList< QAction *>)
Definition: file-editor.cc:113
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
QAction * m_toggle_breakpoint_action
Definition: file-editor.h:425
void request_conv_eol_unix(bool)
Definition: file-editor.cc:684