comparison widgets/PluginParameterBox.h @ 63:fb02fe13ff47

* Add editing for auralisation plugin parameters and programs * Rename and reorganise the sample plugin sample set
author Chris Cannam
date Thu, 23 Mar 2006 15:49:41 +0000
parents 50429a56680f
children 10bcd53ddc71
comparison
equal deleted inserted replaced
62:50429a56680f 63:fb02fe13ff47
21 #include <QFrame> 21 #include <QFrame>
22 #include <map> 22 #include <map>
23 23
24 class AudioDial; 24 class AudioDial;
25 class QDoubleSpinBox; 25 class QDoubleSpinBox;
26 class QCheckBox;
26 class QGridLayout; 27 class QGridLayout;
27 28
28 class PluginParameterBox : public QFrame 29 class PluginParameterBox : public QFrame
29 { 30 {
30 Q_OBJECT 31 Q_OBJECT
36 PluginInstance *getPlugin() { return m_plugin; } 37 PluginInstance *getPlugin() { return m_plugin; }
37 38
38 protected slots: 39 protected slots:
39 void dialChanged(int); 40 void dialChanged(int);
40 void spinBoxChanged(double); 41 void spinBoxChanged(double);
42 void checkBoxChanged(int);
43 void programComboChanged(const QString &);
41 44
42 protected: 45 protected:
43 void populate(); 46 void populate();
44 47
45 QGridLayout *m_layout; 48 QGridLayout *m_layout;
46 PluginInstance *m_plugin; 49 PluginInstance *m_plugin;
47 50
48 struct ParamRec { 51 struct ParamRec {
49 AudioDial *dial; 52 AudioDial *dial;
50 QDoubleSpinBox *spin; 53 QDoubleSpinBox *spin;
54 QCheckBox *check;
51 PluginInstance::ParameterDescriptor param; 55 PluginInstance::ParameterDescriptor param;
52 }; 56 };
53 57
54 std::map<QString, ParamRec> m_params; 58 std::map<QString, ParamRec> m_params;
55 }; 59 };