comparison 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
comparison
equal deleted inserted replaced
54:ec77936c268e 55:ca1e3f5657d5
78 #include <QShortcut> 78 #include <QShortcut>
79 #include <QSettings> 79 #include <QSettings>
80 #include <QDateTime> 80 #include <QDateTime>
81 #include <QProcess> 81 #include <QProcess>
82 #include <QCheckBox> 82 #include <QCheckBox>
83 #include <QRegExp>
83 84
84 #include <iostream> 85 #include <iostream>
85 #include <cstdio> 86 #include <cstdio>
86 #include <errno.h> 87 #include <errno.h>
87 88
686 for (vector<QString>::iterator j = makers.begin(); 687 for (vector<QString>::iterator j = makers.begin();
687 j != makers.end(); ++j) { 688 j != makers.end(); ++j) {
688 689
689 QString maker = *j; 690 QString maker = *j;
690 if (maker == "") maker = tr("Unknown"); 691 if (maker == "") maker = tr("Unknown");
691 692 maker.replace(QRegExp(tr(" [\\(<].*$")), "");
693
692 makerMenus[*i][maker] = new SubdividingMenu(maker, 30, 40); 694 makerMenus[*i][maker] = new SubdividingMenu(maker, 30, 40);
693 byMakerMenu->addMenu(makerMenus[*i][maker]); 695 byMakerMenu->addMenu(makerMenus[*i][maker]);
694 pendingMenus.insert(makerMenus[*i][maker]); 696 pendingMenus.insert(makerMenus[*i][maker]);
695 } 697 }
696 } 698 }
705 QString category = transforms[i].category; 707 QString category = transforms[i].category;
706 if (category == "") category = tr("Unclassified"); 708 if (category == "") category = tr("Unclassified");
707 709
708 QString maker = transforms[i].maker; 710 QString maker = transforms[i].maker;
709 if (maker == "") maker = tr("Unknown"); 711 if (maker == "") maker = tr("Unknown");
712 maker.replace(QRegExp(tr(" [\\(<].*$")), "");
710 713
711 QString pluginName = description.section(": ", 0, 0); 714 QString pluginName = description.section(": ", 0, 0);
712 QString output = description.section(": ", 1); 715 QString output = description.section(": ", 1);
713 716
714 action = new QAction(tr("%1...").arg(description), this); 717 action = new QAction(tr("%1...").arg(description), this);