pqCustomFilterManager.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 
10 #ifndef pqCustomFilterManager_h
11 #define pqCustomFilterManager_h
12 
13 #include "pqComponentsModule.h"
14 #include <QDialog>
15 #include <QStringList>
16 
17 class pqCustomFilterManagerForm;
19 class QItemSelection;
20 
33 {
34  Q_OBJECT
35 
36 public:
43  pqCustomFilterManager(pqCustomFilterManagerModel* model, QWidget* parent = nullptr);
44  ~pqCustomFilterManager() override;
45 
46 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
52  void selectCustomFilter(const QString& name);
53 
59  void importFiles(const QStringList& files);
60 
66  void exportSelected(const QStringList& files);
67 
68 private Q_SLOTS:
74  void importFiles();
75 
81  void exportSelected();
82 
86  void removeSelected();
87 
98  void updateButtons(const QItemSelection& selected, const QItemSelection& deselected);
99 
100 protected:
101  QString getUnusedFilterName(const QString& group, const QString& name);
102 
103 private:
105  pqCustomFilterManagerForm* Form;
106 };
107 
108 #endif
#define PQCOMPONENTS_EXPORT
name
The pqCustomFilterManagerModel class stores the list of registered pipeline custom filter definitions...
The pqCustomFilterManager class displays the list of registered custom filter definitions.