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