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

#include <src/ckb/ui_kbwidget.h>

+ Inheritance diagram for Ui_KbWidget:
+ Collaboration diagram for Ui_KbWidget:

Public Member Functions

void setupUi (QWidget *KbWidget)
 
void retranslateUi (QWidget *KbWidget)
 

Data Fields

QGridLayout * gridLayout
 
QComboBox * profileBox
 
QTabWidget * tabWidget
 
QWidgetlightTab
 
QGridLayout * gridLayout_2
 
KbLightWidgetlightWidget
 
QLabel * label_3
 
QWidgetbindTab
 
QGridLayout * gridLayout_5
 
KbBindWidgetbindWidget
 
QWidgetkPerfTab
 
QGridLayout * gridLayout_4
 
KPerfWidgetkPerfWidget
 
QWidgetmPerfTab
 
QGridLayout * gridLayout_7
 
MPerfWidgetmPerfWidget
 
QWidgetdevTab
 
QGridLayout * gridLayout_3
 
QLabel * fwUpdLabel
 
QSpacerItem * verticalSpacer
 
QLabel * fwLabel
 
QLabel * label_4
 
QSpacerItem * horizontalSpacer_2
 
QLabel * label_9
 
QLabel * serialLabel
 
QHBoxLayout * fwUpdLayout
 
QPushButtonfwUpdButton
 
QSpacerItem * horizontalSpacer_3
 
QLabel * pollLabel2
 
QLabel * pollLabel
 
RListWidgetmodesList
 
QPushButtonhwSaveButton
 

Detailed Description

Definition at line 33 of file ui_kbwidget.h.

Member Function Documentation

void Ui_KbWidget::retranslateUi ( QWidget KbWidget)
inline

Definition at line 268 of file ui_kbwidget.h.

References bindTab, devTab, fwLabel, fwUpdButton, fwUpdLabel, hwSaveButton, kPerfTab, label_3, label_4, label_9, lightTab, mPerfTab, pollLabel, pollLabel2, serialLabel, and tabWidget.

Referenced by setupUi().

269  {
270  KbWidget->setWindowTitle(QApplication::translate("KbWidget", "Form", Q_NULLPTR));
271  label_3->setText(QApplication::translate("KbWidget", "Tip: Drag+drop items to reorder. Right-click for menu.", Q_NULLPTR));
272  tabWidget->setTabText(tabWidget->indexOf(lightTab), QApplication::translate("KbWidget", "Lighting", Q_NULLPTR));
273  tabWidget->setTabText(tabWidget->indexOf(bindTab), QApplication::translate("KbWidget", "Binding", Q_NULLPTR));
274  tabWidget->setTabText(tabWidget->indexOf(kPerfTab), QApplication::translate("KbWidget", "Performance", Q_NULLPTR));
275  tabWidget->setTabText(tabWidget->indexOf(mPerfTab), QApplication::translate("KbWidget", "Performance", Q_NULLPTR));
276  fwUpdLabel->setText(QApplication::translate("KbWidget", "Status:", Q_NULLPTR));
277  fwLabel->setText(QApplication::translate("KbWidget", "N/A", Q_NULLPTR));
278  label_4->setText(QApplication::translate("KbWidget", "Serial Number:", Q_NULLPTR));
279  label_9->setText(QApplication::translate("KbWidget", "Firmware version:", Q_NULLPTR));
280  serialLabel->setText(QApplication::translate("KbWidget", "N/A", Q_NULLPTR));
281  fwUpdButton->setText(QApplication::translate("KbWidget", "Check for updates", Q_NULLPTR));
282  pollLabel2->setText(QApplication::translate("KbWidget", "Poll rate:", Q_NULLPTR));
283  pollLabel->setText(QApplication::translate("KbWidget", "N/A", Q_NULLPTR));
284  tabWidget->setTabText(tabWidget->indexOf(devTab), QApplication::translate("KbWidget", "Device", Q_NULLPTR));
285  hwSaveButton->setText(QApplication::translate("KbWidget", "Save to hardware", Q_NULLPTR));
286  } // retranslateUi
QPushButton * fwUpdButton
Definition: ui_kbwidget.h:62
QWidget * bindTab
Definition: ui_kbwidget.h:43
QWidget * kPerfTab
Definition: ui_kbwidget.h:46
QLabel * label_4
Definition: ui_kbwidget.h:57
QLabel * serialLabel
Definition: ui_kbwidget.h:60
QWidget * mPerfTab
Definition: ui_kbwidget.h:49
QPushButton * hwSaveButton
Definition: ui_kbwidget.h:67
QLabel * fwUpdLabel
Definition: ui_kbwidget.h:54
QLabel * fwLabel
Definition: ui_kbwidget.h:56
QLabel * label_3
Definition: ui_kbwidget.h:42
QLabel * pollLabel
Definition: ui_kbwidget.h:65
QWidget * lightTab
Definition: ui_kbwidget.h:39
QTabWidget * tabWidget
Definition: ui_kbwidget.h:38
QWidget * devTab
Definition: ui_kbwidget.h:52
QLabel * pollLabel2
Definition: ui_kbwidget.h:64
QLabel * label_9
Definition: ui_kbwidget.h:59

