pqInputSelectorWidget.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 pqInputSelectorWidget_h
5 #define pqInputSelectorWidget_h
6 
7 #include "pqComponentsModule.h" // for exports
8 #include "pqPropertyWidget.h"
9 #include "pqSMProxy.h" // for pqSMProxy.
10 #include "pqTimer.h" // for pqTimer
11 #include "vtkSmartPointer.h" // for vtkSmartPointer
12 
13 class QComboBox;
14 class vtkSMProxy;
15 
30 {
31  Q_OBJECT
33  Q_PROPERTY(pqSMProxy selectedInput READ selectedInput WRITE setSelectedInput)
34 
35 public:
36  pqInputSelectorWidget(vtkSMProxy* proxy, vtkSMProperty* smproperty, QWidget* parent = nullptr);
37  ~pqInputSelectorWidget() override;
38 
43  pqSMProxy selectedInput() const;
44 
45 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
46  void setSelectedInput(pqSMProxy);
47 
48 Q_SIGNALS:
49  void selectedInputChanged();
50 
51 private Q_SLOTS:
52  void updateComboBox();
53 
54 private: // NOLINT(readability-redundant-access-specifiers)
55  Q_DISABLE_COPY(pqInputSelectorWidget);
56  QComboBox* ComboBox;
57  vtkWeakPointer<vtkSMProxy> ChosenPort;
58  pqTimer UpdateComboBoxTimer;
59 };
60 
61 #endif
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
#define PQCOMPONENTS_EXPORT
widget for input property to choose a pipeline input.
superclass for all SM properties
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140