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

#include <src/ckb/ui_kblightwidget.h>

+ Inheritance diagram for Ui_KbLightWidget:
+ Collaboration diagram for Ui_KbLightWidget:

Public Member Functions

void setupUi (QWidget *KbLightWidget)
 
void retranslateUi (QWidget *KbLightWidget)
 

Data Fields

QVBoxLayout * verticalLayout
 
QHBoxLayout * horizontalLayout_3
 
QLabel * label_3
 
QCheckBox * showAnimBox
 
QFrame * line_2
 
QHBoxLayout * horizontalLayout_2
 
QSpacerItem * horizontalSpacer_5
 
QGridLayout * gridLayout
 
KeyWidgetkeyWidget
 
QHBoxLayout * horizontalLayout
 
ColorButtonbgButton
 
QLabel * selLabel
 
QPushButtonanimButton
 
QSpacerItem * horizontalSpacer_6
 
QSpacerItem * verticalSpacer_2
 
QGridLayout * gridLayout_2
 
QComboBox * brightnessBox
 
QLabel * label
 
QSpacerItem * horizontalSpacer_3
 
QSpacerItem * horizontalSpacer_4
 
QSpacerItem * verticalSpacer_3
 
QLabel * label_2
 
QFrame * line
 
QWidgetwidget
 
QGridLayout * gridLayout_4
 
KbAnimWidgetanimWidget
 

Detailed Description

Definition at line 33 of file ui_kblightwidget.h.

Member Function Documentation

void Ui_KbLightWidget::retranslateUi ( QWidget KbLightWidget)
inline

Definition at line 241 of file ui_kblightwidget.h.

References animButton, bgButton, brightnessBox, label, label_2, label_3, selLabel, and showAnimBox.

Referenced by setupUi().

242  {
243  KbLightWidget->setWindowTitle(QApplication::translate("KbLightWidget", "Form", Q_NULLPTR));
244  label_3->setText(QApplication::translate("KbLightWidget", "Colors", Q_NULLPTR));
245 #ifndef QT_NO_TOOLTIP
246  showAnimBox->setToolTip(QApplication::translate("KbLightWidget", "If enabled, the same colors will be displayed here as on the keyboard. If disabled, the base colors will be shown.", Q_NULLPTR));
247 #endif // QT_NO_TOOLTIP
248  showAnimBox->setText(QApplication::translate("KbLightWidget", "Show animated", Q_NULLPTR));
249  bgButton->setText(QApplication::translate("KbLightWidget", "Change color...", Q_NULLPTR));
250  selLabel->setText(QApplication::translate("KbLightWidget", "Click to select", Q_NULLPTR));
251  animButton->setText(QApplication::translate("KbLightWidget", "New animation...", Q_NULLPTR));
252  brightnessBox->clear();
253  brightnessBox->insertItems(0, QStringList()
254  << QApplication::translate("KbLightWidget", "100%", Q_NULLPTR)
255  << QApplication::translate("KbLightWidget", "67%", Q_NULLPTR)
256  << QApplication::translate("KbLightWidget", "33%", Q_NULLPTR)
257  << QApplication::translate("KbLightWidget", "Off", Q_NULLPTR)
258  );
259  label->setText(QApplication::translate("KbLightWidget", "\342\230\274", Q_NULLPTR));
260  label_2->setText(QApplication::translate("KbLightWidget", "Animations", Q_NULLPTR));
261  } // retranslateUi
ColorButton * bgButton
QPushButton * animButton
QComboBox * brightnessBox
QCheckBox * showAnimBox

+ Here is the caller graph for this function:

void Ui_KbLightWidget::setupUi ( QWidget KbLightWidget)
inline

Definition at line 63 of file ui_kblightwidget.h.

References animButton, animWidget, bgButton, brightnessBox, gridLayout, gridLayout_2, gridLayout_4, horizontalLayout, horizontalLayout_2, horizontalLayout_3, horizontalSpacer_3, horizontalSpacer_4, horizontalSpacer_5, horizontalSpacer_6, keyWidget, label, label_2, label_3, line, line_2, retranslateUi(), selLabel, showAnimBox, verticalLayout, verticalSpacer_2, verticalSpacer_3, and widget.

