9 #ifndef UI_PQSAVEPRESETOPTIONS_H 10 #define UI_PQSAVEPRESETOPTIONS_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QCheckBox> 15 #include <QtWidgets/QDialog> 16 #include <QtWidgets/QDialogButtonBox> 17 #include <QtWidgets/QHBoxLayout> 18 #include <QtWidgets/QLabel> 19 #include <QtWidgets/QLineEdit> 20 #include <QtWidgets/QSpacerItem> 21 #include <QtWidgets/QVBoxLayout> 40 if (SavePresetOptions->objectName().isEmpty())
41 SavePresetOptions->setObjectName(QString::fromUtf8(
"SavePresetOptions"));
42 SavePresetOptions->resize(241, 198);
43 verticalLayout =
new QVBoxLayout(SavePresetOptions);
44 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
45 saveColors =
new QCheckBox(SavePresetOptions);
46 saveColors->setObjectName(QString::fromUtf8(
"saveColors"));
48 verticalLayout->addWidget(saveColors);
50 saveOpacities =
new QCheckBox(SavePresetOptions);
51 saveOpacities->setObjectName(QString::fromUtf8(
"saveOpacities"));
53 verticalLayout->addWidget(saveOpacities);
55 saveAnnotations =
new QCheckBox(SavePresetOptions);
56 saveAnnotations->setObjectName(QString::fromUtf8(
"saveAnnotations"));
58 verticalLayout->addWidget(saveAnnotations);
60 horizontalLayout =
new QHBoxLayout();
61 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
62 label =
new QLabel(SavePresetOptions);
63 label->setObjectName(QString::fromUtf8(
"label"));
65 horizontalLayout->addWidget(label);
67 presetName =
new QLineEdit(SavePresetOptions);
68 presetName->setObjectName(QString::fromUtf8(
"presetName"));
70 horizontalLayout->addWidget(presetName);
73 verticalLayout->addLayout(horizontalLayout);
75 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
77 verticalLayout->addItem(verticalSpacer);
79 buttonBox =
new QDialogButtonBox(SavePresetOptions);
80 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
81 buttonBox->setOrientation(Qt::Horizontal);
82 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
84 verticalLayout->addWidget(buttonBox);
88 QObject::connect(buttonBox, SIGNAL(accepted()), SavePresetOptions, SLOT(accept()));
89 QObject::connect(buttonBox, SIGNAL(rejected()), SavePresetOptions, SLOT(reject()));
91 QMetaObject::connectSlotsByName(SavePresetOptions);
96 SavePresetOptions->setWindowTitle(QCoreApplication::translate(
"SavePresetOptions",
"Save Preset Options",
nullptr));
97 #if QT_CONFIG(tooltip) 98 saveColors->setToolTip(QCoreApplication::translate(
"SavePresetOptions",
"Check to save colors to the preset.",
nullptr));
99 #endif // QT_CONFIG(tooltip) 100 saveColors->setText(QCoreApplication::translate(
"SavePresetOptions",
"Save colors",
nullptr));
101 #if QT_CONFIG(tooltip) 102 saveOpacities->setToolTip(QCoreApplication::translate(
"SavePresetOptions",
"Check to save opacities to the preset.",
nullptr));
103 #endif // QT_CONFIG(tooltip) 104 saveOpacities->setText(QCoreApplication::translate(
"SavePresetOptions",
"Save opacities",
nullptr));
105 #if QT_CONFIG(tooltip) 106 saveAnnotations->setToolTip(QCoreApplication::translate(
"SavePresetOptions",
"Check to save annotations to the preset.",
nullptr));
107 #endif // QT_CONFIG(tooltip) 108 saveAnnotations->setText(QCoreApplication::translate(
"SavePresetOptions",
"Save annotations",
nullptr));
109 label->setText(QCoreApplication::translate(
"SavePresetOptions",
"Preset name",
nullptr));
110 #if QT_CONFIG(tooltip) 111 presetName->setToolTip(QCoreApplication::translate(
"SavePresetOptions",
"Set a name to the preset.",
nullptr));
112 #endif // QT_CONFIG(tooltip) 113 presetName->setText(QCoreApplication::translate(
"SavePresetOptions",
"Preset",
nullptr));
124 #endif // UI_PQSAVEPRESETOPTIONS_H QSpacerItem * verticalSpacer
QCheckBox * saveOpacities
QDialogButtonBox * buttonBox
void retranslateUi(QDialog *SavePresetOptions)
QCheckBox * saveAnnotations
void setupUi(QDialog *SavePresetOptions)
QHBoxLayout * horizontalLayout
QVBoxLayout * verticalLayout