+ Here is the caller graph for this function:

void Ui_KbWidget::setupUi ( QWidget KbWidget)
inline

Definition at line 69 of file ui_kbwidget.h.

References bindTab, bindWidget, devTab, fwLabel, fwUpdButton, fwUpdLabel, fwUpdLayout, gridLayout, gridLayout_2, gridLayout_3, gridLayout_4, gridLayout_5, gridLayout_7, horizontalSpacer_2, horizontalSpacer_3, hwSaveButton, kPerfTab, kPerfWidget, label_3, label_4, label_9, lightTab, lightWidget, modesList, mPerfTab, mPerfWidget, pollLabel, pollLabel2, profileBox, retranslateUi(), serialLabel, tabWidget, and verticalSpacer.

Referenced by KbWidget::KbWidget().

70  {
71  if (KbWidget->objectName().isEmpty())
72  KbWidget->setObjectName(QStringLiteral("KbWidget"));
73  KbWidget->resize(773, 539);
74  gridLayout = new QGridLayout(KbWidget);
75  gridLayout->setSpacing(9);
76  gridLayout->setObjectName(QStringLiteral("gridLayout"));
77  gridLayout->setContentsMargins(9, -1, 9, 9);
78  profileBox = new QComboBox(KbWidget);
79  profileBox->setObjectName(QStringLiteral("profileBox"));
80  QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
81  sizePolicy.setHorizontalStretch(18);
82  sizePolicy.setVerticalStretch(0);
83  sizePolicy.setHeightForWidth(profileBox->sizePolicy().hasHeightForWidth());
84  profileBox->setSizePolicy(sizePolicy);
85  profileBox->setIconSize(QSize(24, 24));
86 
87  gridLayout->addWidget(profileBox, 0, 0, 1, 1);
88 
89  tabWidget = new QTabWidget(KbWidget);
90  tabWidget->setObjectName(QStringLiteral("tabWidget"));
91  QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Expanding);
92  sizePolicy1.setHorizontalStretch(82);
93  sizePolicy1.setVerticalStretch(0);
94  sizePolicy1.setHeightForWidth(tabWidget->sizePolicy().hasHeightForWidth());
95  tabWidget->setSizePolicy(sizePolicy1);
96  lightTab = new QWidget();
97  lightTab->setObjectName(QStringLiteral("lightTab"));
98  gridLayout_2 = new QGridLayout(lightTab);
99  gridLayout_2->setObjectName(QStringLiteral("gridLayout_2"));
100  gridLayout_2->setHorizontalSpacing(0);
101  gridLayout_2->setVerticalSpacing(6);
102  gridLayout_2->setContentsMargins(6, 6, 6, 6);
104  lightWidget->setObjectName(QStringLiteral("lightWidget"));
105  QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Expanding);
106  sizePolicy2.setHorizontalStretch(0);
107  sizePolicy2.setVerticalStretch(0);
108  sizePolicy2.setHeightForWidth(lightWidget->sizePolicy().hasHeightForWidth());
109  lightWidget->setSizePolicy(sizePolicy2);
110 
111  gridLayout_2->addWidget(lightWidget, 0, 0, 1, 1);
112 
113  label_3 = new QLabel(lightTab);
114  label_3->setObjectName(QStringLiteral("label_3"));
115  QSizePolicy sizePolicy3(QSizePolicy::Preferred, QSizePolicy::Minimum);
116  sizePolicy3.setHorizontalStretch(0);
117  sizePolicy3.setVerticalStretch(0);
118  sizePolicy3.setHeightForWidth(label_3->sizePolicy().hasHeightForWidth());
119  label_3->setSizePolicy(sizePolicy3);
120 
121  gridLayout_2->addWidget(label_3, 1, 0, 1, 1);
122 
123  tabWidget->addTab(lightTab, QString());
124  bindTab = new QWidget();
125  bindTab->setObjectName(QStringLiteral("bindTab"));
126  gridLayout_5 = new QGridLayout(bindTab);
127  gridLayout_5->setSpacing(0);
128  gridLayout_5->setObjectName(QStringLiteral("gridLayout_5"));
129  gridLayout_5->setContentsMargins(6, 6, 6, 6);
131  bindWidget->setObjectName(QStringLiteral("bindWidget"));
132  sizePolicy2.setHeightForWidth(bindWidget->sizePolicy().hasHeightForWidth());
133  bindWidget->setSizePolicy(sizePolicy2);
134 
135  gridLayout_5->addWidget(bindWidget, 0, 0, 1, 1);
136 
137  tabWidget->addTab(bindTab, QString());
138  kPerfTab = new QWidget();
139  kPerfTab->setObjectName(QStringLiteral("kPerfTab"));
140  gridLayout_4 = new QGridLayout(kPerfTab);
141  gridLayout_4->setObjectName(QStringLiteral("gridLayout_4"));
142  gridLayout_4->setContentsMargins(6, 6, 6, 6);
144  kPerfWidget->setObjectName(QStringLiteral("kPerfWidget"));
145 
146  gridLayout_4->addWidget(kPerfWidget, 0, 0, 1, 1);
147 
148  tabWidget->addTab(kPerfTab, QString());
149  mPerfTab = new QWidget();
150  mPerfTab->setObjectName(QStringLiteral("mPerfTab"));
151  gridLayout_7 = new QGridLayout(mPerfTab);
152  gridLayout_7->setObjectName(QStringLiteral("gridLayout_7"));
153  gridLayout_7->setContentsMargins(6, 6, 6, 6);
155  mPerfWidget->setObjectName(QStringLiteral("mPerfWidget"));
156 
157  gridLayout_7->addWidget(mPerfWidget, 0, 0, 1, 1);
158 
159  tabWidget->addTab(mPerfTab, QString());
160  devTab = new QWidget();
161  devTab->setObjectName(QStringLiteral("devTab"));
162  gridLayout_3 = new QGridLayout(devTab);
163  gridLayout_3->setObjectName(QStringLiteral("gridLayout_3"));
164  gridLayout_3->setContentsMargins(6, 6, 6, 6);
165  fwUpdLabel = new QLabel(devTab);
166  fwUpdLabel->setObjectName(QStringLiteral("fwUpdLabel"));
167  fwUpdLabel->setMinimumSize(QSize(0, 34));
168 
169  gridLayout_3->addWidget(fwUpdLabel, 4, 0, 1, 1);
170 
171  verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
172 
173  gridLayout_3->addItem(verticalSpacer, 6, 2, 1, 1);
174 
175  fwLabel = new QLabel(devTab);
176  fwLabel->setObjectName(QStringLiteral("fwLabel"));
177  fwLabel->setCursor(QCursor(Qt::IBeamCursor));
178  fwLabel->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse);
179 
180  gridLayout_3->addWidget(fwLabel, 2, 2, 1, 1);
181 
182  label_4 = new QLabel(devTab);
183  label_4->setObjectName(QStringLiteral("label_4"));
184  label_4->setMinimumSize(QSize(0, 34));
185 
186  gridLayout_3->addWidget(label_4, 0, 0, 1, 1);
187 
188  horizontalSpacer_2 = new QSpacerItem(40, 1, QSizePolicy::Fixed, QSizePolicy::Minimum);
189 
190  gridLayout_3->addItem(horizontalSpacer_2, 2, 1, 1, 1);
191 
192  label_9 = new QLabel(devTab);
193  label_9->setObjectName(QStringLiteral("label_9"));
194  label_9->setMinimumSize(QSize(0, 34));
195 
196  gridLayout_3->addWidget(label_9, 2, 0, 1, 1);
197 
198  serialLabel = new QLabel(devTab);
199  serialLabel->setObjectName(QStringLiteral("serialLabel"));
200  serialLabel->setCursor(QCursor(Qt::IBeamCursor));
201  serialLabel->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse);
202 
203  gridLayout_3->addWidget(serialLabel, 0, 2, 1, 1);
204 
205  fwUpdLayout = new QHBoxLayout();
206  fwUpdLayout->setObjectName(QStringLiteral("fwUpdLayout"));
208  fwUpdButton->setObjectName(QStringLiteral("fwUpdButton"));
209 
210  fwUpdLayout->addWidget(fwUpdButton);
211 
212  horizontalSpacer_3 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
213 
215 
216 
217  gridLayout_3->addLayout(fwUpdLayout, 4, 2, 1, 1);
218 
219  pollLabel2 = new QLabel(devTab);
220  pollLabel2->setObjectName(QStringLiteral("pollLabel2"));
221  pollLabel2->setMinimumSize(QSize(0, 34));
222 
223  gridLayout_3->addWidget(pollLabel2, 1, 0, 1, 1);
224 
225  pollLabel = new QLabel(devTab);
226  pollLabel->setObjectName(QStringLiteral("pollLabel"));
227 
228  gridLayout_3->addWidget(pollLabel, 1, 2, 1, 1);
229 
230  tabWidget->addTab(devTab, QString());
231 
232  gridLayout->addWidget(tabWidget, 0, 1, 3, 1);
233 
234  modesList = new RListWidget(KbWidget);
235  modesList->setObjectName(QStringLiteral("modesList"));
236  QSizePolicy sizePolicy4(QSizePolicy::Expanding, QSizePolicy::Expanding);
237  sizePolicy4.setHorizontalStretch(18);
238  sizePolicy4.setVerticalStretch(0);
239  sizePolicy4.setHeightForWidth(modesList->sizePolicy().hasHeightForWidth());
240  modesList->setSizePolicy(sizePolicy4);
241  modesList->setContextMenuPolicy(Qt::CustomContextMenu);
242  modesList->setFrameShadow(QFrame::Plain);
243  modesList->setDragDropMode(QAbstractItemView::InternalMove);
244  modesList->setIconSize(QSize(24, 24));
245  modesList->setMovement(QListView::Snap);
246 
247  gridLayout->addWidget(modesList, 1, 0, 1, 1);
248 
249  hwSaveButton = new QPushButton(KbWidget);
250  hwSaveButton->setObjectName(QStringLiteral("hwSaveButton"));
251  QSizePolicy sizePolicy5(QSizePolicy::Minimum, QSizePolicy::Fixed);
252  sizePolicy5.setHorizontalStretch(18);
253  sizePolicy5.setVerticalStretch(0);
254  sizePolicy5.setHeightForWidth(hwSaveButton->sizePolicy().hasHeightForWidth());
255  hwSaveButton->setSizePolicy(sizePolicy5);
256 
257  gridLayout->addWidget(hwSaveButton, 2, 0, 1, 1);
258 
259 
260  retranslateUi(KbWidget);
261 
262  tabWidget->setCurrentIndex(0);
263 
264 
265  QMetaObject::connectSlotsByName(KbWidget);
266  } // setupUi
QPushButton * fwUpdButton
Definition: ui_kbwidget.h:62
QHBoxLayout * fwUpdLayout
Definition: ui_kbwidget.h:61
KbBindWidget * bindWidget
Definition: ui_kbwidget.h:45
QWidget * bindTab
Definition: ui_kbwidget.h:43
QWidget * kPerfTab
Definition: ui_kbwidget.h:46
RListWidget * modesList
Definition: ui_kbwidget.h:66
QGridLayout * gridLayout_5
Definition: ui_kbwidget.h:44
QGridLayout * gridLayout_7
Definition: ui_kbwidget.h:50
QGridLayout * gridLayout
Definition: ui_kbwidget.h:36
QLabel * label_4
Definition: ui_kbwidget.h:57
QLabel * serialLabel
Definition: ui_kbwidget.h:60
QGridLayout * gridLayout_3
Definition: ui_kbwidget.h:53
QWidget * mPerfTab
Definition: ui_kbwidget.h:49
QPushButton * hwSaveButton
Definition: ui_kbwidget.h:67
QLabel * fwUpdLabel
Definition: ui_kbwidget.h:54
QLabel * fwLabel
Definition: ui_kbwidget.h:56
KbLightWidget * lightWidget
Definition: ui_kbwidget.h:41
QGridLayout * gridLayout_4
Definition: ui_kbwidget.h:47
MPerfWidget * mPerfWidget
Definition: ui_kbwidget.h:51
QLabel * label_3
Definition: ui_kbwidget.h:42
QLabel * pollLabel
Definition: ui_kbwidget.h:65
QSpacerItem * verticalSpacer
Definition: ui_kbwidget.h:55
QGridLayout * gridLayout_2
Definition: ui_kbwidget.h:40
QSpacerItem * horizontalSpacer_2
Definition: ui_kbwidget.h:58
QWidget * lightTab
Definition: ui_kbwidget.h:39
QSpacerItem * horizontalSpacer_3
Definition: ui_kbwidget.h:63
void retranslateUi(QWidget *KbWidget)
Definition: ui_kbwidget.h:268
QTabWidget * tabWidget
Definition: ui_kbwidget.h:38
KPerfWidget * kPerfWidget
Definition: ui_kbwidget.h:48
QWidget * devTab
Definition: ui_kbwidget.h:52
QLabel * pollLabel2
Definition: ui_kbwidget.h:64
QLabel * label_9
Definition: ui_kbwidget.h:59
QComboBox * profileBox
Definition: ui_kbwidget.h:37

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