Referenced by KbLightWidget::KbLightWidget().

64  {
65  if (KbLightWidget->objectName().isEmpty())
66  KbLightWidget->setObjectName(QStringLiteral("KbLightWidget"));
67  KbLightWidget->resize(632, 540);
68  KbLightWidget->setFocusPolicy(Qt::ClickFocus);
69  verticalLayout = new QVBoxLayout(KbLightWidget);
70  verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
71  verticalLayout->setContentsMargins(0, 0, 0, -1);
72  horizontalLayout_3 = new QHBoxLayout();
73  horizontalLayout_3->setObjectName(QStringLiteral("horizontalLayout_3"));
74  label_3 = new QLabel(KbLightWidget);
75  label_3->setObjectName(QStringLiteral("label_3"));
76  QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
77  sizePolicy.setHorizontalStretch(0);
78  sizePolicy.setVerticalStretch(0);
79  sizePolicy.setHeightForWidth(label_3->sizePolicy().hasHeightForWidth());
80  label_3->setSizePolicy(sizePolicy);
81  QFont font;
82  font.setBold(true);
83  font.setWeight(75);
84  label_3->setFont(font);
85 
86  horizontalLayout_3->addWidget(label_3);
87 
88  showAnimBox = new QCheckBox(KbLightWidget);
89  showAnimBox->setObjectName(QStringLiteral("showAnimBox"));
90  showAnimBox->setChecked(true);
91 
92  horizontalLayout_3->addWidget(showAnimBox);
93 
94 
96 
97  line_2 = new QFrame(KbLightWidget);
98  line_2->setObjectName(QStringLiteral("line_2"));
99  line_2->setFrameShape(QFrame::HLine);
100  line_2->setFrameShadow(QFrame::Sunken);
101 
102  verticalLayout->addWidget(line_2);
103 
104  horizontalLayout_2 = new QHBoxLayout();
105  horizontalLayout_2->setObjectName(QStringLiteral("horizontalLayout_2"));
106  horizontalSpacer_5 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
107 
109 
110  gridLayout = new QGridLayout();
111  gridLayout->setObjectName(QStringLiteral("gridLayout"));
112  keyWidget = new KeyWidget(KbLightWidget);
113  keyWidget->setObjectName(QStringLiteral("keyWidget"));
114  QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Expanding);
115  sizePolicy1.setHorizontalStretch(0);
116  sizePolicy1.setVerticalStretch(0);
117  sizePolicy1.setHeightForWidth(keyWidget->sizePolicy().hasHeightForWidth());
118  keyWidget->setSizePolicy(sizePolicy1);
119  keyWidget->setMinimumSize(QSize(100, 100));
120  keyWidget->setFocusPolicy(Qt::ClickFocus);
121 
122  gridLayout->addWidget(keyWidget, 0, 0, 1, 3);
123 
124  horizontalLayout = new QHBoxLayout();
125  horizontalLayout->setObjectName(QStringLiteral("horizontalLayout"));
126  bgButton = new ColorButton(KbLightWidget);
127  bgButton->setObjectName(QStringLiteral("bgButton"));
128  QSizePolicy sizePolicy2(QSizePolicy::Fixed, QSizePolicy::Fixed);
129  sizePolicy2.setHorizontalStretch(0);
130  sizePolicy2.setVerticalStretch(0);
131  sizePolicy2.setHeightForWidth(bgButton->sizePolicy().hasHeightForWidth());
132  bgButton->setSizePolicy(sizePolicy2);
133  bgButton->setMinimumSize(QSize(140, 0));
134  bgButton->setMaximumSize(QSize(140, 16777215));
135 
136  horizontalLayout->addWidget(bgButton);
137 
138  selLabel = new QLabel(KbLightWidget);
139  selLabel->setObjectName(QStringLiteral("selLabel"));
140  sizePolicy.setHeightForWidth(selLabel->sizePolicy().hasHeightForWidth());
141  selLabel->setSizePolicy(sizePolicy);
142  selLabel->setAlignment(Qt::AlignCenter);
143 
144  horizontalLayout->addWidget(selLabel);
145 
146  animButton = new QPushButton(KbLightWidget);
147  animButton->setObjectName(QStringLiteral("animButton"));
148  sizePolicy2.setHeightForWidth(animButton->sizePolicy().hasHeightForWidth());
149  animButton->setSizePolicy(sizePolicy2);
150  animButton->setMinimumSize(QSize(140, 0));
151  animButton->setMaximumSize(QSize(140, 16777215));
152 
153  horizontalLayout->addWidget(animButton);
154 
155 
156  gridLayout->addLayout(horizontalLayout, 1, 0, 1, 3);
157 
158 
159  horizontalLayout_2->addLayout(gridLayout);
160 
161  horizontalSpacer_6 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
162 
164 
165 
167 
168  verticalSpacer_2 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
169 
171 
172  gridLayout_2 = new QGridLayout();
173  gridLayout_2->setObjectName(QStringLiteral("gridLayout_2"));
174  brightnessBox = new QComboBox(KbLightWidget);
175  brightnessBox->setObjectName(QStringLiteral("brightnessBox"));
176  sizePolicy2.setHeightForWidth(brightnessBox->sizePolicy().hasHeightForWidth());
177  brightnessBox->setSizePolicy(sizePolicy2);
178 
179  gridLayout_2->addWidget(brightnessBox, 1, 3, 1, 1);
180 
181  label = new QLabel(KbLightWidget);
182  label->setObjectName(QStringLiteral("label"));
183  QFont font1;
184  font1.setPointSize(20);
185  label->setFont(font1);
186  label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
187 
188  gridLayout_2->addWidget(label, 1, 2, 1, 1);
189 
190  horizontalSpacer_3 = new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
191 
192  gridLayout_2->addItem(horizontalSpacer_3, 0, 4, 1, 1);
193 
194  horizontalSpacer_4 = new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
195 
196  gridLayout_2->addItem(horizontalSpacer_4, 0, 2, 1, 1);
197 
198 
199  verticalLayout->addLayout(gridLayout_2);
200 
201  verticalSpacer_3 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
202 
204 
205  label_2 = new QLabel(KbLightWidget);
206  label_2->setObjectName(QStringLiteral("label_2"));
207  label_2->setFont(font);
208 
209  verticalLayout->addWidget(label_2);
210 
211  line = new QFrame(KbLightWidget);
212  line->setObjectName(QStringLiteral("line"));
213  line->setFrameShape(QFrame::HLine);
214  line->setFrameShadow(QFrame::Sunken);
215 
216  verticalLayout->addWidget(line);
217 
218  widget = new QWidget(KbLightWidget);
219  widget->setObjectName(QStringLiteral("widget"));
220  widget->setMinimumSize(QSize(0, 170));
221  gridLayout_4 = new QGridLayout(widget);
222  gridLayout_4->setObjectName(QStringLiteral("gridLayout_4"));
223  gridLayout_4->setContentsMargins(-1, 0, -1, 0);
225  animWidget->setObjectName(QStringLiteral("animWidget"));
226 
227  gridLayout_4->addWidget(animWidget, 0, 0, 1, 1);
228 
229 
230  verticalLayout->addWidget(widget);
231 
232  QWidget::setTabOrder(showAnimBox, bgButton);
233  QWidget::setTabOrder(bgButton, animButton);
234  QWidget::setTabOrder(animButton, brightnessBox);
235 
236  retranslateUi(KbLightWidget);
237 
238  QMetaObject::connectSlotsByName(KbLightWidget);
239  } // setupUi
QGridLayout * gridLayout_2
QSpacerItem * horizontalSpacer_3
QVBoxLayout * verticalLayout
KeyWidget * keyWidget
QSpacerItem * verticalSpacer_3
QSpacerItem * horizontalSpacer_6
QHBoxLayout * horizontalLayout_2
KbAnimWidget * animWidget
void retranslateUi(QWidget *KbLightWidget)
QHBoxLayout * horizontalLayout_3
QGridLayout * gridLayout
QSpacerItem * horizontalSpacer_5
QSpacerItem * verticalSpacer_2
QSpacerItem * horizontalSpacer_4
ColorButton * bgButton
QHBoxLayout * horizontalLayout
QGridLayout * gridLayout_4
QPushButton * animButton
QComboBox * brightnessBox
QCheckBox * showAnimBox

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

