comparison ui_Settings.h @ 1:0b3630a29ad8

Initial version based on previous repository. Project was ported to QT6 and in now cmake based.
author Ideenmodellierer <tiefenrauscher@web.de>
date Thu, 27 Nov 2025 18:40:28 +0100
parents
children
comparison
equal deleted inserted replaced
0:76ccd6ce50c0 1:0b3630a29ad8
1 /********************************************************************************
2 ** Form generated from reading UI file 'Settings.ui'
3 **
4 ** Created by: Qt User Interface Compiler version 5.13.0
5 **
6 ** WARNING! All changes made in this file will be lost when recompiling UI file!
7 ********************************************************************************/
8
9 #ifndef UI_SETTINGS_H
10 #define UI_SETTINGS_H
11
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QApplication>
14 #include <QtWidgets/QCheckBox>
15 #include <QtWidgets/QComboBox>
16 #include <QtWidgets/QDialog>
17 #include <QtWidgets/QFrame>
18 #include <QtWidgets/QGridLayout>
19 #include <QtWidgets/QHBoxLayout>
20 #include <QtWidgets/QLabel>
21 #include <QtWidgets/QPushButton>
22 #include <QtWidgets/QSpacerItem>
23 #include <QtWidgets/QToolButton>
24
25 QT_BEGIN_NAMESPACE
26
27 class Ui_Settings
28 {
29 public:
30 QGridLayout *gridLayout;
31 QFrame *line_3;
32 QCheckBox *forceFirmwareUpdate;
33 QComboBox *portMenu;
34 QCheckBox *autoSetDateTimeCB;
35 QCheckBox *forceFontlibUpdate;
36 QLabel *noPortLabel;
37 QComboBox *languageMenu;
38 QToolButton *updatePorts;
39 QHBoxLayout *horizontalLayout;
40 QPushButton *resetB;
41 QSpacerItem *horizontalSpacer_2;
42 QPushButton *okB;
43 QPushButton *cancelB;
44 QLabel *label;
45 QCheckBox *forceRTEUpdate;
46 QFrame *line_4;
47 QLabel *label_2;
48 QSpacerItem *horizontalSpacer;
49 QFrame *line;
50 QCheckBox *useFastMode;
51
52 void setupUi(QDialog *Settings)
53 {
54 if (Settings->objectName().isEmpty())
55 Settings->setObjectName(QString::fromUtf8("Settings"));
56 Settings->resize(341, 293);
57 gridLayout = new QGridLayout(Settings);
58 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
59 line_3 = new QFrame(Settings);
60 line_3->setObjectName(QString::fromUtf8("line_3"));
61 line_3->setFrameShape(QFrame::HLine);
62 line_3->setFrameShadow(QFrame::Sunken);
63
64 gridLayout->addWidget(line_3, 10, 0, 1, 3);
65
66 forceFirmwareUpdate = new QCheckBox(Settings);
67 forceFirmwareUpdate->setObjectName(QString::fromUtf8("forceFirmwareUpdate"));
68
69 gridLayout->addWidget(forceFirmwareUpdate, 6, 0, 1, 2);
70
71 portMenu = new QComboBox(Settings);
72 portMenu->setObjectName(QString::fromUtf8("portMenu"));
73 portMenu->setEditable(true);
74
75 gridLayout->addWidget(portMenu, 2, 1, 1, 1);
76
77 autoSetDateTimeCB = new QCheckBox(Settings);
78 autoSetDateTimeCB->setObjectName(QString::fromUtf8("autoSetDateTimeCB"));
79
80 gridLayout->addWidget(autoSetDateTimeCB, 11, 0, 1, 3);
81
82 forceFontlibUpdate = new QCheckBox(Settings);
83 forceFontlibUpdate->setObjectName(QString::fromUtf8("forceFontlibUpdate"));
84
85 gridLayout->addWidget(forceFontlibUpdate, 8, 0, 1, 2);
86
87 noPortLabel = new QLabel(Settings);
88 noPortLabel->setObjectName(QString::fromUtf8("noPortLabel"));
89 QSizePolicy sizePolicy(QSizePolicy::Ignored, QSizePolicy::Preferred);
90 sizePolicy.setHorizontalStretch(0);
91 sizePolicy.setVerticalStretch(0);
92 sizePolicy.setHeightForWidth(noPortLabel->sizePolicy().hasHeightForWidth());
93 noPortLabel->setSizePolicy(sizePolicy);
94 noPortLabel->setTextFormat(Qt::RichText);
95 noPortLabel->setAlignment(Qt::AlignCenter);
96 noPortLabel->setOpenExternalLinks(true);
97
98 gridLayout->addWidget(noPortLabel, 4, 0, 1, 3);
99
100 languageMenu = new QComboBox(Settings);
101 QIcon icon;
102 icon.addFile(QString::fromUtf8(":/icons/Icons/german.png"), QSize(), QIcon::Normal, QIcon::Off);
103 languageMenu->addItem(icon, QString::fromUtf8("Deutsch"));
104 QIcon icon1;
105 icon1.addFile(QString::fromUtf8(":/icons/Icons/english.png"), QSize(), QIcon::Normal, QIcon::Off);
106 languageMenu->addItem(icon1, QString::fromUtf8("English"));
107 QIcon icon2;
108 icon2.addFile(QString::fromUtf8(":/icons/Icons/spanish.png"), QSize(), QIcon::Normal, QIcon::Off);
109 languageMenu->addItem(icon2, QString::fromUtf8("Espa\303\261ol"));
110 QIcon icon3;
111 icon3.addFile(QString::fromUtf8(":/icons/Icons/french.png"), QSize(), QIcon::Normal, QIcon::Off);
112 languageMenu->addItem(icon3, QString::fromUtf8("Fran\303\247ais"));
113 QIcon icon4;
114 icon4.addFile(QString::fromUtf8(":/icons/Icons/italian.png"), QSize(), QIcon::Normal, QIcon::Off);
115 languageMenu->addItem(icon4, QString::fromUtf8("Italiano"));
116 QIcon icon5;
117 icon5.addFile(QString::fromUtf8(":/icons/Icons/russian.png"), QSize(), QIcon::Normal, QIcon::Off);
118 languageMenu->addItem(icon5, QString::fromUtf8("\320\240\321\203\321\201\321\201\320\272\320\270\320\271"));
119 languageMenu->setObjectName(QString::fromUtf8("languageMenu"));
120 languageMenu->setInsertPolicy(QComboBox::NoInsert);
121
122 gridLayout->addWidget(languageMenu, 0, 1, 1, 1);
123
124 updatePorts = new QToolButton(Settings);
125 updatePorts->setObjectName(QString::fromUtf8("updatePorts"));
126 updatePorts->setText(QString::fromUtf8("..."));
127
128 gridLayout->addWidget(updatePorts, 2, 2, 1, 1);
129
130 horizontalLayout = new QHBoxLayout();
131 horizontalLayout->setSpacing(0);
132 horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
133 resetB = new QPushButton(Settings);
134 resetB->setObjectName(QString::fromUtf8("resetB"));
135
136 horizontalLayout->addWidget(resetB);
137
138 horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
139
140 horizontalLayout->addItem(horizontalSpacer_2);
141
142 okB = new QPushButton(Settings);
143 okB->setObjectName(QString::fromUtf8("okB"));
144 okB->setAutoDefault(false);
145
146 horizontalLayout->addWidget(okB);
147
148 cancelB = new QPushButton(Settings);
149 cancelB->setObjectName(QString::fromUtf8("cancelB"));
150
151 horizontalLayout->addWidget(cancelB);
152
153
154 gridLayout->addLayout(horizontalLayout, 15, 0, 1, 3);
155
156 label = new QLabel(Settings);
157 label->setObjectName(QString::fromUtf8("label"));
158 label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
159
160 gridLayout->addWidget(label, 0, 0, 1, 1);
161
162 forceRTEUpdate = new QCheckBox(Settings);
163 forceRTEUpdate->setObjectName(QString::fromUtf8("forceRTEUpdate"));
164
165 gridLayout->addWidget(forceRTEUpdate, 7, 0, 1, 2);
166
167 line_4 = new QFrame(Settings);
168 line_4->setObjectName(QString::fromUtf8("line_4"));
169 line_4->setFrameShape(QFrame::HLine);
170 line_4->setFrameShadow(QFrame::Sunken);
171
172 gridLayout->addWidget(line_4, 5, 0, 1, 3);
173
174 label_2 = new QLabel(Settings);
175 label_2->setObjectName(QString::fromUtf8("label_2"));
176 QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Preferred);
177 sizePolicy1.setHorizontalStretch(0);
178 sizePolicy1.setVerticalStretch(0);
179 sizePolicy1.setHeightForWidth(label_2->sizePolicy().hasHeightForWidth());
180 label_2->setSizePolicy(sizePolicy1);
181 label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
182
183 gridLayout->addWidget(label_2, 2, 0, 1, 1);
184
185 horizontalSpacer = new QSpacerItem(0, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
186
187 gridLayout->addItem(horizontalSpacer, 0, 2, 1, 1);
188
189 line = new QFrame(Settings);
190 line->setObjectName(QString::fromUtf8("line"));
191 line->setFrameShape(QFrame::HLine);
192 line->setFrameShadow(QFrame::Sunken);
193
194 gridLayout->addWidget(line, 14, 0, 1, 3);
195
196 useFastMode = new QCheckBox(Settings);
197 useFastMode->setObjectName(QString::fromUtf8("useFastMode"));
198
199 gridLayout->addWidget(useFastMode, 13, 0, 1, 3);
200
201
202 retranslateUi(Settings);
203 QObject::connect(okB, SIGNAL(clicked()), Settings, SLOT(accept()));
204 QObject::connect(cancelB, SIGNAL(clicked()), Settings, SLOT(reject()));
205 QObject::connect(languageMenu, SIGNAL(activated(int)), Settings, SLOT(languageSlot(int)));
206 QObject::connect(updatePorts, SIGNAL(clicked()), Settings, SLOT(updatePortsSlot()));
207 QObject::connect(resetB, SIGNAL(clicked()), Settings, SLOT(resetSettingsSlot()));
208
209 languageMenu->setCurrentIndex(0);
210 okB->setDefault(true);
211
212
213 QMetaObject::connectSlotsByName(Settings);
214 } // setupUi
215
216 void retranslateUi(QDialog *Settings)
217 {
218 Settings->setWindowTitle(QCoreApplication::translate("Settings", "OSTC Companion settings", nullptr));
219 forceFirmwareUpdate->setText(QCoreApplication::translate("Settings", "Force Firmware update", nullptr));
220 #if QT_CONFIG(tooltip)
221 autoSetDateTimeCB->setToolTip(QCoreApplication::translate("Settings", "If checked, any configuration upload will also setup date and time.", nullptr));
222 #endif // QT_CONFIG(tooltip)
223 autoSetDateTimeCB->setText(QCoreApplication::translate("Settings", "Auto setup of date && time", nullptr));
224 forceFontlibUpdate->setText(QCoreApplication::translate("Settings", "Force FontLib update", nullptr));
225
226 #if QT_CONFIG(tooltip)
227 updatePorts->setToolTip(QCoreApplication::translate("Settings", "Update port list with currently connected USB or Bluetooth devices.", nullptr));
228 #endif // QT_CONFIG(tooltip)
229 resetB->setText(QCoreApplication::translate("Settings", "Restore Defaults", nullptr));
230 okB->setText(QCoreApplication::translate("Settings", "OK", nullptr));
231 #if QT_CONFIG(shortcut)
232 okB->setShortcut(QCoreApplication::translate("Settings", "Return", nullptr));
233 #endif // QT_CONFIG(shortcut)
234 cancelB->setText(QCoreApplication::translate("Settings", "Cancel", nullptr));
235 #if QT_CONFIG(shortcut)
236 cancelB->setShortcut(QCoreApplication::translate("Settings", "Ctrl+W", nullptr));
237 #endif // QT_CONFIG(shortcut)
238 label->setText(QCoreApplication::translate("Settings", "Language:", nullptr));
239 forceRTEUpdate->setText(QCoreApplication::translate("Settings", "Force RTE update", nullptr));
240 label_2->setText(QCoreApplication::translate("Settings", "Communication port:", nullptr));
241 useFastMode->setText(QCoreApplication::translate("Settings", "Enable fast mode if supported", nullptr));
242 } // retranslateUi
243
244 };
245
246 namespace Ui {
247 class Settings: public Ui_Settings {};
248 } // namespace Ui
249
250 QT_END_NAMESPACE
251
252 #endif // UI_SETTINGS_H