QWidget* Ui_KbWidget::bindTab

Definition at line 43 of file ui_kbwidget.h.

Referenced by retranslateUi(), and setupUi().

KbBindWidget* Ui_KbWidget::bindWidget

Definition at line 45 of file ui_kbwidget.h.

Referenced by KbWidget::modeChanged(), and setupUi().

QWidget* Ui_KbWidget::devTab

Definition at line 52 of file ui_kbwidget.h.

Referenced by retranslateUi(), and setupUi().

QLabel* Ui_KbWidget::fwLabel

Definition at line 56 of file ui_kbwidget.h.

Referenced by KbWidget::devUpdate(), retranslateUi(), and setupUi().

QLabel* Ui_KbWidget::fwUpdLabel

Definition at line 54 of file ui_kbwidget.h.

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

QHBoxLayout* Ui_KbWidget::fwUpdLayout

Definition at line 61 of file ui_kbwidget.h.

Referenced by KbWidget::KbWidget(), and setupUi().

QGridLayout* Ui_KbWidget::gridLayout

Definition at line 36 of file ui_kbwidget.h.

Referenced by setupUi().

QGridLayout* Ui_KbWidget::gridLayout_2

Definition at line 40 of file ui_kbwidget.h.

Referenced by setupUi().

QGridLayout* Ui_KbWidget::gridLayout_3

