Mercurial > hg > svcore
comparison transform/TransformFactory.h @ 47:bac8b14ab355
* Add menu for re-adding existing layers
* Fix layer tree window so that it at least approximates correct
* Add bundled operations in command history, for use with things like
multiple consecutive changes to a parameter value
* Disambiguate plugins that happen to have identical descriptions
* Add spectral centroid plugin (could use some parameters!)
* Some other fixes
author | Chris Cannam |
---|---|
date | Fri, 17 Mar 2006 17:38:28 +0000 |
parents | 4563a72c1d8b |
children | 39ae3dee27b9 |
comparison
equal
deleted
inserted
replaced
46:5364a9d338a2 | 47:bac8b14ab355 |
---|---|
22 virtual ~TransformFactory(); | 22 virtual ~TransformFactory(); |
23 | 23 |
24 static TransformFactory *instance(); | 24 static TransformFactory *instance(); |
25 | 25 |
26 // The name is intended to be computer-referencable, and unique | 26 // The name is intended to be computer-referencable, and unique |
27 // within the application. The description should be | 27 // within the application. The description is intended to be |
28 // human-readable, and does not have to be unique. | 28 // human readable. In principle it doesn't have to be unique, but |
29 // the factory will add suffixes to ensure that it is, all the | |
30 // same (just to avoid user confusion). | |
29 | 31 |
30 struct TransformDesc { | 32 struct TransformDesc { |
31 TransformDesc(TransformName _name, QString _description = "") : | 33 TransformDesc(TransformName _name, QString _description = "") : |
32 name(_name), description(_description) { } | 34 name(_name), description(_description) { } |
33 TransformName name; | 35 TransformName name; |