QPushButton* Ui_KbLightWidget::animButton

Definition at line 48 of file ui_kblightwidget.h.

Referenced by KbLightWidget::KbLightWidget(), retranslateUi(), and setupUi().

ColorButton* Ui_KbLightWidget::bgButton
QComboBox* Ui_KbLightWidget::brightnessBox

Definition at line 52 of file ui_kblightwidget.h.

Referenced by retranslateUi(), setupUi(), and KbLightWidget::updateLight().

QGridLayout* Ui_KbLightWidget::gridLayout

Definition at line 43 of file ui_kblightwidget.h.

Referenced by setupUi().

QGridLayout* Ui_KbLightWidget::gridLayout_2

Definition at line 51 of file ui_kblightwidget.h.

Referenced by setupUi().

QGridLayout* Ui_KbLightWidget::gridLayout_4

Definition at line 60 of file ui_kblightwidget.h.

Referenced by setupUi().

QHBoxLayout* Ui_KbLightWidget::horizontalLayout

Definition at line 45 of file ui_kblightwidget.h.

Referenced by setupUi().

QHBoxLayout* Ui_KbLightWidget::horizontalLayout_2

Definition at line 41 of file ui_kblightwidget.h.

Referenced by setupUi().

QHBoxLayout* Ui_KbLightWidget::horizontalLayout_3

