9 #ifndef UI_KPERFWIDGET_H
10 #define UI_KPERFWIDGET_H
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QAction>
14 #include <QtWidgets/QApplication>
15 #include <QtWidgets/QButtonGroup>
16 #include <QtWidgets/QCheckBox>
17 #include <QtWidgets/QComboBox>
18 #include <QtWidgets/QFrame>
19 #include <QtWidgets/QGridLayout>
20 #include <QtWidgets/QHBoxLayout>
21 #include <QtWidgets/QHeaderView>
22 #include <QtWidgets/QLabel>
23 #include <QtWidgets/QPushButton>
24 #include <QtWidgets/QSpacerItem>
25 #include <QtWidgets/QSpinBox>
26 #include <QtWidgets/QWidget>
113 if (KPerfWidget->objectName().isEmpty())
114 KPerfWidget->setObjectName(QStringLiteral(
"KPerfWidget"));
115 KPerfWidget->resize(840, 679);
117 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
119 k95Spacer->setObjectName(QStringLiteral(
"k95Spacer"));
120 QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
121 sizePolicy.setHorizontalStretch(0);
122 sizePolicy.setVerticalStretch(0);
123 sizePolicy.setHeightForWidth(
k95Spacer->sizePolicy().hasHeightForWidth());
125 k95Spacer->setMinimumSize(QSize(15, 10));
126 k95Spacer->setMaximumSize(QSize(15, 10));
131 label_10->setObjectName(QStringLiteral(
"label_10"));
136 lockColorOff->setObjectName(QStringLiteral(
"lockColorOff"));
137 sizePolicy.setHeightForWidth(
lockColorOff->sizePolicy().hasHeightForWidth());
144 line =
new QFrame(KPerfWidget);
145 line->setObjectName(QStringLiteral(
"line"));
146 line->setFrameShape(QFrame::HLine);
147 line->setFrameShadow(QFrame::Sunken);
151 horizontalSpacer_5 =
new QSpacerItem(10, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
156 k95Label2->setObjectName(QStringLiteral(
"k95Label2"));
161 label_12->setObjectName(QStringLiteral(
"label_12"));
166 modeColorOff->setObjectName(QStringLiteral(
"modeColorOff"));
167 sizePolicy.setHeightForWidth(
modeColorOff->sizePolicy().hasHeightForWidth());
175 lightColor3->setObjectName(QStringLiteral(
"lightColor3"));
176 sizePolicy.setHeightForWidth(
lightColor3->sizePolicy().hasHeightForWidth());
183 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
187 lockBox =
new QCheckBox(KPerfWidget);
188 lockBox->setObjectName(QStringLiteral(
"lockBox"));
193 modeColorOn->setObjectName(QStringLiteral(
"modeColorOn"));
194 sizePolicy.setHeightForWidth(
modeColorOn->sizePolicy().hasHeightForWidth());
201 macroBox =
new QCheckBox(KPerfWidget);
202 macroBox->setObjectName(QStringLiteral(
"macroBox"));
207 numColorOn->setObjectName(QStringLiteral(
"numColorOn"));
208 sizePolicy.setHeightForWidth(
numColorOn->sizePolicy().hasHeightForWidth());
211 numColorOn->setMaximumSize(QSize(16777215, 40));
215 numBox =
new QComboBox(KPerfWidget);
216 numBox->setObjectName(QStringLiteral(
"numBox"));
220 label_5 =
new QLabel(KPerfWidget);
221 label_5->setObjectName(QStringLiteral(
"label_5"));
225 verticalSpacer_2 =
new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed);
230 lightColor2->setObjectName(QStringLiteral(
"lightColor2"));
231 sizePolicy.setHeightForWidth(
lightColor2->sizePolicy().hasHeightForWidth());
238 horizontalSpacer_7 =
new QSpacerItem(10, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
242 label_8 =
new QLabel(KPerfWidget);
243 label_8->setObjectName(QStringLiteral(
"label_8"));
245 font.setPointSize(8);
246 font.setItalic(
true);
251 lightBox =
new QCheckBox(KPerfWidget);
252 lightBox->setObjectName(QStringLiteral(
"lightBox"));
257 lightColor1->setObjectName(QStringLiteral(
"lightColor1"));
258 sizePolicy.setHeightForWidth(
lightColor1->sizePolicy().hasHeightForWidth());
265 verticalSpacer_4 =
new QSpacerItem(0, 5, QSizePolicy::Minimum, QSizePolicy::Fixed);
269 label_6 =
new QLabel(KPerfWidget);
270 label_6->setObjectName(QStringLiteral(
"label_6"));
274 label =
new QLabel(KPerfWidget);
275 label->setObjectName(QStringLiteral(
"label"));
279 label->setFont(font1);
283 horizontalSpacer_6 =
new QSpacerItem(10, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
288 lockColorOn->setObjectName(QStringLiteral(
"lockColorOn"));
289 sizePolicy.setHeightForWidth(
lockColorOn->sizePolicy().hasHeightForWidth());
296 label_4 =
new QLabel(KPerfWidget);
297 label_4->setObjectName(QStringLiteral(
"label_4"));
302 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
306 verticalSpacer_3 =
new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed);
310 modeBox =
new QCheckBox(KPerfWidget);
311 modeBox->setObjectName(QStringLiteral(
"modeBox"));
316 capsColorOff->setObjectName(QStringLiteral(
"capsColorOff"));
317 sizePolicy.setHeightForWidth(
capsColorOff->sizePolicy().hasHeightForWidth());
325 numColorOff->setObjectName(QStringLiteral(
"numColorOff"));
326 QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Fixed);
327 sizePolicy1.setHorizontalStretch(0);
328 sizePolicy1.setVerticalStretch(40);
329 sizePolicy1.setHeightForWidth(
numColorOff->sizePolicy().hasHeightForWidth());
336 capsColorOn->setObjectName(QStringLiteral(
"capsColorOn"));
337 sizePolicy.setHeightForWidth(
capsColorOn->sizePolicy().hasHeightForWidth());
344 line_3 =
new QFrame(KPerfWidget);
345 line_3->setObjectName(QStringLiteral(
"line_3"));
346 line_3->setFrameShape(QFrame::HLine);
347 line_3->setFrameShadow(QFrame::Sunken);
352 label_22->setObjectName(QStringLiteral(
"label_22"));
357 scrollBox->setObjectName(QStringLiteral(
"scrollBox"));
361 label_7 =
new QLabel(KPerfWidget);
362 label_7->setObjectName(QStringLiteral(
"label_7"));
367 scrollColorOn->setObjectName(QStringLiteral(
"scrollColorOn"));
368 sizePolicy.setHeightForWidth(
scrollColorOn->sizePolicy().hasHeightForWidth());
375 capsBox =
new QComboBox(KPerfWidget);
376 capsBox->setObjectName(QStringLiteral(
"capsBox"));
382 sizePolicy.setHeightForWidth(
scrollColorOff->sizePolicy().hasHeightForWidth());
389 muteBox =
new QCheckBox(KPerfWidget);
390 muteBox->setObjectName(QStringLiteral(
"muteBox"));
395 muteColorOn->setObjectName(QStringLiteral(
"muteColorOn"));
396 sizePolicy.setHeightForWidth(
muteColorOn->sizePolicy().hasHeightForWidth());
404 macroColorOff->setObjectName(QStringLiteral(
"macroColorOff"));
405 QSizePolicy sizePolicy2(QSizePolicy::Minimum, QSizePolicy::Fixed);
406 sizePolicy2.setHorizontalStretch(0);
407 sizePolicy2.setVerticalStretch(40);
408 sizePolicy2.setHeightForWidth(
macroColorOff->sizePolicy().hasHeightForWidth());
414 label_3 =
new QLabel(KPerfWidget);
415 label_3->setObjectName(QStringLiteral(
"label_3"));
421 muteColorOff->setObjectName(QStringLiteral(
"muteColorOff"));
422 sizePolicy.setHeightForWidth(
muteColorOff->sizePolicy().hasHeightForWidth());
430 k95Label3->setObjectName(QStringLiteral(
"k95Label3"));
435 macroColorOn->setObjectName(QStringLiteral(
"macroColorOn"));
436 sizePolicy2.setHeightForWidth(
macroColorOn->sizePolicy().hasHeightForWidth());
443 muteColorNA->setObjectName(QStringLiteral(
"muteColorNA"));
450 label_19->setObjectName(QStringLiteral(
"label_19"));
454 k95Line =
new QFrame(KPerfWidget);
455 k95Line->setObjectName(QStringLiteral(
"k95Line"));
456 k95Line->setFrameShape(QFrame::HLine);
457 k95Line->setFrameShadow(QFrame::Sunken);
462 label_21->setObjectName(QStringLiteral(
"label_21"));
467 label_24->setObjectName(QStringLiteral(
"label_24"));
472 label_20->setObjectName(QStringLiteral(
"label_20"));
477 label_16->setObjectName(QStringLiteral(
"label_16"));
482 label_14->setObjectName(QStringLiteral(
"label_14"));
487 label_18->setObjectName(QStringLiteral(
"label_18"));
491 horizontalSpacer_2 =
new QSpacerItem(5, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
496 label_15->setObjectName(QStringLiteral(
"label_15"));
501 k95Label4->setObjectName(QStringLiteral(
"k95Label4"));
506 label_17->setObjectName(QStringLiteral(
"label_17"));
511 label_11->setObjectName(QStringLiteral(
"label_11"));
516 label_23->setObjectName(QStringLiteral(
"label_23"));
521 k95Label1->setObjectName(QStringLiteral(
"k95Label1"));
529 copyButton->setObjectName(QStringLiteral(
"copyButton"));
533 horizontalSpacer_8 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
542 label_2 =
new QLabel(KPerfWidget);
543 label_2->setObjectName(QStringLiteral(
"label_2"));
547 horizontalSpacer_4 =
new QSpacerItem(10, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
552 intensityBox->setObjectName(QStringLiteral(
"intensityBox"));
558 horizontalSpacer_3 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
566 k95Label5->setObjectName(QStringLiteral(
"k95Label5"));
570 line_2 =
new QFrame(KPerfWidget);
571 line_2->setObjectName(QStringLiteral(
"line_2"));
572 line_2->setFrameShape(QFrame::HLine);
573 line_2->setFrameShadow(QFrame::Sunken);
578 k95Label6->setObjectName(QStringLiteral(
"k95Label6"));
613 QMetaObject::connectSlotsByName(KPerfWidget);
618 KPerfWidget->setWindowTitle(QApplication::translate(
"KPerfWidget",
"Form", Q_NULLPTR));
619 label_10->setText(QApplication::translate(
"KPerfWidget",
"100%", Q_NULLPTR));
621 k95Label2->setText(QApplication::translate(
"KPerfWidget",
"On", Q_NULLPTR));
622 label_12->setText(QApplication::translate(
"KPerfWidget",
"On", Q_NULLPTR));
625 lockBox->setText(QApplication::translate(
"KPerfWidget",
"Indicate Windows Lock:", Q_NULLPTR));
627 macroBox->setText(QApplication::translate(
"KPerfWidget",
"Indicate macro recording:", Q_NULLPTR));
630 numBox->insertItems(0, QStringList()
631 << QApplication::translate(
"KPerfWidget",
"Normal", Q_NULLPTR)
632 << QApplication::translate(
"KPerfWidget",
"Always on", Q_NULLPTR)
633 << QApplication::translate(
"KPerfWidget",
"Always off", Q_NULLPTR)
634 << QApplication::translate(
"KPerfWidget",
"RGB indicator", Q_NULLPTR)
635 << QApplication::translate(
"KPerfWidget",
"RGB + normal", Q_NULLPTR)
637 label_5->setText(QApplication::translate(
"KPerfWidget",
"Num lock:", Q_NULLPTR));
639 label_8->setText(QApplication::translate(
"KPerfWidget",
"Note: many desktop environments do not use scroll lock. The indicator may not turn on even when enabled.", Q_NULLPTR));
640 lightBox->setText(QApplication::translate(
"KPerfWidget",
"Indicate brightness:", Q_NULLPTR));
642 label_6->setText(QApplication::translate(
"KPerfWidget",
"Caps lock:", Q_NULLPTR));
643 label->setText(QApplication::translate(
"KPerfWidget",
"Miscellaneous", Q_NULLPTR));
645 label_4->setText(QApplication::translate(
"KPerfWidget",
"Lock lights", Q_NULLPTR));
646 modeBox->setText(QApplication::translate(
"KPerfWidget",
"Indicate current mode:", Q_NULLPTR));
650 label_22->setText(QApplication::translate(
"KPerfWidget",
"Off", Q_NULLPTR));
653 << QApplication::translate(
"KPerfWidget",
"Normal", Q_NULLPTR)
654 << QApplication::translate(
"KPerfWidget",
"Always on", Q_NULLPTR)
655 << QApplication::translate(
"KPerfWidget",
"Always off", Q_NULLPTR)
656 << QApplication::translate(
"KPerfWidget",
"RGB indicator", Q_NULLPTR)
657 << QApplication::translate(
"KPerfWidget",
"RGB + normal", Q_NULLPTR)
659 label_7->setText(QApplication::translate(
"KPerfWidget",
"Scroll lock:", Q_NULLPTR));
662 capsBox->insertItems(0, QStringList()
663 << QApplication::translate(
"KPerfWidget",
"Normal", Q_NULLPTR)
664 << QApplication::translate(
"KPerfWidget",
"Always on", Q_NULLPTR)
665 << QApplication::translate(
"KPerfWidget",
"Always off", Q_NULLPTR)
666 << QApplication::translate(
"KPerfWidget",
"RGB indicator", Q_NULLPTR)
667 << QApplication::translate(
"KPerfWidget",
"RGB + normal", Q_NULLPTR)
670 muteBox->setText(QApplication::translate(
"KPerfWidget",
"Indicate mute:", Q_NULLPTR));
673 label_3->setText(QApplication::translate(
"KPerfWidget",
"Top row", Q_NULLPTR));
675 k95Label3->setText(QApplication::translate(
"KPerfWidget",
"Off", Q_NULLPTR));
677 #ifndef QT_NO_TOOLTIP
678 muteColorNA->setToolTip(QApplication::translate(
"KPerfWidget",
"If the sound device does not support muting, or if mute status is unknown, this color will be displayed.", Q_NULLPTR));
679 #endif // QT_NO_TOOLTIP
681 label_19->setText(QApplication::translate(
"KPerfWidget",
"On", Q_NULLPTR));
682 label_21->setText(QApplication::translate(
"KPerfWidget",
"On", Q_NULLPTR));
683 label_24->setText(QApplication::translate(
"KPerfWidget",
"Off", Q_NULLPTR));
684 label_20->setText(QApplication::translate(
"KPerfWidget",
"On", Q_NULLPTR));
685 label_16->setText(QApplication::translate(
"KPerfWidget",
"67%", Q_NULLPTR));
686 label_14->setText(QApplication::translate(
"KPerfWidget",
"Off", Q_NULLPTR));
687 label_18->setText(QApplication::translate(
"KPerfWidget",
"33%", Q_NULLPTR));
688 label_15->setText(QApplication::translate(
"KPerfWidget",
"Off", Q_NULLPTR));
689 k95Label4->setText(QApplication::translate(
"KPerfWidget",
"On", Q_NULLPTR));
690 label_17->setText(QApplication::translate(
"KPerfWidget",
"Unknown", Q_NULLPTR));
691 label_11->setText(QApplication::translate(
"KPerfWidget",
"On", Q_NULLPTR));
692 label_23->setText(QApplication::translate(
"KPerfWidget",
"Off", Q_NULLPTR));
693 k95Label1->setText(QApplication::translate(
"KPerfWidget",
"K95 buttons", Q_NULLPTR));
694 copyButton->setText(QApplication::translate(
"KPerfWidget",
"Copy to mode...", Q_NULLPTR));
695 label_2->setText(QApplication::translate(
"KPerfWidget",
"Indicator intensity:", Q_NULLPTR));
696 intensityBox->setSuffix(QApplication::translate(
"KPerfWidget",
"%", Q_NULLPTR));
697 k95Label5->setText(QApplication::translate(
"KPerfWidget",
"Off", Q_NULLPTR));
698 k95Label6->setText(QApplication::translate(
"KPerfWidget",
"Note: macro recording not yet implemented. Indicator will always display \"off\".", Q_NULLPTR));
709 #endif // UI_KPERFWIDGET_H