1
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
2
<class>PaletteEditorAdvancedBase</class>
3
<comment>*********************************************************************
4
** Copyright (C) 2000 Trolltech AS. All rights reserved.
6
** This file is part of Qt Designer.
8
** This file may be distributed and/or modified under the terms of the
9
** GNU General Public License version 2 as published by the Free Software
10
** Foundation and appearing in the file LICENSE.GPL included in the
11
** packaging of this file.
13
** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
14
** licenses may use this file in accordance with the Qt Commercial License
15
** Agreement provided with the Software.
17
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
18
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20
** See http://www.trolltech.com/gpl/ for GPL licensing information.
21
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
22
** information about Qt Commercial License Agreements.
24
** Contact info@trolltech.com if any conditions of this licensing are
27
*********************************************************************</comment>
28
<widget class="QDialog">
29
<property name="name">
30
<cstring>PaletteEditorAdvancedBase</cstring>
32
<property name="enabled">
35
<property name="geometry">
43
<property name="caption">
44
<string>Tune Palette</string>
46
<property name="sizeGripEnabled">
49
<property name="whatsThis" stdset="0">
50
<string><b>Edit Palette</b><p>Change the current widget or form's palette.</p><p>Use a generated palette or select colors for each color group and each color role.</p><p>The palette can be tested with different widget layouts in the preview section.</p></string>
53
<property name="name">
54
<cstring>unnamed</cstring>
56
<property name="margin">
59
<property name="spacing">
62
<widget class="QLayoutWidget">
63
<property name="name">
64
<cstring>Layout14</cstring>
67
<property name="name">
68
<cstring>unnamed</cstring>
70
<property name="margin">
73
<property name="spacing">
76
<widget class="QLabel">
77
<property name="name">
78
<cstring>TextLabel1</cstring>
80
<property name="frameShape">
83
<property name="frameShadow">
86
<property name="text">
87
<string>Select &palette:</string>
89
<property name="buddy" stdset="0">
90
<cstring>paletteCombo</cstring>
93
<widget class="QComboBox">
95
<property name="text">
96
<string>Active Palette</string>
100
<property name="text">
101
<string>Inactive Palette</string>
105
<property name="text">
106
<string>Disabled Palette</string>
109
<property name="name">
110
<cstring>paletteCombo</cstring>
115
<widget class="QButtonGroup">
116
<property name="name">
117
<cstring>ButtonGroup1</cstring>
119
<property name="sizePolicy">
121
<hsizetype>5</hsizetype>
122
<vsizetype>4</vsizetype>
125
<property name="title">
126
<string>Auto</string>
129
<property name="name">
130
<cstring>unnamed</cstring>
132
<property name="margin">
135
<property name="spacing">
138
<widget class="QCheckBox">
139
<property name="name">
140
<cstring>checkBuildInactive</cstring>
142
<property name="text">
143
<string>Build the &inactive palette from the active palette</string>
145
<property name="checked">
149
<widget class="QCheckBox">
150
<property name="name">
151
<cstring>checkBuildDisabled</cstring>
153
<property name="text">
154
<string>Build the &disabled palette from the active palette</string>
156
<property name="checked">
162
<widget class="QGroupBox">
163
<property name="name">
164
<cstring>groupCentral</cstring>
166
<property name="title">
167
<string>Central Color Roles</string>
170
<property name="name">
171
<cstring>unnamed</cstring>
173
<property name="margin">
176
<property name="spacing">
179
<widget class="QComboBox">
181
<property name="text">
182
<string>Background</string>
186
<property name="text">
187
<string>Foreground</string>
191
<property name="text">
192
<string>Button</string>
196
<property name="text">
197
<string>Base</string>
201
<property name="text">
202
<string>Text</string>
206
<property name="text">
207
<string>BrightText</string>
211
<property name="text">
212
<string>ButtonText</string>
216
<property name="text">
217
<string>Highlight</string>
221
<property name="text">
222
<string>HighlightText</string>
226
<property name="text">
227
<string>Link</string>
231
<property name="text">
232
<string>LinkVisited</string>
235
<property name="name">
236
<cstring>comboCentral</cstring>
238
<property name="toolTip" stdset="0">
239
<string>Choose the central color role</string>
241
<property name="whatsThis" stdset="0">
242
<string><b>Select a color role.</b><p>Available central color roles are: <ul> <li>Background - general background color.</li> <li>Foreground - general foreground color. </li> <li>Base - used as the background color for example, for text entry widgets; it is usually white or another light color. </li> <li>Text - the forground color used with Base. Usually this is the same as the Foreground, in which case it must provide good contrast both with the Background and with the Base. </li> <li>Button - general button background color; useful where buttons need a background different from Background, as in the Macintosh style. </li> <li>ButtonText - a foreground color used with the Button color. </li> <li>Highlight - a color used to indicate a selected or highlighted item. </li> <li>HighlightedText - a text color that contrasts to Highlight. </li> <li>BrightText - a text color that is very different from Foreground and contrasts well with, for example, black. </li> </ul> </p></string>
245
<widget class="QLayoutWidget">
246
<property name="name">
247
<cstring>Layout32_2</cstring>
250
<property name="name">
251
<cstring>unnamed</cstring>
253
<property name="margin">
256
<property name="spacing">
260
<property name="name">
261
<cstring>Horizontal_Spacing1</cstring>
263
<property name="orientation">
264
<enum>Horizontal</enum>
266
<property name="sizeType">
267
<enum>Expanding</enum>
269
<property name="sizeHint">
276
<widget class="QLabel">
277
<property name="name">
278
<cstring>labelPixmap</cstring>
280
<property name="sizePolicy">
282
<hsizetype>1</hsizetype>
283
<vsizetype>1</vsizetype>
286
<property name="text">
287
<string>Choose pi&xmap:</string>
289
<property name="buddy" stdset="0">
290
<cstring>buttonPixmap</cstring>
293
<widget class="StyledButton">
294
<property name="name">
295
<cstring>buttonPixmap</cstring>
297
<property name="sizePolicy">
299
<hsizetype>0</hsizetype>
300
<vsizetype>0</vsizetype>
303
<property name="focusPolicy">
304
<enum>TabFocus</enum>
306
<property name="scale" stdset="0">
309
<property name="toolTip" stdset="0">
310
<string>Select a pixmap</string>
312
<property name="whatsThis" stdset="0">
313
<string>Choose a pixmap file for the selected central color role.</string>
316
<widget class="QLabel">
317
<property name="name">
318
<cstring>labelCentral</cstring>
320
<property name="sizePolicy">
322
<hsizetype>1</hsizetype>
323
<vsizetype>1</vsizetype>
326
<property name="minimumSize">
332
<property name="text">
333
<string>&Select color:</string>
335
<property name="buddy" stdset="0">
336
<cstring>buttonCentral</cstring>
339
<widget class="StyledButton">
340
<property name="name">
341
<cstring>buttonCentral</cstring>
343
<property name="sizePolicy">
345
<hsizetype>0</hsizetype>
346
<vsizetype>0</vsizetype>
349
<property name="focusPolicy">
350
<enum>TabFocus</enum>
352
<property name="scale" stdset="0">
355
<property name="toolTip" stdset="0">
356
<string>Choose a color</string>
358
<property name="whatsThis" stdset="0">
359
<string>Choose a color for the selected central color role.</string>
366
<widget class="QGroupBox">
367
<property name="name">
368
<cstring>groupEffect</cstring>
370
<property name="title">
371
<string>3-D Shadow Effects</string>
374
<property name="name">
375
<cstring>unnamed</cstring>
377
<property name="margin">
380
<property name="spacing">
383
<widget class="QLayoutWidget">
384
<property name="name">
385
<cstring>Layout32_3</cstring>
388
<property name="name">
389
<cstring>unnamed</cstring>
391
<property name="margin">
394
<property name="spacing">
397
<widget class="QCheckBox">
398
<property name="name">
399
<cstring>checkBuildEffect</cstring>
401
<property name="text">
402
<string>Build &from button color:</string>
404
<property name="checked">
407
<property name="toolTip" stdset="0">
408
<string>Generate shadings</string>
410
<property name="whatsThis" stdset="0">
411
<string>Check to let 3D-effect colors be calculated from the button-color.</string>
414
<widget class="QComboBox">
416
<property name="text">
417
<string>Light</string>
421
<property name="text">
422
<string>Midlight</string>
426
<property name="text">
431
<property name="text">
432
<string>Dark</string>
436
<property name="text">
437
<string>Shadow</string>
440
<property name="name">
441
<cstring>comboEffect</cstring>
443
<property name="toolTip" stdset="0">
444
<string>Choose 3D-effect color role</string>
446
<property name="whatsThis" stdset="0">
447
<string><b>Select a color effect role.</b><p>Available effect roles are: <ul> <li>Light - lighter than Button color. </li> <li>Midlight - between Button and Light. </li> <li>Mid - between Button and Dark. </li> <li>Dark - darker than Button. </li> <li>Shadow - a very dark color. </li> </ul></string>
452
<widget class="QLayoutWidget">
453
<property name="name">
454
<cstring>Layout31_2</cstring>
457
<property name="name">
458
<cstring>unnamed</cstring>
460
<property name="margin">
463
<property name="spacing">
467
<property name="name">
468
<cstring>Horizontal_Spacing3</cstring>
470
<property name="orientation">
471
<enum>Horizontal</enum>
473
<property name="sizeType">
474
<enum>Expanding</enum>
476
<property name="sizeHint">
483
<widget class="QLabel">
484
<property name="name">
485
<cstring>labelEffect</cstring>
487
<property name="sizePolicy">
489
<hsizetype>1</hsizetype>
490
<vsizetype>1</vsizetype>
493
<property name="minimumSize">
499
<property name="text">
500
<string>Select co&lor:</string>
502
<property name="buddy" stdset="0">
503
<cstring>buttonEffect</cstring>
506
<widget class="StyledButton">
507
<property name="name">
508
<cstring>buttonEffect</cstring>
510
<property name="sizePolicy">
512
<hsizetype>0</hsizetype>
513
<vsizetype>0</vsizetype>
516
<property name="focusPolicy">
517
<enum>TabFocus</enum>
519
<property name="scale" stdset="0">
522
<property name="toolTip" stdset="0">
523
<string>Choose a color</string>
525
<property name="whatsThis" stdset="0">
526
<string>Choose a color for the selected effect color role.</string>
533
<widget class="QLayoutWidget">
534
<property name="name">
535
<cstring>Layout3</cstring>
538
<property name="name">
539
<cstring>unnamed</cstring>
541
<property name="margin">
544
<property name="spacing">
547
<widget class="QPushButton">
548
<property name="name">
549
<cstring>buttonHelp</cstring>
551
<property name="text">
552
<string>&Help</string>
554
<property name="autoDefault">
559
<property name="name">
560
<cstring>Horizontal_Spacing2</cstring>
562
<property name="orientation">
563
<enum>Horizontal</enum>
565
<property name="sizeType">
566
<enum>Expanding</enum>
568
<property name="sizeHint">
575
<widget class="QPushButton">
576
<property name="name">
577
<cstring>buttonOk</cstring>
579
<property name="text">
580
<string>&OK</string>
582
<property name="autoDefault">
585
<property name="default">
588
<property name="whatsThis" stdset="0">
589
<string>Close the dialog and apply all the changes.</string>
592
<widget class="QPushButton">
593
<property name="name">
594
<cstring>buttonCancel</cstring>
596
<property name="text">
597
<string>&Cancel</string>
599
<property name="autoDefault">
602
<property name="whatsThis" stdset="0">
603
<string>Close the dialog and discard any changes.</string>
612
<class>StyledButton</class>
613
<header location="local">styledbutton.h</header>
618
<container>0</container>
623
<pixmap>"image0"</pixmap>
624
<signal>clicked()</signal>
625
<signal>changed()</signal>
626
<property type="Color">color</property>
627
<property type="Pixmap">pixmap</property>
628
<property type="Bool">scale</property>
632
<image name="image0">
633
<data format="XPM.GZ" length="1112">789c9dd2cb8e9b301406e07d9e0225bba89a09601350d505302c5b7559a9eac23e6672b363620c0ca9faeef53949da2e2a55eab123f9e38f2f217e5e475f3e7f8cd6cf8bde0b7f8008f6c2456b3518337ffdf6e1fb62992451e8691ac5cb778be55304d1277b6e71fc12c6ab0d157222e61bd8e4c812196f6216535a13f318624a6764b2495842e99558249014c81e99c6294b69d3376291424ae9806431638cd28628183081f4489e70ce13e4852878c129ad905992f18cd291283295517a466ed32ddfa64847945bb595c80e99a739cf29d54499ab9c528b2c58c10b86344428540148400a26b8a0541241b482d215523299494a0551c9562ae409091c32e0c82351410b942aa4e22a53941e882d36e41ed966d8903b2215f215f99a6143b6442afaafff5aff485658622584a091941256948443d1cabbdd6ebf3f28753c09a9e9cdc1fe703c9e4ea19f689a0430fa4c8908082be093d08d016bbb0bbd5e7ceafade5b30de19d083b3fa9e008cd39b9fafd69495b473af7fcfb15325c1d61eea0afaf005ddf97b5295c658a866338f97591babef7340fa396c6c5ca9e7fe650807d0bf566b4262299986ba335a3b4a2cc84b69ac85b1b673037d8fabf95b023a9c09cc7530e104dd5419ed6e27083fb09a7c752db5a9bd31cde4ec634ed8a39aebbe337618c3f6fdc5dee6d8b0bb0d6b5b8b1fad43d78fe4e14e3f6aace8e29d9d736777fea3c686eee0138c9726d4d00c548df7a315ff750f7ebc5ffc04a0e5308d</data>
638
<sender>buttonOk</sender>
639
<signal>clicked()</signal>
640
<receiver>PaletteEditorAdvancedBase</receiver>
641
<slot>accept()</slot>
644
<sender>buttonCancel</sender>
645
<signal>clicked()</signal>
646
<receiver>PaletteEditorAdvancedBase</receiver>
647
<slot>reject()</slot>
650
<sender>paletteCombo</sender>
651
<signal>activated(int)</signal>
652
<receiver>PaletteEditorAdvancedBase</receiver>
653
<slot>paletteSelected(int)</slot>
656
<sender>comboCentral</sender>
657
<signal>activated(int)</signal>
658
<receiver>PaletteEditorAdvancedBase</receiver>
659
<slot>onCentral(int)</slot>
662
<sender>buttonPixmap</sender>
663
<signal>clicked()</signal>
664
<receiver>PaletteEditorAdvancedBase</receiver>
665
<slot>onChoosePixmap()</slot>
668
<sender>buttonCentral</sender>
669
<signal>clicked()</signal>
670
<receiver>PaletteEditorAdvancedBase</receiver>
671
<slot>onChooseCentralColor()</slot>
674
<sender>buttonEffect</sender>
675
<signal>clicked()</signal>
676
<receiver>PaletteEditorAdvancedBase</receiver>
677
<slot>onChooseEffectColor()</slot>
680
<sender>comboEffect</sender>
681
<signal>activated(int)</signal>
682
<receiver>PaletteEditorAdvancedBase</receiver>
683
<slot>onEffect(int)</slot>
686
<sender>checkBuildEffect</sender>
687
<signal>toggled(bool)</signal>
688
<receiver>PaletteEditorAdvancedBase</receiver>
689
<slot>onToggleBuildEffects(bool)</slot>
692
<sender>buttonHelp</sender>
693
<signal>clicked()</signal>
694
<receiver>PaletteEditorAdvancedBase</receiver>
695
<slot>showHelp()</slot>
698
<sender>checkBuildEffect</sender>
699
<signal>toggled(bool)</signal>
700
<receiver>comboEffect</receiver>
701
<slot>setDisabled(bool)</slot>
704
<sender>checkBuildEffect</sender>
705
<signal>toggled(bool)</signal>
706
<receiver>buttonEffect</receiver>
707
<slot>setDisabled(bool)</slot>
710
<sender>checkBuildInactive</sender>
711
<signal>toggled(bool)</signal>
712
<receiver>PaletteEditorAdvancedBase</receiver>
713
<slot>onToggleBuildInactive(bool)</slot>
716
<sender>checkBuildDisabled</sender>
717
<signal>toggled(bool)</signal>
718
<receiver>PaletteEditorAdvancedBase</receiver>
719
<slot>onToggleBuildDisabled(bool)</slot>
721
<slot access="protected" language="C++" returnType="void">init()</slot>
722
<slot access="protected" language="C++" returnType="void">destroy()</slot>
723
<slot access="protected" language="C++" returnType="void">onToggleBuildDisabled(bool)</slot>
724
<slot access="protected" language="C++" returnType="void">onCentral(int)</slot>
725
<slot access="protected" language="C++" returnType="void">onChooseCentralColor()</slot>
726
<slot access="protected" language="C++" returnType="void">onChooseEffectColor()</slot>
727
<slot access="protected" language="C++" returnType="void">onChoosePixmap()</slot>
728
<slot access="protected" language="C++" returnType="void">onEffect(int)</slot>
729
<slot access="protected" language="C++" returnType="void">onToggleBuildEffects(bool)</slot>
730
<slot access="protected" language="C++" returnType="void">onToggleBuildInactive(bool)</slot>
731
<slot access="protected" language="C++" returnType="void">paletteSelected(int)</slot>
732
<slot access="public" language="C++" returnType="void">showHelp()</slot>
735
<tabstop>buttonOk</tabstop>
736
<tabstop>buttonCancel</tabstop>
737
<tabstop>paletteCombo</tabstop>
738
<tabstop>checkBuildInactive</tabstop>
739
<tabstop>checkBuildDisabled</tabstop>
740
<tabstop>comboCentral</tabstop>
741
<tabstop>buttonPixmap</tabstop>
742
<tabstop>buttonCentral</tabstop>
743
<tabstop>checkBuildEffect</tabstop>
744
<tabstop>comboEffect</tabstop>
745
<tabstop>buttonEffect</tabstop>
746
<tabstop>buttonHelp</tabstop>