pqViewTypePropertyWidget.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 pqViewTypePropertyWidget_h
5 #define pqViewTypePropertyWidget_h
6 
8 #include "pqPropertyWidget.h"
9 #include <QPointer>
10 
11 class QComboBox;
12 
19 {
20  Q_OBJECT;
22  Q_PROPERTY(QString value READ value WRITE setValue);
23 
24 public:
25  pqViewTypePropertyWidget(vtkSMProxy* proxy, vtkSMProperty* smproperty, QWidget* parent = nullptr);
26  ~pqViewTypePropertyWidget() override;
27 
31  QString value() const;
32 
33 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
37  void setValue(const QString& value);
38 
39 Q_SIGNALS:
40  void valueChanged();
41 
42 private:
43  Q_DISABLE_COPY(pqViewTypePropertyWidget)
44  QPointer<QComboBox> ComboBox;
45 };
46 
47 #endif
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
#define PQAPPLICATIONCOMPONENTS_EXPORT
superclass for all SM properties
pqViewTypePropertyWidget is a property widget that shows a combo-box with values equal to the current...
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
value