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"
9 #include "vtkWeakPointer.h"
10 
15 class PQAPPLICATIONCOMPONENTS_EXPORT pqShowWidgetDecorator : public pqBoolPropertyWidgetDecorator
16 {
17  Q_OBJECT
19 
20 public:
22 
23  bool canShowWidget(bool show_advanced) const override
24  {
25  (void)show_advanced;
26  return this->isBoolProperty();
27  }
28 
29 private:
30  Q_DISABLE_COPY(pqShowWidgetDecorator)
31 };
32 
33 #endif
pqPropertyWidget
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
Definition: pqPropertyWidget.h:25
pqBoolPropertyWidgetDecorator.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
pqShowWidgetDecorator
pqShowWidgetDecorator can be used to show/hide a widget based on the status of another property not d...
Definition: pqShowWidgetDecorator.h:15
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:23
vtkWeakPointer.h
vtkPVXMLElement
Definition: vtkPVXMLElement.h:23
pqBoolPropertyWidgetDecorator::isBoolProperty
bool isBoolProperty() const
Definition: pqBoolPropertyWidgetDecorator.h:26