pqProxyPropertyWidget.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 pqProxyPropertyWidget_h
6 #define pqProxyPropertyWidget_h
7 
8 #include "pqPropertyWidget.h"
9 #include <QPointer>
10 
13 class vtkSMProxy;
14 
20 {
21  Q_OBJECT
22  typedef pqPropertyWidget Superclass;
23 
24 public:
25  pqProxyPropertyWidget(vtkSMProperty* property, vtkSMProxy* proxy, QWidget* parent = nullptr);
26 
30  void apply() override;
31  void reset() override;
32 
38  void select() override;
39  void deselect() override;
40 
45  void updateWidget(bool showing_advanced_properties) override;
46 
50  vtkSMProxy* chosenProxy() const;
51 
52 private:
53  QPointer<pqSelectionInputWidget> SelectionInputWidget;
54  QPointer<pqProxySelectionWidget> ProxySelectionWidget;
55 };
56 
57 #endif // pqProxyPropertyWidget_h
This is a widget for a vtkSMProxyProperty.
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.
virtual void reset()
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
pqSelectionInputWidget is a custom widget used for specifying the selection to use on filters that ha...
virtual void apply()