9 #ifndef UI_GUI_FONTPREFERENCES_H
10 #define UI_GUI_FONTPREFERENCES_H
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QApplication>
14 #include <QtWidgets/QCheckBox>
15 #include <QtWidgets/QFontComboBox>
16 #include <QtWidgets/QFrame>
17 #include <QtWidgets/QGridLayout>
18 #include <QtWidgets/QHBoxLayout>
19 #include <QtWidgets/QLabel>
20 #include <QtWidgets/QPushButton>
21 #include <QtWidgets/QScrollArea>
22 #include <QtWidgets/QSpacerItem>
23 #include <QtWidgets/QWidget>
24 #include "Gui/Utils/Widgets/ComboBox.h"
31 QGridLayout *gridLayout;
33 QHBoxLayout *horizontalLayout;
34 QSpacerItem *horizontalSpacer;
35 QPushButton *btn_default;
36 QScrollArea *scrollArea;
37 QWidget *scrollAreaWidgetContents;
38 QGridLayout *gridLayout_2;
47 QFontComboBox *combo_fonts;
52 QCheckBox *cb_libBold;
53 QSpacerItem *verticalSpacer;
61 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
63 line_4->setObjectName(QString::fromUtf8(
"line_4"));
64 line_4->setFrameShape(QFrame::HLine);
65 line_4->setFrameShadow(QFrame::Sunken);
67 gridLayout->addWidget(line_4, 4, 0, 1, 2);
69 horizontalLayout =
new QHBoxLayout();
70 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
71 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
73 horizontalLayout->addItem(horizontalSpacer);
76 btn_default->setObjectName(QString::fromUtf8(
"btn_default"));
77 btn_default->setText(QString::fromUtf8(
"Default"));
79 horizontalLayout->addWidget(btn_default);
82 gridLayout->addLayout(horizontalLayout, 5, 0, 4, 2);
85 scrollArea->setObjectName(QString::fromUtf8(
"scrollArea"));
86 scrollArea->setWidgetResizable(
true);
87 scrollAreaWidgetContents =
new QWidget();
88 scrollAreaWidgetContents->setObjectName(QString::fromUtf8(
"scrollAreaWidgetContents"));
89 scrollAreaWidgetContents->setGeometry(QRect(0, 0, 380, 254));
90 gridLayout_2 =
new QGridLayout(scrollAreaWidgetContents);
91 gridLayout_2->setObjectName(QString::fromUtf8(
"gridLayout_2"));
92 gridLayout_2->setContentsMargins(5, 5, 5, 5);
94 combo_sizes->setObjectName(QString::fromUtf8(
"combo_sizes"));
96 gridLayout_2->addWidget(combo_sizes, 3, 1, 1, 1);
99 combo_plSize->setObjectName(QString::fromUtf8(
"combo_plSize"));
101 gridLayout_2->addWidget(combo_plSize, 13, 1, 1, 1);
104 combo_libSize->setObjectName(QString::fromUtf8(
"combo_libSize"));
106 gridLayout_2->addWidget(combo_libSize, 8, 1, 1, 1);
108 label_6 =
new QLabel(scrollAreaWidgetContents);
109 label_6->setObjectName(QString::fromUtf8(
"label_6"));
111 gridLayout_2->addWidget(label_6, 13, 0, 1, 1);
113 label_5 =
new QLabel(scrollAreaWidgetContents);
114 label_5->setObjectName(QString::fromUtf8(
"label_5"));
116 gridLayout_2->addWidget(label_5, 8, 0, 1, 1);
118 label =
new QLabel(scrollAreaWidgetContents);
119 label->setObjectName(QString::fromUtf8(
"label"));
121 gridLayout_2->addWidget(label, 3, 0, 1, 1);
123 line_2 =
new QFrame(scrollAreaWidgetContents);
124 line_2->setObjectName(QString::fromUtf8(
"line_2"));
125 line_2->setFrameShape(QFrame::HLine);
126 line_2->setFrameShadow(QFrame::Sunken);
128 gridLayout_2->addWidget(line_2, 11, 0, 1, 2);
130 label_7 =
new QLabel(scrollAreaWidgetContents);
131 label_7->setObjectName(QString::fromUtf8(
"label_7"));
133 gridLayout_2->addWidget(label_7, 9, 0, 1, 1);
135 combo_fonts =
new QFontComboBox(scrollAreaWidgetContents);
136 combo_fonts->setObjectName(QString::fromUtf8(
"combo_fonts"));
138 gridLayout_2->addWidget(combo_fonts, 1, 1, 1, 1);
140 label_2 =
new QLabel(scrollAreaWidgetContents);
141 label_2->setObjectName(QString::fromUtf8(
"label_2"));
143 gridLayout_2->addWidget(label_2, 1, 0, 1, 1);
145 line_3 =
new QFrame(scrollAreaWidgetContents);
146 line_3->setObjectName(QString::fromUtf8(
"line_3"));
147 line_3->setFrameShape(QFrame::HLine);
148 line_3->setFrameShadow(QFrame::Sunken);
150 gridLayout_2->addWidget(line_3, 5, 0, 1, 2);
152 lab_library =
new QLabel(scrollAreaWidgetContents);
153 lab_library->setObjectName(QString::fromUtf8(
"lab_library"));
157 lab_library->setFont(font);
158 lab_library->setText(QString::fromUtf8(
"Library"));
160 gridLayout_2->addWidget(lab_library, 7, 0, 1, 2);
162 lab_playlist =
new QLabel(scrollAreaWidgetContents);
163 lab_playlist->setObjectName(QString::fromUtf8(
"lab_playlist"));
164 lab_playlist->setFont(font);
165 lab_playlist->setText(QString::fromUtf8(
"Playlist"));
167 gridLayout_2->addWidget(lab_playlist, 12, 0, 1, 2);
169 cb_libBold =
new QCheckBox(scrollAreaWidgetContents);
170 cb_libBold->setObjectName(QString::fromUtf8(
"cb_libBold"));
172 gridLayout_2->addWidget(cb_libBold, 9, 1, 1, 1);
174 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
176 gridLayout_2->addItem(verticalSpacer, 14, 1, 1, 1);
178 scrollArea->setWidget(scrollAreaWidgetContents);
180 gridLayout->addWidget(scrollArea, 3, 0, 1, 2);
182 QWidget::setTabOrder(scrollArea, combo_fonts);
183 QWidget::setTabOrder(combo_fonts, combo_sizes);
184 QWidget::setTabOrder(combo_sizes, combo_libSize);
185 QWidget::setTabOrder(combo_libSize, cb_libBold);
186 QWidget::setTabOrder(cb_libBold, combo_plSize);
187 QWidget::setTabOrder(combo_plSize, btn_default);
196 label_6->setText(QCoreApplication::translate(
"GUI_FontPreferences",
"Font size",
nullptr));
197 label_5->setText(QCoreApplication::translate(
"GUI_FontPreferences",
"Font size",
nullptr));
198 label->setText(QCoreApplication::translate(
"GUI_FontPreferences",
"Font size",
nullptr));
199 label_7->setText(QCoreApplication::translate(
"GUI_FontPreferences",
"Bold",
nullptr));
200 label_2->setText(QCoreApplication::translate(
"GUI_FontPreferences",
"Font name",
nullptr));
201 cb_libBold->setText(QString());
213 #endif // UI_GUI_FONTPREFERENCES_H