pqPropertyWidgetDecorator.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 pqPropertyWidgetDecorator_h
5 #define pqPropertyWidgetDecorator_h
6 
7 #include "pqPropertyWidget.h"
8 #include "vtkPropertyDecorator.h"
9 #include "vtkSmartPointer.h" // needed for vtkSmartPointer
10 
11 class vtkPVXMLElement;
12 
20 class PQCOMPONENTS_EXPORT pqPropertyWidgetDecorator : public QObject
21 {
22  Q_OBJECT
23  typedef QObject Superclass;
24 
25 public:
35  ~pqPropertyWidgetDecorator() override;
36 
40  pqPropertyWidget* parentWidget() const;
41 
50  virtual bool canShowWidget(bool show_advanced) const;
51 
60  virtual bool enableWidget() const;
61 
66  static pqPropertyWidgetDecorator* create(vtkPVXMLElement* xml, pqPropertyWidget* parent);
67 
68 Q_SIGNALS:
74  void visibilityChanged();
75  void enableStateChanged();
76 
77 protected:
78  vtkPVXMLElement* xml() const;
79 
80 private:
81  Q_DISABLE_COPY(pqPropertyWidgetDecorator)
82 
84  vtkNew<vtkPropertyDecorator> decoratorLogic;
85 };
86 
87 #endif
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
pqPropertyWidgetDecorator provides a mechanism to decorate pqPropertyWidget instances to add logic to...