Definition at line 53 of file ui_kbwidget.h.

Referenced by setupUi().

QGridLayout* Ui_KbWidget::gridLayout_4

Definition at line 47 of file ui_kbwidget.h.

Referenced by setupUi().

QGridLayout* Ui_KbWidget::gridLayout_5

Definition at line 44 of file ui_kbwidget.h.

Referenced by setupUi().

QGridLayout* Ui_KbWidget::gridLayout_7

Definition at line 50 of file ui_kbwidget.h.

Referenced by setupUi().

QSpacerItem* Ui_KbWidget::horizontalSpacer_2

Definition at line 58 of file ui_kbwidget.h.

Referenced by setupUi().

QSpacerItem* Ui_KbWidget::horizontalSpacer_3

Definition at line 63 of file ui_kbwidget.h.

Referenced by setupUi().

QPushButton* Ui_KbWidget::hwSaveButton

Definition at line 67 of file ui_kbwidget.h.

Referenced by retranslateUi(), and setupUi().

QWidget* Ui_KbWidget::kPerfTab

Definition at line 46 of file ui_kbwidget.h.

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

KPerfWidget* Ui_KbWidget::kPerfWidget

Definition at line 48 of file ui_kbwidget.h.

Referenced by KbWidget::modeChanged(), and setupUi().

