9 #ifndef UI_PQRESCALESCALARRANGETOCUSTOMDIALOG_H 10 #define UI_PQRESCALESCALARRANGETOCUSTOMDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QCheckBox> 15 #include <QtWidgets/QDialog> 16 #include <QtWidgets/QGridLayout> 17 #include <QtWidgets/QHBoxLayout> 18 #include <QtWidgets/QLabel> 19 #include <QtWidgets/QPushButton> 42 void setupUi(QDialog *RescaleScalarRangeToCustomDialog)
44 if (RescaleScalarRangeToCustomDialog->objectName().isEmpty())
45 RescaleScalarRangeToCustomDialog->setObjectName(QString::fromUtf8(
"RescaleScalarRangeToCustomDialog"));
46 gridLayout =
new QGridLayout(RescaleScalarRangeToCustomDialog);
47 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
48 ColorMapLabel =
new QLabel(RescaleScalarRangeToCustomDialog);
49 ColorMapLabel->setObjectName(QString::fromUtf8(
"ColorMapLabel"));
51 gridLayout->addWidget(ColorMapLabel, 0, 0, 1, 3);
54 MinimumScalar->setObjectName(QString::fromUtf8(
"MinimumScalar"));
56 gridLayout->addWidget(MinimumScalar, 1, 0, 1, 1);
58 ColorHyphenLabel =
new QLabel(RescaleScalarRangeToCustomDialog);
59 ColorHyphenLabel->setObjectName(QString::fromUtf8(
"ColorHyphenLabel"));
61 gridLayout->addWidget(ColorHyphenLabel, 1, 1, 1, 1);
64 MaximumScalar->setObjectName(QString::fromUtf8(
"MaximumScalar"));
66 gridLayout->addWidget(MaximumScalar, 1, 2, 1, 1);
68 OpacityLabel =
new QLabel(RescaleScalarRangeToCustomDialog);
69 OpacityLabel->setObjectName(QString::fromUtf8(
"OpacityLabel"));
71 gridLayout->addWidget(OpacityLabel, 2, 0, 1, 3);
73 MinimumOpacityScalar =
new pqDoubleLineEdit(RescaleScalarRangeToCustomDialog);
74 MinimumOpacityScalar->setObjectName(QString::fromUtf8(
"MinimumOpacityScalar"));
76 gridLayout->addWidget(MinimumOpacityScalar, 3, 0, 1, 1);
78 OpacityHyphenLabel =
new QLabel(RescaleScalarRangeToCustomDialog);
79 OpacityHyphenLabel->setObjectName(QString::fromUtf8(
"OpacityHyphenLabel"));
81 gridLayout->addWidget(OpacityHyphenLabel, 3, 1, 1, 1);
83 MaximumOpacityScalar =
new pqDoubleLineEdit(RescaleScalarRangeToCustomDialog);
84 MaximumOpacityScalar->setObjectName(QString::fromUtf8(
"MaximumOpacityScalar"));
86 gridLayout->addWidget(MaximumOpacityScalar, 3, 2, 1, 1);
88 AutomaticRescaling =
new QCheckBox(RescaleScalarRangeToCustomDialog);
89 AutomaticRescaling->setObjectName(QString::fromUtf8(
"AutomaticRescaling"));
90 AutomaticRescaling->setChecked(
true);
92 gridLayout->addWidget(AutomaticRescaling, 4, 0, 1, 3);
94 hboxLayout =
new QHBoxLayout();
95 hboxLayout->setObjectName(QString::fromUtf8(
"hboxLayout"));
96 ApplyButton =
new QPushButton(RescaleScalarRangeToCustomDialog);
97 ApplyButton->setObjectName(QString::fromUtf8(
"ApplyButton"));
99 hboxLayout->addWidget(ApplyButton);
101 CancelButton =
new QPushButton(RescaleScalarRangeToCustomDialog);
102 CancelButton->setObjectName(QString::fromUtf8(
"CancelButton"));
104 hboxLayout->addWidget(CancelButton);
106 RescaleButton =
new QPushButton(RescaleScalarRangeToCustomDialog);
107 RescaleButton->setObjectName(QString::fromUtf8(
"RescaleButton"));
109 hboxLayout->addWidget(RescaleButton);
112 gridLayout->addLayout(hboxLayout, 5, 0, 1, 3);
117 RescaleButton->setDefault(
true);
120 QMetaObject::connectSlotsByName(RescaleScalarRangeToCustomDialog);
125 RescaleScalarRangeToCustomDialog->setWindowTitle(QCoreApplication::translate(
"RescaleScalarRangeToCustomDialog",
"Set Range",
nullptr));
126 ColorMapLabel->setText(QCoreApplication::translate(
"RescaleScalarRangeToCustomDialog",
"Enter the range for the color map",
nullptr));
127 #if QT_CONFIG(tooltip) 128 MinimumScalar->setToolTip(QCoreApplication::translate(
"RescaleScalarRangeToCustomDialog",
"Enter the new range minimum for the color map here.",
nullptr));
129 #endif // QT_CONFIG(tooltip) 130 MinimumScalar->setPlaceholderText(QCoreApplication::translate(
"RescaleScalarRangeToCustomDialog",
"minimum",
nullptr));
131 ColorHyphenLabel->setText(QCoreApplication::translate(
"RescaleScalarRangeToCustomDialog",
"-",
nullptr));
132 #if QT_CONFIG(tooltip) 133 MaximumScalar->setToolTip(QCoreApplication::translate(
"RescaleScalarRangeToCustomDialog",
"Enter the new range maximum for the color map here.",
nullptr));
134 #endif // QT_CONFIG(tooltip) 135 MaximumScalar->setPlaceholderText(QCoreApplication::translate(
"RescaleScalarRangeToCustomDialog",
"maximum",
nullptr));
136 OpacityLabel->setText(QCoreApplication::translate(
"RescaleScalarRangeToCustomDialog",
"Enter the range for the opacity map",
nullptr));
137 #if QT_CONFIG(tooltip) 138 MinimumOpacityScalar->setToolTip(QCoreApplication::translate(
"RescaleScalarRangeToCustomDialog",
"Enter the new range minimum for the opacity map here.",
nullptr));
139 #endif // QT_CONFIG(tooltip) 140 OpacityHyphenLabel->setText(QCoreApplication::translate(
"RescaleScalarRangeToCustomDialog",
"-",
nullptr));
141 #if QT_CONFIG(tooltip) 142 MaximumOpacityScalar->setToolTip(QCoreApplication::translate(
"RescaleScalarRangeToCustomDialog",
"Enter the new range maximum for the opacity map here.",
nullptr));
143 #endif // QT_CONFIG(tooltip) 144 #if QT_CONFIG(tooltip) 145 AutomaticRescaling->setToolTip(QCoreApplication::translate(
"RescaleScalarRangeToCustomDialog",
"If off lock the color map to avoid automatic rescaling",
nullptr));
146 #endif // QT_CONFIG(tooltip) 147 AutomaticRescaling->setText(QCoreApplication::translate(
"RescaleScalarRangeToCustomDialog",
"Enable automatic rescaling",
nullptr));
148 #if QT_CONFIG(tooltip) 149 ApplyButton->setToolTip(QCoreApplication::translate(
"RescaleScalarRangeToCustomDialog",
"Apply rescale.",
nullptr));
150 #endif // QT_CONFIG(tooltip) 151 ApplyButton->setText(QCoreApplication::translate(
"RescaleScalarRangeToCustomDialog",
"Apply",
nullptr));
152 #if QT_CONFIG(tooltip) 153 CancelButton->setToolTip(QCoreApplication::translate(
"RescaleScalarRangeToCustomDialog",
"Close without rescaling",
nullptr));
154 #endif // QT_CONFIG(tooltip) 155 CancelButton->setText(QCoreApplication::translate(
"RescaleScalarRangeToCustomDialog",
"Cancel",
nullptr));
156 #if QT_CONFIG(tooltip) 157 RescaleButton->setToolTip(QCoreApplication::translate(
"RescaleScalarRangeToCustomDialog",
"Rescale and update automatic rescaling if changed.",
nullptr));
158 #endif // QT_CONFIG(tooltip) 159 RescaleButton->setText(QCoreApplication::translate(
"RescaleScalarRangeToCustomDialog",
"Ok",
nullptr));
170 #endif // UI_PQRESCALESCALARRANGETOCUSTOMDIALOG_H QLabel * OpacityHyphenLabel
QPushButton * ApplyButton
void retranslateUi(QDialog *RescaleScalarRangeToCustomDialog)
pqDoubleLineEdit * MinimumOpacityScalar
pqDoubleLineEdit * MinimumScalar
pqDoubleLineEdit * MaximumScalar
QPushButton * CancelButton
pqDoubleLineEdit * MaximumOpacityScalar
pqLineEdit subclass that supports a low precision view when inactive
QCheckBox * AutomaticRescaling
void setupUi(QDialog *RescaleScalarRangeToCustomDialog)
QLabel * ColorHyphenLabel
QPushButton * RescaleButton