GNU Octave  4.0.0
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-2015 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 #ifndef FILEEDITORINTERFACE_H
24 #define FILEEDITORINTERFACE_H
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_new_open_actions (QAction*,QAction*,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) = 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, int line = -1,
75  bool debug_pointer = false,
76  bool breakpoint_marker = false,
77  bool insert = true) = 0;
78 //signals:
79 
80 //protected:
81 
82 //protected slots:
83 
84 };
85 
86 #endif // FILEEDITORINTERFACE_H
virtual void handle_edit_file_request(const QString &file)=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
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 void handle_update_breakpoint_marker_request(bool insert, const QString &file, int line)=0
virtual QMenu * debug_menu()=0
virtual QMenu * get_mru_menu()=0
virtual void insert_new_open_actions(QAction *, QAction *, QAction *)=0
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