9 #ifndef UI_GUI_LANGUAGEPREFERENCES_H
10 #define UI_GUI_LANGUAGEPREFERENCES_H
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QApplication>
14 #include <QtWidgets/QFrame>
15 #include <QtWidgets/QGridLayout>
16 #include <QtWidgets/QHBoxLayout>
17 #include <QtWidgets/QLabel>
18 #include <QtWidgets/QPushButton>
19 #include <QtWidgets/QSpacerItem>
20 #include <QtWidgets/QWidget>
21 #include "Gui/Utils/Widgets/ComboBox.h"
28 QGridLayout *gridLayout;
32 QHBoxLayout *horizontalLayout;
33 QPushButton *btnCheckForUpdate;
34 QHBoxLayout *horizontalLayout_2;
36 QPushButton *btnImport;
40 QSpacerItem *verticalSpacer;
48 gridLayout->setSpacing(7);
49 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
51 comboLanguages->addItem(QString());
52 comboLanguages->setObjectName(QString::fromUtf8(
"comboLanguages"));
53 comboLanguages->setCurrentText(QString::fromUtf8(
"English"));
55 gridLayout->addWidget(comboLanguages, 0, 0, 1, 1);
58 line_2->setObjectName(QString::fromUtf8(
"line_2"));
59 line_2->setFrameShape(QFrame::HLine);
60 line_2->setFrameShadow(QFrame::Sunken);
62 gridLayout->addWidget(line_2, 5, 0, 1, 1);
65 line->setObjectName(QString::fromUtf8(
"line"));
66 line->setFrameShape(QFrame::HLine);
67 line->setFrameShadow(QFrame::Sunken);
69 gridLayout->addWidget(line, 3, 0, 1, 1);
71 horizontalLayout =
new QHBoxLayout();
72 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
74 btnCheckForUpdate->setObjectName(QString::fromUtf8(
"btnCheckForUpdate"));
76 horizontalLayout->addWidget(btnCheckForUpdate);
79 gridLayout->addLayout(horizontalLayout, 4, 0, 1, 1);
81 horizontalLayout_2 =
new QHBoxLayout();
82 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
84 label->setObjectName(QString::fromUtf8(
"label"));
86 horizontalLayout_2->addWidget(label);
89 btnImport->setObjectName(QString::fromUtf8(
"btnImport"));
90 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed);
91 sizePolicy.setHorizontalStretch(0);
92 sizePolicy.setVerticalStretch(0);
93 sizePolicy.setHeightForWidth(btnImport->sizePolicy().hasHeightForWidth());
94 btnImport->setSizePolicy(sizePolicy);
95 btnImport->setText(QString::fromUtf8(
"..."));
97 horizontalLayout_2->addWidget(btnImport);
100 gridLayout->addLayout(horizontalLayout_2, 6, 0, 1, 1);
103 line_3->setObjectName(QString::fromUtf8(
"line_3"));
104 line_3->setFrameShape(QFrame::HLine);
105 line_3->setFrameShadow(QFrame::Sunken);
107 gridLayout->addWidget(line_3, 7, 0, 1, 1);
110 labLink->setObjectName(QString::fromUtf8(
"labLink"));
111 labLink->setText(QString::fromUtf8(
""));
112 labLink->setTextFormat(Qt::RichText);
113 labLink->setOpenExternalLinks(
true);
115 gridLayout->addWidget(labLink, 9, 0, 1, 1);
118 label_2->setObjectName(QString::fromUtf8(
"label_2"));
119 label_2->setWordWrap(
true);
121 gridLayout->addWidget(label_2, 8, 0, 1, 1);
123 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
125 gridLayout->addItem(verticalSpacer, 10, 0, 1, 1);
135 comboLanguages->setItemText(0, QCoreApplication::translate(
"GUI_LanguagePreferences",
"English",
nullptr));
137 btnCheckForUpdate->setText(QCoreApplication::translate(
"GUI_LanguagePreferences",
"Check for update",
nullptr));
138 label->setText(QCoreApplication::translate(
"GUI_LanguagePreferences",
"Import new language",
nullptr));
139 label_2->setText(QCoreApplication::translate(
"GUI_LanguagePreferences",
"For new languages I am always looking for translators",
nullptr));
151 #endif // UI_GUI_LANGUAGEPREFERENCES_H