pqAnimatableProxyComboBox.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 pqAnimatableProxyComboBox_h
5 #define pqAnimatableProxyComboBox_h
6 
7 #include "pqComponentsModule.h"
8 #include "pqSMProxy.h"
9 #include <QComboBox>
10 
11 class vtkSMProxy;
12 class pqPipelineSource;
14 
21 {
22  Q_OBJECT
23  typedef QComboBox Superclass;
24 
25 public:
26  pqAnimatableProxyComboBox(QWidget* parent = nullptr);
27  ~pqAnimatableProxyComboBox() override;
28 
32  vtkSMProxy* getCurrentProxy() const;
33 
34  void addProxy(int index, const QString& label, vtkSMProxy*);
35  void removeProxy(const QString& label);
36  int findProxy(vtkSMProxy*);
37 
38 protected Q_SLOTS:
39  void onSourceAdded(pqPipelineSource* src);
40  void onSourceRemoved(pqPipelineSource* src);
41  void onNameChanged(pqServerManagerModelItem* src);
42  void onCurrentSourceChanged(int idx);
43 
44 Q_SIGNALS:
45  void currentProxyChanged(vtkSMProxy*);
46 
47 private:
48  Q_DISABLE_COPY(pqAnimatableProxyComboBox)
49 };
50 
51 #endif
#define PQCOMPONENTS_EXPORT
pqServerManagerModelItem is a element maintained by pqServerManagerModel.
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
PQ representation for a vtkSMProxy that can be involved in a pipeline.
index
pqAnimatableProxyComboBox is a combo box that can list the animatable proxies.