1<?xml version="1.0" encoding="UTF-8"?> 2<ui version="4.0" stdsetdef="1"> 3 <author></author> 4 <comment>********************************************************************* 5** 6** Copyright (C) 2015 The Qt Company Ltd. 7** Contact: http://www.qt.io/licensing/ 8** 9** This file is part of the autotests of the Qt Toolkit. 10** 11** $QT_BEGIN_LICENSE:LGPL$ 12** Commercial License Usage 13** Licensees holding valid commercial Qt licenses may use this file in 14** accordance with the commercial license agreement provided with the 15** Software or, alternatively, in accordance with the terms contained in 16** a written agreement between you and The Qt Company. For licensing terms 17** and conditions see http://www.qt.io/terms-conditions. For further 18** information use the contact form at http://www.qt.io/contact-us. 19** 20** GNU Lesser General Public License Usage 21** Alternatively, this file may be used under the terms of the GNU Lesser 22** General Public License version 2.1 or version 3 as published by the Free 23** Software Foundation and appearing in the file LICENSE.LGPLv21 and 24** LICENSE.LGPLv3 included in the packaging of this file. Please review the 25** following information to ensure the GNU Lesser General Public License 26** requirements will be met: https://www.gnu.org/licenses/lgpl.html and 27** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 28** 29** As a special exception, The Qt Company gives you certain additional 30** rights. These rights are described in The Qt Company LGPL Exception 31** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 32** 33** GNU General Public License Usage 34** Alternatively, this file may be used under the terms of the GNU 35** General Public License version 3.0 as published by the Free Software 36** Foundation and appearing in the file LICENSE.GPL included in the 37** packaging of this file. Please review the following information to 38** ensure the GNU General Public License version 3.0 requirements will be 39** met: http://www.gnu.org/copyleft/gpl.html. 40** 41** $QT_END_LICENSE$ 42** 43*********************************************************************</comment> 44 <exportmacro></exportmacro> 45 <class>PaletteEditorAdvancedBase</class> 46 <widget class="QDialog" name="PaletteEditorAdvancedBase"> 47 <property name="enabled"> 48 <bool>true</bool> 49 </property> 50 <property name="geometry"> 51 <rect> 52 <x>0</x> 53 <y>0</y> 54 <width>295</width> 55 <height>346</height> 56 </rect> 57 </property> 58 <property name="windowTitle"> 59 <string>Tune Palette</string> 60 </property> 61 <property name="sizeGripEnabled"> 62 <bool>true</bool> 63 </property> 64 <property name="whatsThis" stdset="0"> 65 <string><b>Edit Palette</b><p>Change the palette of the current widget or form.</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> 66 </property> 67 <layout class="QVBoxLayout"> 68 <property name="margin"> 69 <number>11</number> 70 </property> 71 <property name="spacing"> 72 <number>6</number> 73 </property> 74 <item> 75 <layout class="QHBoxLayout"> 76 <property name="margin"> 77 <number>0</number> 78 </property> 79 <property name="spacing"> 80 <number>6</number> 81 </property> 82 <item> 83 <widget class="QLabel" name="TextLabel1"> 84 <property name="text"> 85 <string>Select &Palette:</string> 86 </property> 87 <property name="buddy" stdset="0"> 88 <cstring>paletteCombo</cstring> 89 </property> 90 <property name="wordWrap"> 91 <bool>false</bool> 92 </property> 93 </widget> 94 </item> 95 <item> 96 <widget class="QComboBox" name="paletteCombo"> 97 <item> 98 <property name="text"> 99 <string>Active Palette</string> 100 </property> 101 </item> 102 <item> 103 <property name="text"> 104 <string>Inactive Palette</string> 105 </property> 106 </item> 107 <item> 108 <property name="text"> 109 <string>Disabled Palette</string> 110 </property> 111 </item> 112 </widget> 113 </item> 114 </layout> 115 </item> 116 <item> 117 <widget class="Q3ButtonGroup" name="ButtonGroup1"> 118 <property name="sizePolicy"> 119 <sizepolicy> 120 <hsizetype>5</hsizetype> 121 <vsizetype>4</vsizetype> 122 </sizepolicy> 123 </property> 124 <property name="title"> 125 <string>Auto</string> 126 </property> 127 <layout class="QVBoxLayout"> 128 <property name="margin"> 129 <number>11</number> 130 </property> 131 <property name="spacing"> 132 <number>6</number> 133 </property> 134 <item> 135 <widget class="QCheckBox" name="checkBuildInactive"> 136 <property name="text"> 137 <string>Build inactive palette from active.</string> 138 </property> 139 <property name="checked"> 140 <bool>true</bool> 141 </property> 142 </widget> 143 </item> 144 <item> 145 <widget class="QCheckBox" name="checkBuildDisabled"> 146 <property name="text"> 147 <string>Build disabled palette from active.</string> 148 </property> 149 <property name="checked"> 150 <bool>true</bool> 151 </property> 152 </widget> 153 </item> 154 </layout> 155 </widget> 156 </item> 157 <item> 158 <widget class="Q3GroupBox" name="groupCentral"> 159 <property name="title"> 160 <string>Central color &roles</string> 161 </property> 162 <layout class="QVBoxLayout"> 163 <property name="margin"> 164 <number>11</number> 165 </property> 166 <property name="spacing"> 167 <number>6</number> 168 </property> 169 <item> 170 <widget class="QComboBox" name="comboCentral"> 171 <property name="toolTip" stdset="0"> 172 <string>Choose central color role</string> 173 </property> 174 <property name="whatsThis" stdset="0"> 175 <string><b>Select a color role.</b><p>Available central roles are: <ul> <li>Background - general background color.</li> <li>Foreground - general foreground color. </li> <li>Base - used as background color for e.g. text entry widgets, usually white or another light color. </li> <li>Text - the forground color used with Base. Usually this is the same as the Foreground, in what case it must provide good contrast both with Background and Base. </li> <li>Button - general button background color, 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 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 e.g. black. </li> </ul> </p></string> 176 </property> 177 <item> 178 <property name="text"> 179 <string>Background</string> 180 </property> 181 </item> 182 <item> 183 <property name="text"> 184 <string>Foreground</string> 185 </property> 186 </item> 187 <item> 188 <property name="text"> 189 <string>Button</string> 190 </property> 191 </item> 192 <item> 193 <property name="text"> 194 <string>Base</string> 195 </property> 196 </item> 197 <item> 198 <property name="text"> 199 <string>Text</string> 200 </property> 201 </item> 202 <item> 203 <property name="text"> 204 <string>BrightText</string> 205 </property> 206 </item> 207 <item> 208 <property name="text"> 209 <string>ButtonText</string> 210 </property> 211 </item> 212 <item> 213 <property name="text"> 214 <string>Highlight</string> 215 </property> 216 </item> 217 <item> 218 <property name="text"> 219 <string>HighlightText</string> 220 </property> 221 </item> 222 <item> 223 <property name="text"> 224 <string>Link</string> 225 </property> 226 </item> 227 <item> 228 <property name="text"> 229 <string>LinkVisited</string> 230 </property> 231 </item> 232 </widget> 233 </item> 234 <item> 235 <layout class="QHBoxLayout"> 236 <property name="margin"> 237 <number>0</number> 238 </property> 239 <property name="spacing"> 240 <number>6</number> 241 </property> 242 <item> 243 <spacer name="Horizontal_Spacing1"> 244 <property name="sizeHint"> 245 <size> 246 <width>20</width> 247 <height>20</height> 248 </size> 249 </property> 250 <property name="sizeType"> 251 <enum>QSizePolicy::Expanding</enum> 252 </property> 253 <property name="orientation"> 254 <enum>Qt::Horizontal</enum> 255 </property> 256 </spacer> 257 </item> 258 <item> 259 <widget class="QLabel" name="labelCentral"> 260 <property name="sizePolicy"> 261 <sizepolicy> 262 <hsizetype>1</hsizetype> 263 <vsizetype>1</vsizetype> 264 </sizepolicy> 265 </property> 266 <property name="minimumSize"> 267 <size> 268 <width>0</width> 269 <height>0</height> 270 </size> 271 </property> 272 <property name="text"> 273 <string>&Select Color:</string> 274 </property> 275 <property name="buddy" stdset="0"> 276 <cstring>buttonCentral</cstring> 277 </property> 278 <property name="wordWrap"> 279 <bool>false</bool> 280 </property> 281 </widget> 282 </item> 283 <item> 284 <widget class="ColorButton" name="buttonCentral"> 285 <property name="sizePolicy"> 286 <sizepolicy> 287 <hsizetype>0</hsizetype> 288 <vsizetype>0</vsizetype> 289 </sizepolicy> 290 </property> 291 <property name="focusPolicy"> 292 <enum>Qt::TabFocus</enum> 293 </property> 294 <property name="toolTip" stdset="0"> 295 <string>Choose a color</string> 296 </property> 297 <property name="whatsThis" stdset="0"> 298 <string>Choose a color for the selected central color role.</string> 299 </property> 300 </widget> 301 </item> 302 </layout> 303 </item> 304 </layout> 305 </widget> 306 </item> 307 <item> 308 <widget class="Q3GroupBox" name="groupEffect"> 309 <property name="title"> 310 <string>3-D shadow &effects</string> 311 </property> 312 <layout class="QVBoxLayout"> 313 <property name="margin"> 314 <number>11</number> 315 </property> 316 <property name="spacing"> 317 <number>6</number> 318 </property> 319 <item> 320 <layout class="QHBoxLayout"> 321 <property name="margin"> 322 <number>0</number> 323 </property> 324 <property name="spacing"> 325 <number>6</number> 326 </property> 327 <item> 328 <widget class="QCheckBox" name="checkBuildEffect"> 329 <property name="text"> 330 <string>Build &from button color</string> 331 </property> 332 <property name="checked"> 333 <bool>true</bool> 334 </property> 335 <property name="toolTip" stdset="0"> 336 <string>Generate shadings</string> 337 </property> 338 <property name="whatsThis" stdset="0"> 339 <string>Check to let 3D-effect colors be calculated from button-color.</string> 340 </property> 341 </widget> 342 </item> 343 <item> 344 <widget class="QComboBox" name="comboEffect"> 345 <property name="toolTip" stdset="0"> 346 <string>Choose 3D-effect color role</string> 347 </property> 348 <property name="whatsThis" stdset="0"> 349 <string><b>Select a color 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> 350 </property> 351 <item> 352 <property name="text"> 353 <string>Light</string> 354 </property> 355 </item> 356 <item> 357 <property name="text"> 358 <string>Midlight</string> 359 </property> 360 </item> 361 <item> 362 <property name="text"> 363 <string>Mid</string> 364 </property> 365 </item> 366 <item> 367 <property name="text"> 368 <string>Dark</string> 369 </property> 370 </item> 371 <item> 372 <property name="text"> 373 <string>Shadow</string> 374 </property> 375 </item> 376 </widget> 377 </item> 378 </layout> 379 </item> 380 <item> 381 <layout class="QHBoxLayout"> 382 <property name="margin"> 383 <number>0</number> 384 </property> 385 <property name="spacing"> 386 <number>6</number> 387 </property> 388 <item> 389 <spacer name="Horizontal_Spacing3"> 390 <property name="sizeHint"> 391 <size> 392 <width>20</width> 393 <height>20</height> 394 </size> 395 </property> 396 <property name="sizeType"> 397 <enum>QSizePolicy::Expanding</enum> 398 </property> 399 <property name="orientation"> 400 <enum>Qt::Horizontal</enum> 401 </property> 402 </spacer> 403 </item> 404 <item> 405 <widget class="QLabel" name="labelEffect"> 406 <property name="sizePolicy"> 407 <sizepolicy> 408 <hsizetype>1</hsizetype> 409 <vsizetype>1</vsizetype> 410 </sizepolicy> 411 </property> 412 <property name="minimumSize"> 413 <size> 414 <width>0</width> 415 <height>0</height> 416 </size> 417 </property> 418 <property name="text"> 419 <string>Select Co&lor:</string> 420 </property> 421 <property name="buddy" stdset="0"> 422 <cstring>buttonEffect</cstring> 423 </property> 424 <property name="wordWrap"> 425 <bool>false</bool> 426 </property> 427 </widget> 428 </item> 429 <item> 430 <widget class="ColorButton" name="buttonEffect"> 431 <property name="sizePolicy"> 432 <sizepolicy> 433 <hsizetype>0</hsizetype> 434 <vsizetype>0</vsizetype> 435 </sizepolicy> 436 </property> 437 <property name="focusPolicy"> 438 <enum>Qt::TabFocus</enum> 439 </property> 440 <property name="toolTip" stdset="0"> 441 <string>Choose a color</string> 442 </property> 443 <property name="whatsThis" stdset="0"> 444 <string>Choose a color for the selected effect color role.</string> 445 </property> 446 </widget> 447 </item> 448 </layout> 449 </item> 450 </layout> 451 </widget> 452 </item> 453 <item> 454 <layout class="QHBoxLayout"> 455 <property name="margin"> 456 <number>0</number> 457 </property> 458 <property name="spacing"> 459 <number>6</number> 460 </property> 461 <item> 462 <spacer name="Horizontal_Spacing2"> 463 <property name="sizeHint"> 464 <size> 465 <width>20</width> 466 <height>20</height> 467 </size> 468 </property> 469 <property name="sizeType"> 470 <enum>QSizePolicy::Expanding</enum> 471 </property> 472 <property name="orientation"> 473 <enum>Qt::Horizontal</enum> 474 </property> 475 </spacer> 476 </item> 477 <item> 478 <widget class="QPushButton" name="buttonOk"> 479 <property name="text"> 480 <string>OK</string> 481 </property> 482 <property name="autoDefault"> 483 <bool>true</bool> 484 </property> 485 <property name="default"> 486 <bool>true</bool> 487 </property> 488 <property name="whatsThis" stdset="0"> 489 <string>Close dialog and apply all changes.</string> 490 </property> 491 </widget> 492 </item> 493 <item> 494 <widget class="QPushButton" name="buttonCancel"> 495 <property name="text"> 496 <string>Cancel</string> 497 </property> 498 <property name="autoDefault"> 499 <bool>true</bool> 500 </property> 501 <property name="whatsThis" stdset="0"> 502 <string>Close dialog and discard all changes.</string> 503 </property> 504 </widget> 505 </item> 506 </layout> 507 </item> 508 </layout> 509 </widget> 510 <customwidgets> 511 <customwidget> 512 <class>ColorButton</class> 513 <extends>QWidget</extends> 514 <header location="local">colorbutton.h</header> 515 <sizehint> 516 <width>40</width> 517 <height>25</height> 518 </sizehint> 519 <container>0</container> 520 <sizepolicy> 521 <hordata>5</hordata> 522 <verdata>5</verdata> 523 </sizepolicy> 524 <pixmap>image0</pixmap> 525 <properties> 526 <property type="Color">color</property> 527 <property type="Pixmap">pixmap</property> 528 </properties> 529 </customwidget> 530 </customwidgets> 531 <tabstops> 532 <tabstop>buttonOk</tabstop> 533 <tabstop>buttonCancel</tabstop> 534 <tabstop>paletteCombo</tabstop> 535 <tabstop>checkBuildInactive</tabstop> 536 <tabstop>checkBuildDisabled</tabstop> 537 <tabstop>comboCentral</tabstop> 538 <tabstop>buttonCentral</tabstop> 539 <tabstop>checkBuildEffect</tabstop> 540 <tabstop>comboEffect</tabstop> 541 <tabstop>buttonEffect</tabstop> 542 </tabstops> 543 <images> 544 <image name="image0"> 545 <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data> 546 </image> 547 </images> 548 <connections> 549 <connection> 550 <sender>buttonOk</sender> 551 <signal>clicked()</signal> 552 <receiver>PaletteEditorAdvancedBase</receiver> 553 <slot>accept()</slot> 554 </connection> 555 <connection> 556 <sender>buttonCancel</sender> 557 <signal>clicked()</signal> 558 <receiver>PaletteEditorAdvancedBase</receiver> 559 <slot>reject()</slot> 560 </connection> 561 <connection> 562 <sender>paletteCombo</sender> 563 <signal>activated(int)</signal> 564 <receiver>PaletteEditorAdvancedBase</receiver> 565 <slot>paletteSelected(int)</slot> 566 </connection> 567 <connection> 568 <sender>comboCentral</sender> 569 <signal>activated(int)</signal> 570 <receiver>PaletteEditorAdvancedBase</receiver> 571 <slot>onCentral(int)</slot> 572 </connection> 573 <connection> 574 <sender>buttonCentral</sender> 575 <signal>clicked()</signal> 576 <receiver>PaletteEditorAdvancedBase</receiver> 577 <slot>onChooseCentralColor()</slot> 578 </connection> 579 <connection> 580 <sender>buttonEffect</sender> 581 <signal>clicked()</signal> 582 <receiver>PaletteEditorAdvancedBase</receiver> 583 <slot>onChooseEffectColor()</slot> 584 </connection> 585 <connection> 586 <sender>comboEffect</sender> 587 <signal>activated(int)</signal> 588 <receiver>PaletteEditorAdvancedBase</receiver> 589 <slot>onEffect(int)</slot> 590 </connection> 591 <connection> 592 <sender>checkBuildEffect</sender> 593 <signal>toggled(bool)</signal> 594 <receiver>PaletteEditorAdvancedBase</receiver> 595 <slot>onToggleBuildEffects(bool)</slot> 596 </connection> 597 <connection> 598 <sender>checkBuildEffect</sender> 599 <signal>toggled(bool)</signal> 600 <receiver>comboEffect</receiver> 601 <slot>setDisabled(bool)</slot> 602 </connection> 603 <connection> 604 <sender>checkBuildEffect</sender> 605 <signal>toggled(bool)</signal> 606 <receiver>buttonEffect</receiver> 607 <slot>setDisabled(bool)</slot> 608 </connection> 609 <connection> 610 <sender>checkBuildInactive</sender> 611 <signal>toggled(bool)</signal> 612 <receiver>PaletteEditorAdvancedBase</receiver> 613 <slot>onToggleBuildInactive(bool)</slot> 614 </connection> 615 <connection> 616 <sender>checkBuildDisabled</sender> 617 <signal>toggled(bool)</signal> 618 <receiver>PaletteEditorAdvancedBase</receiver> 619 <slot>onToggleBuildDisabled(bool)</slot> 620 </connection> 621 </connections> 622</ui> 623