pqSelectionListPropertyWidget.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 pqSelectionListPropertyWidget_h
5 #define pqSelectionListPropertyWidget_h
6 
9 
10 #include <QScopedPointer>
11 #include <QVariant>
12 
13 #include "pqSMProxy.h" // For property.
14 
15 class vtkSMProxy;
16 class vtkSMPropertyGroup;
17 
26 {
27  Q_OBJECT
29  Q_PROPERTY(QList<QVariant> labels READ labels WRITE setLabels NOTIFY labelsChanged);
30 
31 public:
33  vtkSMProxy* smproxy, vtkSMPropertyGroup* smgroup, QWidget* parentObject = nullptr);
35 
42  QList<QVariant> labels() const;
43  void setLabels(const QList<QVariant>& labels);
44 
45 Q_SIGNALS:
49  void labelsChanged();
50 
51 protected Q_SLOTS:
55  void populateRowLabels(pqSMProxy appendSelection);
56 
57 private:
58  Q_DISABLE_COPY(pqSelectionListPropertyWidget)
59 
60  class pqUi;
61  QScopedPointer<pqUi> Ui;
62 };
63 
64 #endif
pqSelectionListPropertyWidget is a custom widget used to associate a label for each selectionNode fro...
pqPropertyGroupWidget is a (custom) widget created for a PropertyGroup.
#define PQAPPLICATIONCOMPONENTS_EXPORT
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140