9 #ifndef UI_PQRESCALERANGEDIALOG_H 10 #define UI_PQRESCALERANGEDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QDialog> 15 #include <QtWidgets/QGridLayout> 16 #include <QtWidgets/QHBoxLayout> 17 #include <QtWidgets/QLabel> 18 #include <QtWidgets/QPushButton> 19 #include <QtWidgets/QSpacerItem> 43 void setupUi(QDialog *pqRescaleRangeDialog)
45 if (pqRescaleRangeDialog->objectName().isEmpty())
46 pqRescaleRangeDialog->setObjectName(QString::fromUtf8(
"pqRescaleRangeDialog"));
47 pqRescaleRangeDialog->resize(495, 172);
48 gridLayout =
new QGridLayout(pqRescaleRangeDialog);
49 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
50 OpacityLabel =
new QLabel(pqRescaleRangeDialog);
51 OpacityLabel->setObjectName(QString::fromUtf8(
"OpacityLabel"));
53 gridLayout->addWidget(OpacityLabel, 2, 0, 1, 1);
56 MinimumOpacityScalar->setObjectName(QString::fromUtf8(
"MinimumOpacityScalar"));
58 gridLayout->addWidget(MinimumOpacityScalar, 3, 0, 1, 1);
60 OpacityHyphenLabel =
new QLabel(pqRescaleRangeDialog);
61 OpacityHyphenLabel->setObjectName(QString::fromUtf8(
"OpacityHyphenLabel"));
63 gridLayout->addWidget(OpacityHyphenLabel, 3, 1, 1, 1);
65 hboxLayout =
new QHBoxLayout();
67 hboxLayout->setSpacing(6);
69 hboxLayout->setContentsMargins(0, 0, 0, 0);
70 hboxLayout->setObjectName(QString::fromUtf8(
"hboxLayout"));
71 spacerItem =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
73 hboxLayout->addItem(spacerItem);
75 RescaleButton =
new QPushButton(pqRescaleRangeDialog);
76 RescaleButton->setObjectName(QString::fromUtf8(
"RescaleButton"));
78 hboxLayout->addWidget(RescaleButton);
80 RescaleOnlyButton =
new QPushButton(pqRescaleRangeDialog);
81 RescaleOnlyButton->setObjectName(QString::fromUtf8(
"RescaleOnlyButton"));
83 hboxLayout->addWidget(RescaleOnlyButton);
85 CancelButton =
new QPushButton(pqRescaleRangeDialog);
86 CancelButton->setObjectName(QString::fromUtf8(
"CancelButton"));
88 hboxLayout->addWidget(CancelButton);
91 gridLayout->addLayout(hboxLayout, 6, 0, 1, 4);
93 ColorMapLabel =
new QLabel(pqRescaleRangeDialog);
94 ColorMapLabel->setObjectName(QString::fromUtf8(
"ColorMapLabel"));
95 ColorMapLabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
96 ColorMapLabel->setWordWrap(
true);
98 gridLayout->addWidget(ColorMapLabel, 0, 0, 1, 4);
100 ColorHyphenLabel =
new QLabel(pqRescaleRangeDialog);
101 ColorHyphenLabel->setObjectName(QString::fromUtf8(
"ColorHyphenLabel"));
103 gridLayout->addWidget(ColorHyphenLabel, 1, 1, 1, 1);
106 MinimumScalar->setObjectName(QString::fromUtf8(
"MinimumScalar"));
108 gridLayout->addWidget(MinimumScalar, 1, 0, 1, 1);
110 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
112 gridLayout->addItem(verticalSpacer, 4, 0, 1, 1);
115 MaximumScalar->setObjectName(QString::fromUtf8(
"MaximumScalar"));
117 gridLayout->addWidget(MaximumScalar, 1, 3, 1, 1);
120 MaximumOpacityScalar->setObjectName(QString::fromUtf8(
"MaximumOpacityScalar"));
122 gridLayout->addWidget(MaximumOpacityScalar, 3, 3, 1, 1);
124 QWidget::setTabOrder(MinimumScalar, MaximumScalar);
125 QWidget::setTabOrder(MaximumScalar, MinimumOpacityScalar);
126 QWidget::setTabOrder(MinimumOpacityScalar, MaximumOpacityScalar);
127 QWidget::setTabOrder(MaximumOpacityScalar, RescaleButton);
128 QWidget::setTabOrder(RescaleButton, RescaleOnlyButton);
129 QWidget::setTabOrder(RescaleOnlyButton, CancelButton);
133 RescaleButton->setDefault(
true);
136 QMetaObject::connectSlotsByName(pqRescaleRangeDialog);
141 pqRescaleRangeDialog->setWindowTitle(QCoreApplication::translate(
"pqRescaleRangeDialog",
"Set Range",
nullptr));
142 OpacityLabel->setText(QCoreApplication::translate(
"pqRescaleRangeDialog",
"Enter the range for the opacity map",
nullptr));
143 #if QT_CONFIG(whatsthis) 144 MinimumOpacityScalar->setWhatsThis(QCoreApplication::translate(
"pqRescaleRangeDialog",
"Enter the new range minimum for the opacity map here.",
nullptr));
145 #endif // QT_CONFIG(whatsthis) 146 MinimumOpacityScalar->setText(QString());
147 MinimumOpacityScalar->setPlaceholderText(QCoreApplication::translate(
"pqRescaleRangeDialog",
"minimum",
nullptr));
148 OpacityHyphenLabel->setText(QCoreApplication::translate(
"pqRescaleRangeDialog",
"-",
nullptr));
149 #if QT_CONFIG(tooltip) 150 RescaleButton->setToolTip(QCoreApplication::translate(
"pqRescaleRangeDialog",
"Rescale and lock the color map to avoid automatic rescaling.",
nullptr));
151 #endif // QT_CONFIG(tooltip) 152 RescaleButton->setText(QCoreApplication::translate(
"pqRescaleRangeDialog",
"Rescale and disable automatic rescaling",
nullptr));
153 #if QT_CONFIG(tooltip) 154 RescaleOnlyButton->setToolTip(QCoreApplication::translate(
"pqRescaleRangeDialog",
"Rescale and leave automatic rescaling mode unchanged.",
nullptr));
155 #endif // QT_CONFIG(tooltip) 156 RescaleOnlyButton->setText(QCoreApplication::translate(
"pqRescaleRangeDialog",
"Rescale",
nullptr));
157 #if QT_CONFIG(tooltip) 158 CancelButton->setToolTip(QCoreApplication::translate(
"pqRescaleRangeDialog",
"Close without rescaling",
nullptr));
159 #endif // QT_CONFIG(tooltip) 160 CancelButton->setText(QCoreApplication::translate(
"pqRescaleRangeDialog",
"Cancel",
nullptr));
161 #if QT_CONFIG(tooltip) 162 ColorMapLabel->setToolTip(QString());
163 #endif // QT_CONFIG(tooltip) 164 ColorMapLabel->setText(QCoreApplication::translate(
"pqRescaleRangeDialog",
"<html><head/><body><p>Enter the range for the color map</p></body></html>",
nullptr));
165 ColorHyphenLabel->setText(QCoreApplication::translate(
"pqRescaleRangeDialog",
"-",
nullptr));
166 #if QT_CONFIG(whatsthis) 167 MinimumScalar->setWhatsThis(QCoreApplication::translate(
"pqRescaleRangeDialog",
"Enter the new range minimum for the color map here.",
nullptr));
168 #endif // QT_CONFIG(whatsthis) 169 MinimumScalar->setPlaceholderText(QCoreApplication::translate(
"pqRescaleRangeDialog",
"minimum",
nullptr));
170 #if QT_CONFIG(whatsthis) 171 MaximumScalar->setWhatsThis(QCoreApplication::translate(
"pqRescaleRangeDialog",
"Enter the new range maximum for the color map here.",
nullptr));
172 #endif // QT_CONFIG(whatsthis) 173 MaximumScalar->setPlaceholderText(QCoreApplication::translate(
"pqRescaleRangeDialog",
"maximum",
nullptr));
174 #if QT_CONFIG(whatsthis) 175 MaximumOpacityScalar->setWhatsThis(QCoreApplication::translate(
"pqRescaleRangeDialog",
"Enter the new range maximum for the opacity map here.",
nullptr));
176 #endif // QT_CONFIG(whatsthis) 177 MaximumOpacityScalar->setText(QString());
178 MaximumOpacityScalar->setPlaceholderText(QCoreApplication::translate(
"pqRescaleRangeDialog",
"maximum",
nullptr));
189 #endif // UI_PQRESCALERANGEDIALOG_H QPushButton * RescaleButton
QSpacerItem * verticalSpacer
QPushButton * CancelButton
pqDoubleLineEdit * MaximumOpacityScalar
pqLineEdit subclass that supports a low precision view when inactive
QLabel * ColorHyphenLabel
pqDoubleLineEdit * MaximumScalar
QLabel * OpacityHyphenLabel
pqDoubleLineEdit * MinimumScalar
void setupUi(QDialog *pqRescaleRangeDialog)
pqDoubleLineEdit * MinimumOpacityScalar
QPushButton * RescaleOnlyButton
void retranslateUi(QDialog *pqRescaleRangeDialog)