diff main/MainWindow.cpp @ 107:dd11619b73ba

* Update along with latest Vamp API change. This has not yet been tested.
author Chris Cannam
date Mon, 26 Feb 2007 18:13:07 +0000
parents 0581d552481d
children 58f21cf235c7
line wrap: on
line diff
--- a/main/MainWindow.cpp	Mon Feb 26 16:32:37 2007 +0000
+++ b/main/MainWindow.cpp	Mon Feb 26 18:13:07 2007 +0000
@@ -1219,10 +1219,10 @@
 
     for (unsigned int i = 0; i < transforms.size(); ++i) {
 	
-	QString description = transforms[i].description;
-	if (description == "") description = transforms[i].name;
-
-//        std::cerr << "Plugin Description: " << description.toStdString() << std::endl;
+	QString name = transforms[i].name;
+	if (name == "") name = transforms[i].identifier;
+
+//        std::cerr << "Plugin Name: " << name.toStdString() << std::endl;
 
         QString type = transforms[i].type;
 
@@ -1233,13 +1233,13 @@
         if (maker == "") maker = tr("Unknown");
         maker.replace(QRegExp(tr(" [\\(<].*$")), "");
 
-        QString pluginName = description.section(": ", 0, 0);
-        QString output = description.section(": ", 1);
-
-	QAction *action = new QAction(tr("%1...").arg(description), this);
+        QString pluginName = name.section(": ", 0, 0);
+        QString output = name.section(": ", 1);
+
+	QAction *action = new QAction(tr("%1...").arg(name), this);
 	connect(action, SIGNAL(triggered()), this, SLOT(addLayer()));
-	m_transformActions[action] = transforms[i].name;
-        m_transformActionsReverse[transforms[i].name] = action;
+	m_transformActions[action] = transforms[i].identifier;
+        m_transformActionsReverse[transforms[i].identifier] = action;
 	connect(this, SIGNAL(canAddLayer(bool)), action, SLOT(setEnabled(bool)));
 
         QString tip;
@@ -1255,7 +1255,7 @@
         if (categoryMenus[type].find(category) == categoryMenus[type].end()) {
             std::cerr << "WARNING: MainWindow::setupMenus: Internal error: "
                       << "No category menu for transform \""
-                      << description.toStdString() << "\" (category = \""
+                      << name.toStdString() << "\" (category = \""
                       << category.toStdString() << "\")" << std::endl;
         } else {
             categoryMenus[type][category]->addAction(action);
@@ -1264,7 +1264,7 @@
         if (makerMenus[type].find(maker) == makerMenus[type].end()) {
             std::cerr << "WARNING: MainWindow::setupMenus: Internal error: "
                       << "No maker menu for transform \""
-                      << description.toStdString() << "\" (maker = \""
+                      << name.toStdString() << "\" (maker = \""
                       << maker.toStdString() << "\")" << std::endl;
         } else {
             makerMenus[type][maker]->addAction(action);
@@ -1272,7 +1272,7 @@
 
         action = new QAction(tr("%1...").arg(output == "" ? pluginName : output), this);
         connect(action, SIGNAL(triggered()), this, SLOT(addLayer()));
-        m_transformActions[action] = transforms[i].name;
+        m_transformActions[action] = transforms[i].identifier;
         connect(this, SIGNAL(canAddLayer(bool)), action, SLOT(setEnabled(bool)));
         action->setStatusTip(tip);
 
@@ -3458,7 +3458,7 @@
 	return;
     }
 
-    TransformName transform = i->second;
+    TransformId transform = i->second;
     TransformFactory *factory = TransformFactory::getInstance();
 
     QString configurationXml;
@@ -4263,7 +4263,7 @@
             message.getArgCount() == 1 &&
             message.getArg(0).canConvert(QVariant::String)) {
 
-            TransformName transform = message.getArg(0).toString();
+            TransformId transform = message.getArg(0).toString();
 
             Layer *newLayer = m_document->createDerivedLayer
                 (transform,