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