Mercurial > hg > svgui
comparison widgets/PluginParameterDialog.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 | 6dad2724f3aa |
children | 551d7ae05526 |
comparison
equal
deleted
inserted
replaced
70:bf306158803d | 71:72fa239a4880 |
---|---|
16 #ifndef _PLUGIN_PARAMETER_DIALOG_H_ | 16 #ifndef _PLUGIN_PARAMETER_DIALOG_H_ |
17 #define _PLUGIN_PARAMETER_DIALOG_H_ | 17 #define _PLUGIN_PARAMETER_DIALOG_H_ |
18 | 18 |
19 #include <QDialog> | 19 #include <QDialog> |
20 | 20 |
21 class PluginInstance; | 21 namespace Vamp { class PluginBase; } |
22 class PluginParameterBox; | 22 class PluginParameterBox; |
23 | 23 |
24 /** | 24 /** |
25 * A dialog for editing the parameters of a given plugin, using a | 25 * A dialog for editing the parameters of a given plugin, using a |
26 * PluginParameterBox. This dialog does not contain any mechanism for | 26 * PluginParameterBox. This dialog does not contain any mechanism for |
32 class PluginParameterDialog : public QDialog | 32 class PluginParameterDialog : public QDialog |
33 { | 33 { |
34 Q_OBJECT | 34 Q_OBJECT |
35 | 35 |
36 public: | 36 public: |
37 PluginParameterDialog(PluginInstance *, | 37 PluginParameterDialog(Vamp::PluginBase *, |
38 int sourceChannels, | 38 int sourceChannels, |
39 int targetChannels, | 39 int targetChannels, |
40 int defaultChannel, | 40 int defaultChannel, |
41 QWidget *parent = 0); | 41 QWidget *parent = 0); |
42 ~PluginParameterDialog(); | 42 ~PluginParameterDialog(); |
43 | 43 |
44 PluginInstance *getPlugin() { return m_plugin; } | 44 Vamp::PluginBase *getPlugin() { return m_plugin; } |
45 | 45 |
46 int getChannel() const { return m_channel; } | 46 int getChannel() const { return m_channel; } |
47 | 47 |
48 signals: | 48 signals: |
49 void pluginConfigurationChanged(QString); | 49 void pluginConfigurationChanged(QString); |
50 | 50 |
51 protected slots: | 51 protected slots: |
52 void channelComboChanged(int); | 52 void channelComboChanged(int); |
53 | 53 |
54 protected: | 54 protected: |
55 PluginInstance *m_plugin; | 55 Vamp::PluginBase *m_plugin; |
56 int m_channel; | 56 int m_channel; |
57 PluginParameterBox *m_parameterBox; | 57 PluginParameterBox *m_parameterBox; |
58 }; | 58 }; |
59 | 59 |
60 #endif | 60 #endif |