comparison widgets/PluginParameterBox.h @ 71:72fa239a4880

* Modify to use Vamp SDK for proper feature extraction plugins. Requires that the vamp-plugin-sdk directory tree be present below plugin/ (it's separate in Subversion).
author Chris Cannam
date Fri, 31 Mar 2006 15:56:35 +0000
parents 10bcd53ddc71
children 195ad6178ef8
comparison
equal deleted inserted replaced
70:bf306158803d 71:72fa239a4880
14 */ 14 */
15 15
16 #ifndef _PLUGIN_PARAMETER_BOX_H_ 16 #ifndef _PLUGIN_PARAMETER_BOX_H_
17 #define _PLUGIN_PARAMETER_BOX_H_ 17 #define _PLUGIN_PARAMETER_BOX_H_
18 18
19 #include "plugin/PluginInstance.h" 19 #include "vamp-sdk/PluginBase.h"
20 20
21 #include <QFrame> 21 #include <QFrame>
22 #include <map> 22 #include <map>
23 23
24 class AudioDial; 24 class AudioDial;
29 class PluginParameterBox : public QFrame 29 class PluginParameterBox : public QFrame
30 { 30 {
31 Q_OBJECT 31 Q_OBJECT
32 32
33 public: 33 public:
34 PluginParameterBox(PluginInstance *, QWidget *parent = 0); 34 PluginParameterBox(Vamp::PluginBase *, QWidget *parent = 0);
35 ~PluginParameterBox(); 35 ~PluginParameterBox();
36 36
37 PluginInstance *getPlugin() { return m_plugin; } 37 Vamp::PluginBase *getPlugin() { return m_plugin; }
38 38
39 signals: 39 signals:
40 void pluginConfigurationChanged(QString); 40 void pluginConfigurationChanged(QString);
41 41
42 protected slots: 42 protected slots:
47 47
48 protected: 48 protected:
49 void populate(); 49 void populate();
50 50
51 QGridLayout *m_layout; 51 QGridLayout *m_layout;
52 PluginInstance *m_plugin; 52 Vamp::PluginBase *m_plugin;
53 53
54 struct ParamRec { 54 struct ParamRec {
55 AudioDial *dial; 55 AudioDial *dial;
56 QDoubleSpinBox *spin; 56 QDoubleSpinBox *spin;
57 QCheckBox *check; 57 QCheckBox *check;
58 PluginInstance::ParameterDescriptor param; 58 Vamp::PluginBase::ParameterDescriptor param;
59 }; 59 };
60 60
61 std::map<QString, ParamRec> m_params; 61 std::map<QString, ParamRec> m_params;
62 }; 62 };
63 63