Mercurial > hg > svcore
comparison plugin/transform/TransformDescription.h @ 383:94fc0591ea43 1.2-stable
* merge from trunk (1.2 ended up being tracked from trunk, but we may want
this branch for fixes later)
author | Chris Cannam |
---|---|
date | Wed, 27 Feb 2008 10:32:45 +0000 |
parents | 3179d8b29336 |
children |
comparison
equal
deleted
inserted
replaced
349:f39d33b0b265 | 383:94fc0591ea43 |
---|---|
35 * avoid user confusion). | 35 * avoid user confusion). |
36 * | 36 * |
37 * The friendly name is a shorter version of the name. | 37 * The friendly name is a shorter version of the name. |
38 * | 38 * |
39 * The type is also intended to be user-readable, for use in menus. | 39 * The type is also intended to be user-readable, for use in menus. |
40 * | |
41 * To obtain these objects, use | |
42 * TransformFactory::getAllTransformDescriptions and | |
43 * TransformFactory::getTransformDescription. | |
40 */ | 44 */ |
41 | 45 |
42 struct TransformDescription | 46 struct TransformDescription |
43 { | 47 { |
44 TransformDescription() { } | 48 TransformDescription() { } |
60 QString maker; | 64 QString maker; |
61 QString units; | 65 QString units; |
62 bool configurable; | 66 bool configurable; |
63 | 67 |
64 bool operator<(const TransformDescription &od) const { | 68 bool operator<(const TransformDescription &od) const { |
65 return (name < od.name); | 69 return |
70 (name < od.name) || | |
71 (name == od.name && identifier < od.identifier); | |
66 }; | 72 }; |
67 }; | 73 }; |
68 | 74 |
69 typedef std::vector<TransformDescription> TransformList; | 75 typedef std::vector<TransformDescription> TransformList; |
70 | 76 |