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 
7 #include "pqApplicationComponentsModule.h"
9 #include "vtkWeakPointer.h"
10 
16 class PQAPPLICATIONCOMPONENTS_EXPORT pqBoolPropertyWidgetDecorator
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::ObserverId
unsigned long ObserverId
Definition: pqBoolPropertyWidgetDecorator.h:35
pqPropertyWidget
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
Definition: pqPropertyWidget.h:25
pqBoolPropertyWidgetDecorator::Index
int Index
Definition: pqBoolPropertyWidgetDecorator.h:34
pqPropertyWidgetDecorator.h
pqBoolPropertyWidgetDecorator
pqBoolPropertyWidgetDecorator is a base class for enable/disable or show/hide widgets based on the st...
Definition: pqBoolPropertyWidgetDecorator.h:16
pqPropertyWidgetDecorator
pqPropertyWidgetDecorator provides a mechanism to decorate pqPropertyWidget instances to add logic to...
Definition: pqPropertyWidgetDecorator.h:19
pqBoolPropertyWidgetDecorator::BoolProperty
bool BoolProperty
Definition: pqBoolPropertyWidgetDecorator.h:36
pqBoolPropertyWidgetDecorator::Function
QString Function
Definition: pqBoolPropertyWidgetDecorator.h:33
vtkWeakPointer.h
vtkPVXMLElement
Definition: vtkPVXMLElement.h:23
pqBoolPropertyWidgetDecorator::Property
vtkWeakPointer< vtkSMProperty > Property
Definition: pqBoolPropertyWidgetDecorator.h:32
pqBoolPropertyWidgetDecorator::Value
QString Value
Definition: pqBoolPropertyWidgetDecorator.h:37
vtkWeakPointer< vtkSMProperty >
pqBoolPropertyWidgetDecorator::isBoolProperty
bool isBoolProperty() const
Definition: pqBoolPropertyWidgetDecorator.h:26