| 1 |
/* |
| 2 |
********************************************************************* |
| 3 |
** |
| 4 |
** Copyright (C) 2016 The Qt Company Ltd. |
| 5 |
** Contact: https://www.qt.io/licensing/ |
| 6 |
** |
| 7 |
** This file is part of the autotests of the Qt Toolkit. |
| 8 |
** |
| 9 |
** $QT_BEGIN_LICENSE:GPL-EXCEPT$ |
| 10 |
** Commercial License Usage |
| 11 |
** Licensees holding valid commercial Qt licenses may use this file in |
| 12 |
** accordance with the commercial license agreement provided with the |
| 13 |
** Software or, alternatively, in accordance with the terms contained in |
| 14 |
** a written agreement between you and The Qt Company. For licensing terms |
| 15 |
** and conditions see https://www.qt.io/terms-conditions. For further |
| 16 |
** information use the contact form at https://www.qt.io/contact-us. |
| 17 |
** |
| 18 |
** GNU General Public License Usage |
| 19 |
** Alternatively, this file may be used under the terms of the GNU |
| 20 |
** General Public License version 3 as published by the Free Software |
| 21 |
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT |
| 22 |
** included in the packaging of this file. Please review the following |
| 23 |
** information to ensure the GNU General Public License requirements will |
| 24 |
** be met: https://www.gnu.org/licenses/gpl-3.0.html. |
| 25 |
** |
| 26 |
** $QT_END_LICENSE$ |
| 27 |
** |
| 28 |
********************************************************************* |
| 29 |
*/ |
| 30 |
|
| 31 |
/******************************************************************************** |
| 32 |
** Form generated from reading UI file 'paletteeditor.ui' |
| 33 |
** |
| 34 |
** Created by: Qt User Interface Compiler version 5.12.0 |
| 35 |
** |
| 36 |
** WARNING! All changes made in this file will be lost when recompiling UI file! |
| 37 |
********************************************************************************/ |
| 38 |
|
| 39 |
#ifndef PALETTEEDITOR_H |
| 40 |
#define PALETTEEDITOR_H |
| 41 |
|
| 42 |
#include <QtCore/QVariant> |
| 43 |
#include <QtWidgets/QApplication> |
| 44 |
#include <QtWidgets/QDialog> |
| 45 |
#include <QtWidgets/QDialogButtonBox> |
| 46 |
#include <QtWidgets/QGridLayout> |
| 47 |
#include <QtWidgets/QGroupBox> |
| 48 |
#include <QtWidgets/QHeaderView> |
| 49 |
#include <QtWidgets/QLabel> |
| 50 |
#include <QtWidgets/QRadioButton> |
| 51 |
#include <QtWidgets/QTreeView> |
| 52 |
#include <QtWidgets/QVBoxLayout> |
| 53 |
#include "previewframe.h" |
| 54 |
#include "qtcolorbutton.h" |
| 55 |
|
| 56 |
QT_BEGIN_NAMESPACE |
| 57 |
|
| 58 |
namespace qdesigner_internal { |
| 59 |
|
| 60 |
class Ui_PaletteEditor |
| 61 |
{ |
| 62 |
public: |
| 63 |
QVBoxLayout *vboxLayout; |
| 64 |
QGroupBox *advancedBox; |
| 65 |
QGridLayout *gridLayout; |
| 66 |
QtColorButton *buildButton; |
| 67 |
QTreeView *paletteView; |
| 68 |
QRadioButton *detailsRadio; |
| 69 |
QRadioButton *computeRadio; |
| 70 |
QLabel *label; |
| 71 |
QGroupBox *GroupBox126; |
| 72 |
QGridLayout *gridLayout1; |
| 73 |
QRadioButton *disabledRadio; |
| 74 |
QRadioButton *inactiveRadio; |
| 75 |
QRadioButton *activeRadio; |
| 76 |
qdesigner_internal::PreviewFrame *previewFrame; |
| 77 |
QDialogButtonBox *buttonBox; |
| 78 |
|
| 79 |
void setupUi(QDialog *qdesigner_internal__PaletteEditor) |
| 80 |
{ |
| 81 |
if (qdesigner_internal__PaletteEditor->objectName().isEmpty()) |
| 82 |
qdesigner_internal__PaletteEditor->setObjectName(QString::fromUtf8("qdesigner_internal__PaletteEditor")); |
| 83 |
qdesigner_internal__PaletteEditor->resize(365, 409); |
| 84 |
QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
| 85 |
sizePolicy.setHorizontalStretch(0); |
| 86 |
sizePolicy.setVerticalStretch(0); |
| 87 |
sizePolicy.setHeightForWidth(qdesigner_internal__PaletteEditor->sizePolicy().hasHeightForWidth()); |
| 88 |
qdesigner_internal__PaletteEditor->setSizePolicy(sizePolicy); |
| 89 |
vboxLayout = new QVBoxLayout(qdesigner_internal__PaletteEditor); |
| 90 |
#ifndef Q_OS_MAC |
| 91 |
vboxLayout->setSpacing(6); |
| 92 |
#endif |
| 93 |
#ifndef Q_OS_MAC |
| 94 |
vboxLayout->setContentsMargins(9, 9, 9, 9); |
| 95 |
#endif |
| 96 |
vboxLayout->setObjectName(QString::fromUtf8("vboxLayout")); |
| 97 |
advancedBox = new QGroupBox(qdesigner_internal__PaletteEditor); |
| 98 |
advancedBox->setObjectName(QString::fromUtf8("advancedBox")); |
| 99 |
advancedBox->setMinimumSize(QSize(0, 0)); |
| 100 |
advancedBox->setMaximumSize(QSize(16777215, 16777215)); |
| 101 |
gridLayout = new QGridLayout(advancedBox); |
| 102 |
#ifndef Q_OS_MAC |
| 103 |
gridLayout->setSpacing(6); |
| 104 |
#endif |
| 105 |
#ifndef Q_OS_MAC |
| 106 |
gridLayout->setContentsMargins(9, 9, 9, 9); |
| 107 |
#endif |
| 108 |
gridLayout->setObjectName(QString::fromUtf8("gridLayout")); |
| 109 |
buildButton = new QtColorButton(advancedBox); |
| 110 |
buildButton->setObjectName(QString::fromUtf8("buildButton")); |
| 111 |
QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Ignored); |
| 112 |
sizePolicy1.setHorizontalStretch(0); |
| 113 |
sizePolicy1.setVerticalStretch(0); |
| 114 |
sizePolicy1.setHeightForWidth(buildButton->sizePolicy().hasHeightForWidth()); |
| 115 |
buildButton->setSizePolicy(sizePolicy1); |
| 116 |
|
| 117 |
gridLayout->addWidget(buildButton, 0, 1, 1, 1); |
| 118 |
|
| 119 |
paletteView = new QTreeView(advancedBox); |
| 120 |
paletteView->setObjectName(QString::fromUtf8("paletteView")); |
| 121 |
paletteView->setMinimumSize(QSize(0, 200)); |
| 122 |
|
| 123 |
gridLayout->addWidget(paletteView, 1, 0, 1, 4); |
| 124 |
|
| 125 |
detailsRadio = new QRadioButton(advancedBox); |
| 126 |
detailsRadio->setObjectName(QString::fromUtf8("detailsRadio")); |
| 127 |
|
| 128 |
gridLayout->addWidget(detailsRadio, 0, 3, 1, 1); |
| 129 |
|
| 130 |
computeRadio = new QRadioButton(advancedBox); |
| 131 |
computeRadio->setObjectName(QString::fromUtf8("computeRadio")); |
| 132 |
computeRadio->setChecked(true); |
| 133 |
|
| 134 |
gridLayout->addWidget(computeRadio, 0, 2, 1, 1); |
| 135 |
|
| 136 |
label = new QLabel(advancedBox); |
| 137 |
label->setObjectName(QString::fromUtf8("label")); |
| 138 |
|
| 139 |
gridLayout->addWidget(label, 0, 0, 1, 1); |
| 140 |
|
| 141 |
|
| 142 |
vboxLayout->addWidget(advancedBox); |
| 143 |
|
| 144 |
GroupBox126 = new QGroupBox(qdesigner_internal__PaletteEditor); |
| 145 |
GroupBox126->setObjectName(QString::fromUtf8("GroupBox126")); |
| 146 |
QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Expanding); |
| 147 |
sizePolicy2.setHorizontalStretch(0); |
| 148 |
sizePolicy2.setVerticalStretch(0); |
| 149 |
sizePolicy2.setHeightForWidth(GroupBox126->sizePolicy().hasHeightForWidth()); |
| 150 |
GroupBox126->setSizePolicy(sizePolicy2); |
| 151 |
gridLayout1 = new QGridLayout(GroupBox126); |
| 152 |
#ifndef Q_OS_MAC |
| 153 |
gridLayout1->setSpacing(6); |
| 154 |
#endif |
| 155 |
gridLayout1->setContentsMargins(8, 8, 8, 8); |
| 156 |
gridLayout1->setObjectName(QString::fromUtf8("gridLayout1")); |
| 157 |
disabledRadio = new QRadioButton(GroupBox126); |
| 158 |
disabledRadio->setObjectName(QString::fromUtf8("disabledRadio")); |
| 159 |
|
| 160 |
gridLayout1->addWidget(disabledRadio, 0, 2, 1, 1); |
| 161 |
|
| 162 |
inactiveRadio = new QRadioButton(GroupBox126); |
| 163 |
inactiveRadio->setObjectName(QString::fromUtf8("inactiveRadio")); |
| 164 |
|
| 165 |
gridLayout1->addWidget(inactiveRadio, 0, 1, 1, 1); |
| 166 |
|
| 167 |
activeRadio = new QRadioButton(GroupBox126); |
| 168 |
activeRadio->setObjectName(QString::fromUtf8("activeRadio")); |
| 169 |
activeRadio->setChecked(true); |
| 170 |
|
| 171 |
gridLayout1->addWidget(activeRadio, 0, 0, 1, 1); |
| 172 |
|
| 173 |
previewFrame = new qdesigner_internal::PreviewFrame(GroupBox126); |
| 174 |
previewFrame->setObjectName(QString::fromUtf8("previewFrame")); |
| 175 |
sizePolicy.setHeightForWidth(previewFrame->sizePolicy().hasHeightForWidth()); |
| 176 |
previewFrame->setSizePolicy(sizePolicy); |
| 177 |
|
| 178 |
gridLayout1->addWidget(previewFrame, 1, 0, 1, 3); |
| 179 |
|
| 180 |
|
| 181 |
vboxLayout->addWidget(GroupBox126); |
| 182 |
|
| 183 |
buttonBox = new QDialogButtonBox(qdesigner_internal__PaletteEditor); |
| 184 |
buttonBox->setObjectName(QString::fromUtf8("buttonBox")); |
| 185 |
buttonBox->setOrientation(Qt::Horizontal); |
| 186 |
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok); |
| 187 |
|
| 188 |
vboxLayout->addWidget(buttonBox); |
| 189 |
|
| 190 |
|
| 191 |
retranslateUi(qdesigner_internal__PaletteEditor); |
| 192 |
QObject::connect(buttonBox, SIGNAL(accepted()), qdesigner_internal__PaletteEditor, SLOT(accept())); |
| 193 |
QObject::connect(buttonBox, SIGNAL(rejected()), qdesigner_internal__PaletteEditor, SLOT(reject())); |
| 194 |
|
| 195 |
QMetaObject::connectSlotsByName(qdesigner_internal__PaletteEditor); |
| 196 |
} // setupUi |
| 197 |
|
| 198 |
void retranslateUi(QDialog *qdesigner_internal__PaletteEditor) |
| 199 |
{ |
| 200 |
qdesigner_internal__PaletteEditor->setWindowTitle(QCoreApplication::translate("qdesigner_internal::PaletteEditor", "Edit Palette", nullptr)); |
| 201 |
advancedBox->setTitle(QCoreApplication::translate("qdesigner_internal::PaletteEditor", "Tune Palette", nullptr)); |
| 202 |
buildButton->setText(QString()); |
| 203 |
detailsRadio->setText(QCoreApplication::translate("qdesigner_internal::PaletteEditor", "Show Details", nullptr)); |
| 204 |
computeRadio->setText(QCoreApplication::translate("qdesigner_internal::PaletteEditor", "Compute Details", nullptr)); |
| 205 |
label->setText(QCoreApplication::translate("qdesigner_internal::PaletteEditor", "Quick", nullptr)); |
| 206 |
GroupBox126->setTitle(QCoreApplication::translate("qdesigner_internal::PaletteEditor", "Preview", nullptr)); |
| 207 |
disabledRadio->setText(QCoreApplication::translate("qdesigner_internal::PaletteEditor", "Disabled", nullptr)); |
| 208 |
inactiveRadio->setText(QCoreApplication::translate("qdesigner_internal::PaletteEditor", "Inactive", nullptr)); |
| 209 |
activeRadio->setText(QCoreApplication::translate("qdesigner_internal::PaletteEditor", "Active", nullptr)); |
| 210 |
} // retranslateUi |
| 211 |
|
| 212 |
}; |
| 213 |
|
| 214 |
} // namespace qdesigner_internal |
| 215 |
|
| 216 |
namespace qdesigner_internal { |
| 217 |
namespace Ui { |
| 218 |
class PaletteEditor: public Ui_PaletteEditor {}; |
| 219 |
} // namespace Ui |
| 220 |
} // namespace qdesigner_internal |
| 221 |
|
| 222 |
QT_END_NAMESPACE |
| 223 |
|
| 224 |
#endif // PALETTEEDITOR_H |