GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
file-editor-interface.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2011-2017 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 the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 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 <http://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 "octave-dock-widget.h"
29 
31 {
32  Q_OBJECT
33 
34 public:
36  : octave_dock_widget (p)
37  {
38  setObjectName ("FileEditor");
39  }
40 
41  virtual ~file_editor_interface () { }
42 
43  virtual QMenu *get_mru_menu () = 0;
44  virtual QMenu *debug_menu () = 0;
45  virtual QToolBar *toolbar () = 0;
46 
47  virtual void insert_global_actions (QList<QAction*>) = 0;
48  virtual void handle_enter_debug_mode (void) = 0;
49  virtual void handle_exit_debug_mode (void) = 0;
50 
51  virtual void
52  handle_insert_debugger_pointer_request (const QString& file, int line) = 0;
53 
54  virtual void
55  handle_delete_debugger_pointer_request (const QString& file, int line) = 0;
56 
57  virtual void
58  handle_update_breakpoint_marker_request (bool insert, const QString& file,
59  int line, const QString& cond) = 0;
60 
61  virtual void handle_edit_file_request (const QString& file) = 0;
62 
63  virtual bool check_closing (void) = 0;
64 
65  virtual void empty_script (bool, bool) = 0;
66 
67  virtual void enable_menu_shortcuts (bool enable) = 0;
68 
69 public slots:
70  virtual void request_new_file (const QString& command = QString ()) = 0;
71  virtual void request_new_script (const QString& command = QString ()) = 0;
72  virtual void request_new_function (bool) = 0;
73  virtual void request_open_file () = 0;
74  virtual void request_open_file (const QString& openFileName,
75  const QString& encoding = QString (),
76  int line = -1,
77  bool debug_pointer = false,
78  bool breakpoint_marker = false,
79  bool insert = true,
80  const QString& cond = "") = 0;
81 //signals:
82 
83 //protected:
84 
85 //protected slots:
86 
87 };
88 
89 #endif
virtual void handle_edit_file_request(const QString &file)=0
For example cd octave end example noindent changes the current working directory to file
Definition: dirfns.cc:120
virtual void insert_global_actions(QList< QAction * >)=0
virtual void handle_delete_debugger_pointer_request(const QString &file, int line)=0
virtual void empty_script(bool, bool)=0
virtual bool check_closing(void)=0
virtual void request_new_file(const QString &command=QString())=0
virtual void request_open_file()=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 void handle_update_breakpoint_marker_request(bool insert, const QString &file, int line, const QString &cond)=0
virtual void request_new_script(const QString &command=QString())=0
virtual void enable_menu_shortcuts(bool enable)=0
virtual void handle_insert_debugger_pointer_request(const QString &file, int line)=0
virtual QMenu * debug_menu()=0
virtual QMenu * get_mru_menu()=0
p
Definition: lu.cc:138
virtual void handle_enter_debug_mode(void)=0
virtual void handle_exit_debug_mode(void)=0
virtual void request_new_function(bool)=0
virtual QToolBar * toolbar()=0