pqCheckableProperty.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 pqCheckableProperty_h
5 #define pqCheckableProperty_h
6 
8 #include "pqPropertyWidget.h"
9 
10 #include <memory>
11 
48 {
49  Q_OBJECT
51 
52 public:
53  pqCheckableProperty(vtkSMProxy* proxy, vtkSMPropertyGroup* smgroup, QWidget* parent = nullptr);
54  ~pqCheckableProperty() override;
55 
56  void apply() override;
57  void reset() override;
58  void select() override;
59  void deselect() override;
60  void updateWidget(bool showing_advanced_properties) override;
61  void setPanelVisibility(const char* vis) override;
62  void setView(pqView*) override;
63  bool isSingleRowItem() const override;
64 
65  bool enableCheckbox() const;
66 
67 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
68  void setEnableCheckbox(bool enableCheckbox);
69 
70 private:
71  Q_PROPERTY(bool enableCheckbox READ enableCheckbox WRITE setEnableCheckbox)
72 
73  struct Internal;
74  std::unique_ptr<Internal> internal;
75 };
76 
77 #endif
virtual void setPanelVisibility(const char *vis)
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
virtual void updateWidget(bool showing_advanced_properties)
property widget for properties representing a checkable property.
virtual void deselect()
These methods are called by pqPropertiesPanel when the panel for proxy becomes active/deactive.
#define PQAPPLICATIONCOMPONENTS_EXPORT
virtual void select()
These methods are called by pqPropertiesPanel when the panel for proxy becomes active/deactive.
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
virtual void reset()
virtual void setView(pqView *)
called to set the active view.
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
virtual bool isSingleRowItem() const
Determines if the PropertyWidget must be constructed using a single row.
virtual void apply()