ckb-next  v0.2.8 at branch master
ckb-next driver for corsair devices
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ui_gradientdialog.h
Go to the documentation of this file.
1 /********************************************************************************
2 ** Form generated from reading UI file 'gradientdialog.ui'
3 **
4 ** Created by: Qt User Interface Compiler version 5.7.1
5 **
6 ** WARNING! All changes made in this file will be lost when recompiling UI file!
7 ********************************************************************************/
8 
9 #ifndef UI_GRADIENTDIALOG_H
10 #define UI_GRADIENTDIALOG_H
11 
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>
28 #include "colorbutton.h"
29 #include "gradientdialogwidget.h"
30 
31 QT_BEGIN_NAMESPACE
32 
34 {
35 public:
36  QGridLayout *gridLayout;
37  QSpacerItem *verticalSpacer;
38  QSpacerItem *verticalSpacer_2;
40  QDialogButtonBox *buttonBox;
41  QGroupBox *stopBox;
42  QGridLayout *gridLayout_2;
43  QHBoxLayout *horizontalLayout_2;
45  QSpinBox *stopOpacity;
46  QSpacerItem *horizontalSpacer_2;
47  QLabel *label;
48  QHBoxLayout *horizontalLayout;
49  QSpinBox *stopPos;
50  QSpacerItem *horizontalSpacer;
51  QLabel *label_2;
52  QSpacerItem *horizontalSpacer_3;
53  QGroupBox *groupBox_2;
54  QGridLayout *gridLayout_3;
56  QLineEdit *presetName;
59 
61  {
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);
68  gridLayout = new QGridLayout(GradientDialog);
69  gridLayout->setObjectName(QStringLiteral("gridLayout"));
70  verticalSpacer = new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);
71 
72  gridLayout->addItem(verticalSpacer, 1, 0, 1, 1);
73 
74  verticalSpacer_2 = new QSpacerItem(0, 15, QSizePolicy::Minimum, QSizePolicy::Fixed);
75 
76  gridLayout->addItem(verticalSpacer_2, 3, 0, 1, 1);
77 
78  widget = new GradientDialogWidget(GradientDialog);
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));
87 
88  gridLayout->addWidget(widget, 2, 0, 1, 1);
89 
90  buttonBox = new QDialogButtonBox(GradientDialog);
91  buttonBox->setObjectName(QStringLiteral("buttonBox"));
92  buttonBox->setOrientation(Qt::Horizontal);
93  buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
94 
95  gridLayout->addWidget(buttonBox, 5, 0, 1, 1);
96 
97  stopBox = new QGroupBox(GradientDialog);
98  stopBox->setObjectName(QStringLiteral("stopBox"));
99  sizePolicy.setHeightForWidth(stopBox->sizePolicy().hasHeightForWidth());
100  stopBox->setSizePolicy(sizePolicy);
101  gridLayout_2 = new QGridLayout(stopBox);
102  gridLayout_2->setObjectName(QStringLiteral("gridLayout_2"));
103  horizontalLayout_2 = new QHBoxLayout();
104  horizontalLayout_2->setObjectName(QStringLiteral("horizontalLayout_2"));
106  stopColor->setObjectName(QStringLiteral("stopColor"));
107 
108  horizontalLayout_2->addWidget(stopColor);
109 
110  stopOpacity = new QSpinBox(stopBox);
111  stopOpacity->setObjectName(QStringLiteral("stopOpacity"));
112  stopOpacity->setMaximum(100);
113 
114  horizontalLayout_2->addWidget(stopOpacity);
115 
116  horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
117 
119 
120 
121  gridLayout_2->addLayout(horizontalLayout_2, 1, 2, 1, 1);
122 
123  label = new QLabel(stopBox);
124  label->setObjectName(QStringLiteral("label"));
125 
126  gridLayout_2->addWidget(label, 0, 0, 1, 1);
127 
128  horizontalLayout = new QHBoxLayout();
129  horizontalLayout->setObjectName(QStringLiteral("horizontalLayout"));
130  stopPos = new QSpinBox(stopBox);
131  stopPos->setObjectName(QStringLiteral("stopPos"));
132  stopPos->setMaximum(100);
133 
134  horizontalLayout->addWidget(stopPos);
135 
136  horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
137 
139 
140 
141  gridLayout_2->addLayout(horizontalLayout, 0, 2, 1, 1);
142 
143  label_2 = new QLabel(stopBox);
144  label_2->setObjectName(QStringLiteral("label_2"));
145 
146  gridLayout_2->addWidget(label_2, 1, 0, 1, 1);
147 
148  horizontalSpacer_3 = new QSpacerItem(10, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
149 
150  gridLayout_2->addItem(horizontalSpacer_3, 0, 1, 1, 1);
151 
152 
153  gridLayout->addWidget(stopBox, 4, 0, 1, 1);
154 
155  groupBox_2 = new QGroupBox(GradientDialog);
156  groupBox_2->setObjectName(QStringLiteral("groupBox_2"));
157  sizePolicy.setHeightForWidth(groupBox_2->sizePolicy().hasHeightForWidth());
158  groupBox_2->setSizePolicy(sizePolicy);
159  gridLayout_3 = new QGridLayout(groupBox_2);
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());
167  presetList->setSizePolicy(sizePolicy1);
168  presetList->setFrameShadow(QFrame::Plain);
169  presetList->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
170  presetList->setIconSize(QSize(64, 64));
171  presetList->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
172  presetList->setFlow(QListView::TopToBottom);
173  presetList->setViewMode(QListView::IconMode);
174  presetList->setUniformItemSizes(true);
175 
176  gridLayout_3->addWidget(presetList, 0, 0, 3, 1);
177 
178  presetName = new QLineEdit(groupBox_2);
179  presetName->setObjectName(QStringLiteral("presetName"));
180  presetName->setMaxLength(30);
181 
182  gridLayout_3->addWidget(presetName, 0, 1, 1, 1);
183 
185  presetSave->setObjectName(QStringLiteral("presetSave"));
186  presetSave->setAutoDefault(false);
187 
188  gridLayout_3->addWidget(presetSave, 1, 1, 1, 1);
189 
191  presetDelete->setObjectName(QStringLiteral("presetDelete"));
192  presetDelete->setAutoDefault(false);
193 
194  gridLayout_3->addWidget(presetDelete, 2, 1, 1, 1);
195 
196 
197  gridLayout->addWidget(groupBox_2, 0, 0, 1, 1);
198 
199  QWidget::setTabOrder(presetList, presetName);
200  QWidget::setTabOrder(presetName, presetSave);
201  QWidget::setTabOrder(presetSave, presetDelete);
202  QWidget::setTabOrder(presetDelete, stopPos);
203  QWidget::setTabOrder(stopPos, stopColor);
204  QWidget::setTabOrder(stopColor, stopOpacity);
205 
206  retranslateUi(GradientDialog);
207  QObject::connect(buttonBox, SIGNAL(accepted()), GradientDialog, SLOT(accept()));
208  QObject::connect(buttonBox, SIGNAL(rejected()), GradientDialog, SLOT(reject()));
209 
210  QMetaObject::connectSlotsByName(GradientDialog);
211  } // setupUi
212 
214  {
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));
226  } // retranslateUi
227 
228 };
229 
230 namespace Ui {
232 } // namespace Ui
233 
234 QT_END_NAMESPACE
235 
236 #endif // UI_GRADIENTDIALOG_H
QListWidget * presetList
GradientDialogWidget * widget
QGroupBox * groupBox_2
QPushButton * presetSave
void setupUi(QDialog *GradientDialog)
QLineEdit * presetName
QHBoxLayout * horizontalLayout_2
QGridLayout * gridLayout_2
ColorButton * stopColor
QSpacerItem * horizontalSpacer
QSpacerItem * verticalSpacer_2
QSpacerItem * horizontalSpacer_3
QPushButton * presetDelete
QGridLayout * gridLayout
QGridLayout * gridLayout_3
void retranslateUi(QDialog *GradientDialog)
QSpacerItem * verticalSpacer
QHBoxLayout * horizontalLayout
QDialogButtonBox * buttonBox
QSpacerItem * horizontalSpacer_2