Mercurial > octave-nkf
diff libgui/src/m-editor/file-editor-interface.h @ 16057:c3057d80cf91
Created common octave_dock_widget class
* octave_dock_widget.h : New class octave_dock_widget with common dock widget
methods, slots and signals
* file_editor_interface.h: Now inherit from octave_dock_widget, removed common
dock widget code
* file_editor.h: Now inherit from octave_dock_widget, removed common
dock widget code
* file_editor.cc: Now inherit from octave_dock_widget, removed common
dock widget code
* files_dockwidget.h: Now inherit from octave_dock_widget, removed common
dock widget code
* files_dockwidget.cc: Now inherit from octave_dock_widget, removed common
dock widget code
* history_dockwidget.h: Now inherit from octave_dock_widget, removed common
dock widget code
* history_dockwidget.cc: Now inherit from octave_dock_widget, removed common
dock widget methods
* terminal_dockwidget.h: Now inherit from octave_dock_widget, removed common
dock widget code
* terminal_dockwidget.cc: Now inherit from octave_dock_widget, removed common
dock widget code
* module.mk: Added octave_dock_widget
author | Richard Crozier <richard.crozier@yahoo.co.uk> |
---|---|
date | Wed, 06 Feb 2013 21:45:04 +0000 |
parents | 41471c02d51c |
children | d07aeecb2d22 |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-interface.h Wed Feb 13 21:28:30 2013 -0800 +++ b/libgui/src/m-editor/file-editor-interface.h Wed Feb 06 21:45:04 2013 +0000 @@ -23,22 +23,19 @@ #ifndef FILEEDITORINTERFACE_H #define FILEEDITORINTERFACE_H -#include <QDockWidget> #include <QMenu> #include <QToolBar> +#include "octave-dock-widget.h" -class file_editor_interface : public QDockWidget +class file_editor_interface : public octave_dock_widget { Q_OBJECT public: file_editor_interface (QWidget *p) - : QDockWidget (p) + : octave_dock_widget (p) { setObjectName ("FileEditor"); - - connect (this, SIGNAL (visibilityChanged (bool)), this, - SLOT (handle_visibility_changed (bool))); } virtual ~file_editor_interface () { } @@ -56,22 +53,12 @@ virtual void request_open_file () = 0; virtual void request_open_file (const QString& fileName) = 0; -signals: - void active_changed (bool active); +//signals: -protected: - void closeEvent (QCloseEvent *e) - { - emit active_changed (false); - QDockWidget::closeEvent (e); - } +//protected: -protected slots: - void handle_visibility_changed (bool visible) - { - if (visible) - emit active_changed (true); - } +//protected slots: + }; #endif // FILEEDITORINTERFACE_H