Mercurial > hg > svcore
changeset 326:bb6e4c46e202
* Fix availability of alignment button and relative align/solo button state
author | Chris Cannam |
---|---|
date | Thu, 01 Nov 2007 16:02:01 +0000 |
parents | 82a2d3161e14 |
children | 1d656dcda8ef |
files | plugin/transform/TransformFactory.cpp plugin/transform/TransformFactory.h |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugin/transform/TransformFactory.cpp Thu Nov 01 12:34:17 2007 +0000 +++ b/plugin/transform/TransformFactory.cpp Thu Nov 01 16:02:01 2007 +0000 @@ -429,6 +429,12 @@ } } +bool +TransformFactory::haveTransform(TransformId identifier) +{ + return (m_transforms.find(identifier) != m_transforms.end()); +} + QString TransformFactory::getTransformName(TransformId identifier) {
--- a/plugin/transform/TransformFactory.h Thu Nov 01 12:34:17 2007 +0000 +++ b/plugin/transform/TransformFactory.h Thu Nov 01 16:02:01 2007 +0000 @@ -118,6 +118,11 @@ QString configurationXml = ""); /** + * Return true if the given transform is known. + */ + bool haveTransform(TransformId identifier); + + /** * Full name of a transform, suitable for putting on a menu. */ QString getTransformName(TransformId identifier);