Mercurial > hg > octave-nkf
comparison gui/src/m-editor/file-editor-interface.h @ 14795:e3ae0850b105 gui
Fixed integrating debug menu in the editor window.
* file-editor-interface.h: Removed methods for enabling/disabling debug mode.
* file-editor-tab.cc: Renamed variable to meet coding style standards.
* file-editor: Added get for the editors debug menu.
* main-window: Added the same actions in the main windows as well the editors debug menu.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Thu, 21 Jun 2012 21:29:01 +0200 |
parents | f43916137064 |
children | 41b86dc61306 |
comparison
equal
deleted
inserted
replaced
14788:85daba52b2d4 | 14795:e3ae0850b105 |
---|---|
17 | 17 |
18 #ifndef FILEEDITORINTERFACE_H | 18 #ifndef FILEEDITORINTERFACE_H |
19 #define FILEEDITORINTERFACE_H | 19 #define FILEEDITORINTERFACE_H |
20 | 20 |
21 #include <QDockWidget> | 21 #include <QDockWidget> |
22 #include <QMenu> | |
22 | 23 |
23 class QTerminal; | 24 class QTerminal; |
24 class main_window; | 25 class main_window; |
25 | 26 |
26 class file_editor_interface : public QDockWidget | 27 class file_editor_interface : public QDockWidget |
37 | 38 |
38 connect (this, SIGNAL (visibilityChanged (bool)), this, SLOT (handle_visibility_changed (bool))); | 39 connect (this, SIGNAL (visibilityChanged (bool)), this, SLOT (handle_visibility_changed (bool))); |
39 } | 40 } |
40 | 41 |
41 virtual ~file_editor_interface () { } | 42 virtual ~file_editor_interface () { } |
43 | |
44 virtual QMenu *debug_menu () = 0; | |
45 | |
42 public slots: | 46 public slots: |
43 virtual void request_new_file () = 0; | 47 virtual void request_new_file () = 0; |
44 virtual void request_open_file () = 0; | 48 virtual void request_open_file () = 0; |
45 virtual void request_open_file (QString fileName) = 0; | 49 virtual void request_open_file (QString fileName) = 0; |
46 | |
47 virtual void handle_entered_debug_mode () = 0; | |
48 virtual void handle_quit_debug_mode () = 0; | |
49 | 50 |
50 signals: | 51 signals: |
51 void active_changed (bool active); | 52 void active_changed (bool active); |
52 | 53 |
53 protected: | 54 protected: |