changeset 185:d5052b5fea9c

* 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
author Chris Cannam
date Wed, 11 Oct 2006 16:18:51 +0000
parents 5a916fee6d2d
children 06ad01f3e553
files base/RecentFiles.cpp plugin/PluginXml.cpp
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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();
--- 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;