pqProxyEditorPropertyWidget.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 pqProxyEditorPropertyWidget_h
5 #define pqProxyEditorPropertyWidget_h
6 
7 #include "pqComponentsModule.h"
8 #include "pqPropertyWidget.h"
9 #include "pqSMProxy.h"
10 
12 class QCheckBox;
13 class QPushButton;
14 
41 {
42  Q_OBJECT
43  typedef pqPropertyWidget Superclass;
44  Q_PROPERTY(pqSMProxy proxyToEdit READ proxyToEdit WRITE setProxyToEdit)
45 
46 public:
48  vtkSMProxy* proxy, vtkSMProperty* smproperty, QWidget* parent = nullptr);
49  ~pqProxyEditorPropertyWidget() override;
50 
51  pqSMProxy proxyToEdit() const;
52 
53 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
54  void setProxyToEdit(pqSMProxy);
55 
56 protected Q_SLOTS:
57  void buttonClicked();
58 
59 Q_SIGNALS:
60  void dummySignal();
61 
62 private:
63  Q_DISABLE_COPY(pqProxyEditorPropertyWidget)
64 
65  vtkWeakPointer<vtkSMProxy> ProxyToEdit;
66  QPointer<QPushButton> Button;
67  QPointer<QCheckBox> Checkbox;
68  QPointer<pqProxyWidgetDialog> Editor;
69  QString PropertyName;
70 };
71 
72 #endif
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
#define PQCOMPONENTS_EXPORT
Property widget that can be used to edit a proxy set as the value of a ProxyProperty in a pop-up dial...
superclass for all SM properties
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
pqProxyWidgetDialog is used to show properties of any proxy in a dialog.