GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
file-editor-interface.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_interface_h)
24 #define octave_file_editor_interface_h 1
25 
26 #include <QMenu>
27 #include <QToolBar>
28 #include <QSettings>
29 #include "octave-dock-widget.h"
30 
31 namespace octave
32 {
34  {
35  Q_OBJECT
36 
37  public:
38 
41  {
42  setObjectName ("FileEditor");
43  }
44 
45  virtual ~file_editor_interface (void) = default;
46 
47  virtual QMenu * get_mru_menu (void) = 0;
48  virtual QMenu * debug_menu (void) = 0;
49  virtual QToolBar * toolbar (void) = 0;
50 
51  virtual void insert_global_actions (QList<QAction*>) = 0;
52  virtual void handle_enter_debug_mode (void) = 0;
53  virtual void handle_exit_debug_mode (void) = 0;
54 
55  virtual void
56  handle_insert_debugger_pointer_request (const QString& file, int line) = 0;
57 
58  virtual void
59  handle_delete_debugger_pointer_request (const QString& file, int line) = 0;
60 
61  virtual void
62  handle_update_breakpoint_marker_request (bool insert, const QString& file,
63  int line, const QString& cond) = 0;
64 
65  virtual void handle_edit_file_request (const QString& file) = 0;
66 
67  virtual bool check_closing (void) = 0;
68 
69  virtual void empty_script (bool, bool) = 0;
70 
71  virtual void restore_session (QSettings *) = 0;
72 
73  virtual void enable_menu_shortcuts (bool enable) = 0;
74 
75  public slots:
76 
77  virtual void request_new_file (const QString& command = QString ()) = 0;
78 
79  virtual void request_open_file (const QString& openFileName,
80  const QString& encoding = QString (),
81  int line = -1,
82  bool debug_pointer = false,
83  bool breakpoint_marker = false,
84  bool insert = true,
85  const QString& cond = "") = 0;
86  };
87 }
88 
89 #endif
For example cd octave end example noindent changes the current working directory to file
Definition: dirfns.cc:124
virtual void handle_delete_debugger_pointer_request(const QString &file, int line)=0
virtual ~file_editor_interface(void)=default
virtual void request_new_file(const QString &command=QString())=0
virtual void enable_menu_shortcuts(bool enable)=0
virtual void empty_script(bool, bool)=0
virtual void insert_global_actions(QList< QAction *>)=0
virtual void restore_session(QSettings *)=0
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 simply delete all the lines from the buffer before leaving the editor When invoked with no edit the previously executed command
Definition: oct-hist.cc:587
virtual QToolBar * toolbar(void)=0
virtual void handle_insert_debugger_pointer_request(const QString &file, int line)=0
virtual void handle_exit_debug_mode(void)=0
virtual void handle_enter_debug_mode(void)=0
virtual QMenu * get_mru_menu(void)=0
virtual bool check_closing(void)=0
p
Definition: lu.cc:138
virtual void request_open_file(const QString &openFileName, const QString &encoding=QString(), int line=-1, bool debug_pointer=false, bool breakpoint_marker=false, bool insert=true, const QString &cond="")=0
virtual QMenu * debug_menu(void)=0
virtual void handle_edit_file_request(const QString &file)=0
virtual void handle_update_breakpoint_marker_request(bool insert, const QString &file, int line, const QString &cond)=0