pqIntMaskPropertyWidget.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 pqIntMaskPropertyWidget_h
5 #define pqIntMaskPropertyWidget_h
6 
7 #include "pqComponentsModule.h"
8 #include "pqPropertyWidget.h"
9 #include <QScopedPointer>
10 
42 {
43  Q_OBJECT
45  Q_PROPERTY(int mask READ mask WRITE setMask NOTIFY maskChanged);
46 
47 public:
48  pqIntMaskPropertyWidget(vtkSMProxy* proxy, vtkSMProperty* smproperty, QWidget* parent = nullptr);
49  ~pqIntMaskPropertyWidget() override;
50 
54  int mask() const;
55 
56 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
60  void setMask(int mask);
61 
62 Q_SIGNALS:
66  void maskChanged();
67 
68 private:
69  Q_DISABLE_COPY(pqIntMaskPropertyWidget)
70 
71  class pqInternals;
72  QScopedPointer<pqInternals> Internals;
73 };
74 
75 #endif
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
#define PQCOMPONENTS_EXPORT
superclass for all SM properties
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
pqIntMaskPropertyWidget is designed to be used for an IntVectorProperty that can have a value that is...