pqColorPaletteSelectorWidget.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 pqColorPaletteSelectorWidget_h
5 #define pqColorPaletteSelectorWidget_h
6 
8 #include "pqPropertyWidget.h"
9 #include <QPointer>
10 
11 class QComboBox;
12 
32 {
33  Q_OBJECT
34  Q_PROPERTY(QString paletteName READ paletteName WRITE setPaletteName)
36 
37 public:
39  vtkSMProxy* smproxy, vtkSMProperty* smproperty, QWidget* parent = nullptr);
40  ~pqColorPaletteSelectorWidget() override;
41 
42  QString paletteName() const;
43  void setPaletteName(const QString& name);
44 
45 Q_SIGNALS:
46  void paletteNameChanged();
47 
48 private Q_SLOTS:
49  void loadPalette(int);
50 
51 private: // NOLINT(readability-redundant-access-specifiers)
52  Q_DISABLE_COPY(pqColorPaletteSelectorWidget)
53  QPointer<QComboBox> ComboBox;
54 };
55 
56 #endif
widget to choose a color palette to load/select.
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
#define PQAPPLICATIONCOMPONENTS_EXPORT
superclass for all SM properties
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140