9 #ifndef UI_EXTRASETTINGSWIDGET_H
10 #define UI_EXTRASETTINGSWIDGET_H
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QAction>
14 #include <QtWidgets/QApplication>
15 #include <QtWidgets/QButtonGroup>
16 #include <QtWidgets/QCheckBox>
17 #include <QtWidgets/QDialog>
18 #include <QtWidgets/QDialogButtonBox>
19 #include <QtWidgets/QFrame>
20 #include <QtWidgets/QGridLayout>
21 #include <QtWidgets/QHBoxLayout>
22 #include <QtWidgets/QHeaderView>
23 #include <QtWidgets/QLabel>
24 #include <QtWidgets/QPushButton>
25 #include <QtWidgets/QSpacerItem>
26 #include <QtWidgets/QSpinBox>
27 #include <QtWidgets/QWidget>
80 if (ExtraSettingsWidget->objectName().isEmpty())
81 ExtraSettingsWidget->setObjectName(QStringLiteral(
"ExtraSettingsWidget"));
82 ExtraSettingsWidget->resize(650, 515);
83 gridLayout =
new QGridLayout(ExtraSettingsWidget);
84 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
85 horizontalSpacer_2 =
new QSpacerItem(30, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
89 verticalSpacer =
new QSpacerItem(0, 28, QSizePolicy::Minimum, QSizePolicy::Fixed);
93 verticalSpacer_3 =
new QSpacerItem(0, 28, QSizePolicy::Minimum, QSizePolicy::Fixed);
97 verticalSpacer_2 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
102 fpsWarnLabel->setObjectName(QStringLiteral(
"fpsWarnLabel"));
103 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
104 sizePolicy.setHorizontalStretch(0);
105 sizePolicy.setVerticalStretch(0);
106 sizePolicy.setHeightForWidth(
fpsWarnLabel->sizePolicy().hasHeightForWidth());
111 horizontalSpacer_3 =
new QSpacerItem(10, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
115 label_3 =
new QLabel(ExtraSettingsWidget);
116 label_3->setObjectName(QStringLiteral(
"label_3"));
120 fpsBox =
new QSpinBox(ExtraSettingsWidget);
121 fpsBox->setObjectName(QStringLiteral(
"fpsBox"));
128 verticalSpacer_4 =
new QSpacerItem(0, 28, QSizePolicy::Minimum, QSizePolicy::Fixed);
132 verticalSpacer_9 =
new QSpacerItem(0, 28, QSizePolicy::Minimum, QSizePolicy::Fixed);
136 label_6 =
new QLabel(ExtraSettingsWidget);
137 label_6->setObjectName(QStringLiteral(
"label_6"));
141 verticalSpacer_6 =
new QSpacerItem(20, 10, QSizePolicy::Minimum, QSizePolicy::Fixed);
145 verticalSpacer_5 =
new QSpacerItem(20, 10, QSizePolicy::Minimum, QSizePolicy::Fixed);
149 sAccelBox =
new QCheckBox(ExtraSettingsWidget);
150 sAccelBox->setObjectName(QStringLiteral(
"sAccelBox"));
154 verticalSpacer_7 =
new QSpacerItem(20, 10, QSizePolicy::Minimum, QSizePolicy::Fixed);
158 verticalSpacer_8 =
new QSpacerItem(0, 28, QSizePolicy::Minimum, QSizePolicy::Fixed);
162 verticalSpacer_10 =
new QSpacerItem(0, 28, QSizePolicy::Minimum, QSizePolicy::Fixed);
166 verticalSpacer_11 =
new QSpacerItem(0, 28, QSizePolicy::Minimum, QSizePolicy::Fixed);
170 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
174 line_2 =
new QFrame(ExtraSettingsWidget);
175 line_2->setObjectName(QStringLiteral(
"line_2"));
176 line_2->setFrameShape(QFrame::HLine);
177 line_2->setFrameShadow(QFrame::Sunken);
184 animPathLabel->setObjectName(QStringLiteral(
"animPathLabel"));
190 sizePolicy.setHeightForWidth(
animCountLabel->sizePolicy().hasHeightForWidth());
192 animCountLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
205 brightnessBox->setObjectName(QStringLiteral(
"brightnessBox"));
209 trayBox =
new QCheckBox(ExtraSettingsWidget);
210 trayBox->setObjectName(QStringLiteral(
"trayBox"));
214 label =
new QLabel(ExtraSettingsWidget);
215 label->setObjectName(QStringLiteral(
"label"));
219 label->setFont(font);
223 line =
new QFrame(ExtraSettingsWidget);
224 line->setObjectName(QStringLiteral(
"line"));
225 line->setFrameShape(QFrame::HLine);
226 line->setFrameShadow(QFrame::Sunken);
230 label_5 =
new QLabel(ExtraSettingsWidget);
231 label_5->setObjectName(QStringLiteral(
"label_5"));
236 line_3 =
new QFrame(ExtraSettingsWidget);
237 line_3->setObjectName(QStringLiteral(
"line_3"));
238 line_3->setFrameShape(QFrame::HLine);
239 line_3->setFrameShadow(QFrame::Sunken);
243 label_2 =
new QLabel(ExtraSettingsWidget);
244 label_2->setObjectName(QStringLiteral(
"label_2"));
249 ditherBox =
new QCheckBox(ExtraSettingsWidget);
250 ditherBox->setObjectName(QStringLiteral(
"ditherBox"));
254 delayBox =
new QCheckBox(ExtraSettingsWidget);
255 delayBox->setObjectName(QStringLiteral(
"delayBox"));
259 osxLabel =
new QLabel(ExtraSettingsWidget);
260 osxLabel->setObjectName(QStringLiteral(
"osxLabel"));
265 osxLine =
new QFrame(ExtraSettingsWidget);
266 osxLine->setObjectName(QStringLiteral(
"osxLine"));
267 osxLine->setFrameShape(QFrame::HLine);
268 osxLine->setFrameShadow(QFrame::Sunken);
272 mAccelBox =
new QCheckBox(ExtraSettingsWidget);
273 mAccelBox->setObjectName(QStringLiteral(
"mAccelBox"));
278 sSpeedWidget->setObjectName(QStringLiteral(
"sSpeedWidget"));
279 sizePolicy.setHeightForWidth(
sSpeedWidget->sizePolicy().hasHeightForWidth());
285 label_10->setObjectName(QStringLiteral(
"label_10"));
290 sSpeedBox->setObjectName(QStringLiteral(
"sSpeedBox"));
298 label_11->setObjectName(QStringLiteral(
"label_11"));
299 sizePolicy.setHeightForWidth(
label_11->sizePolicy().hasHeightForWidth());
300 label_11->setSizePolicy(sizePolicy);
307 buttonBox =
new QDialogButtonBox(ExtraSettingsWidget);
308 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
309 buttonBox->setOrientation(Qt::Horizontal);
310 buttonBox->setStandardButtons(QDialogButtonBox::Ok);
324 QObject::connect(
buttonBox, SIGNAL(accepted()), ExtraSettingsWidget, SLOT(accept()));
325 QObject::connect(
buttonBox, SIGNAL(rejected()), ExtraSettingsWidget, SLOT(reject()));
327 QMetaObject::connectSlotsByName(ExtraSettingsWidget);
332 ExtraSettingsWidget->setWindowTitle(QApplication::translate(
"ExtraSettingsWidget",
"Application Settings", Q_NULLPTR));
333 fpsWarnLabel->setText(QApplication::translate(
"ExtraSettingsWidget",
"Warning: high frame rates may cause stability issues", Q_NULLPTR));
334 label_3->setText(QApplication::translate(
"ExtraSettingsWidget",
"Frame rate (FPS):", Q_NULLPTR));
335 label_6->setText(QApplication::translate(
"ExtraSettingsWidget",
"Location:", Q_NULLPTR));
336 #ifndef QT_NO_TOOLTIP
337 sAccelBox->setToolTip(QApplication::translate(
"ExtraSettingsWidget",
"Try this if you're having problems with the scroll wheel.", Q_NULLPTR));
338 #endif // QT_NO_TOOLTIP
339 sAccelBox->setText(QApplication::translate(
"ExtraSettingsWidget",
"Disable scroll acceleration", Q_NULLPTR));
340 animPathLabel->setText(QApplication::translate(
"ExtraSettingsWidget",
"/path/to/animations", Q_NULLPTR));
341 animCountLabel->setText(QApplication::translate(
"ExtraSettingsWidget",
"0 animations found", Q_NULLPTR));
342 animScanButton->setText(QApplication::translate(
"ExtraSettingsWidget",
"Re-scan", Q_NULLPTR));
343 #ifndef QT_NO_TOOLTIP
344 brightnessBox->setToolTip(QApplication::translate(
"ExtraSettingsWidget",
"By default, the same brightness level will be applied to all profiles and all devices. Enable this to store it with the lighting mode instead.", Q_NULLPTR));
345 #endif // QT_NO_TOOLTIP
346 brightnessBox->setText(QApplication::translate(
"ExtraSettingsWidget",
"Set brightness per-mode", Q_NULLPTR));
347 #ifndef QT_NO_TOOLTIP
348 trayBox->setToolTip(QApplication::translate(
"ExtraSettingsWidget",
"The tray icon will not be displayed. The application will still run in the background; re-launch the app to see the GUI again.", Q_NULLPTR));
349 #endif // QT_NO_TOOLTIP
350 trayBox->setText(QApplication::translate(
"ExtraSettingsWidget",
"Hide tray icon", Q_NULLPTR));
351 label->setText(QApplication::translate(
"ExtraSettingsWidget",
"Behavior", Q_NULLPTR));
352 label_5->setText(QApplication::translate(
"ExtraSettingsWidget",
"Animation scripts", Q_NULLPTR));
353 label_2->setText(QApplication::translate(
"ExtraSettingsWidget",
"Hardware", Q_NULLPTR));
354 #ifndef QT_NO_TOOLTIP
355 ditherBox->setToolTip(QApplication::translate(
"ExtraSettingsWidget",
"May improve appearance on some keyboards.", Q_NULLPTR));
356 #endif // QT_NO_TOOLTIP
357 ditherBox->setText(QApplication::translate(
"ExtraSettingsWidget",
"Use spatial dithering to simulate extra color resolution", Q_NULLPTR));
358 #ifndef QT_NO_TOOLTIP
359 delayBox->setToolTip(QApplication::translate(
"ExtraSettingsWidget",
"When using macros with strings longer than 25 chars, some OS may lose characters (e.g. Mint 17.2). Select to prevent that bug.", Q_NULLPTR));
360 #endif // QT_NO_TOOLTIP
361 delayBox->setText(QApplication::translate(
"ExtraSettingsWidget",
"Use delay for very long macros", Q_NULLPTR));
362 osxLabel->setText(QApplication::translate(
"ExtraSettingsWidget",
"OS X tweaks", Q_NULLPTR));
363 #ifndef QT_NO_TOOLTIP
364 mAccelBox->setToolTip(QApplication::translate(
"ExtraSettingsWidget",
"Try this if you're having problems with mouse movement.", Q_NULLPTR));
365 #endif // QT_NO_TOOLTIP
366 mAccelBox->setText(QApplication::translate(
"ExtraSettingsWidget",
"Disable mouse acceleration", Q_NULLPTR));
367 label_10->setText(QApplication::translate(
"ExtraSettingsWidget",
"Scroll", Q_NULLPTR));
368 label_11->setText(QApplication::translate(
"ExtraSettingsWidget",
"line(s) at a time", Q_NULLPTR));
379 #endif // UI_EXTRASETTINGSWIDGET_H