9 #ifndef UI_KBLIGHTWIDGET_H
10 #define UI_KBLIGHTWIDGET_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/QVBoxLayout>
26 #include <QtWidgets/QWidget>
65 if (KbLightWidget->objectName().isEmpty())
66 KbLightWidget->setObjectName(QStringLiteral(
"KbLightWidget"));
67 KbLightWidget->resize(632, 540);
68 KbLightWidget->setFocusPolicy(Qt::ClickFocus);
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);
89 showAnimBox->setObjectName(QStringLiteral(
"showAnimBox"));
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);
106 horizontalSpacer_5 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
111 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
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());
119 keyWidget->setMinimumSize(QSize(100, 100));
120 keyWidget->setFocusPolicy(Qt::ClickFocus);
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));
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);
147 animButton->setObjectName(QStringLiteral(
"animButton"));
148 sizePolicy2.setHeightForWidth(
animButton->sizePolicy().hasHeightForWidth());
151 animButton->setMaximumSize(QSize(140, 16777215));
161 horizontalSpacer_6 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
168 verticalSpacer_2 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
173 gridLayout_2->setObjectName(QStringLiteral(
"gridLayout_2"));
175 brightnessBox->setObjectName(QStringLiteral(
"brightnessBox"));
176 sizePolicy2.setHeightForWidth(
brightnessBox->sizePolicy().hasHeightForWidth());
181 label =
new QLabel(KbLightWidget);
182 label->setObjectName(QStringLiteral(
"label"));
184 font1.setPointSize(20);
185 label->setFont(font1);
186 label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
190 horizontalSpacer_3 =
new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
194 horizontalSpacer_4 =
new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
201 verticalSpacer_3 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
205 label_2 =
new QLabel(KbLightWidget);
206 label_2->setObjectName(QStringLiteral(
"label_2"));
211 line =
new QFrame(KbLightWidget);
212 line->setObjectName(QStringLiteral(
"line"));
213 line->setFrameShape(QFrame::HLine);
214 line->setFrameShadow(QFrame::Sunken);
219 widget->setObjectName(QStringLiteral(
"widget"));
220 widget->setMinimumSize(QSize(0, 170));
222 gridLayout_4->setObjectName(QStringLiteral(
"gridLayout_4"));
225 animWidget->setObjectName(QStringLiteral(
"animWidget"));
238 QMetaObject::connectSlotsByName(KbLightWidget);
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));
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)
259 label->setText(QApplication::translate(
"KbLightWidget",
"\342\230\274", Q_NULLPTR));
260 label_2->setText(QApplication::translate(
"KbLightWidget",
"Animations", Q_NULLPTR));
271 #endif // UI_KBLIGHTWIDGET_H