1 #include <klocalizedstring.h>
11 #ifndef UI_CODEGENOPTIONSPAGE_H
12 #define UI_CODEGENOPTIONSPAGE_H
14 #include <QtCore/QVariant>
15 #include <QtWidgets/QApplication>
16 #include <QtWidgets/QCheckBox>
17 #include <QtWidgets/QGridLayout>
18 #include <QtWidgets/QGroupBox>
19 #include <QtWidgets/QHBoxLayout>
20 #include <QtWidgets/QLabel>
21 #include <QtWidgets/QPushButton>
22 #include <QtWidgets/QRadioButton>
23 #include <QtWidgets/QSpinBox>
24 #include <QtWidgets/QTabWidget>
25 #include <QtWidgets/QVBoxLayout>
26 #include <QtWidgets/QWidget>
27 #include "kcombobox.h"
28 #include "klineedit.h"
84 QSizePolicy sizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
85 sizePolicy.setHorizontalStretch(0);
86 sizePolicy.setVerticalStretch(0);
90 vboxLayout->setObjectName(QString::fromUtf8(
"vboxLayout"));
94 QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Preferred);
95 sizePolicy1.setHorizontalStretch(0);
96 sizePolicy1.setVerticalStretch(0);
97 sizePolicy1.setHeightForWidth(
ui_tabWidgetMain->sizePolicy().hasHeightForWidth());
100 ui_tabGeneral->setObjectName(QString::fromUtf8(
"ui_tabGeneral"));
102 vboxLayout1->setObjectName(QString::fromUtf8(
"vboxLayout1"));
104 vboxLayout2->setObjectName(QString::fromUtf8(
"vboxLayout2"));
110 vboxLayout3->setObjectName(QString::fromUtf8(
"vboxLayout3"));
124 vboxLayout4->setObjectName(QString::fromUtf8(
"vboxLayout4"));
132 hboxLayout->setObjectName(QString::fromUtf8(
"hboxLayout"));
134 ui_outputDir->setObjectName(QString::fromUtf8(
"ui_outputDir"));
153 hboxLayout1->setObjectName(QString::fromUtf8(
"hboxLayout1"));
155 ui_headingsDir->setObjectName(QString::fromUtf8(
"ui_headingsDir"));
173 vboxLayout5->setObjectName(QString::fromUtf8(
"vboxLayout5"));
182 vboxLayout6->setObjectName(QString::fromUtf8(
"vboxLayout6"));
213 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
215 gridLayout1->setObjectName(QString::fromUtf8(
"gridLayout1"));
219 vboxLayout7->setObjectName(QString::fromUtf8(
"vboxLayout7"));
221 ui_forceDoc->setObjectName(QString::fromUtf8(
"ui_forceDoc"));
236 vboxLayout8->setObjectName(QString::fromUtf8(
"vboxLayout8"));
238 hboxLayout2->setObjectName(QString::fromUtf8(
"hboxLayout2"));
257 hboxLayout3->setObjectName(QString::fromUtf8(
"hboxLayout3"));
260 QSizePolicy sizePolicy2(QSizePolicy::Minimum, QSizePolicy::Fixed);
261 sizePolicy2.setHorizontalStretch(0);
262 sizePolicy2.setVerticalStretch(0);
278 hboxLayout4->setObjectName(QString::fromUtf8(
"hboxLayout4"));
320 ui_textLabelFolder->setText(tr2i18n(
"Write all generated files to folder:",
nullptr));
321 #if QT_CONFIG(whatsthis)
322 ui_outputDir->setWhatsThis(tr2i18n(
"Files generated by Code Generator will be written to this folder",
nullptr));
323 #endif // QT_CONFIG(whatsthis)
326 #if QT_CONFIG(whatsthis)
327 ui_headingsDir->setWhatsThis(tr2i18n(
"Files in this folder will be used as heading files in the generated code",
nullptr));
328 #endif // QT_CONFIG(whatsthis)
332 "generator wants to use as output file already exists:",
nullptr));
333 #if QT_CONFIG(whatsthis)
334 ui_radioButtonOverwrite->setWhatsThis(tr2i18n(
"Overwrite existing files if they exist in the destination folder",
nullptr));
335 #endif // QT_CONFIG(whatsthis)
337 #if QT_CONFIG(whatsthis)
338 ui_radioButtonAsk->setWhatsThis(tr2i18n(
"If a file with the same name already exists, ask what to do",
nullptr));
339 #endif // QT_CONFIG(whatsthis)
341 #if QT_CONFIG(whatsthis)
342 ui_radioButtonChangeName->setWhatsThis(tr2i18n(
"If a file already exists in the destination folder, select a different name to use by adding a suffix to the file name",
nullptr));
343 #endif // QT_CONFIG(whatsthis)
347 #if QT_CONFIG(whatsthis)
348 ui_forceDoc->setWhatsThis(tr2i18n(
"Write comments &for class and method documentation even if empty",
nullptr));
349 #endif // QT_CONFIG(whatsthis)
350 ui_forceDoc->setText(tr2i18n(
"&Write documentation comments even if empty",
nullptr));
351 #if QT_CONFIG(whatsthis)
352 ui_forceSections->setWhatsThis(tr2i18n(
"Writes comments to indicate the different sections (public, private etc) in a class, even if the sections are empty",
nullptr));
353 #endif // QT_CONFIG(whatsthis)
354 ui_forceSections->setText(tr2i18n(
"Write comments &for sections even if section \n"
355 "is empty",
nullptr));
379 #endif // CODEGENOPTIONSPAGE_H