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 Class Reference

#include <src/ckb/ui_gradientdialog.h>

+ Inheritance diagram for Ui::GradientDialog:
+ Collaboration diagram for Ui::GradientDialog:

Public Member Functions

void setupUi (QDialog *GradientDialog)
 
void retranslateUi (QDialog *GradientDialog)
 

Data Fields

QGridLayout * gridLayout
 
QSpacerItem * verticalSpacer
 
QSpacerItem * verticalSpacer_2
 
GradientDialogWidgetwidget
 
QDialogButtonBox * buttonBox
 
QGroupBox * stopBox
 
QGridLayout * gridLayout_2
 
QHBoxLayout * horizontalLayout_2
 
ColorButtonstopColor
 
QSpinBox * stopOpacity
 
QSpacerItem * horizontalSpacer_2
 
QLabel * label
 
QHBoxLayout * horizontalLayout
 
QSpinBox * stopPos
 
QSpacerItem * horizontalSpacer
 
QLabel * label_2
 
QSpacerItem * horizontalSpacer_3
 
QGroupBox * groupBox_2
 
QGridLayout * gridLayout_3
 
QListWidgetpresetList
 
QLineEdit * presetName
 
QPushButtonpresetSave
 
QPushButtonpresetDelete
 

Detailed Description

Definition at line 231 of file ui_gradientdialog.h.

Member Function Documentation

void Ui_GradientDialog::retranslateUi ( QDialog GradientDialog)
inlineinherited

Definition at line 213 of file ui_gradientdialog.h.

References Ui_GradientDialog::groupBox_2, Ui_GradientDialog::label, Ui_GradientDialog::label_2, Ui_GradientDialog::presetDelete, Ui_GradientDialog::presetName, Ui_GradientDialog::presetSave, Ui_GradientDialog::stopBox, Ui_GradientDialog::stopColor, Ui_GradientDialog::stopOpacity, and Ui_GradientDialog::stopPos.

Referenced by Ui_GradientDialog::setupUi().

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
QGroupBox * groupBox_2
QPushButton * presetSave
QLineEdit * presetName
ColorButton * stopColor
QPushButton * presetDelete

+ Here is the caller graph for this function:

void Ui_GradientDialog::setupUi ( QDialog GradientDialog)
inlineinherited

Definition at line 60 of file ui_gradientdialog.h.

References Ui_GradientDialog::buttonBox, Ui_GradientDialog::gridLayout, Ui_GradientDialog::gridLayout_2, Ui_GradientDialog::gridLayout_3, Ui_GradientDialog::groupBox_2, Ui_GradientDialog::horizontalLayout, Ui_GradientDialog::horizontalLayout_2, Ui_GradientDialog::horizontalSpacer, Ui_GradientDialog::horizontalSpacer_2, Ui_GradientDialog::horizontalSpacer_3, Ui_GradientDialog::label, Ui_GradientDialog::label_2, Ui_GradientDialog::presetDelete, Ui_GradientDialog::presetList, Ui_GradientDialog::presetName, Ui_GradientDialog::presetSave, Ui_GradientDialog::retranslateUi(), Ui_GradientDialog::stopBox, Ui_GradientDialog::stopColor, Ui_GradientDialog::stopOpacity, Ui_GradientDialog::stopPos, Ui_GradientDialog::verticalSpacer, Ui_GradientDialog::verticalSpacer_2, and Ui_GradientDialog::widget.

Referenced by GradientDialog::GradientDialog().

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
QListWidget * presetList
GradientDialogWidget * widget
QGroupBox * groupBox_2
QPushButton * presetSave
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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

QDialogButtonBox* Ui_GradientDialog::buttonBox
inherited

Definition at line 40 of file ui_gradientdialog.h.

Referenced by Ui_GradientDialog::setupUi().

QGridLayout* Ui_GradientDialog::gridLayout
inherited

Definition at line 36 of file ui_gradientdialog.h.

Referenced by Ui_GradientDialog::setupUi().

QGridLayout* Ui_GradientDialog::gridLayout_2
inherited

Definition at line 42 of file ui_gradientdialog.h.

Referenced by Ui_GradientDialog::setupUi().

QGridLayout* Ui_GradientDialog::gridLayout_3
inherited

Definition at line 54 of file ui_gradientdialog.h.

Referenced by Ui_GradientDialog::setupUi().

QGroupBox* Ui_GradientDialog::groupBox_2
inherited
QHBoxLayout* Ui_GradientDialog::horizontalLayout
inherited

Definition at line 48 of file ui_gradientdialog.h.

Referenced by Ui_GradientDialog::setupUi().

QHBoxLayout* Ui_GradientDialog::horizontalLayout_2
inherited

Definition at line 43 of file ui_gradientdialog.h.

Referenced by Ui_GradientDialog::setupUi().

QSpacerItem* Ui_GradientDialog::horizontalSpacer
inherited

Definition at line 50 of file ui_gradientdialog.h.

Referenced by Ui_GradientDialog::setupUi().

QSpacerItem* Ui_GradientDialog::horizontalSpacer_2
inherited

Definition at line 46 of file ui_gradientdialog.h.

Referenced by Ui_GradientDialog::setupUi().

QSpacerItem* Ui_GradientDialog::horizontalSpacer_3
inherited

Definition at line 52 of file ui_gradientdialog.h.

Referenced by Ui_GradientDialog::setupUi().

QLabel* Ui_GradientDialog::label
inherited
QLabel* Ui_GradientDialog::label_2
inherited
QListWidget* Ui_GradientDialog::presetList
inherited
QLineEdit* Ui_GradientDialog::presetName
inherited
QGroupBox* Ui_GradientDialog::stopBox
inherited
QSpinBox* Ui_GradientDialog::stopOpacity
inherited
QSpinBox* Ui_GradientDialog::stopPos
inherited
QSpacerItem* Ui_GradientDialog::verticalSpacer
inherited

Definition at line 37 of file ui_gradientdialog.h.

Referenced by Ui_GradientDialog::setupUi().

QSpacerItem* Ui_GradientDialog::verticalSpacer_2
inherited

Definition at line 38 of file ui_gradientdialog.h.

Referenced by Ui_GradientDialog::setupUi().


The documentation for this class was generated from the following file: