pqProxySelectionWidget.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 pqProxySelectionWidget_h
5 #define pqProxySelectionWidget_h
6 
7 #include "pqComponentsModule.h"
8 #include "pqPropertyWidget.h"
9 #include "pqSMProxy.h"
10 #include <QScopedPointer>
11 
12 class vtkSMProxy;
13 class vtkSMProperty;
14 class pqView;
15 
22 {
23  Q_OBJECT
24  typedef pqPropertyWidget Superclass;
25  Q_PROPERTY(pqSMProxy chosenProxy READ chosenProxy WRITE setChosenProxy)
26 
27 public:
32  pqProxySelectionWidget(vtkSMProperty* property, vtkSMProxy* proxy, QWidget* parent = nullptr);
33  ~pqProxySelectionWidget() override;
34 
38  vtkSMProxy* chosenProxy() const;
39  void setChosenProxy(vtkSMProxy* proxy);
40 
45  void apply() override;
46  void reset() override;
47  void select() override;
48  void deselect() override;
49  void updateWidget(bool showing_advanced_properties) override;
50  void setPanelVisibility(const char* vis) override;
51  void setView(pqView*) override;
52 
53 Q_SIGNALS:
57  void chosenProxyChanged();
58 
59 private Q_SLOTS:
65  void currentIndexChanged(int);
66 
67 private: // NOLINT(readability-redundant-access-specifiers)
68  class pqInternal;
69  const QScopedPointer<pqInternal> Internal;
70 
71  Q_DISABLE_COPY(pqProxySelectionWidget)
72 };
73 
74 #endif
virtual void setPanelVisibility(const char *vis)
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
virtual void updateWidget(bool showing_advanced_properties)
#define PQCOMPONENTS_EXPORT
pqPropertyWidget that can be used for any proxy with a vtkSMProxyListDomain.
virtual void deselect()
These methods are called by pqPropertiesPanel when the panel for proxy becomes active/deactive.
superclass for all SM properties
virtual void select()
These methods are called by pqPropertiesPanel when the panel for proxy becomes active/deactive.
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
virtual void reset()
virtual void setView(pqView *)
called to set the active view.
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
virtual void apply()