ui_pqFavoritesDialog.h
Go to the documentation of this file.
1 /********************************************************************************
2 ** Form generated from reading UI file 'pqFavoritesDialog.ui'
3 **
4 ** Created by: Qt User Interface Compiler version 5.15.2
5 **
6 ** WARNING! All changes made in this file will be lost when recompiling UI file!
7 ********************************************************************************/
8 
9 #ifndef UI_PQFAVORITESDIALOG_H
10 #define UI_PQFAVORITESDIALOG_H
11 
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QApplication>
14 #include <QtWidgets/QDialog>
15 #include <QtWidgets/QDialogButtonBox>
16 #include <QtWidgets/QGridLayout>
17 #include <QtWidgets/QGroupBox>
18 #include <QtWidgets/QHeaderView>
19 #include <QtWidgets/QPushButton>
20 #include <QtWidgets/QSpacerItem>
21 #include <QtWidgets/QTreeWidget>
22 #include "pqFavoritesTreeWidget.h"
23 #include "pqSearchBox.h"
24 
25 QT_BEGIN_NAMESPACE
26 
28 {
29 public:
30  QGridLayout *gridLayout;
31  QPushButton *removeFavorite;
32  QGroupBox *filtersGroup;
33  QGridLayout *gridLayout1;
34  QTreeWidget *availableFilters;
35  QSpacerItem *spacerItem;
37  QGroupBox *favoritesGroup;
38  QGridLayout *gridLayout2;
40  QPushButton *addCategory;
41  QSpacerItem *spacerItem1;
42  QDialogButtonBox *buttonBox;
43  QPushButton *addFavorite;
44 
45  void setupUi(QDialog *pqFavoritesDialog)
46  {
47  if (pqFavoritesDialog->objectName().isEmpty())
48  pqFavoritesDialog->setObjectName(QString::fromUtf8("pqFavoritesDialog"));
49  pqFavoritesDialog->resize(800, 600);
50  gridLayout = new QGridLayout(pqFavoritesDialog);
51  gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
52  removeFavorite = new QPushButton(pqFavoritesDialog);
53  removeFavorite->setObjectName(QString::fromUtf8("removeFavorite"));
54  removeFavorite->setEnabled(true);
55 
56  gridLayout->addWidget(removeFavorite, 2, 1, 1, 1);
57 
58  filtersGroup = new QGroupBox(pqFavoritesDialog);
59  filtersGroup->setObjectName(QString::fromUtf8("filtersGroup"));
60  QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
61  sizePolicy.setHorizontalStretch(0);
62  sizePolicy.setVerticalStretch(0);
63  sizePolicy.setHeightForWidth(filtersGroup->sizePolicy().hasHeightForWidth());
64  filtersGroup->setSizePolicy(sizePolicy);
65  gridLayout1 = new QGridLayout(filtersGroup);
66  gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
67  gridLayout1->setContentsMargins(0, -1, -1, -1);
68  availableFilters = new QTreeWidget(filtersGroup);
69  availableFilters->setObjectName(QString::fromUtf8("availableFilters"));
70  availableFilters->setContextMenuPolicy(Qt::NoContextMenu);
71  availableFilters->setAcceptDrops(false);
72  availableFilters->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
73  availableFilters->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
74  availableFilters->setDragEnabled(true);
75  availableFilters->setDragDropMode(QAbstractItemView::DragOnly);
76  availableFilters->setDefaultDropAction(Qt::CopyAction);
77  availableFilters->setAlternatingRowColors(true);
78  availableFilters->setSelectionMode(QAbstractItemView::ExtendedSelection);
79  availableFilters->setRootIsDecorated(false);
80  availableFilters->setSortingEnabled(true);
81 
82  gridLayout1->addWidget(availableFilters, 4, 2, 1, 1);
83 
84  spacerItem = new QSpacerItem(40, 1, QSizePolicy::Expanding, QSizePolicy::Minimum);
85 
86  gridLayout1->addItem(spacerItem, 2, 2, 1, 1);
87 
88  searchBox = new pqSearchBox(filtersGroup);
89  searchBox->setObjectName(QString::fromUtf8("searchBox"));
90  searchBox->setProperty("settingKey", QVariant(QString::fromUtf8("showAdvancedProperties")));
91  searchBox->setProperty("advancedSearchEnabled", QVariant(false));
92 
93  gridLayout1->addWidget(searchBox, 3, 2, 1, 1);
94 
95 
96  gridLayout->addWidget(filtersGroup, 0, 0, 4, 1);
97 
98  favoritesGroup = new QGroupBox(pqFavoritesDialog);
99  favoritesGroup->setObjectName(QString::fromUtf8("favoritesGroup"));
100  gridLayout2 = new QGridLayout(favoritesGroup);
101  gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
102  gridLayout2->setContentsMargins(-1, -1, 0, -1);
103  favorites = new pqFavoritesTreeWidget(favoritesGroup);
104  favorites->setObjectName(QString::fromUtf8("favorites"));
105  favorites->setContextMenuPolicy(Qt::NoContextMenu);
106  favorites->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
107  favorites->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
108  favorites->setDragEnabled(true);
109  favorites->setDragDropMode(QAbstractItemView::DragDrop);
110  favorites->setDefaultDropAction(Qt::MoveAction);
111  favorites->setAlternatingRowColors(true);
112  favorites->setSelectionMode(QAbstractItemView::ExtendedSelection);
113  favorites->setRootIsDecorated(true);
114  favorites->header()->setStretchLastSection(true);
115 
116  gridLayout2->addWidget(favorites, 0, 0, 2, 5);
117 
118  addCategory = new QPushButton(favoritesGroup);
119  addCategory->setObjectName(QString::fromUtf8("addCategory"));
120 
121  gridLayout2->addWidget(addCategory, 3, 3, 1, 1);
122 
123  spacerItem1 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
124 
125  gridLayout2->addItem(spacerItem1, 3, 2, 1, 1);
126 
127 
128  gridLayout->addWidget(favoritesGroup, 0, 2, 4, 1);
129 
130  buttonBox = new QDialogButtonBox(pqFavoritesDialog);
131  buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
132  buttonBox->setOrientation(Qt::Horizontal);
133  buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
134 
135  gridLayout->addWidget(buttonBox, 6, 0, 1, 3);
136 
137  addFavorite = new QPushButton(pqFavoritesDialog);
138  addFavorite->setObjectName(QString::fromUtf8("addFavorite"));
139  addFavorite->setEnabled(true);
140 
141  gridLayout->addWidget(addFavorite, 1, 1, 1, 1);
142 
143  QWidget::setTabOrder(favorites, buttonBox);
144 
145  retranslateUi(pqFavoritesDialog);
146  QObject::connect(buttonBox, SIGNAL(accepted()), pqFavoritesDialog, SLOT(accept()));
147  QObject::connect(buttonBox, SIGNAL(rejected()), pqFavoritesDialog, SLOT(reject()));
148 
149  QMetaObject::connectSlotsByName(pqFavoritesDialog);
150  } // setupUi
151 
153  {
154  pqFavoritesDialog->setWindowTitle(QCoreApplication::translate("pqFavoritesDialog", "Favorites Manager", nullptr));
155  removeFavorite->setText(QCoreApplication::translate("pqFavoritesDialog", "<<< Remove", nullptr));
156  filtersGroup->setTitle(QCoreApplication::translate("pqFavoritesDialog", "Available Filters", nullptr));
157  QTreeWidgetItem *___qtreewidgetitem = availableFilters->headerItem();
158  ___qtreewidgetitem->setText(0, QCoreApplication::translate("pqFavoritesDialog", "1", nullptr));
159  favoritesGroup->setTitle(QCoreApplication::translate("pqFavoritesDialog", "Favorites", nullptr));
160  QTreeWidgetItem *___qtreewidgetitem1 = favorites->headerItem();
161  ___qtreewidgetitem1->setText(0, QCoreApplication::translate("pqFavoritesDialog", "1", nullptr));
162  addCategory->setText(QCoreApplication::translate("pqFavoritesDialog", "Add Category ...", nullptr));
163  addFavorite->setText(QCoreApplication::translate("pqFavoritesDialog", "Add >>>", nullptr));
164  } // retranslateUi
165 
166 };
167 
168 namespace Ui {
170 } // namespace Ui
171 
172 QT_END_NAMESPACE
173 
174 #endif // UI_PQFAVORITESDIALOG_H
pqFavoritesTreeWidget is a custom widget used to display Favorites.
pqSearchBox is a line edit and an advanced tool button in the same layout.
Definition: pqSearchBox.h:53
void setupUi(QDialog *pqFavoritesDialog)
QTreeWidget * availableFilters
pqFavoritesTreeWidget * favorites
void retranslateUi(QDialog *pqFavoritesDialog)
QDialogButtonBox * buttonBox
pqFavoritesDialog is the Manage Favorites dialog used by ParaView.