|
1 /******************************************************************************** |
|
2 ** Form generated from reading UI file 'imagedialog.ui' |
|
3 ** |
|
4 ** Created: Fri Sep 4 10:17:13 2009 |
|
5 ** by: Qt User Interface Compiler version 4.6.0 |
|
6 ** |
|
7 ** WARNING! All changes made in this file will be lost when recompiling UI file! |
|
8 ********************************************************************************/ |
|
9 |
|
10 #ifndef IMAGEDIALOG_H |
|
11 #define IMAGEDIALOG_H |
|
12 |
|
13 #include <QtCore/QVariant> |
|
14 #include <QtGui/QAction> |
|
15 #include <QtGui/QApplication> |
|
16 #include <QtGui/QButtonGroup> |
|
17 #include <QtGui/QComboBox> |
|
18 #include <QtGui/QDialog> |
|
19 #include <QtGui/QGridLayout> |
|
20 #include <QtGui/QHBoxLayout> |
|
21 #include <QtGui/QHeaderView> |
|
22 #include <QtGui/QLabel> |
|
23 #include <QtGui/QLineEdit> |
|
24 #include <QtGui/QPushButton> |
|
25 #include <QtGui/QSpacerItem> |
|
26 #include <QtGui/QSpinBox> |
|
27 #include <QtGui/QVBoxLayout> |
|
28 |
|
29 QT_BEGIN_NAMESPACE |
|
30 |
|
31 class Ui_ImageDialog |
|
32 { |
|
33 public: |
|
34 QVBoxLayout *vboxLayout; |
|
35 QGridLayout *gridLayout; |
|
36 QLabel *widthLabel; |
|
37 QLabel *heightLabel; |
|
38 QComboBox *colorDepthCombo; |
|
39 QLineEdit *nameLineEdit; |
|
40 QSpinBox *spinBox; |
|
41 QSpinBox *spinBox_2; |
|
42 QLabel *nameLabel; |
|
43 QLabel *colorDepthLabel; |
|
44 QSpacerItem *spacerItem; |
|
45 QHBoxLayout *hboxLayout; |
|
46 QSpacerItem *spacerItem1; |
|
47 QPushButton *okButton; |
|
48 QPushButton *cancelButton; |
|
49 |
|
50 void setupUi(QDialog *dialog) |
|
51 { |
|
52 if (dialog->objectName().isEmpty()) |
|
53 dialog->setObjectName(QString::fromUtf8("dialog")); |
|
54 dialog->setObjectName(QString::fromUtf8("ImageDialog")); |
|
55 dialog->resize(320, 180); |
|
56 vboxLayout = new QVBoxLayout(dialog); |
|
57 #ifndef Q_OS_MAC |
|
58 vboxLayout->setSpacing(6); |
|
59 #endif |
|
60 #ifndef Q_OS_MAC |
|
61 vboxLayout->setContentsMargins(9, 9, 9, 9); |
|
62 #endif |
|
63 vboxLayout->setObjectName(QString::fromUtf8("vboxLayout")); |
|
64 vboxLayout->setObjectName(QString::fromUtf8("")); |
|
65 gridLayout = new QGridLayout(); |
|
66 #ifndef Q_OS_MAC |
|
67 gridLayout->setSpacing(6); |
|
68 #endif |
|
69 gridLayout->setContentsMargins(1, 1, 1, 1); |
|
70 gridLayout->setObjectName(QString::fromUtf8("gridLayout")); |
|
71 gridLayout->setObjectName(QString::fromUtf8("")); |
|
72 widthLabel = new QLabel(dialog); |
|
73 widthLabel->setObjectName(QString::fromUtf8("widthLabel")); |
|
74 widthLabel->setGeometry(QRect(1, 27, 67, 22)); |
|
75 widthLabel->setFrameShape(QFrame::NoFrame); |
|
76 widthLabel->setFrameShadow(QFrame::Plain); |
|
77 widthLabel->setTextFormat(Qt::AutoText); |
|
78 |
|
79 gridLayout->addWidget(widthLabel, 1, 0, 1, 1); |
|
80 |
|
81 heightLabel = new QLabel(dialog); |
|
82 heightLabel->setObjectName(QString::fromUtf8("heightLabel")); |
|
83 heightLabel->setGeometry(QRect(1, 55, 67, 22)); |
|
84 heightLabel->setFrameShape(QFrame::NoFrame); |
|
85 heightLabel->setFrameShadow(QFrame::Plain); |
|
86 heightLabel->setTextFormat(Qt::AutoText); |
|
87 |
|
88 gridLayout->addWidget(heightLabel, 2, 0, 1, 1); |
|
89 |
|
90 colorDepthCombo = new QComboBox(dialog); |
|
91 colorDepthCombo->setObjectName(QString::fromUtf8("colorDepthCombo")); |
|
92 colorDepthCombo->setGeometry(QRect(74, 83, 227, 22)); |
|
93 QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(0)); |
|
94 sizePolicy.setHorizontalStretch(0); |
|
95 sizePolicy.setVerticalStretch(0); |
|
96 sizePolicy.setHeightForWidth(colorDepthCombo->sizePolicy().hasHeightForWidth()); |
|
97 colorDepthCombo->setSizePolicy(sizePolicy); |
|
98 colorDepthCombo->setInsertPolicy(QComboBox::InsertAtBottom); |
|
99 |
|
100 gridLayout->addWidget(colorDepthCombo, 3, 1, 1, 1); |
|
101 |
|
102 nameLineEdit = new QLineEdit(dialog); |
|
103 nameLineEdit->setObjectName(QString::fromUtf8("nameLineEdit")); |
|
104 nameLineEdit->setGeometry(QRect(74, 83, 227, 22)); |
|
105 QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(0)); |
|
106 sizePolicy1.setHorizontalStretch(1); |
|
107 sizePolicy1.setVerticalStretch(0); |
|
108 sizePolicy1.setHeightForWidth(nameLineEdit->sizePolicy().hasHeightForWidth()); |
|
109 nameLineEdit->setSizePolicy(sizePolicy1); |
|
110 nameLineEdit->setEchoMode(QLineEdit::Normal); |
|
111 |
|
112 gridLayout->addWidget(nameLineEdit, 0, 1, 1, 1); |
|
113 |
|
114 spinBox = new QSpinBox(dialog); |
|
115 spinBox->setObjectName(QString::fromUtf8("spinBox")); |
|
116 spinBox->setGeometry(QRect(74, 1, 227, 20)); |
|
117 sizePolicy.setHeightForWidth(spinBox->sizePolicy().hasHeightForWidth()); |
|
118 spinBox->setSizePolicy(sizePolicy); |
|
119 spinBox->setButtonSymbols(QAbstractSpinBox::UpDownArrows); |
|
120 spinBox->setValue(32); |
|
121 spinBox->setMaximum(1024); |
|
122 spinBox->setMinimum(1); |
|
123 |
|
124 gridLayout->addWidget(spinBox, 1, 1, 1, 1); |
|
125 |
|
126 spinBox_2 = new QSpinBox(dialog); |
|
127 spinBox_2->setObjectName(QString::fromUtf8("spinBox_2")); |
|
128 spinBox_2->setGeometry(QRect(74, 27, 227, 22)); |
|
129 sizePolicy.setHeightForWidth(spinBox_2->sizePolicy().hasHeightForWidth()); |
|
130 spinBox_2->setSizePolicy(sizePolicy); |
|
131 spinBox_2->setButtonSymbols(QAbstractSpinBox::UpDownArrows); |
|
132 spinBox_2->setValue(32); |
|
133 spinBox_2->setMaximum(1024); |
|
134 spinBox_2->setMinimum(1); |
|
135 |
|
136 gridLayout->addWidget(spinBox_2, 2, 1, 1, 1); |
|
137 |
|
138 nameLabel = new QLabel(dialog); |
|
139 nameLabel->setObjectName(QString::fromUtf8("nameLabel")); |
|
140 nameLabel->setGeometry(QRect(1, 1, 67, 20)); |
|
141 nameLabel->setFrameShape(QFrame::NoFrame); |
|
142 nameLabel->setFrameShadow(QFrame::Plain); |
|
143 nameLabel->setTextFormat(Qt::AutoText); |
|
144 |
|
145 gridLayout->addWidget(nameLabel, 0, 0, 1, 1); |
|
146 |
|
147 colorDepthLabel = new QLabel(dialog); |
|
148 colorDepthLabel->setObjectName(QString::fromUtf8("colorDepthLabel")); |
|
149 colorDepthLabel->setGeometry(QRect(1, 83, 67, 22)); |
|
150 colorDepthLabel->setFrameShape(QFrame::NoFrame); |
|
151 colorDepthLabel->setFrameShadow(QFrame::Plain); |
|
152 colorDepthLabel->setTextFormat(Qt::AutoText); |
|
153 |
|
154 gridLayout->addWidget(colorDepthLabel, 3, 0, 1, 1); |
|
155 |
|
156 |
|
157 vboxLayout->addLayout(gridLayout); |
|
158 |
|
159 spacerItem = new QSpacerItem(QSizePolicy::Minimum, QSizePolicy::Expanding); |
|
160 |
|
161 vboxLayout->addItem(spacerItem); |
|
162 |
|
163 hboxLayout = new QHBoxLayout(); |
|
164 #ifndef Q_OS_MAC |
|
165 hboxLayout->setSpacing(6); |
|
166 #endif |
|
167 hboxLayout->setContentsMargins(1, 1, 1, 1); |
|
168 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout")); |
|
169 hboxLayout->setObjectName(QString::fromUtf8("")); |
|
170 spacerItem1 = new QSpacerItem(QSizePolicy::Expanding, QSizePolicy::Minimum); |
|
171 |
|
172 hboxLayout->addItem(spacerItem1); |
|
173 |
|
174 okButton = new QPushButton(dialog); |
|
175 okButton->setObjectName(QString::fromUtf8("okButton")); |
|
176 okButton->setGeometry(QRect(135, 1, 80, 24)); |
|
177 |
|
178 hboxLayout->addWidget(okButton); |
|
179 |
|
180 cancelButton = new QPushButton(dialog); |
|
181 cancelButton->setObjectName(QString::fromUtf8("cancelButton")); |
|
182 cancelButton->setGeometry(QRect(221, 1, 80, 24)); |
|
183 |
|
184 hboxLayout->addWidget(cancelButton); |
|
185 |
|
186 |
|
187 vboxLayout->addLayout(hboxLayout); |
|
188 |
|
189 QWidget::setTabOrder(nameLineEdit, spinBox); |
|
190 QWidget::setTabOrder(spinBox, spinBox_2); |
|
191 QWidget::setTabOrder(spinBox_2, colorDepthCombo); |
|
192 QWidget::setTabOrder(colorDepthCombo, okButton); |
|
193 QWidget::setTabOrder(okButton, cancelButton); |
|
194 |
|
195 retranslateUi(dialog); |
|
196 QObject::connect(nameLineEdit, SIGNAL(returnPressed()), okButton, SLOT(animateClick())); |
|
197 |
|
198 QMetaObject::connectSlotsByName(dialog); |
|
199 } // setupUi |
|
200 |
|
201 void retranslateUi(QDialog *dialog) |
|
202 { |
|
203 dialog->setWindowTitle(QApplication::translate("ImageDialog", "Create Image", 0, QApplication::UnicodeUTF8)); |
|
204 widthLabel->setText(QApplication::translate("ImageDialog", "Width:", 0, QApplication::UnicodeUTF8)); |
|
205 heightLabel->setText(QApplication::translate("ImageDialog", "Height:", 0, QApplication::UnicodeUTF8)); |
|
206 nameLineEdit->setText(QApplication::translate("ImageDialog", "Untitled image", 0, QApplication::UnicodeUTF8)); |
|
207 nameLabel->setText(QApplication::translate("ImageDialog", "Name:", 0, QApplication::UnicodeUTF8)); |
|
208 colorDepthLabel->setText(QApplication::translate("ImageDialog", "Color depth:", 0, QApplication::UnicodeUTF8)); |
|
209 okButton->setText(QApplication::translate("ImageDialog", "OK", 0, QApplication::UnicodeUTF8)); |
|
210 cancelButton->setText(QApplication::translate("ImageDialog", "Cancel", 0, QApplication::UnicodeUTF8)); |
|
211 } // retranslateUi |
|
212 |
|
213 }; |
|
214 |
|
215 namespace Ui { |
|
216 class ImageDialog: public Ui_ImageDialog {}; |
|
217 } // namespace Ui |
|
218 |
|
219 QT_END_NAMESPACE |
|
220 |
|
221 #endif // IMAGEDIALOG_H |