src
paraview-5.12
Qt
ApplicationComponents
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"
8
#include "
pqPropertyWidgetDecorator.h
"
9
#include "
vtkWeakPointer.h
"
10
16
class
PQAPPLICATIONCOMPONENTS_EXPORT
pqBoolPropertyWidgetDecorator
17
:
public
pqPropertyWidgetDecorator
18
{
19
Q_OBJECT
20
typedef
pqPropertyWidgetDecorator
Superclass
;
21
22
public
:
23
pqBoolPropertyWidgetDecorator
(
vtkPVXMLElement
* config,
pqPropertyWidget
* parent);
24
~
pqBoolPropertyWidgetDecorator
()
override
;
25
26
bool
isBoolProperty
()
const
{
return
this->BoolProperty; }
27
28
Q_SIGNALS:
29
void
boolPropertyChanged();
30
31
protected
:
32
vtkWeakPointer<vtkSMProperty>
Property
;
33
QString
Function
;
34
int
Index
;
35
unsigned
long
ObserverId
;
36
bool
BoolProperty
;
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
Generated by
1.8.17 on Wed Mar 27 2024