Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 80:f4f52566e451
* Fixes to presentation and organisation of plugins (especially duplicates)
author | Chris Cannam |
---|---|
date | Fri, 15 Dec 2006 16:34:17 +0000 |
parents | c1318aac18d2 |
children | 911c0bd745cd |
comparison
equal
deleted
inserted
replaced
79:c1318aac18d2 | 80:f4f52566e451 |
---|---|
1063 for (unsigned int i = 0; i < transforms.size(); ++i) { | 1063 for (unsigned int i = 0; i < transforms.size(); ++i) { |
1064 | 1064 |
1065 QString description = transforms[i].description; | 1065 QString description = transforms[i].description; |
1066 if (description == "") description = transforms[i].name; | 1066 if (description == "") description = transforms[i].name; |
1067 | 1067 |
1068 // std::cerr << "Plugin Description: " << description.toStdString() << std::endl; | |
1069 | |
1068 QString type = transforms[i].type; | 1070 QString type = transforms[i].type; |
1069 | 1071 |
1070 QString category = transforms[i].category; | 1072 QString category = transforms[i].category; |
1071 if (category == "") category = tr("Unclassified"); | 1073 if (category == "") category = tr("Unclassified"); |
1072 | 1074 |
1096 std::cerr << "WARNING: MainWindow::setupMenus: Internal error: " | 1098 std::cerr << "WARNING: MainWindow::setupMenus: Internal error: " |
1097 << "No maker menu for transform \"" | 1099 << "No maker menu for transform \"" |
1098 << description.toStdString() << "\" (maker = \"" | 1100 << description.toStdString() << "\" (maker = \"" |
1099 << maker.toStdString() << "\")" << std::endl; | 1101 << maker.toStdString() << "\")" << std::endl; |
1100 } else { | 1102 } else { |
1101 makerMenus[type][maker]->addAction(pluginName, action); | 1103 makerMenus[type][maker]->addAction(action); |
1102 } | 1104 } |
1103 | 1105 |
1104 action = new QAction(tr("%1...").arg(output == "" ? pluginName : output), this); | 1106 action = new QAction(tr("%1...").arg(output == "" ? pluginName : output), this); |
1105 connect(action, SIGNAL(triggered()), this, SLOT(addLayer())); | 1107 connect(action, SIGNAL(triggered()), this, SLOT(addLayer())); |
1106 m_transformActions[action] = transforms[i].name; | 1108 m_transformActions[action] = transforms[i].name; |