Definition at line 37 of file ui_kblightwidget.h.

Referenced by setupUi().

QSpacerItem* Ui_KbLightWidget::horizontalSpacer_3

Definition at line 54 of file ui_kblightwidget.h.

Referenced by setupUi().

QSpacerItem* Ui_KbLightWidget::horizontalSpacer_4

Definition at line 55 of file ui_kblightwidget.h.

Referenced by setupUi().

QSpacerItem* Ui_KbLightWidget::horizontalSpacer_5

Definition at line 42 of file ui_kblightwidget.h.

Referenced by setupUi().

QSpacerItem* Ui_KbLightWidget::horizontalSpacer_6

Definition at line 49 of file ui_kblightwidget.h.

Referenced by setupUi().

QLabel* Ui_KbLightWidget::label

Definition at line 53 of file ui_kblightwidget.h.

Referenced by retranslateUi(), and setupUi().

QLabel* Ui_KbLightWidget::label_2

Definition at line 57 of file ui_kblightwidget.h.

Referenced by retranslateUi(), and setupUi().

QLabel* Ui_KbLightWidget::label_3

Definition at line 38 of file ui_kblightwidget.h.

Referenced by retranslateUi(), and setupUi().

QFrame* Ui_KbLightWidget::line

Definition at line 58 of file ui_kblightwidget.h.

Referenced by setupUi().

QFrame* Ui_KbLightWidget::line_2

Definition at line 40 of file ui_kblightwidget.h.

Referenced by setupUi().

QLabel* Ui_KbLightWidget::selLabel

Definition at line 47 of file ui_kblightwidget.h.

Referenced by KbLightWidget::newSelection(), retranslateUi(), and setupUi().

QCheckBox* Ui_KbLightWidget::showAnimBox
QVBoxLayout* Ui_KbLightWidget::verticalLayout

Definition at line 36 of file ui_kblightwidget.h.

Referenced by setupUi().

QSpacerItem* Ui_KbLightWidget::verticalSpacer_2

Definition at line 50 of file ui_kblightwidget.h.

Referenced by setupUi().

QSpacerItem* Ui_KbLightWidget::verticalSpacer_3

Definition at line 56 of file ui_kblightwidget.h.

Referenced by setupUi().

QWidget* Ui_KbLightWidget::widget

Definition at line 59 of file ui_kblightwidget.h.

Referenced by setupUi().


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