# HG changeset patch # User Chris Cannam # Date 1160583531 0 # Node ID d5052b5fea9c0b7f341154dec36bf3a4cd311aad # Parent 5a916fee6d2d6557945de1a3215b287544ab58d5 * Tidy up plugin parameter dialog by switching it to a simple constructor with separate methods for passing in the additional options if necessary * Fix sizing problem on advanced pane toggle in plugin parameter dialog * Make a start on passing in list of candidate input models for transform diff -r 5a916fee6d2d -r d5052b5fea9c base/RecentFiles.cpp --- a/base/RecentFiles.cpp Tue Oct 10 19:04:57 2006 +0000 +++ b/base/RecentFiles.cpp Wed Oct 11 16:18:51 2006 +0000 @@ -105,6 +105,7 @@ if (m_names[i] == name) continue; newnames.push_back(m_names[i]); } + m_names = newnames; } truncateAndWrite(); diff -r 5a916fee6d2d -r d5052b5fea9c plugin/PluginXml.cpp --- a/plugin/PluginXml.cpp Tue Oct 10 19:04:57 2006 +0000 +++ b/plugin/PluginXml.cpp Wed Oct 11 16:18:51 2006 +0000 @@ -77,6 +77,11 @@ for (Vamp::PluginBase::ParameterList::const_iterator i = parameters.begin(); i != parameters.end(); ++i) { + +// std::cerr << "PluginXml::toXmlString: parameter name \"" +// << i->name.c_str() << "\" has value " +// << m_plugin->getParameter(i->name) << std::endl; + s += QString("param-%1=\"%2\" ") .arg(stripInvalidParameterNameCharacters(QString(i->name.c_str()))) .arg(m_plugin->getParameter(i->name)); @@ -189,6 +194,9 @@ int errorLine; int errorColumn; +// std::cerr << "PluginXml::setParametersFromXml: XML is \"" +// << xml.toLocal8Bit().data() << "\"" << std::endl; + if (!doc.setContent(xml, false, &error, &errorLine, &errorColumn)) { std::cerr << "PluginXml::setParametersFromXml: Error in parsing XML: " << error.toStdString() << " at line " << errorLine << ", column " << errorColumn << std::endl; std::cerr << "Input follows:" << std::endl;