Mercurial > hg > svcore
comparison transform/TransformFactory.cpp @ 57:7439f1696314
* 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 | 2157fa46c1e7 |
children | 3086ff194ea0 |
comparison
equal
deleted
inserted
replaced
56:2157fa46c1e7 | 57:7439f1696314 |
---|---|
163 if (i >= 0) { | 163 if (i >= 0) { |
164 return description.remove(0, i + 2); | 164 return description.remove(0, i + 2); |
165 } else { | 165 } else { |
166 return description; | 166 return description; |
167 } | 167 } |
168 } | |
169 | |
170 bool | |
171 TransformFactory::isTransformConfigurable(TransformName name) | |
172 { | |
173 if (m_transforms.find(name) != m_transforms.end()) { | |
174 return m_transforms[name].configurable; | |
175 } else return false; | |
168 } | 176 } |
169 | 177 |
170 bool | 178 bool |
171 TransformFactory::getConfigurationForTransform(TransformName name, | 179 TransformFactory::getConfigurationForTransform(TransformName name, |
172 Model *inputModel, | 180 Model *inputModel, |
191 PluginParameterDialog *dialog = new PluginParameterDialog(plugin); | 199 PluginParameterDialog *dialog = new PluginParameterDialog(plugin); |
192 if (dialog->exec() == QDialog::Accepted) { | 200 if (dialog->exec() == QDialog::Accepted) { |
193 ok = true; | 201 ok = true; |
194 } | 202 } |
195 configurationXml = plugin->toXmlString(); | 203 configurationXml = plugin->toXmlString(); |
204 delete dialog; | |
196 delete plugin; | 205 delete plugin; |
197 } | 206 } |
198 } | 207 } |
199 | 208 |
200 if (ok) m_lastConfigurations[name] = configurationXml; | 209 if (ok) m_lastConfigurations[name] = configurationXml; |