9 #ifndef UI_PQCOLOREDITORPROPERTYWIDGET_H 10 #define UI_PQCOLOREDITORPROPERTYWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QGridLayout> 16 #include <QtWidgets/QPushButton> 17 #include <QtWidgets/QWidget> 36 void setupUi(QWidget *ColorEditorPropertyWidget)
38 if (ColorEditorPropertyWidget->objectName().isEmpty())
39 ColorEditorPropertyWidget->setObjectName(QString::fromUtf8(
"ColorEditorPropertyWidget"));
40 ColorEditorPropertyWidget->resize(367, 82);
41 gridLayout =
new QGridLayout(ColorEditorPropertyWidget);
42 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
43 RescaleCustom =
new QPushButton(ColorEditorPropertyWidget);
44 RescaleCustom->setObjectName(QString::fromUtf8(
"RescaleCustom"));
46 icon.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqResetRangeCustom.svg"), QSize(), QIcon::Normal, QIcon::Off);
47 RescaleCustom->setIcon(icon);
49 gridLayout->addWidget(RescaleCustom, 1, 3, 1, 1);
52 DisplayColorWidget->setObjectName(QString::fromUtf8(
"DisplayColorWidget"));
54 gridLayout->addWidget(DisplayColorWidget, 0, 0, 1, 7);
56 EditColorMap =
new QPushButton(ColorEditorPropertyWidget);
57 EditColorMap->setObjectName(QString::fromUtf8(
"EditColorMap"));
59 icon1.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqEditColor.svg"), QSize(), QIcon::Normal, QIcon::Off);
60 EditColorMap->setIcon(icon1);
61 EditColorMap->setFlat(
false);
63 gridLayout->addWidget(EditColorMap, 1, 0, 1, 1);
65 UseSeparateColorMap =
new QPushButton(ColorEditorPropertyWidget);
66 UseSeparateColorMap->setObjectName(QString::fromUtf8(
"UseSeparateColorMap"));
68 icon2.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqSeparateColorMap.svg"), QSize(), QIcon::Normal, QIcon::Off);
69 UseSeparateColorMap->setIcon(icon2);
70 UseSeparateColorMap->setCheckable(
true);
71 UseSeparateColorMap->setFlat(
false);
73 gridLayout->addWidget(UseSeparateColorMap, 1, 1, 1, 1);
75 Rescale =
new QPushButton(ColorEditorPropertyWidget);
76 Rescale->setObjectName(QString::fromUtf8(
"Rescale"));
78 icon3.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqResetRange.svg"), QSize(), QIcon::Normal, QIcon::Off);
79 Rescale->setIcon(icon3);
80 Rescale->setFlat(
false);
82 gridLayout->addWidget(Rescale, 1, 2, 1, 1);
84 ShowScalarBar =
new QPushButton(ColorEditorPropertyWidget);
85 ShowScalarBar->setObjectName(QString::fromUtf8(
"ShowScalarBar"));
87 icon4.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqScalarBar.svg"), QSize(), QIcon::Normal, QIcon::Off);
88 ShowScalarBar->setIcon(icon4);
89 ShowScalarBar->setCheckable(
true);
90 ShowScalarBar->setFlat(
false);
92 gridLayout->addWidget(ShowScalarBar, 1, 6, 1, 1);
94 EditScalarBar =
new QPushButton(ColorEditorPropertyWidget);
95 EditScalarBar->setObjectName(QString::fromUtf8(
"EditScalarBar"));
97 icon5.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqEditScalarBar.svg"), QSize(), QIcon::Normal, QIcon::Off);
98 EditScalarBar->setIcon(icon5);
100 gridLayout->addWidget(EditScalarBar, 1, 7, 1, 1);
102 RescaleTemporal =
new QPushButton(ColorEditorPropertyWidget);
103 RescaleTemporal->setObjectName(QString::fromUtf8(
"RescaleTemporal"));
105 icon6.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqResetRangeTemporal.svg"), QSize(), QIcon::Normal, QIcon::Off);
106 RescaleTemporal->setIcon(icon6);
108 gridLayout->addWidget(RescaleTemporal, 1, 4, 1, 1);
110 ChoosePreset =
new QPushButton(ColorEditorPropertyWidget);
111 ChoosePreset->setObjectName(QString::fromUtf8(
"ChoosePreset"));
113 icon7.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqFavorites.svg"), QSize(), QIcon::Normal, QIcon::Off);
114 ChoosePreset->setIcon(icon7);
115 ChoosePreset->setFlat(
false);
117 gridLayout->addWidget(ChoosePreset, 1, 5, 1, 1);
119 gridLayout->setColumnStretch(0, 1);
123 QMetaObject::connectSlotsByName(ColorEditorPropertyWidget);
128 ColorEditorPropertyWidget->setWindowTitle(QCoreApplication::translate(
"ColorEditorPropertyWidget",
"Form",
nullptr));
129 #if QT_CONFIG(tooltip) 130 RescaleCustom->setToolTip(QCoreApplication::translate(
"ColorEditorPropertyWidget",
"Rescale to custom range",
nullptr));
131 #endif // QT_CONFIG(tooltip) 132 RescaleCustom->setText(QString());
133 #if QT_CONFIG(tooltip) 134 EditColorMap->setToolTip(QCoreApplication::translate(
"ColorEditorPropertyWidget",
"Edit color map",
nullptr));
135 #endif // QT_CONFIG(tooltip) 136 #if QT_CONFIG(statustip) 137 EditColorMap->setStatusTip(QCoreApplication::translate(
"ColorEditorPropertyWidget",
"Edit Color Map",
nullptr));
138 #endif // QT_CONFIG(statustip) 139 EditColorMap->setText(QCoreApplication::translate(
"ColorEditorPropertyWidget",
"Edit",
nullptr));
140 #if QT_CONFIG(tooltip) 141 UseSeparateColorMap->setToolTip(QCoreApplication::translate(
"ColorEditorPropertyWidget",
"Use Separate color map",
nullptr));
142 #endif // QT_CONFIG(tooltip) 143 #if QT_CONFIG(statustip) 144 UseSeparateColorMap->setStatusTip(QCoreApplication::translate(
"ColorEditorPropertyWidget",
"Use Separate Color Map",
nullptr));
145 #endif // QT_CONFIG(statustip) 146 #if QT_CONFIG(tooltip) 147 Rescale->setToolTip(QCoreApplication::translate(
"ColorEditorPropertyWidget",
"Rescale to data range",
nullptr));
148 #endif // QT_CONFIG(tooltip) 149 #if QT_CONFIG(statustip) 150 Rescale->setStatusTip(QCoreApplication::translate(
"ColorEditorPropertyWidget",
"Rescale to Data Range",
nullptr));
151 #endif // QT_CONFIG(statustip) 152 Rescale->setText(QString());
153 #if QT_CONFIG(tooltip) 154 ShowScalarBar->setToolTip(QCoreApplication::translate(
"ColorEditorPropertyWidget",
"Show/hide color legend",
nullptr));
155 #endif // QT_CONFIG(tooltip) 156 #if QT_CONFIG(statustip) 157 ShowScalarBar->setStatusTip(QCoreApplication::translate(
"ColorEditorPropertyWidget",
"Toggle Color Legend Visibility",
nullptr));
158 #endif // QT_CONFIG(statustip) 159 ShowScalarBar->setText(QString());
160 #if QT_CONFIG(tooltip) 161 EditScalarBar->setToolTip(QCoreApplication::translate(
"ColorEditorPropertyWidget",
"Edit color legend properties",
nullptr));
162 #endif // QT_CONFIG(tooltip) 163 EditScalarBar->setText(QString());
164 #if QT_CONFIG(tooltip) 165 RescaleTemporal->setToolTip(QCoreApplication::translate(
"ColorEditorPropertyWidget",
"Rescale to data range over all timesteps",
nullptr));
166 #endif // QT_CONFIG(tooltip) 167 RescaleTemporal->setText(QString());
168 #if QT_CONFIG(tooltip) 169 ChoosePreset->setToolTip(QCoreApplication::translate(
"ColorEditorPropertyWidget",
"Choose preset",
nullptr));
170 #endif // QT_CONFIG(tooltip) 171 #if QT_CONFIG(statustip) 172 ChoosePreset->setStatusTip(QCoreApplication::translate(
"ColorEditorPropertyWidget",
"Toggle Color Legend Visibility",
nullptr));
173 #endif // QT_CONFIG(statustip) 174 ChoosePreset->setText(QString());
185 #endif // UI_PQCOLOREDITORPROPERTYWIDGET_H