comparison widgets/PluginParameterBox.h @ 1592:1da52d5e6700

Merge from branch audio-source-refactor. Mostly handling changes to plugin ownership
author Chris Cannam
date Fri, 03 Apr 2020 12:12:47 +0100
parents 11660e0c896f
children 7eb595837eaa
comparison
equal deleted inserted replaced
1591:26e80a450e74 1592:1da52d5e6700
30 class PluginParameterBox : public QFrame 30 class PluginParameterBox : public QFrame
31 { 31 {
32 Q_OBJECT 32 Q_OBJECT
33 33
34 public: 34 public:
35 PluginParameterBox(Vamp::PluginBase *, QWidget *parent = 0); 35 PluginParameterBox(std::shared_ptr<Vamp::PluginBase>,
36 QWidget *parent = 0);
36 ~PluginParameterBox(); 37 ~PluginParameterBox();
37 38
38 Vamp::PluginBase *getPlugin() { return m_plugin; } 39 std::shared_ptr<Vamp::PluginBase> getPlugin() { return m_plugin; }
39 40
40 signals: 41 signals:
41 void pluginConfigurationChanged(QString); 42 void pluginConfigurationChanged(QString);
42 43
43 protected slots: 44 protected slots:
49 protected: 50 protected:
50 void populate(); 51 void populate();
51 void updateProgramCombo(); 52 void updateProgramCombo();
52 53
53 QGridLayout *m_layout; 54 QGridLayout *m_layout;
54 Vamp::PluginBase *m_plugin; 55 std::shared_ptr<Vamp::PluginBase> m_plugin;
55 56
56 struct ParamRec { 57 struct ParamRec {
57 AudioDial *dial; 58 AudioDial *dial;
58 QDoubleSpinBox *spin; 59 QDoubleSpinBox *spin;
59 QCheckBox *check; 60 QCheckBox *check;