Mercurial > octave-nkf
diff libgui/src/octave-dock-widget.h @ 18179:b3838cedfe04 gui-release
redesign of dock widgets title bar with configurable colors
* octave-dock-widget.cc (constructor): connect settings_changed signal to new
slot handle_settings;
(handle_settings): common settings for all dock widgets: style sheet, this
functions calls notice_settings for individual settings;
(make_window,make_widget): change dock-/undock-icon
* octave-dock-widget.h: new slot handle_settings
* settings-dialog.cc (constructor): check box and color pickers for title bar;
(write_changed_settings): store colors to settings file
* settings-dialog.h: new color-pickers as class variables
* settings-dialog.ui: check box and color pickers for title bar colors
author | Torsten <ttl@justmail.de> |
---|---|
date | Tue, 31 Dec 2013 13:31:45 +0100 |
parents | 14c427b5c5c1 |
children | 7952fb0435db |
line wrap: on
line diff
--- a/libgui/src/octave-dock-widget.h Sun Dec 29 13:08:16 2013 -0500 +++ b/libgui/src/octave-dock-widget.h Tue Dec 31 13:31:45 2013 +0100 @@ -27,6 +27,7 @@ #include <QSettings> #include <QIcon> #include <QMainWindow> +#include <QToolButton> #include <QMouseEvent> class octave_dock_widget : public QDockWidget @@ -81,6 +82,7 @@ virtual void notice_settings (const QSettings*) { } + void handle_settings (const QSettings*); QMainWindow *main_win () { return _parent; } @@ -111,6 +113,12 @@ QAction *_dock_action; bool _floating; +#if defined (Q_OS_WIN32) + QWidget *_title_widget; + QToolButton *_dock_button; + QToolButton *_close_button; +#endif + }; #endif