QLabel* Ui_KbWidget::label_3

Definition at line 42 of file ui_kbwidget.h.

Referenced by retranslateUi(), and setupUi().

QLabel* Ui_KbWidget::label_4

Definition at line 57 of file ui_kbwidget.h.

Referenced by retranslateUi(), and setupUi().

QLabel* Ui_KbWidget::label_9

Definition at line 59 of file ui_kbwidget.h.

Referenced by retranslateUi(), and setupUi().

QWidget* Ui_KbWidget::lightTab

Definition at line 39 of file ui_kbwidget.h.

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

KbLightWidget* Ui_KbWidget::lightWidget

Definition at line 41 of file ui_kbwidget.h.

Referenced by KbWidget::KbWidget(), KbWidget::modeChanged(), and setupUi().

QWidget* Ui_KbWidget::mPerfTab

Definition at line 49 of file ui_kbwidget.h.

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

MPerfWidget* Ui_KbWidget::mPerfWidget

Definition at line 51 of file ui_kbwidget.h.

Referenced by KbWidget::modeChanged(), and setupUi().

QLabel* Ui_KbWidget::pollLabel

Definition at line 65 of file ui_kbwidget.h.

Referenced by KbWidget::devUpdate(), KbWidget::KbWidget(), retranslateUi(), and setupUi().

QLabel* Ui_KbWidget::pollLabel2

Definition at line 64 of file ui_kbwidget.h.

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

QComboBox* Ui_KbWidget::profileBox

Definition at line 37 of file ui_kbwidget.h.

Referenced by setupUi(), and KbWidget::updateProfileList().

QLabel* Ui_KbWidget::serialLabel

Definition at line 60 of file ui_kbwidget.h.

Referenced by KbWidget::devUpdate(), retranslateUi(), and setupUi().

QSpacerItem* Ui_KbWidget::verticalSpacer

Definition at line 55 of file ui_kbwidget.h.

Referenced by setupUi().


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