Qt
ApplicationComponents
pqShowWidgetDecorator.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 pqShowWidgetDecorator_h
5
#define pqShowWidgetDecorator_h
6
7
#include "pqApplicationComponentsModule.h"
8
#include "
pqBoolPropertyWidgetDecorator.h
"
9
#include "
vtkShowDecorator.h
"
10
#include "
vtkWeakPointer.h
"
11
18
class
PQAPPLICATIONCOMPONENTS_EXPORT
pqShowWidgetDecorator
:
public
pqBoolPropertyWidgetDecorator
19
{
20
Q_OBJECT
21
typedef
pqBoolPropertyWidgetDecorator
Superclass
;
22
23
public
:
24
pqShowWidgetDecorator
(
vtkPVXMLElement
* config,
pqPropertyWidget
* parent);
25
~
pqShowWidgetDecorator
()
override
=
default
;
26
27
bool
canShowWidget
(
bool
show_advanced)
const override
28
{
29
(void)show_advanced;
30
return
decoratorLogic->IsBoolProperty();
31
}
32
33
private
:
34
Q_DISABLE_COPY(
pqShowWidgetDecorator
)
35
36
vtkNew<vtkShowDecorator>
decoratorLogic;
37
};
38
39
#endif
pqBoolPropertyWidgetDecorator
pqBoolPropertyWidgetDecorator is a base class for enable/disable or show/hide widgets based on the st...
Definition:
pqBoolPropertyWidgetDecorator.h:18
pqPropertyWidget
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
Definition:
pqPropertyWidget.h:25
vtkShowDecorator.h
pqBoolPropertyWidgetDecorator.h
pqShowWidgetDecorator::canShowWidget
bool canShowWidget(bool show_advanced) const override
Override this method to override the visibility of the widget in the panel.
Definition:
pqShowWidgetDecorator.h:27
pqShowWidgetDecorator
pqShowWidgetDecorator can be used to show/hide a widget based on the status of another property not d...
Definition:
pqShowWidgetDecorator.h:18
vtkWeakPointer.h
vtkNew< vtkShowDecorator >
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:20
Generated by
1.8.13 on Fri Aug 1 2025