comparison main/MainWindow.cpp @ 108:58f21cf235c7

* Further fixes for Vamp API change, and update to support API versioning * Add plugin, output and parameter descriptions to GUI * Avoid squished panner in heads-up-display on pane when time-value or note layer is on top
author Chris Cannam
date Tue, 27 Feb 2007 12:51:38 +0000
parents dd11619b73ba
children e6c4b27cba2c
comparison
equal deleted inserted replaced
107:dd11619b73ba 108:58f21cf235c7
1240 connect(action, SIGNAL(triggered()), this, SLOT(addLayer())); 1240 connect(action, SIGNAL(triggered()), this, SLOT(addLayer()));
1241 m_transformActions[action] = transforms[i].identifier; 1241 m_transformActions[action] = transforms[i].identifier;
1242 m_transformActionsReverse[transforms[i].identifier] = action; 1242 m_transformActionsReverse[transforms[i].identifier] = action;
1243 connect(this, SIGNAL(canAddLayer(bool)), action, SLOT(setEnabled(bool))); 1243 connect(this, SIGNAL(canAddLayer(bool)), action, SLOT(setEnabled(bool)));
1244 1244
1245 QString tip; 1245 action->setStatusTip(transforms[i].description);
1246 if (output == "") {
1247 tip = tr("Transform with \"%1\" plugin (from %3)")
1248 .arg(pluginName).arg(maker);
1249 } else {
1250 tip = tr("Transform with \"%1\" output of \"%2\" plugin (from %3)")
1251 .arg(output).arg(pluginName).arg(maker);
1252 }
1253 action->setStatusTip(tip);
1254 1246
1255 if (categoryMenus[type].find(category) == categoryMenus[type].end()) { 1247 if (categoryMenus[type].find(category) == categoryMenus[type].end()) {
1256 std::cerr << "WARNING: MainWindow::setupMenus: Internal error: " 1248 std::cerr << "WARNING: MainWindow::setupMenus: Internal error: "
1257 << "No category menu for transform \"" 1249 << "No category menu for transform \""
1258 << name.toStdString() << "\" (category = \"" 1250 << name.toStdString() << "\" (category = \""
1272 1264
1273 action = new QAction(tr("%1...").arg(output == "" ? pluginName : output), this); 1265 action = new QAction(tr("%1...").arg(output == "" ? pluginName : output), this);
1274 connect(action, SIGNAL(triggered()), this, SLOT(addLayer())); 1266 connect(action, SIGNAL(triggered()), this, SLOT(addLayer()));
1275 m_transformActions[action] = transforms[i].identifier; 1267 m_transformActions[action] = transforms[i].identifier;
1276 connect(this, SIGNAL(canAddLayer(bool)), action, SLOT(setEnabled(bool))); 1268 connect(this, SIGNAL(canAddLayer(bool)), action, SLOT(setEnabled(bool)));
1277 action->setStatusTip(tip); 1269 action->setStatusTip(transforms[i].description);
1278 1270
1279 // cerr << "Transform: \"" << name.toStdString() << "\": plugin name \"" << pluginName.toStdString() << "\"" << endl; 1271 // cerr << "Transform: \"" << name.toStdString() << "\": plugin name \"" << pluginName.toStdString() << "\"" << endl;
1280 1272
1281 if (pluginNameMenus[type].find(pluginName) == 1273 if (pluginNameMenus[type].find(pluginName) ==
1282 pluginNameMenus[type].end()) { 1274 pluginNameMenus[type].end()) {