Qt
ApplicationComponents
pqEnableWidgetDecorator.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 pqEnableWidgetDecorator_h
5
#define pqEnableWidgetDecorator_h
6
7
#include "
pqApplicationComponentsModule.h
"
8
#include "
pqBoolPropertyWidgetDecorator.h
"
9
#include "
vtkWeakPointer.h
"
10
15
class
PQAPPLICATIONCOMPONENTS_EXPORT
pqEnableWidgetDecorator
:
public
pqBoolPropertyWidgetDecorator
16
{
17
Q_OBJECT
18
typedef
pqBoolPropertyWidgetDecorator
Superclass
;
19
20
public
:
21
pqEnableWidgetDecorator
(
vtkPVXMLElement
* config,
pqPropertyWidget
* parent);
22
26
bool
enableWidget
()
const override
{
return
this->
isBoolProperty
(); }
27
28
private
:
29
Q_DISABLE_COPY(
pqEnableWidgetDecorator
)
30
};
31
32
#endif
pqBoolPropertyWidgetDecorator::isBoolProperty
bool isBoolProperty() const
Definition:
pqBoolPropertyWidgetDecorator.h:26
pqBoolPropertyWidgetDecorator
pqBoolPropertyWidgetDecorator is a base class for enable/disable or show/hide widgets based on the st...
Definition:
pqBoolPropertyWidgetDecorator.h:16
pqPropertyWidget
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
Definition:
pqPropertyWidget.h:25
pqBoolPropertyWidgetDecorator.h
PQAPPLICATIONCOMPONENTS_EXPORT
#define PQAPPLICATIONCOMPONENTS_EXPORT
Definition:
pqApplicationComponentsModule.h:15
pqEnableWidgetDecorator::enableWidget
bool enableWidget() const override
overridden from pqPropertyWidget.
Definition:
pqEnableWidgetDecorator.h:26
pqApplicationComponentsModule.h
pqEnableWidgetDecorator
pqEnableWidgetDecorator can be used to enable/disable a widget based on the status of another propert...
Definition:
pqEnableWidgetDecorator.h:15
vtkWeakPointer.h
vtkPVXMLElement
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
Definition:
vtkPVXMLElement.h:23
pqPropertyWidgetDecorator
pqPropertyWidgetDecorator provides a mechanism to decorate pqPropertyWidget instances to add logic to...
Definition:
pqPropertyWidgetDecorator.h:19
Generated by
1.8.13 on Mon Dec 23 2024