Mercurial > hg > octave-nkf
comparison libgui/src/settings-dialog.ui @ 20122:2a992bd19169
make color gradient of custom title bar adjustable (bug #44435)
* settings-dialog.ui: new spinbox for 3D effect of custom title bars
* settings-dialog.cc (settings_dialog): get settings for 3D effect and
initialize the spin box;
(write_changed_settings): write current spin box value into settings file;
* octave-dock-widget.h: new class variable for 3D effect
* octave-dock-widget.cc (octave_dock_widget): init new class variable;
(set_style): set the gradient depending on class variable;
(handle_settings): get settings on 3D effect from settings files
author | Torsten <ttl@justmail.de> |
---|---|
date | Fri, 06 Mar 2015 07:42:13 +0100 |
parents | 597fc0fd8e54 |
children | 6049bdfa8d56 |
comparison
equal
deleted
inserted
replaced
20121:b8ce2f42815c | 20122:2a992bd19169 |
---|---|
30 <width>0</width> | 30 <width>0</width> |
31 <height>0</height> | 31 <height>0</height> |
32 </size> | 32 </size> |
33 </property> | 33 </property> |
34 <property name="currentIndex"> | 34 <property name="currentIndex"> |
35 <number>1</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> |
50 <widget class="QWidget" name="scrollAreaWidgetContents_2"> | 50 <widget class="QWidget" name="scrollAreaWidgetContents_2"> |
51 <property name="geometry"> | 51 <property name="geometry"> |
52 <rect> | 52 <rect> |
53 <x>0</x> | 53 <x>0</x> |
54 <y>0</y> | 54 <y>0</y> |
55 <width>678</width> | 55 <width>662</width> |
56 <height>378</height> | 56 <height>382</height> |
57 </rect> | 57 </rect> |
58 </property> | 58 </property> |
59 <layout class="QVBoxLayout" name="verticalLayout_17"> | 59 <layout class="QVBoxLayout" name="verticalLayout_17"> |
60 <item> | 60 <item> |
61 <widget class="QGroupBox" name="groupBox"> | 61 <widget class="QGroupBox" name="groupBox"> |
224 </item> | 224 </item> |
225 <item row="4" column="1"> | 225 <item row="4" column="1"> |
226 <layout class="QHBoxLayout" name="horizontalLayout_4"> | 226 <layout class="QHBoxLayout" name="horizontalLayout_4"> |
227 <item> | 227 <item> |
228 <layout class="QGridLayout" name="gridLayout_13"> | 228 <layout class="QGridLayout" name="gridLayout_13"> |
229 <property name="rightMargin"> | |
230 <number>0</number> | |
231 </property> | |
232 <item row="0" column="9"> | |
233 <widget class="QLabel" name="label_bgtitle_active"> | |
234 <property name="enabled"> | |
235 <bool>false</bool> | |
236 </property> | |
237 <property name="text"> | |
238 <string>Active</string> | |
239 </property> | |
240 <property name="alignment"> | |
241 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | |
242 </property> | |
243 </widget> | |
244 </item> | |
245 <item row="1" column="4"> | |
246 <layout class="QHBoxLayout" name="layout_widget_fgtitle"/> | |
247 </item> | |
248 <item row="0" column="1"> | |
249 <spacer name="horizontalSpacer_22"> | |
250 <property name="orientation"> | |
251 <enum>Qt::Horizontal</enum> | |
252 </property> | |
253 <property name="sizeType"> | |
254 <enum>QSizePolicy::Fixed</enum> | |
255 </property> | |
256 <property name="sizeHint" stdset="0"> | |
257 <size> | |
258 <width>40</width> | |
259 <height>20</height> | |
260 </size> | |
261 </property> | |
262 </spacer> | |
263 </item> | |
229 <item row="1" column="2"> | 264 <item row="1" column="2"> |
230 <widget class="QLabel" name="label_fgtitle"> | 265 <widget class="QLabel" name="label_fgtitle"> |
231 <property name="enabled"> | 266 <property name="enabled"> |
232 <bool>false</bool> | 267 <bool>false</bool> |
233 </property> | 268 </property> |
250 <property name="alignment"> | 285 <property name="alignment"> |
251 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | 286 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> |
252 </property> | 287 </property> |
253 </widget> | 288 </widget> |
254 </item> | 289 </item> |
255 <item row="0" column="0"> | |
256 <widget class="QCheckBox" name="cb_widget_custom_style"> | |
257 <property name="text"> | |
258 <string>Custom style</string> | |
259 </property> | |
260 </widget> | |
261 </item> | |
262 <item row="0" column="7"> | 290 <item row="0" column="7"> |
263 <spacer name="horizontalSpacer_23"> | 291 <spacer name="horizontalSpacer_23"> |
264 <property name="orientation"> | 292 <property name="orientation"> |
265 <enum>Qt::Horizontal</enum> | 293 <enum>Qt::Horizontal</enum> |
266 </property> | 294 </property> |
273 <height>20</height> | 301 <height>20</height> |
274 </size> | 302 </size> |
275 </property> | 303 </property> |
276 </spacer> | 304 </spacer> |
277 </item> | 305 </item> |
278 <item row="0" column="1"> | 306 <item row="0" column="0"> |
279 <spacer name="horizontalSpacer_22"> | 307 <widget class="QCheckBox" name="cb_widget_custom_style"> |
280 <property name="orientation"> | |
281 <enum>Qt::Horizontal</enum> | |
282 </property> | |
283 <property name="sizeType"> | |
284 <enum>QSizePolicy::Fixed</enum> | |
285 </property> | |
286 <property name="sizeHint" stdset="0"> | |
287 <size> | |
288 <width>40</width> | |
289 <height>20</height> | |
290 </size> | |
291 </property> | |
292 </spacer> | |
293 </item> | |
294 <item row="0" column="9"> | |
295 <widget class="QLabel" name="label_bgtitle_active"> | |
296 <property name="enabled"> | |
297 <bool>false</bool> | |
298 </property> | |
299 <property name="text"> | 308 <property name="text"> |
300 <string>Active</string> | 309 <string>Custom style</string> |
301 </property> | |
302 <property name="alignment"> | |
303 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | |
304 </property> | 310 </property> |
305 </widget> | 311 </widget> |
306 </item> | |
307 <item row="1" column="4"> | |
308 <layout class="QHBoxLayout" name="layout_widget_fgtitle"/> | |
309 </item> | 312 </item> |
310 <item row="0" column="4"> | 313 <item row="0" column="4"> |
311 <layout class="QHBoxLayout" name="layout_widget_bgtitle"/> | 314 <layout class="QHBoxLayout" name="layout_widget_bgtitle"/> |
312 </item> | 315 </item> |
313 <item row="0" column="2"> | 316 <item row="0" column="2"> |
326 <item row="0" column="10"> | 329 <item row="0" column="10"> |
327 <layout class="QHBoxLayout" name="layout_widget_bgtitle_active"/> | 330 <layout class="QHBoxLayout" name="layout_widget_bgtitle_active"/> |
328 </item> | 331 </item> |
329 <item row="1" column="10"> | 332 <item row="1" column="10"> |
330 <layout class="QHBoxLayout" name="layout_widget_fgtitle_active"/> | 333 <layout class="QHBoxLayout" name="layout_widget_fgtitle_active"/> |
334 </item> | |
335 <item row="1" column="0"> | |
336 <widget class="QLabel" name="label_3d_title"> | |
337 <property name="enabled"> | |
338 <bool>false</bool> | |
339 </property> | |
340 <property name="text"> | |
341 <string>3D</string> | |
342 </property> | |
343 <property name="alignment"> | |
344 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | |
345 </property> | |
346 </widget> | |
347 </item> | |
348 <item row="1" column="1"> | |
349 <widget class="QSpinBox" name="sb_3d_title"> | |
350 <property name="enabled"> | |
351 <bool>false</bool> | |
352 </property> | |
353 <property name="sizePolicy"> | |
354 <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> | |
355 <horstretch>0</horstretch> | |
356 <verstretch>0</verstretch> | |
357 </sizepolicy> | |
358 </property> | |
359 <property name="minimum"> | |
360 <number>-80</number> | |
361 </property> | |
362 <property name="maximum"> | |
363 <number>80</number> | |
364 </property> | |
365 <property name="value"> | |
366 <number>50</number> | |
367 </property> | |
368 </widget> | |
331 </item> | 369 </item> |
332 </layout> | 370 </layout> |
333 </item> | 371 </item> |
334 <item> | 372 <item> |
335 <spacer name="horizontalSpacer_21"> | 373 <spacer name="horizontalSpacer_21"> |
2898 <x>533</x> | 2936 <x>533</x> |
2899 <y>214</y> | 2937 <y>214</y> |
2900 </hint> | 2938 </hint> |
2901 </hints> | 2939 </hints> |
2902 </connection> | 2940 </connection> |
2941 <connection> | |
2942 <sender>cb_widget_custom_style</sender> | |
2943 <signal>toggled(bool)</signal> | |
2944 <receiver>label_3d_title</receiver> | |
2945 <slot>setEnabled(bool)</slot> | |
2946 <hints> | |
2947 <hint type="sourcelabel"> | |
2948 <x>260</x> | |
2949 <y>186</y> | |
2950 </hint> | |
2951 <hint type="destinationlabel"> | |
2952 <x>419</x> | |
2953 <y>236</y> | |
2954 </hint> | |
2955 </hints> | |
2956 </connection> | |
2957 <connection> | |
2958 <sender>cb_widget_custom_style</sender> | |
2959 <signal>toggled(bool)</signal> | |
2960 <receiver>sb_3d_title</receiver> | |
2961 <slot>setEnabled(bool)</slot> | |
2962 <hints> | |
2963 <hint type="sourcelabel"> | |
2964 <x>260</x> | |
2965 <y>186</y> | |
2966 </hint> | |
2967 <hint type="destinationlabel"> | |
2968 <x>507</x> | |
2969 <y>236</y> | |
2970 </hint> | |
2971 </hints> | |
2972 </connection> | |
2903 </connections> | 2973 </connections> |
2904 </ui> | 2974 </ui> |