9 #ifndef UI_PQSELECTIONEDITOR_H 10 #define UI_PQSELECTIONEDITOR_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QHBoxLayout> 16 #include <QtWidgets/QHeaderView> 17 #include <QtWidgets/QLabel> 18 #include <QtWidgets/QLineEdit> 19 #include <QtWidgets/QPushButton> 20 #include <QtWidgets/QScrollArea> 21 #include <QtWidgets/QSpacerItem> 22 #include <QtWidgets/QToolButton> 23 #include <QtWidgets/QVBoxLayout> 24 #include <QtWidgets/QWidget> 56 if (SelectionEditor->objectName().isEmpty())
57 SelectionEditor->setObjectName(QString::fromUtf8(
"SelectionEditor"));
58 SelectionEditor->resize(474, 260);
59 SelectionEditor->setMinimumSize(QSize(390, 0));
60 verticalLayout =
new QVBoxLayout(SelectionEditor);
61 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
62 SourceLayout =
new QHBoxLayout();
63 SourceLayout->setSpacing(5);
64 SourceLayout->setObjectName(QString::fromUtf8(
"SourceLayout"));
65 SourceLabel =
new QLabel(SelectionEditor);
66 SourceLabel->setObjectName(QString::fromUtf8(
"SourceLabel"));
67 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
68 sizePolicy.setHorizontalStretch(0);
69 sizePolicy.setVerticalStretch(0);
70 sizePolicy.setHeightForWidth(SourceLabel->sizePolicy().hasHeightForWidth());
71 SourceLabel->setSizePolicy(sizePolicy);
73 SourceLayout->addWidget(SourceLabel);
75 SourceInfo =
new QLabel(SelectionEditor);
76 SourceInfo->setObjectName(QString::fromUtf8(
"SourceInfo"));
77 SourceInfo->setAutoFillBackground(
false);
78 SourceInfo->setStyleSheet(QString::fromUtf8(
"QLabel {background-color: snow; border: 1px inset grey;}"));
80 SourceLayout->addWidget(SourceInfo);
83 verticalLayout->addLayout(SourceLayout);
85 ElementTypeLayout =
new QHBoxLayout();
86 ElementTypeLayout->setSpacing(9);
87 ElementTypeLayout->setObjectName(QString::fromUtf8(
"ElementTypeLayout"));
88 ElementTypeLabel =
new QLabel(SelectionEditor);
89 ElementTypeLabel->setObjectName(QString::fromUtf8(
"ElementTypeLabel"));
90 sizePolicy.setHeightForWidth(ElementTypeLabel->sizePolicy().hasHeightForWidth());
91 ElementTypeLabel->setSizePolicy(sizePolicy);
93 ElementTypeLayout->addWidget(ElementTypeLabel);
95 ElementTypeInfo =
new QLabel(SelectionEditor);
96 ElementTypeInfo->setObjectName(QString::fromUtf8(
"ElementTypeInfo"));
97 ElementTypeInfo->setAutoFillBackground(
false);
98 ElementTypeInfo->setStyleSheet(QString::fromUtf8(
"QLabel {background-color: snow; border: 1px inset grey;}"));
100 ElementTypeLayout->addWidget(ElementTypeInfo);
103 verticalLayout->addLayout(ElementTypeLayout);
105 ExpressionLayout =
new QHBoxLayout();
106 ExpressionLayout->setSpacing(29);
107 ExpressionLayout->setObjectName(QString::fromUtf8(
"ExpressionLayout"));
108 ExpressionLabel =
new QLabel(SelectionEditor);
109 ExpressionLabel->setObjectName(QString::fromUtf8(
"ExpressionLabel"));
111 ExpressionLayout->addWidget(ExpressionLabel);
113 Expression =
new QLineEdit(SelectionEditor);
114 Expression->setObjectName(QString::fromUtf8(
"Expression"));
116 ExpressionLayout->addWidget(Expression);
119 verticalLayout->addLayout(ExpressionLayout);
121 scrollArea =
new QScrollArea(SelectionEditor);
122 scrollArea->setObjectName(QString::fromUtf8(
"scrollArea"));
123 scrollArea->setFrameShape(QFrame::NoFrame);
124 scrollArea->setFrameShadow(QFrame::Plain);
125 scrollArea->setWidgetResizable(
true);
126 scrollAreaWidgetContents =
new QWidget();
127 scrollAreaWidgetContents->setObjectName(QString::fromUtf8(
"scrollAreaWidgetContents"));
128 scrollAreaWidgetContents->setGeometry(QRect(0, 0, 456, 122));
129 horizontalLayout =
new QHBoxLayout(scrollAreaWidgetContents);
130 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
131 horizontalLayout->setContentsMargins(0, 0, 0, 0);
133 PropertiesView->setObjectName(QString::fromUtf8(
"PropertiesView"));
135 horizontalLayout->addWidget(PropertiesView);
137 verticalLayoutToolbar =
new QVBoxLayout();
138 verticalLayoutToolbar->setObjectName(QString::fromUtf8(
"verticalLayoutToolbar"));
139 AddActiveSelection =
new QToolButton(scrollAreaWidgetContents);
140 AddActiveSelection->setObjectName(QString::fromUtf8(
"AddActiveSelection"));
141 AddActiveSelection->setEnabled(
true);
143 icon.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqPlus.svg"), QSize(), QIcon::Normal, QIcon::Off);
144 AddActiveSelection->setIcon(icon);
146 verticalLayoutToolbar->addWidget(AddActiveSelection);
148 RemoveSelectedSelection =
new QToolButton(scrollAreaWidgetContents);
149 RemoveSelectedSelection->setObjectName(QString::fromUtf8(
"RemoveSelectedSelection"));
150 RemoveSelectedSelection->setEnabled(
true);
152 icon1.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqMinus.svg"), QSize(), QIcon::Normal, QIcon::Off);
153 RemoveSelectedSelection->setIcon(icon1);
155 verticalLayoutToolbar->addWidget(RemoveSelectedSelection);
157 VerticalSpacerToolbar =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
159 verticalLayoutToolbar->addItem(VerticalSpacerToolbar);
161 RemoveAllSelections =
new QToolButton(scrollAreaWidgetContents);
162 RemoveAllSelections->setObjectName(QString::fromUtf8(
"RemoveAllSelections"));
163 RemoveAllSelections->setEnabled(
true);
165 icon2.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqDelete.svg"), QSize(), QIcon::Normal, QIcon::Off);
166 RemoveAllSelections->setIcon(icon2);
168 verticalLayoutToolbar->addWidget(RemoveAllSelections);
171 horizontalLayout->addLayout(verticalLayoutToolbar);
173 scrollArea->setWidget(scrollAreaWidgetContents);
175 verticalLayout->addWidget(scrollArea);
177 FindResetCleanLayout =
new QHBoxLayout();
178 FindResetCleanLayout->setSpacing(2);
179 FindResetCleanLayout->setObjectName(QString::fromUtf8(
"FindResetCleanLayout"));
180 ActivateCombinedSelections =
new QPushButton(SelectionEditor);
181 ActivateCombinedSelections->setObjectName(QString::fromUtf8(
"ActivateCombinedSelections"));
182 ActivateCombinedSelections->setFocusPolicy(Qt::TabFocus);
184 icon3.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqApply.svg"), QSize(), QIcon::Normal, QIcon::Off);
185 ActivateCombinedSelections->setIcon(icon3);
187 FindResetCleanLayout->addWidget(ActivateCombinedSelections);
190 verticalLayout->addLayout(FindResetCleanLayout);
195 ActivateCombinedSelections->setDefault(
true);
198 QMetaObject::connectSlotsByName(SelectionEditor);
203 SelectionEditor->setWindowTitle(QCoreApplication::translate(
"SelectionEditor",
"Form",
nullptr));
204 #if QT_CONFIG(tooltip) 205 SourceLabel->setToolTip(QCoreApplication::translate(
"SelectionEditor",
"The dataset for which selections are saved",
nullptr));
206 #endif // QT_CONFIG(tooltip) 207 SourceLabel->setText(QCoreApplication::translate(
"SelectionEditor",
"Data Producer",
nullptr));
208 #if QT_CONFIG(tooltip) 209 SourceInfo->setToolTip(QCoreApplication::translate(
"SelectionEditor",
"The dataset for which selections are saved",
nullptr));
210 #endif // QT_CONFIG(tooltip) 211 SourceInfo->setText(QString());
212 #if QT_CONFIG(tooltip) 213 ElementTypeLabel->setToolTip(QCoreApplication::translate(
"SelectionEditor",
"The element type of the saved selections",
nullptr));
214 #endif // QT_CONFIG(tooltip) 215 ElementTypeLabel->setText(QCoreApplication::translate(
"SelectionEditor",
"Element Type",
nullptr));
216 #if QT_CONFIG(tooltip) 217 ElementTypeInfo->setToolTip(QCoreApplication::translate(
"SelectionEditor",
"The element type of the saved selections",
nullptr));
218 #endif // QT_CONFIG(tooltip) 219 ElementTypeInfo->setText(QString());
220 #if QT_CONFIG(tooltip) 221 ExpressionLabel->setToolTip(QCoreApplication::translate(
"SelectionEditor",
"Specify the expression which defines the relation between the saved selections using boolean operators: !(NOT), &(AND), |(OR), ^(XOR) and ().",
nullptr));
222 #endif // QT_CONFIG(tooltip) 223 ExpressionLabel->setText(QCoreApplication::translate(
"SelectionEditor",
"Expression",
nullptr));
224 #if QT_CONFIG(tooltip) 225 Expression->setToolTip(QCoreApplication::translate(
"SelectionEditor",
"Specify the expression which defines the relation between the saved selections using boolean operators: !(NOT), &(AND), |(OR), ^(XOR) and ().",
nullptr));
226 #endif // QT_CONFIG(tooltip) 227 #if QT_CONFIG(tooltip) 228 AddActiveSelection->setToolTip(QCoreApplication::translate(
"SelectionEditor",
"Add active selection",
nullptr));
229 #endif // QT_CONFIG(tooltip) 230 AddActiveSelection->setText(QString());
231 #if QT_CONFIG(tooltip) 232 RemoveSelectedSelection->setToolTip(QCoreApplication::translate(
"SelectionEditor",
"Remove selected selection from the saved selections. Remember to edit the Expression.",
nullptr));
233 #endif // QT_CONFIG(tooltip) 234 RemoveSelectedSelection->setText(QString());
235 #if QT_CONFIG(tooltip) 236 RemoveAllSelections->setToolTip(QCoreApplication::translate(
"SelectionEditor",
"Remove all saved selections",
nullptr));
237 #endif // QT_CONFIG(tooltip) 238 RemoveAllSelections->setText(QString());
239 #if QT_CONFIG(tooltip) 240 ActivateCombinedSelections->setToolTip(QCoreApplication::translate(
"SelectionEditor",
"Set the combined saved selections as the active selection",
nullptr));
241 #endif // QT_CONFIG(tooltip) 242 ActivateCombinedSelections->setText(QCoreApplication::translate(
"SelectionEditor",
"Activate Combined Selections",
nullptr));
253 #endif // UI_PQSELECTIONEDITOR_H
QHBoxLayout * horizontalLayout
QLabel * ElementTypeLabel
QVBoxLayout * verticalLayoutToolbar
QToolButton * RemoveSelectedSelection
QToolButton * AddActiveSelection
void retranslateUi(QWidget *SelectionEditor)
QSpacerItem * VerticalSpacerToolbar
QHBoxLayout * ExpressionLayout
void setupUi(QWidget *SelectionEditor)
pqExpandableTableView extends pqTableView to add support for the following features: ...
QWidget * scrollAreaWidgetContents
QPushButton * ActivateCombinedSelections
QHBoxLayout * SourceLayout
QHBoxLayout * FindResetCleanLayout
QVBoxLayout * verticalLayout
pqExpandableTableView * PropertiesView
QToolButton * RemoveAllSelections
QHBoxLayout * ElementTypeLayout