pqBoolPropertyWidgetDecorator.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 pqBoolPropertyWidgetDecorator_h
5 #define pqBoolPropertyWidgetDecorator_h
6 
9 #include "vtkWeakPointer.h"
10 
18 {
19  Q_OBJECT
21 
22 public:
25 
26  bool isBoolProperty() const { return this->BoolProperty; }
27 
28 Q_SIGNALS:
29  void boolPropertyChanged();
30 
31 protected:
33  QString Function;
34  int Index;
35  unsigned long ObserverId;
37  QString Value;
38 
39 private:
40  Q_DISABLE_COPY(pqBoolPropertyWidgetDecorator)
41 
42 
45  void updateBoolPropertyState();
49  void setBoolProperty(bool val);
50 };
51 
52 #endif
pqBoolPropertyWidgetDecorator is a base class for enable/disable or show/hide widgets based on the st...
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
vtkWeakPointer< vtkSMProperty > Property
pqPropertyWidgetDecorator provides a mechanism to decorate pqPropertyWidget instances to add logic to...