pqSessionTypeDecorator.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 pqSessionTypeDecorator_h
5 #define pqSessionTypeDecorator_h
6 
9 #include <QObject>
10 
30 {
31  Q_OBJECT
33 
34 public:
36  ~pqSessionTypeDecorator() override;
37 
39 
42  bool canShowWidget(bool show_advanced) const override;
43  bool enableWidget() const override;
45 
46 private:
47  Q_DISABLE_COPY(pqSessionTypeDecorator);
48 
49  bool IsVisible;
50  bool IsEnabled;
51 };
52 
53 #endif
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
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.
decorator to show/hide or enable/disable property widget based on the session.
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...