9 #ifndef UI_PQCUSTOMFILTERMANAGER_H 10 #define UI_PQCUSTOMFILTERMANAGER_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QDialog> 15 #include <QtWidgets/QGridLayout> 16 #include <QtWidgets/QListView> 17 #include <QtWidgets/QPushButton> 18 #include <QtWidgets/QSpacerItem> 35 if (pqCustomFilterManager->objectName().isEmpty())
36 pqCustomFilterManager->setObjectName(QString::fromUtf8(
"pqCustomFilterManager"));
37 pqCustomFilterManager->resize(418, 235);
38 gridLayout =
new QGridLayout(pqCustomFilterManager);
40 gridLayout->setSpacing(6);
43 gridLayout->setContentsMargins(9, 9, 9, 9);
45 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
46 CustomFilterList =
new QListView(pqCustomFilterManager);
47 CustomFilterList->setObjectName(QString::fromUtf8(
"CustomFilterList"));
48 CustomFilterList->setSelectionMode(QAbstractItemView::ExtendedSelection);
49 CustomFilterList->setProperty(
"isWrapping", QVariant(
true));
50 CustomFilterList->setResizeMode(QListView::Adjust);
52 gridLayout->addWidget(CustomFilterList, 0, 0, 5, 1);
54 spacerItem =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
56 gridLayout->addItem(spacerItem, 3, 1, 1, 1);
58 CloseButton =
new QPushButton(pqCustomFilterManager);
59 CloseButton->setObjectName(QString::fromUtf8(
"CloseButton"));
61 gridLayout->addWidget(CloseButton, 4, 1, 1, 1);
63 RemoveButton =
new QPushButton(pqCustomFilterManager);
64 RemoveButton->setObjectName(QString::fromUtf8(
"RemoveButton"));
66 gridLayout->addWidget(RemoveButton, 2, 1, 1, 1);
68 ExportButton =
new QPushButton(pqCustomFilterManager);
69 ExportButton->setObjectName(QString::fromUtf8(
"ExportButton"));
71 gridLayout->addWidget(ExportButton, 1, 1, 1, 1);
73 ImportButton =
new QPushButton(pqCustomFilterManager);
74 ImportButton->setObjectName(QString::fromUtf8(
"ImportButton"));
76 gridLayout->addWidget(ImportButton, 0, 1, 1, 1);
78 QWidget::setTabOrder(CustomFilterList, ImportButton);
79 QWidget::setTabOrder(ImportButton, ExportButton);
80 QWidget::setTabOrder(ExportButton, RemoveButton);
81 QWidget::setTabOrder(RemoveButton, CloseButton);
85 CloseButton->setDefault(
true);
88 QMetaObject::connectSlotsByName(pqCustomFilterManager);
93 pqCustomFilterManager->setWindowTitle(QCoreApplication::translate(
"pqCustomFilterManager",
"Custom Filter Manager",
nullptr));
94 #if QT_CONFIG(tooltip) 95 CustomFilterList->setToolTip(QCoreApplication::translate(
"pqCustomFilterManager",
"Displays the list of registered custom filter definitions.",
nullptr));
96 #endif // QT_CONFIG(tooltip) 97 CloseButton->setText(QCoreApplication::translate(
"pqCustomFilterManager",
"&Close",
nullptr));
98 #if QT_CONFIG(tooltip) 99 RemoveButton->setToolTip(QCoreApplication::translate(
"pqCustomFilterManager",
"Removes the selected custom filter definitions.",
nullptr));
100 #endif // QT_CONFIG(tooltip) 101 RemoveButton->setText(QCoreApplication::translate(
"pqCustomFilterManager",
"&Remove",
nullptr));
102 #if QT_CONFIG(tooltip) 103 ExportButton->setToolTip(QCoreApplication::translate(
"pqCustomFilterManager",
"Exports the selected custom filter definitions to a file.",
nullptr));
104 #endif // QT_CONFIG(tooltip) 105 ExportButton->setText(QCoreApplication::translate(
"pqCustomFilterManager",
"&Export",
nullptr));
106 #if QT_CONFIG(tooltip) 107 ImportButton->setToolTip(QCoreApplication::translate(
"pqCustomFilterManager",
"Imports custom filter definitions from a file.",
nullptr));
108 #endif // QT_CONFIG(tooltip) 109 ImportButton->setText(QCoreApplication::translate(
"pqCustomFilterManager",
"&Import",
nullptr));
120 #endif // UI_PQCUSTOMFILTERMANAGER_H QPushButton * ExportButton
QPushButton * CloseButton
QListView * CustomFilterList
QPushButton * ImportButton
void setupUi(QDialog *pqCustomFilterManager)
void retranslateUi(QDialog *pqCustomFilterManager)
QPushButton * RemoveButton
The pqCustomFilterManager class displays the list of registered custom filter definitions.