Mercurial > hg > svgui
comparison widgets/PluginParameterBox.h @ 293:15b8a4bfe855
* continue to pick "new" colours for coloured layers even when all colours
have been used at least once, rather than sticking on the last one
* some messing about with application palette settings
* when replacing an audio file, retain the previous playback settings for
any layers that depended on the old file
* re-check plugin program setting when a parameter changes -- so a plugin
can decide to reset the program if the parameters no longer match those
for the current program
* fix failure to update check-boxes for toggled plugin parameters when their
parameters are changed by program changes
author | Chris Cannam |
---|---|
date | Thu, 09 Aug 2007 14:40:03 +0000 |
parents | a5b3c9f580c1 |
children | c803eb18ebba |
comparison
equal
deleted
inserted
replaced
292:24fc90078754 | 293:15b8a4bfe855 |
---|---|
46 void checkBoxChanged(int); | 46 void checkBoxChanged(int); |
47 void programComboChanged(const QString &); | 47 void programComboChanged(const QString &); |
48 | 48 |
49 protected: | 49 protected: |
50 void populate(); | 50 void populate(); |
51 void updateProgramCombo(); | |
51 | 52 |
52 QGridLayout *m_layout; | 53 QGridLayout *m_layout; |
53 Vamp::PluginBase *m_plugin; | 54 Vamp::PluginBase *m_plugin; |
54 | 55 |
55 struct ParamRec { | 56 struct ParamRec { |
58 QCheckBox *check; | 59 QCheckBox *check; |
59 QComboBox *combo; | 60 QComboBox *combo; |
60 Vamp::PluginBase::ParameterDescriptor param; | 61 Vamp::PluginBase::ParameterDescriptor param; |
61 }; | 62 }; |
62 | 63 |
64 QComboBox *m_programCombo; | |
65 | |
63 std::map<QString, ParamRec> m_params; | 66 std::map<QString, ParamRec> m_params; |
64 std::map<QString, QString> m_nameMap; | 67 std::map<QString, QString> m_nameMap; |
68 Vamp::PluginBase::ProgramList m_programs; | |
65 }; | 69 }; |
66 | 70 |
67 #endif | 71 #endif |
68 | 72 |