9 #ifndef UI_GRADIENTDIALOG_H
10 #define UI_GRADIENTDIALOG_H
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QAction>
14 #include <QtWidgets/QApplication>
15 #include <QtWidgets/QButtonGroup>
16 #include <QtWidgets/QDialog>
17 #include <QtWidgets/QDialogButtonBox>
18 #include <QtWidgets/QGridLayout>
19 #include <QtWidgets/QGroupBox>
20 #include <QtWidgets/QHBoxLayout>
21 #include <QtWidgets/QHeaderView>
22 #include <QtWidgets/QLabel>
23 #include <QtWidgets/QLineEdit>
24 #include <QtWidgets/QListWidget>
25 #include <QtWidgets/QPushButton>
26 #include <QtWidgets/QSpacerItem>
27 #include <QtWidgets/QSpinBox>
62 if (GradientDialog->objectName().isEmpty())
63 GradientDialog->setObjectName(QStringLiteral(
"GradientDialog"));
64 GradientDialog->resize(400, 440);
65 GradientDialog->setMinimumSize(QSize(400, 440));
66 GradientDialog->setMaximumSize(QSize(400, 440));
67 GradientDialog->setFocusPolicy(Qt::ClickFocus);
69 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
70 verticalSpacer =
new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);
74 verticalSpacer_2 =
new QSpacerItem(0, 15, QSizePolicy::Minimum, QSizePolicy::Fixed);
79 widget->setObjectName(QStringLiteral(
"widget"));
80 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
81 sizePolicy.setHorizontalStretch(0);
82 sizePolicy.setVerticalStretch(0);
83 sizePolicy.setHeightForWidth(
widget->sizePolicy().hasHeightForWidth());
84 widget->setSizePolicy(sizePolicy);
85 widget->setMinimumSize(QSize(0, 74));
86 widget->setMaximumSize(QSize(16777215, 74));
90 buttonBox =
new QDialogButtonBox(GradientDialog);
91 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
92 buttonBox->setOrientation(Qt::Horizontal);
93 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
97 stopBox =
new QGroupBox(GradientDialog);
98 stopBox->setObjectName(QStringLiteral(
"stopBox"));
99 sizePolicy.setHeightForWidth(
stopBox->sizePolicy().hasHeightForWidth());
100 stopBox->setSizePolicy(sizePolicy);
102 gridLayout_2->setObjectName(QStringLiteral(
"gridLayout_2"));
106 stopColor->setObjectName(QStringLiteral(
"stopColor"));
111 stopOpacity->setObjectName(QStringLiteral(
"stopOpacity"));
116 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
124 label->setObjectName(QStringLiteral(
"label"));
131 stopPos->setObjectName(QStringLiteral(
"stopPos"));
136 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
144 label_2->setObjectName(QStringLiteral(
"label_2"));
148 horizontalSpacer_3 =
new QSpacerItem(10, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
156 groupBox_2->setObjectName(QStringLiteral(
"groupBox_2"));
157 sizePolicy.setHeightForWidth(
groupBox_2->sizePolicy().hasHeightForWidth());
160 gridLayout_3->setObjectName(QStringLiteral(
"gridLayout_3"));
162 presetList->setObjectName(QStringLiteral(
"presetList"));
163 QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Preferred);
164 sizePolicy1.setHorizontalStretch(0);
165 sizePolicy1.setVerticalStretch(0);
166 sizePolicy1.setHeightForWidth(
presetList->sizePolicy().hasHeightForWidth());
169 presetList->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
171 presetList->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
179 presetName->setObjectName(QStringLiteral(
"presetName"));
185 presetSave->setObjectName(QStringLiteral(
"presetSave"));
191 presetDelete->setObjectName(QStringLiteral(
"presetDelete"));
207 QObject::connect(
buttonBox, SIGNAL(accepted()), GradientDialog, SLOT(accept()));
208 QObject::connect(
buttonBox, SIGNAL(rejected()), GradientDialog, SLOT(reject()));
210 QMetaObject::connectSlotsByName(GradientDialog);
215 GradientDialog->setWindowTitle(QApplication::translate(
"GradientDialog",
"Pick Gradient", Q_NULLPTR));
216 stopBox->setTitle(QApplication::translate(
"GradientDialog",
"Point X of Y", Q_NULLPTR));
217 stopColor->setText(QApplication::translate(
"GradientDialog",
"Pick Color...", Q_NULLPTR));
218 stopOpacity->setSuffix(QApplication::translate(
"GradientDialog",
"%", Q_NULLPTR));
219 label->setText(QApplication::translate(
"GradientDialog",
"Position:", Q_NULLPTR));
220 stopPos->setSuffix(QApplication::translate(
"GradientDialog",
"%", Q_NULLPTR));
221 label_2->setText(QApplication::translate(
"GradientDialog",
"Color:", Q_NULLPTR));
222 groupBox_2->setTitle(QApplication::translate(
"GradientDialog",
"Presets", Q_NULLPTR));
223 presetName->setPlaceholderText(QApplication::translate(
"GradientDialog",
"Name", Q_NULLPTR));
224 presetSave->setText(QApplication::translate(
"GradientDialog",
"Save", Q_NULLPTR));
225 presetDelete->setText(QApplication::translate(
"GradientDialog",
"Delete", Q_NULLPTR));
236 #endif // UI_GRADIENTDIALOG_H
GradientDialogWidget * widget
void setupUi(QDialog *GradientDialog)
QHBoxLayout * horizontalLayout_2
QGridLayout * gridLayout_2
QSpacerItem * horizontalSpacer
QSpacerItem * verticalSpacer_2
QSpacerItem * horizontalSpacer_3
QPushButton * presetDelete
QGridLayout * gridLayout_3
void retranslateUi(QDialog *GradientDialog)
QSpacerItem * verticalSpacer
QHBoxLayout * horizontalLayout
QDialogButtonBox * buttonBox
QSpacerItem * horizontalSpacer_2