Mercurial > hg > octave-nkf
diff libgui/src/settings-dialog.ui @ 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 | 14acb08d75fa |
children | f227bb47314f |
line wrap: on
line diff
--- a/libgui/src/settings-dialog.ui +++ b/libgui/src/settings-dialog.ui @@ -32,7 +32,7 @@ <item> <widget class="QTabWidget" name="tabWidget"> <property name="currentIndex"> - <number>3</number> + <number>0</number> </property> <widget class="QWidget" name="tab_general"> <property name="enabled"> @@ -74,7 +74,7 @@ </property> </widget> </item> - <item row="2" column="2"> + <item row="2" column="1"> <layout class="QHBoxLayout" name="horizontalLayout_6"> <item> <widget class="QSpinBox" name="toolbar_icon_size"> @@ -107,7 +107,7 @@ </item> </layout> </item> - <item row="1" column="2"> + <item row="1" column="1"> <layout class="QHBoxLayout" name="horizontalLayout_8"> <item> <widget class="QComboBox" name="comboBox_language"> @@ -131,7 +131,7 @@ </item> </layout> </item> - <item row="3" column="2"> + <item row="3" column="1"> <layout class="QHBoxLayout" name="horizontalLayout_9"> <item> <widget class="QRadioButton" name="general_icon_octave"> @@ -172,6 +172,95 @@ </item> </layout> </item> + <item row="4" column="0"> + <widget class="QLabel" name="label_15"> + <property name="text"> + <string>Dock widget title bar</string> + </property> + </widget> + </item> + <item row="4" column="1"> + <layout class="QHBoxLayout" name="horizontalLayout_4"> + <item> + <widget class="QCheckBox" name="cb_widget_custom_style"> + <property name="text"> + <string>Custom style</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_22"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="label_bgtitle"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>Background color</string> + </property> + </widget> + </item> + <item> + <layout class="QHBoxLayout" name="layout_widget_bgtitle"/> + </item> + <item> + <spacer name="horizontalSpacer_23"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>12</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="label_fgtitle"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>Text color</string> + </property> + </widget> + </item> + <item> + <layout class="QHBoxLayout" name="layout_widget_fgtitle"/> + </item> + <item> + <spacer name="horizontalSpacer_21"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> </layout> </item> <item> @@ -1655,5 +1744,37 @@ </hint> </hints> </connection> + <connection> + <sender>cb_widget_custom_style</sender> + <signal>toggled(bool)</signal> + <receiver>label_bgtitle</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>228</x> + <y>156</y> + </hint> + <hint type="destinationlabel"> + <x>380</x> + <y>156</y> + </hint> + </hints> + </connection> + <connection> + <sender>cb_widget_custom_style</sender> + <signal>toggled(bool)</signal> + <receiver>label_fgtitle</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>228</x> + <y>156</y> + </hint> + <hint type="destinationlabel"> + <x>496</x> + <y>156</y> + </hint> + </hints> + </connection> </connections> </ui>