Mercurial > hg > svgui
comparison widgets/PluginParameterDialog.cpp @ 207:a5b3c9f580c1
* Fixes for new Vamp API changes -- I think plugin parameters are not being
set correctly yet though
author | Chris Cannam |
---|---|
date | Mon, 26 Feb 2007 20:08:51 +0000 |
parents | 42118892f428 |
children | 8495187c13ce |
comparison
equal
deleted
inserted
replaced
206:305c129a2c4f | 207:a5b3c9f580c1 |
---|---|
58 subgrid->setMargin(10); | 58 subgrid->setMargin(10); |
59 | 59 |
60 QFont font(pluginBox->font()); | 60 QFont font(pluginBox->font()); |
61 font.setBold(true); | 61 font.setBold(true); |
62 | 62 |
63 QLabel *nameLabel = new QLabel(plugin->getDescription().c_str()); | 63 QLabel *nameLabel = new QLabel(plugin->getName().c_str()); |
64 nameLabel->setWordWrap(true); | 64 nameLabel->setWordWrap(true); |
65 nameLabel->setFont(font); | 65 nameLabel->setFont(font); |
66 | 66 |
67 QLabel *makerLabel = new QLabel(plugin->getMaker().c_str()); | 67 QLabel *makerLabel = new QLabel(plugin->getMaker().c_str()); |
68 makerLabel->setWordWrap(true); | 68 makerLabel->setWordWrap(true); |
298 Vamp::PluginHostAdapter *fePlugin = dynamic_cast<Vamp::PluginHostAdapter *>(m_plugin); | 298 Vamp::PluginHostAdapter *fePlugin = dynamic_cast<Vamp::PluginHostAdapter *>(m_plugin); |
299 int size = 1024; | 299 int size = 1024; |
300 int increment = 1024; | 300 int increment = 1024; |
301 if (fePlugin) { | 301 if (fePlugin) { |
302 size = fePlugin->getPreferredBlockSize(); | 302 size = fePlugin->getPreferredBlockSize(); |
303 std::cerr << "Feature extraction plugin \"" << fePlugin->getDescription() << "\" reports preferred block size as " << size << std::endl; | 303 std::cerr << "Feature extraction plugin \"" << fePlugin->getName() << "\" reports preferred block size as " << size << std::endl; |
304 if (size == 0) size = 1024; | 304 if (size == 0) size = 1024; |
305 increment = fePlugin->getPreferredStepSize(); | 305 increment = fePlugin->getPreferredStepSize(); |
306 if (increment == 0) { | 306 if (increment == 0) { |
307 if (fePlugin->getInputDomain() == Vamp::Plugin::TimeDomain) { | 307 if (fePlugin->getInputDomain() == Vamp::Plugin::TimeDomain) { |
308 increment = size; | 308 increment = size; |