9 #ifndef UI_PQRESCALESCALARRANGETODATAOVERTIMEDIALOG_H 10 #define UI_PQRESCALESCALARRANGETODATAOVERTIMEDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QCheckBox> 15 #include <QtWidgets/QDialog> 16 #include <QtWidgets/QHBoxLayout> 17 #include <QtWidgets/QLabel> 18 #include <QtWidgets/QPushButton> 19 #include <QtWidgets/QSpacerItem> 20 #include <QtWidgets/QVBoxLayout> 36 void setupUi(QDialog *RescaleScalarRangeToDataOverTimeDialog)
38 if (RescaleScalarRangeToDataOverTimeDialog->objectName().isEmpty())
39 RescaleScalarRangeToDataOverTimeDialog->setObjectName(QString::fromUtf8(
"RescaleScalarRangeToDataOverTimeDialog"));
40 RescaleScalarRangeToDataOverTimeDialog->resize(495, 151);
41 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding);
42 sizePolicy.setHorizontalStretch(0);
43 sizePolicy.setVerticalStretch(0);
44 sizePolicy.setHeightForWidth(RescaleScalarRangeToDataOverTimeDialog->sizePolicy().hasHeightForWidth());
45 RescaleScalarRangeToDataOverTimeDialog->setSizePolicy(sizePolicy);
46 verticalLayout =
new QVBoxLayout(RescaleScalarRangeToDataOverTimeDialog);
47 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
48 descriptionText =
new QLabel(RescaleScalarRangeToDataOverTimeDialog);
49 descriptionText->setObjectName(QString::fromUtf8(
"descriptionText"));
50 QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Maximum);
51 sizePolicy1.setHorizontalStretch(0);
52 sizePolicy1.setVerticalStretch(0);
53 sizePolicy1.setHeightForWidth(descriptionText->sizePolicy().hasHeightForWidth());
54 descriptionText->setSizePolicy(sizePolicy1);
55 descriptionText->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
56 descriptionText->setWordWrap(
true);
58 verticalLayout->addWidget(descriptionText);
60 AutomaticRescaling =
new QCheckBox(RescaleScalarRangeToDataOverTimeDialog);
61 AutomaticRescaling->setObjectName(QString::fromUtf8(
"AutomaticRescaling"));
62 AutomaticRescaling->setChecked(
true);
64 verticalLayout->addWidget(AutomaticRescaling);
66 hboxLayout =
new QHBoxLayout();
67 hboxLayout->setSpacing(6);
68 hboxLayout->setObjectName(QString::fromUtf8(
"hboxLayout"));
69 hboxLayout->setContentsMargins(0, 0, 0, 0);
70 ApplyButton =
new QPushButton(RescaleScalarRangeToDataOverTimeDialog);
71 ApplyButton->setObjectName(QString::fromUtf8(
"ApplyButton"));
73 hboxLayout->addWidget(ApplyButton);
75 spacerItem =
new QSpacerItem(0, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
77 hboxLayout->addItem(spacerItem);
79 CancelButton =
new QPushButton(RescaleScalarRangeToDataOverTimeDialog);
80 CancelButton->setObjectName(QString::fromUtf8(
"CancelButton"));
82 hboxLayout->addWidget(CancelButton);
84 RescaleButton =
new QPushButton(RescaleScalarRangeToDataOverTimeDialog);
85 RescaleButton->setObjectName(QString::fromUtf8(
"RescaleButton"));
87 hboxLayout->addWidget(RescaleButton);
90 verticalLayout->addLayout(hboxLayout);
92 verticalLayout->setStretch(0, 1);
96 RescaleButton->setDefault(
true);
99 QMetaObject::connectSlotsByName(RescaleScalarRangeToDataOverTimeDialog);
104 RescaleScalarRangeToDataOverTimeDialog->setWindowTitle(QCoreApplication::translate(
"RescaleScalarRangeToDataOverTimeDialog",
"Rescale range over time",
nullptr));
105 #if QT_CONFIG(tooltip) 106 descriptionText->setToolTip(QString());
107 #endif // QT_CONFIG(tooltip) 108 descriptionText->setText(QCoreApplication::translate(
"RescaleScalarRangeToDataOverTimeDialog",
"<html><head/><body><p>Determining range over all timesteps can potentially take a long time to complete. Are you sure you want to continue?</p></body></html>",
nullptr));
109 #if QT_CONFIG(tooltip) 110 AutomaticRescaling->setToolTip(QCoreApplication::translate(
"RescaleScalarRangeToDataOverTimeDialog",
"If off lock the color map to avoid automatic rescaling",
nullptr));
111 #endif // QT_CONFIG(tooltip) 112 AutomaticRescaling->setText(QCoreApplication::translate(
"RescaleScalarRangeToDataOverTimeDialog",
"Enable automatic rescaling",
nullptr));
113 #if QT_CONFIG(tooltip) 114 ApplyButton->setToolTip(QCoreApplication::translate(
"RescaleScalarRangeToDataOverTimeDialog",
"Apply rescale",
nullptr));
115 #endif // QT_CONFIG(tooltip) 116 ApplyButton->setText(QCoreApplication::translate(
"RescaleScalarRangeToDataOverTimeDialog",
"Apply",
nullptr));
117 #if QT_CONFIG(tooltip) 118 CancelButton->setToolTip(QCoreApplication::translate(
"RescaleScalarRangeToDataOverTimeDialog",
"Close without rescaling",
nullptr));
119 #endif // QT_CONFIG(tooltip) 120 CancelButton->setText(QCoreApplication::translate(
"RescaleScalarRangeToDataOverTimeDialog",
"Cancel",
nullptr));
121 #if QT_CONFIG(tooltip) 122 RescaleButton->setToolTip(QCoreApplication::translate(
"RescaleScalarRangeToDataOverTimeDialog",
"Rescale and update automatic rescaling if changed.",
nullptr));
123 #endif // QT_CONFIG(tooltip) 124 RescaleButton->setText(QCoreApplication::translate(
"RescaleScalarRangeToDataOverTimeDialog",
"Ok",
nullptr));
135 #endif // UI_PQRESCALESCALARRANGETODATAOVERTIMEDIALOG_H