9 #ifndef UI_PQEXPRESSIONSDIALOG_H 10 #define UI_PQEXPRESSIONSDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QComboBox> 15 #include <QtWidgets/QFrame> 16 #include <QtWidgets/QGridLayout> 17 #include <QtWidgets/QHBoxLayout> 18 #include <QtWidgets/QHeaderView> 19 #include <QtWidgets/QPushButton> 20 #include <QtWidgets/QSpacerItem> 21 #include <QtWidgets/QVBoxLayout> 22 #include <QtWidgets/QWidget> 53 if (pqExpressionsManagerDialog->objectName().isEmpty())
54 pqExpressionsManagerDialog->setObjectName(QString::fromUtf8(
"pqExpressionsManagerDialog"));
55 pqExpressionsManagerDialog->resize(916, 551);
56 gridLayout =
new QGridLayout(pqExpressionsManagerDialog);
57 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
58 widget =
new QWidget(pqExpressionsManagerDialog);
59 widget->setObjectName(QString::fromUtf8(
"widget"));
60 horizontalLayout =
new QHBoxLayout(widget);
61 horizontalLayout->setSpacing(4);
62 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
63 horizontalLayout->setContentsMargins(0, 0, 0, 0);
65 searchBox->setObjectName(QString::fromUtf8(
"searchBox"));
66 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
67 sizePolicy.setHorizontalStretch(0);
68 sizePolicy.setVerticalStretch(0);
69 sizePolicy.setHeightForWidth(searchBox->sizePolicy().hasHeightForWidth());
70 searchBox->setSizePolicy(sizePolicy);
71 searchBox->setMinimumSize(QSize(0, 10));
72 searchBox->setProperty(
"settingKey", QVariant(QString::fromUtf8(
"")));
73 searchBox->setProperty(
"advancedSearchEnabled", QVariant(
false));
75 horizontalLayout->addWidget(searchBox);
77 groupChooser =
new QComboBox(widget);
78 groupChooser->setObjectName(QString::fromUtf8(
"groupChooser"));
80 horizontalLayout->addWidget(groupChooser);
83 gridLayout->addWidget(widget, 0, 0, 1, 1);
85 verticalLayout =
new QVBoxLayout();
86 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
87 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
89 verticalLayout->addItem(verticalSpacer);
91 useCurrent =
new QPushButton(pqExpressionsManagerDialog);
92 useCurrent->setObjectName(QString::fromUtf8(
"useCurrent"));
94 verticalLayout->addWidget(useCurrent);
96 add =
new QPushButton(pqExpressionsManagerDialog);
97 add->setObjectName(QString::fromUtf8(
"add"));
99 verticalLayout->addWidget(add);
101 remove =
new QPushButton(pqExpressionsManagerDialog);
102 remove->setObjectName(QString::fromUtf8(
"remove"));
103 remove->setEnabled(
false);
105 verticalLayout->addWidget(
remove);
107 removeAll =
new QPushButton(pqExpressionsManagerDialog);
108 removeAll->setObjectName(QString::fromUtf8(
"removeAll"));
109 removeAll->setEnabled(
true);
111 verticalLayout->addWidget(removeAll);
113 line_2 =
new QFrame(pqExpressionsManagerDialog);
114 line_2->setObjectName(QString::fromUtf8(
"line_2"));
115 line_2->setFrameShape(QFrame::HLine);
116 line_2->setFrameShadow(QFrame::Sunken);
118 verticalLayout->addWidget(line_2);
120 importExpressions =
new QPushButton(pqExpressionsManagerDialog);
121 importExpressions->setObjectName(QString::fromUtf8(
"importExpressions"));
123 verticalLayout->addWidget(importExpressions);
125 exportExpressions =
new QPushButton(pqExpressionsManagerDialog);
126 exportExpressions->setObjectName(QString::fromUtf8(
"exportExpressions"));
128 verticalLayout->addWidget(exportExpressions);
130 verticalSpacer_2 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
132 verticalLayout->addItem(verticalSpacer_2);
134 cancel =
new QPushButton(pqExpressionsManagerDialog);
135 cancel->setObjectName(QString::fromUtf8(
"cancel"));
137 verticalLayout->addWidget(cancel);
139 save =
new QPushButton(pqExpressionsManagerDialog);
140 save->setObjectName(QString::fromUtf8(
"save"));
142 verticalLayout->addWidget(save);
144 close =
new QPushButton(pqExpressionsManagerDialog);
145 close->setObjectName(QString::fromUtf8(
"close"));
147 verticalLayout->addWidget(close);
150 gridLayout->addLayout(verticalLayout, 0, 1, 3, 1);
153 expressions->setObjectName(QString::fromUtf8(
"expressions"));
154 expressions->setMinimumSize(QSize(0, 0));
155 expressions->setProperty(
"showDropIndicator", QVariant(
true));
156 expressions->setSelectionBehavior(QAbstractItemView::SelectRows);
157 expressions->setSortingEnabled(
false);
158 expressions->setAlternatingRowColors(
true);
159 expressions->horizontalHeader()->setVisible(
true);
160 expressions->horizontalHeader()->setMinimumSectionSize(10);
161 expressions->horizontalHeader()->setStretchLastSection(
true);
162 expressions->verticalHeader()->setVisible(
false);
164 gridLayout->addWidget(expressions, 1, 0, 1, 1);
168 QObject::connect(close, SIGNAL(clicked()), pqExpressionsManagerDialog, SLOT(
close()));
170 QMetaObject::connectSlotsByName(pqExpressionsManagerDialog);
175 pqExpressionsManagerDialog->setWindowTitle(QCoreApplication::translate(
"pqExpressionsManagerDialog",
"Choose Expression",
nullptr));
176 useCurrent->setText(QCoreApplication::translate(
"pqExpressionsManagerDialog",
"Use current",
nullptr));
177 #if QT_CONFIG(tooltip) 178 useCurrent->setToolTip(QCoreApplication::translate(
"pqExpressionsManagerDialog",
"Use expression in current filter",
nullptr));
179 #endif // QT_CONFIG(tooltip) 180 add->setText(QCoreApplication::translate(
"pqExpressionsManagerDialog",
"Add",
nullptr));
181 #if QT_CONFIG(tooltip) 182 add->setToolTip(QCoreApplication::translate(
"pqExpressionsManagerDialog",
"Add a new expression",
nullptr));
183 #endif // QT_CONFIG(tooltip) 184 #if QT_CONFIG(tooltip) 185 remove->setToolTip(QCoreApplication::translate(
"pqExpressionsManagerDialog",
"Remove selected expressions",
nullptr));
186 #endif // QT_CONFIG(tooltip) 187 remove->setText(QCoreApplication::translate(
"pqExpressionsManagerDialog",
"Remove",
nullptr));
188 #if QT_CONFIG(tooltip) 189 removeAll->setToolTip(QCoreApplication::translate(
"pqExpressionsManagerDialog",
"Remove all expressions",
nullptr));
190 #endif // QT_CONFIG(tooltip) 191 removeAll->setText(QCoreApplication::translate(
"pqExpressionsManagerDialog",
"Remove All",
nullptr));
192 #if QT_CONFIG(tooltip) 193 importExpressions->setToolTip(QCoreApplication::translate(
"pqExpressionsManagerDialog",
"Import expressions from a json file",
nullptr));
194 #endif // QT_CONFIG(tooltip) 195 importExpressions->setText(QCoreApplication::translate(
"pqExpressionsManagerDialog",
"Import",
nullptr));
196 #if QT_CONFIG(tooltip) 197 exportExpressions->setToolTip(QCoreApplication::translate(
"pqExpressionsManagerDialog",
"Export expressions to a json file",
nullptr));
198 #endif // QT_CONFIG(tooltip) 199 exportExpressions->setText(QCoreApplication::translate(
"pqExpressionsManagerDialog",
"Export",
nullptr));
200 cancel->setText(QCoreApplication::translate(
"pqExpressionsManagerDialog",
"Cancel",
nullptr));
201 #if QT_CONFIG(tooltip) 202 cancel->setToolTip(QCoreApplication::translate(
"pqExpressionsManagerDialog",
"Close without saving",
nullptr));
203 #endif // QT_CONFIG(tooltip) 204 save->setText(QCoreApplication::translate(
"pqExpressionsManagerDialog",
"Save",
nullptr));
205 #if QT_CONFIG(tooltip) 206 save->setToolTip(QCoreApplication::translate(
"pqExpressionsManagerDialog",
"Save to settings",
nullptr));
207 #endif // QT_CONFIG(tooltip) 208 close->setText(QCoreApplication::translate(
"pqExpressionsManagerDialog",
"Close",
nullptr));
209 #if QT_CONFIG(tooltip) 210 close->setToolTip(QCoreApplication::translate(
"pqExpressionsManagerDialog",
"Save and close",
nullptr));
211 #endif // QT_CONFIG(tooltip) 222 #endif // UI_PQEXPRESSIONSDIALOG_H
QHBoxLayout * horizontalLayout
pqSearchBox is a line edit and an advanced tool button in the same layout.
QVBoxLayout * verticalLayout
pqExpressionsManagerDialog is a dialog class to edit and export expressions.
QSpacerItem * verticalSpacer
QPushButton * exportExpressions
pqExpandableTableView extends pqTableView to add support for the following features: ...
QPushButton * importExpressions
pqExpandableTableView * expressions
void retranslateUi(QWidget *pqExpressionsManagerDialog)
QSpacerItem * verticalSpacer_2
void setupUi(QWidget *pqExpressionsManagerDialog)