pqProxiesWidget.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 #ifndef pqProxiesWidget_h
5 #define pqProxiesWidget_h
6 
7 #include "pqComponentsModule.h"
8 #include <QMap>
9 #include <QScopedPointer>
10 #include <QWidget>
11 
12 class vtkSMProxy;
13 class pqView;
14 
33 class PQCOMPONENTS_EXPORT pqProxiesWidget : public QWidget
34 {
35  Q_OBJECT
36  typedef QWidget Superclass;
37 
38 public:
39  pqProxiesWidget(QWidget* parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags{});
40  ~pqProxiesWidget() override;
41 
48  QMap<QString, bool> expanderState() const;
49 
55  void setExpanderState(const QMap<QString, bool>& state);
56 
57 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
61  void clear();
62 
66  void addProxy(vtkSMProxy*, const QString& componentName = QString(),
67  const QStringList& properties = QStringList(), bool applyChangesImmediately = false,
68  bool showHeadersFooters = true);
69 
74  void updateLayout();
75 
82  bool filterWidgets(bool show_advanced = false, const QString& filterText = QString());
83 
87  void apply() const;
88 
92  void reset() const;
93 
97  void setView(pqView*);
98 
103  void updatePanel();
104 
105 Q_SIGNALS:
110  void changeAvailable(vtkSMProxy* proxy);
111 
116  void changeFinished(vtkSMProxy* proxy);
117 
122  void restartRequired(vtkSMProxy* proxy);
123 
124 private Q_SLOTS:
125  void triggerChangeFinished();
126  void triggerChangeAvailable();
127  void triggerRestartRequired();
128 
129 private: // NOLINT(readability-redundant-access-specifiers)
130  Q_DISABLE_COPY(pqProxiesWidget)
131 
132  class pqInternals;
133  const QScopedPointer<pqInternals> Internals;
134 };
135 
136 #endif
#define PQCOMPONENTS_EXPORT
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
pqProxiesWidget similar to pqProxyWidget with the difference being that unlike pqProxyWidget, pqProxiesWidget supports showing of multiple proxies in the same widget.
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140