Mercurial > hg > sonic-visualiser
diff 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 |
line wrap: on
line diff
--- a/main/MainWindow.cpp Mon Feb 26 18:13:07 2007 +0000 +++ b/main/MainWindow.cpp Tue Feb 27 12:51:38 2007 +0000 @@ -1242,15 +1242,7 @@ m_transformActionsReverse[transforms[i].identifier] = action; connect(this, SIGNAL(canAddLayer(bool)), action, SLOT(setEnabled(bool))); - QString tip; - if (output == "") { - tip = tr("Transform with \"%1\" plugin (from %3)") - .arg(pluginName).arg(maker); - } else { - tip = tr("Transform with \"%1\" output of \"%2\" plugin (from %3)") - .arg(output).arg(pluginName).arg(maker); - } - action->setStatusTip(tip); + action->setStatusTip(transforms[i].description); if (categoryMenus[type].find(category) == categoryMenus[type].end()) { std::cerr << "WARNING: MainWindow::setupMenus: Internal error: " @@ -1274,7 +1266,7 @@ connect(action, SIGNAL(triggered()), this, SLOT(addLayer())); m_transformActions[action] = transforms[i].identifier; connect(this, SIGNAL(canAddLayer(bool)), action, SLOT(setEnabled(bool))); - action->setStatusTip(tip); + action->setStatusTip(transforms[i].description); // cerr << "Transform: \"" << name.toStdString() << "\": plugin name \"" << pluginName.toStdString() << "\"" << endl;