Mercurial > hg > svcore
changeset 472:5015e80cc919
* Add more info button to plugin dialog
author | Chris Cannam |
---|---|
date | Tue, 28 Oct 2008 12:39:53 +0000 |
parents | 0dc158c1a6c9 |
children | 47b41ec34407 |
files | transform/ModelTransformerFactory.cpp transform/TransformFactory.cpp transform/TransformFactory.h |
diffstat | 3 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/transform/ModelTransformerFactory.cpp Tue Oct 28 11:38:43 2008 +0000 +++ b/transform/ModelTransformerFactory.cpp Tue Oct 28 12:39:53 2008 +0000 @@ -218,6 +218,9 @@ PluginParameterDialog *dialog = new PluginParameterDialog(plugin); + dialog->setMoreInfoUrl(TransformFactory::getInstance()-> + getTransformInfoUrl(transform.getIdentifier())); + if (candidateModelNames.size() > 1 && !generator) { dialog->setCandidateInputModels(candidateModelNames, defaultModelName);
--- a/transform/TransformFactory.cpp Tue Oct 28 11:38:43 2008 +0000 +++ b/transform/TransformFactory.cpp Tue Oct 28 12:39:53 2008 +0000 @@ -735,6 +735,14 @@ } else return ""; } +QString +TransformFactory::getTransformInfoUrl(TransformId identifier) +{ + if (m_transforms.find(identifier) != m_transforms.end()) { + return m_transforms[identifier].infoUrl; + } else return ""; +} + Vamp::Plugin::InputDomain TransformFactory::getTransformInputDomain(TransformId identifier) {
--- a/transform/TransformFactory.h Tue Oct 28 11:38:43 2008 +0000 +++ b/transform/TransformFactory.h Tue Oct 28 12:39:53 2008 +0000 @@ -87,6 +87,8 @@ QString getTransformUnits(TransformId identifier); + QString getTransformInfoUrl(TransformId identifier); + Vamp::Plugin::InputDomain getTransformInputDomain(TransformId identifier); /**