diff main/MainWindow.cpp @ 55:ca1e3f5657d5

* Simplify maker names in plugin menu * Make sure derived models have a name (based on the transform) * Don't start deriving a model from a derived model until the derived model is ready * Tidy up completion management in writable wave file model * Make writable models save/reload correctly from session file (i.e. regenerating from the original transform) * Same for dense 3d models -- don't save the data, just the transform details * Add a comment describing the SV file format
author Chris Cannam
date Fri, 13 Oct 2006 12:51:05 +0000
parents ec77936c268e
children 1016a8ceceda
line wrap: on
line diff
--- a/main/MainWindow.cpp	Thu Oct 12 14:56:28 2006 +0000
+++ b/main/MainWindow.cpp	Fri Oct 13 12:51:05 2006 +0000
@@ -80,6 +80,7 @@
 #include <QDateTime>
 #include <QProcess>
 #include <QCheckBox>
+#include <QRegExp>
 
 #include <iostream>
 #include <cstdio>
@@ -688,7 +689,8 @@
 
             QString maker = *j;
             if (maker == "") maker = tr("Unknown");
-            
+            maker.replace(QRegExp(tr(" [\\(<].*$")), "");
+
             makerMenus[*i][maker] = new SubdividingMenu(maker, 30, 40);
             byMakerMenu->addMenu(makerMenus[*i][maker]);
             pendingMenus.insert(makerMenus[*i][maker]);
@@ -707,6 +709,7 @@
 
         QString maker = transforms[i].maker;
         if (maker == "") maker = tr("Unknown");
+        maker.replace(QRegExp(tr(" [\\(<].*$")), "");
 
         QString pluginName = description.section(": ", 0, 0);
         QString output = description.section(": ", 1);