pqFavoritesDialog.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 
5 #ifndef pqFavoritesDialog_h
6 #define pqFavoritesDialog_h
7 
8 #include "pqComponentsModule.h"
9 #include <QDialog>
10 #include <QPointer>
11 
12 class QVariant;
13 class QString;
14 class QTreeWidgetItem;
15 
16 namespace Ui
17 {
18 class pqFavoritesDialog;
19 }
20 
25 class PQCOMPONENTS_EXPORT pqFavoritesDialog : public QDialog
26 {
27  Q_OBJECT
28  typedef QDialog Superclass;
29 
30 public:
31  pqFavoritesDialog(const QVariant& filtersList, QWidget* p = nullptr);
32  ~pqFavoritesDialog() override;
33 
34 protected Q_SLOTS:
38  void createCategory();
39 
44  void onAddFavoritePressed();
45 
50  void onRemoveFavoritePressed();
51 
55  void onAccepted();
56 
60  void onItemChanged(QTreeWidgetItem*, int);
61 
65  void onSearchTextChanged(QString pattern);
66 
67 protected: // NOLINT(readability-redundant-access-specifiers)
71  void populateFavoritesTree();
72 
76  void populateFiltersTree(const QVariant& filtersList);
77 
87  QString populateSettingsValue(const QString& value, QTreeWidgetItem* item);
88 
89  QTreeWidgetItem* getSelectedCategory();
90 
91  bool eventFilter(QObject* object, QEvent* event) override;
92 
93 private:
94  QScopedPointer<Ui::pqFavoritesDialog> Ui;
95 };
96 
97 #endif
value
value
Ui
Definition: pqExampleVisualizationsDialog.h:10
pqFavoritesDialog
pqFavoritesDialog is the Manage Favorites dialog used by ParaView.
Definition: pqFavoritesDialog.h:25