comparison widgets/PluginParameterBox.cpp @ 64:10bcd53ddc71

* Add icon for playback plugin edit button * Make playback plugins respond to parameter & program changes while their edit dialog is still visible
author Chris Cannam
date Thu, 23 Mar 2006 18:42:17 +0000
parents fb02fe13ff47
children 72fa239a4880
comparison
equal deleted inserted replaced
63:fb02fe13ff47 64:10bcd53ddc71
190 spin->setValue(newValue); 190 spin->setValue(newValue);
191 spin->blockSignals(false); 191 spin->blockSignals(false);
192 } 192 }
193 193
194 m_plugin->setParameter(name.toStdString(), newValue); 194 m_plugin->setParameter(name.toStdString(), newValue);
195
196 emit pluginConfigurationChanged(m_plugin->toXmlString());
195 } 197 }
196 198
197 void 199 void
198 PluginParameterBox::checkBoxChanged(int state) 200 PluginParameterBox::checkBoxChanged(int state)
199 { 201 {
207 209
208 PluginInstance::ParameterDescriptor params = m_params[name].param; 210 PluginInstance::ParameterDescriptor params = m_params[name].param;
209 211
210 if (state) m_plugin->setParameter(name.toStdString(), 1.0); 212 if (state) m_plugin->setParameter(name.toStdString(), 1.0);
211 else m_plugin->setParameter(name.toStdString(), 0.0); 213 else m_plugin->setParameter(name.toStdString(), 0.0);
214
215 emit pluginConfigurationChanged(m_plugin->toXmlString());
212 } 216 }
213 217
214 void 218 void
215 PluginParameterBox::spinBoxChanged(double value) 219 PluginParameterBox::spinBoxChanged(double value)
216 { 220 {
251 dial->setValue(ival); 255 dial->setValue(ival);
252 dial->blockSignals(false); 256 dial->blockSignals(false);
253 } 257 }
254 258
255 m_plugin->setParameter(name.toStdString(), value); 259 m_plugin->setParameter(name.toStdString(), value);
260
261 emit pluginConfigurationChanged(m_plugin->toXmlString());
256 } 262 }
257 263
258 void 264 void
259 PluginParameterBox::programComboChanged(const QString &newProgram) 265 PluginParameterBox::programComboChanged(const QString &newProgram)
260 { 266 {
287 i->second.dial->blockSignals(true); 293 i->second.dial->blockSignals(true);
288 i->second.dial->setValue(int((value - min) / qtz)); 294 i->second.dial->setValue(int((value - min) / qtz));
289 i->second.dial->blockSignals(false); 295 i->second.dial->blockSignals(false);
290 } 296 }
291 } 297 }
292 } 298
293 299 emit pluginConfigurationChanged(m_plugin->toXmlString());
300 }
301