Mercurial > hg > svcore
comparison transform/TransformDescription.h @ 487:c45e6c6722e0
* Use enum for transform type instead of trying to do dumb things like
compare translated strings
| author | Chris Cannam |
|---|---|
| date | Fri, 21 Nov 2008 13:37:35 +0000 |
| parents | 957e6a5c8495 |
| children | 45e95de8b11d |
comparison
equal
deleted
inserted
replaced
| 486:4c000e196bf1 | 487:c45e6c6722e0 |
|---|---|
| 43 * TransformFactory::getTransformDescription. | 43 * TransformFactory::getTransformDescription. |
| 44 */ | 44 */ |
| 45 | 45 |
| 46 struct TransformDescription | 46 struct TransformDescription |
| 47 { | 47 { |
| 48 enum Type { | |
| 49 Analysis, // e.g. vamp plugin output | |
| 50 Effects, // e.g. ladspa plugin with audio in and out | |
| 51 EffectsData, // e.g. control output of ladspa plugin | |
| 52 Generator, // e.g. audio out of ladspa plugin with no audio in | |
| 53 UnknownType | |
| 54 }; | |
| 55 | |
| 48 TransformDescription() { } | 56 TransformDescription() { } |
| 49 TransformDescription(QString _type, QString _category, | 57 TransformDescription(Type _type, QString _category, |
| 50 TransformId _identifier, QString _name, | 58 TransformId _identifier, QString _name, |
| 51 QString _friendlyName, QString _description, | 59 QString _friendlyName, QString _description, |
| 52 QString _longDescription, | 60 QString _longDescription, |
| 53 QString _maker, QString _units, bool _configurable) : | 61 QString _maker, QString _units, bool _configurable) : |
| 54 type(_type), category(_category), | 62 type(_type), category(_category), |
| 55 identifier(_identifier), name(_name), | 63 identifier(_identifier), name(_name), |
| 56 friendlyName(_friendlyName), description(_description), | 64 friendlyName(_friendlyName), description(_description), |
| 57 longDescription(_longDescription), | 65 longDescription(_longDescription), |
| 58 maker(_maker), units(_units), configurable(_configurable) { } | 66 maker(_maker), units(_units), configurable(_configurable) { } |
| 59 | 67 |
| 60 QString type; // e.g. feature extraction plugin | 68 Type type; |
| 61 QString category; // e.g. time > onsets | 69 QString category; // e.g. time > onsets |
| 62 TransformId identifier; // e.g. vamp:vamp-aubio:aubioonset | 70 TransformId identifier; // e.g. vamp:vamp-aubio:aubioonset |
| 63 QString name; // plugin's name if 1 output, else "name: output" | 71 QString name; // plugin's name if 1 output, else "name: output" |
| 64 QString friendlyName; // short text for layer name | 72 QString friendlyName; // short text for layer name |
| 65 QString description; // sentence describing transform | 73 QString description; // sentence describing transform |
