pqGenericPropertyWidgetDecorator.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 pqGenericPropertyWidgetDecorator_h
5 #define pqGenericPropertyWidgetDecorator_h
6 
9 
10 #include <QScopedPointer>
11 
29 {
30  Q_OBJECT
32 
33 public:
36 
40  bool canShowWidget(bool show_advanced) const override;
41  bool enableWidget() const override;
42 
43 private Q_SLOTS:
44  void updateState();
45 
46 private: // NOLINT(readability-redundant-access-specifiers)
47  Q_DISABLE_COPY(pqGenericPropertyWidgetDecorator)
48 
49  class pqInternals;
50  const QScopedPointer<pqInternals> Internals;
51 };
52 
53 #endif
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
pqGenericPropertyWidgetDecorator is a pqPropertyWidgetDecorator that supports multiple common use cas...
virtual bool enableWidget() const
Override this method to override the enable state of the widget in the panel.
#define PQAPPLICATIONCOMPONENTS_EXPORT
virtual bool canShowWidget(bool show_advanced) const
Override this method to override the visibility of the widget in the panel.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
pqPropertyWidgetDecorator provides a mechanism to decorate pqPropertyWidget instances to add logic to...