Mercurial > hg > sonic-visualiser
diff transform/TransformFactory.h @ 33:544ab25d2372
* Add support for plugin classification using category files.
Add separate menus listing plugins by category, maker, and plugin name.
author | Chris Cannam |
---|---|
date | Thu, 21 Sep 2006 16:43:50 +0000 |
parents | 61259228d029 |
children | 8ad306d8a568 |
line wrap: on
line diff
--- a/transform/TransformFactory.h Thu Sep 21 11:17:19 2006 +0000 +++ b/transform/TransformFactory.h Thu Sep 21 16:43:50 2006 +0000 @@ -42,13 +42,16 @@ struct TransformDesc { TransformDesc() { } - TransformDesc(QString _type, TransformName _name, QString _description, + TransformDesc(QString _type, QString _category, + TransformName _name, QString _description, QString _friendlyName, QString _maker, QString _units, bool _configurable) : - type(_type), name(_name), description(_description), + type(_type), category(_category), + name(_name), description(_description), friendlyName(_friendlyName), maker(_maker), units(_units), configurable(_configurable) { } QString type; + QString category; TransformName name; QString description; QString friendlyName; @@ -62,6 +65,9 @@ std::vector<QString> getAllTransformTypes(); + std::vector<QString> getTransformCategories(QString transformType); + std::vector<QString> getTransformMakers(QString transformType); + /** * Get a configuration XML string for the given transform (by * asking the user, most likely). Returns true if the transform