comparison 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
comparison
equal deleted inserted replaced
18177:256e280850f1 18179:b3838cedfe04
30 </property> 30 </property>
31 <layout class="QVBoxLayout" name="verticalLayout_2"> 31 <layout class="QVBoxLayout" name="verticalLayout_2">
32 <item> 32 <item>
33 <widget class="QTabWidget" name="tabWidget"> 33 <widget class="QTabWidget" name="tabWidget">
34 <property name="currentIndex"> 34 <property name="currentIndex">
35 <number>3</number> 35 <number>0</number>
36 </property> 36 </property>
37 <widget class="QWidget" name="tab_general"> 37 <widget class="QWidget" name="tab_general">
38 <property name="enabled"> 38 <property name="enabled">
39 <bool>true</bool> 39 <bool>true</bool>
40 </property> 40 </property>
72 <property name="text"> 72 <property name="text">
73 <string>Icon size</string> 73 <string>Icon size</string>
74 </property> 74 </property>
75 </widget> 75 </widget>
76 </item> 76 </item>
77 <item row="2" column="2"> 77 <item row="2" column="1">
78 <layout class="QHBoxLayout" name="horizontalLayout_6"> 78 <layout class="QHBoxLayout" name="horizontalLayout_6">
79 <item> 79 <item>
80 <widget class="QSpinBox" name="toolbar_icon_size"> 80 <widget class="QSpinBox" name="toolbar_icon_size">
81 <property name="minimum"> 81 <property name="minimum">
82 <number>16</number> 82 <number>16</number>
105 </property> 105 </property>
106 </spacer> 106 </spacer>
107 </item> 107 </item>
108 </layout> 108 </layout>
109 </item> 109 </item>
110 <item row="1" column="2"> 110 <item row="1" column="1">
111 <layout class="QHBoxLayout" name="horizontalLayout_8"> 111 <layout class="QHBoxLayout" name="horizontalLayout_8">
112 <item> 112 <item>
113 <widget class="QComboBox" name="comboBox_language"> 113 <widget class="QComboBox" name="comboBox_language">
114 <property name="insertPolicy"> 114 <property name="insertPolicy">
115 <enum>QComboBox::InsertAtBottom</enum> 115 <enum>QComboBox::InsertAtBottom</enum>
129 </property> 129 </property>
130 </spacer> 130 </spacer>
131 </item> 131 </item>
132 </layout> 132 </layout>
133 </item> 133 </item>
134 <item row="3" column="2"> 134 <item row="3" column="1">
135 <layout class="QHBoxLayout" name="horizontalLayout_9"> 135 <layout class="QHBoxLayout" name="horizontalLayout_9">
136 <item> 136 <item>
137 <widget class="QRadioButton" name="general_icon_octave"> 137 <widget class="QRadioButton" name="general_icon_octave">
138 <property name="text"> 138 <property name="text">
139 <string>Octave logo only</string> 139 <string>Octave logo only</string>
157 </property> 157 </property>
158 </widget> 158 </widget>
159 </item> 159 </item>
160 <item> 160 <item>
161 <spacer name="horizontalSpacer_6"> 161 <spacer name="horizontalSpacer_6">
162 <property name="orientation">
163 <enum>Qt::Horizontal</enum>
164 </property>
165 <property name="sizeHint" stdset="0">
166 <size>
167 <width>40</width>
168 <height>20</height>
169 </size>
170 </property>
171 </spacer>
172 </item>
173 </layout>
174 </item>
175 <item row="4" column="0">
176 <widget class="QLabel" name="label_15">
177 <property name="text">
178 <string>Dock widget title bar</string>
179 </property>
180 </widget>
181 </item>
182 <item row="4" column="1">
183 <layout class="QHBoxLayout" name="horizontalLayout_4">
184 <item>
185 <widget class="QCheckBox" name="cb_widget_custom_style">
186 <property name="text">
187 <string>Custom style</string>
188 </property>
189 </widget>
190 </item>
191 <item>
192 <spacer name="horizontalSpacer_22">
193 <property name="orientation">
194 <enum>Qt::Horizontal</enum>
195 </property>
196 <property name="sizeType">
197 <enum>QSizePolicy::Fixed</enum>
198 </property>
199 <property name="sizeHint" stdset="0">
200 <size>
201 <width>40</width>
202 <height>20</height>
203 </size>
204 </property>
205 </spacer>
206 </item>
207 <item>
208 <widget class="QLabel" name="label_bgtitle">
209 <property name="enabled">
210 <bool>false</bool>
211 </property>
212 <property name="text">
213 <string>Background color</string>
214 </property>
215 </widget>
216 </item>
217 <item>
218 <layout class="QHBoxLayout" name="layout_widget_bgtitle"/>
219 </item>
220 <item>
221 <spacer name="horizontalSpacer_23">
222 <property name="orientation">
223 <enum>Qt::Horizontal</enum>
224 </property>
225 <property name="sizeType">
226 <enum>QSizePolicy::Fixed</enum>
227 </property>
228 <property name="sizeHint" stdset="0">
229 <size>
230 <width>12</width>
231 <height>20</height>
232 </size>
233 </property>
234 </spacer>
235 </item>
236 <item>
237 <widget class="QLabel" name="label_fgtitle">
238 <property name="enabled">
239 <bool>false</bool>
240 </property>
241 <property name="text">
242 <string>Text color</string>
243 </property>
244 </widget>
245 </item>
246 <item>
247 <layout class="QHBoxLayout" name="layout_widget_fgtitle"/>
248 </item>
249 <item>
250 <spacer name="horizontalSpacer_21">
162 <property name="orientation"> 251 <property name="orientation">
163 <enum>Qt::Horizontal</enum> 252 <enum>Qt::Horizontal</enum>
164 </property> 253 </property>
165 <property name="sizeHint" stdset="0"> 254 <property name="sizeHint" stdset="0">
166 <size> 255 <size>
1653 <x>282</x> 1742 <x>282</x>
1654 <y>119</y> 1743 <y>119</y>
1655 </hint> 1744 </hint>
1656 </hints> 1745 </hints>
1657 </connection> 1746 </connection>
1747 <connection>
1748 <sender>cb_widget_custom_style</sender>
1749 <signal>toggled(bool)</signal>
1750 <receiver>label_bgtitle</receiver>
1751 <slot>setEnabled(bool)</slot>
1752 <hints>
1753 <hint type="sourcelabel">
1754 <x>228</x>
1755 <y>156</y>
1756 </hint>
1757 <hint type="destinationlabel">
1758 <x>380</x>
1759 <y>156</y>
1760 </hint>
1761 </hints>
1762 </connection>
1763 <connection>
1764 <sender>cb_widget_custom_style</sender>
1765 <signal>toggled(bool)</signal>
1766 <receiver>label_fgtitle</receiver>
1767 <slot>setEnabled(bool)</slot>
1768 <hints>
1769 <hint type="sourcelabel">
1770 <x>228</x>
1771 <y>156</y>
1772 </hint>
1773 <hint type="destinationlabel">
1774 <x>496</x>
1775 <y>156</y>
1776 </hint>
1777 </hints>
1778 </connection>
1658 </connections> 1779 </connections>
1659 </ui> 1780 </ui>