9 #ifndef UI_SETTINGSWIDGET_H
10 #define UI_SETTINGSWIDGET_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/QWidget>
80 if (SettingsWidget->objectName().isEmpty())
81 SettingsWidget->setObjectName(QStringLiteral(
"SettingsWidget"));
82 SettingsWidget->resize(827, 654);
84 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
85 label_2 =
new QLabel(SettingsWidget);
86 label_2->setObjectName(QStringLiteral(
"label_2"));
87 label_2->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
88 label_2->setOpenExternalLinks(
true);
92 label =
new QLabel(SettingsWidget);
93 label->setObjectName(QStringLiteral(
"label"));
101 label_6 =
new QLabel(SettingsWidget);
102 label_6->setObjectName(QStringLiteral(
"label_6"));
108 gridLayout_5->setObjectName(QStringLiteral(
"gridLayout_5"));
109 horizontalSpacer_7 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
114 devicesLabel->setObjectName(QStringLiteral(
"devicesLabel"));
118 label_5 =
new QLabel(SettingsWidget);
119 label_5->setObjectName(QStringLiteral(
"label_5"));
123 layoutBox =
new QComboBox(SettingsWidget);
124 layoutBox->setObjectName(QStringLiteral(
"layoutBox"));
128 verticalSpacer_10 =
new QSpacerItem(20, 6, QSizePolicy::Minimum, QSizePolicy::Fixed);
137 label_3 =
new QLabel(SettingsWidget);
138 label_3->setObjectName(QStringLiteral(
"label_3"));
139 label_3->setOpenExternalLinks(
true);
143 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
148 pushButton->setObjectName(QStringLiteral(
"pushButton"));
156 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
160 verticalSpacer_8 =
new QSpacerItem(0, 28, QSizePolicy::Minimum, QSizePolicy::Fixed);
165 loginItemBox->setObjectName(QStringLiteral(
"loginItemBox"));
169 verticalSpacer_6 =
new QSpacerItem(0, 28, QSizePolicy::Minimum, QSizePolicy::Fixed);
173 autoFWBox =
new QCheckBox(SettingsWidget);
174 autoFWBox->setObjectName(QStringLiteral(
"autoFWBox"));
179 line_2 =
new QFrame(SettingsWidget);
180 line_2->setObjectName(QStringLiteral(
"line_2"));
181 line_2->setFrameShape(QFrame::HLine);
182 line_2->setFrameShadow(QFrame::Sunken);
186 label_8 =
new QLabel(SettingsWidget);
187 label_8->setObjectName(QStringLiteral(
"label_8"));
189 font1.setItalic(
true);
195 gridLayout_3->setObjectName(QStringLiteral(
"gridLayout_3"));
197 shiftLabel->setObjectName(QStringLiteral(
"shiftLabel"));
198 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
199 sizePolicy.setHorizontalStretch(0);
200 sizePolicy.setVerticalStretch(0);
201 sizePolicy.setHeightForWidth(
shiftLabel->sizePolicy().hasHeightForWidth());
203 shiftLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
208 capsLabel->setObjectName(QStringLiteral(
"capsLabel"));
209 capsLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
217 capsBox =
new QComboBox(SettingsWidget);
218 capsBox->setObjectName(QStringLiteral(
"capsBox"));
219 QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Fixed);
220 sizePolicy1.setHorizontalStretch(0);
221 sizePolicy1.setVerticalStretch(0);
222 sizePolicy1.setHeightForWidth(
capsBox->sizePolicy().hasHeightForWidth());
223 capsBox->setSizePolicy(sizePolicy1);
228 ctrlLabel->setObjectName(QStringLiteral(
"ctrlLabel"));
229 ctrlLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
233 horizontalSpacer_9 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
237 ctrlBox =
new QComboBox(SettingsWidget);
238 ctrlBox->setObjectName(QStringLiteral(
"ctrlBox"));
242 shiftBox =
new QComboBox(SettingsWidget);
243 shiftBox->setObjectName(QStringLiteral(
"shiftBox"));
244 sizePolicy1.setHeightForWidth(
shiftBox->sizePolicy().hasHeightForWidth());
245 shiftBox->setSizePolicy(sizePolicy1);
249 winLabel =
new QLabel(SettingsWidget);
250 winLabel->setObjectName(QStringLiteral(
"winLabel"));
251 sizePolicy.setHeightForWidth(
winLabel->sizePolicy().hasHeightForWidth());
252 winLabel->setSizePolicy(sizePolicy);
253 winLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
257 winBox =
new QComboBox(SettingsWidget);
258 winBox->setObjectName(QStringLiteral(
"winBox"));
259 sizePolicy1.setHeightForWidth(
winBox->sizePolicy().hasHeightForWidth());
260 winBox->setSizePolicy(sizePolicy1);
264 altBox =
new QComboBox(SettingsWidget);
265 altBox->setObjectName(QStringLiteral(
"altBox"));
266 sizePolicy1.setHeightForWidth(
altBox->sizePolicy().hasHeightForWidth());
267 altBox->setSizePolicy(sizePolicy1);
271 altLabel =
new QLabel(SettingsWidget);
272 altLabel->setObjectName(QStringLiteral(
"altLabel"));
273 sizePolicy.setHeightForWidth(
altLabel->sizePolicy().hasHeightForWidth());
274 altLabel->setSizePolicy(sizePolicy);
275 altLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
282 line =
new QFrame(SettingsWidget);
283 line->setObjectName(QStringLiteral(
"line"));
284 line->setFrameShape(QFrame::HLine);
285 line->setFrameShadow(QFrame::Sunken);
289 verticalSpacer_3 =
new QSpacerItem(0, 5, QSizePolicy::Minimum, QSizePolicy::Fixed);
293 verticalSpacer_5 =
new QSpacerItem(20, 12, QSizePolicy::Minimum, QSizePolicy::Fixed);
297 line_3 =
new QFrame(SettingsWidget);
298 line_3->setObjectName(QStringLiteral(
"line_3"));
299 QSizePolicy sizePolicy2(QSizePolicy::Minimum, QSizePolicy::Fixed);
300 sizePolicy2.setHorizontalStretch(0);
301 sizePolicy2.setVerticalStretch(0);
302 sizePolicy2.setHeightForWidth(
line_3->sizePolicy().hasHeightForWidth());
303 line_3->setSizePolicy(sizePolicy2);
304 line_3->setFrameShape(QFrame::HLine);
305 line_3->setFrameShadow(QFrame::Sunken);
309 verticalSpacer_4 =
new QSpacerItem(20, 6, QSizePolicy::Minimum, QSizePolicy::Fixed);
313 verticalSpacer_2 =
new QSpacerItem(20, 12, QSizePolicy::Minimum, QSizePolicy::Fixed);
318 versionLabel->setObjectName(QStringLiteral(
"versionLabel"));
326 extraButton->setObjectName(QStringLiteral(
"extraButton"));
330 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
337 verticalSpacer_7 =
new QSpacerItem(0, 28, QSizePolicy::Minimum, QSizePolicy::Fixed);
353 QMetaObject::connectSlotsByName(SettingsWidget);
358 SettingsWidget->setWindowTitle(QApplication::translate(
"SettingsWidget",
"Form", Q_NULLPTR));
359 label_2->setText(QApplication::translate(
"SettingsWidget",
"\302\251 2014-2016 <a href=\"https://github.com/ccMSC/\" style=\"text-decoration:none;\">ccMSC</a>.<br/>\302\251 2017 <a href=\"https://github.com/mattanger/ckb-next/graphs/contributors\" style=\"text-decoration:none;\">The ckb-next development team</a>.", Q_NULLPTR));
360 label->setText(QApplication::translate(
"SettingsWidget",
"Modifier keys", Q_NULLPTR));
361 label_6->setText(QApplication::translate(
"SettingsWidget",
"Application", Q_NULLPTR));
362 devicesLabel->setText(QApplication::translate(
"SettingsWidget",
"No devices connected", Q_NULLPTR));
363 label_5->setText(QApplication::translate(
"SettingsWidget",
"Keyboard layout:", Q_NULLPTR));
364 label_3->setText(QApplication::translate(
"SettingsWidget",
"<a href=\"https://github.com/mattanger/ckb-next\" style=\"text-decoration:none;\">https://github.com/mattanger/ckb-next</a>", Q_NULLPTR));
365 pushButton->setText(QApplication::translate(
"SettingsWidget",
"Quit", Q_NULLPTR));
366 #ifndef QT_NO_TOOLTIP
367 loginItemBox->setToolTip(QApplication::translate(
"SettingsWidget",
"ckb-next will be started when you log in to your computer.", Q_NULLPTR));
368 #endif // QT_NO_TOOLTIP
369 loginItemBox->setText(QApplication::translate(
"SettingsWidget",
"Start ckb-next at login", Q_NULLPTR));
370 #ifndef QT_NO_TOOLTIP
371 autoFWBox->setToolTip(QApplication::translate(
"SettingsWidget",
"You will be notified when new firmware versions are available. You'll have the option to install them immediately or wait until later.", Q_NULLPTR));
372 #endif // QT_NO_TOOLTIP
373 autoFWBox->setText(QApplication::translate(
"SettingsWidget",
"Check for new firmware automatically", Q_NULLPTR));
374 label_8->setText(QApplication::translate(
"SettingsWidget",
"These will override the keyboard profile. See \"Binding\" tab for more settings.", Q_NULLPTR));
375 shiftLabel->setText(QApplication::translate(
"SettingsWidget",
"Shift:", Q_NULLPTR));
376 capsLabel->setText(QApplication::translate(
"SettingsWidget",
"Caps Lock:", Q_NULLPTR));
377 ctrlLabel->setText(QApplication::translate(
"SettingsWidget",
"Ctrl:", Q_NULLPTR));
378 winLabel->setText(QApplication::translate(
"SettingsWidget",
"Windows:", Q_NULLPTR));
379 altLabel->setText(QApplication::translate(
"SettingsWidget",
"Alt:", Q_NULLPTR));
380 versionLabel->setText(QApplication::translate(
"SettingsWidget",
"ckb-next", Q_NULLPTR));
381 extraButton->setText(QApplication::translate(
"SettingsWidget",
"More settings", Q_NULLPTR));
392 #endif // UI_SETTINGSWIDGET_H