comparison layer/TimeValueLayer.cpp @ 198:c2ed5014d4ff

* Scale fixes and feature descriptions in slice layer
author Chris Cannam
date Thu, 01 Feb 2007 16:54:42 +0000
parents 6b023411087b
children 6969f21da18a
comparison
equal deleted inserted replaced
197:6b023411087b 198:c2ed5014d4ff
94 Layer::PropertyType 94 Layer::PropertyType
95 TimeValueLayer::getPropertyType(const PropertyName &name) const 95 TimeValueLayer::getPropertyType(const PropertyName &name) const
96 { 96 {
97 if (name == "Scale Units") return UnitsProperty; 97 if (name == "Scale Units") return UnitsProperty;
98 else return ValueProperty; 98 else return ValueProperty;
99 }
100
101 QString
102 TimeValueLayer::getPropertyGroupName(const PropertyName &name) const
103 {
104 if (name == "Vertical Scale" || name == "Scale Units") {
105 return tr("Scale");
106 }
107 return QString();
99 } 108 }
100 109
101 int 110 int
102 TimeValueLayer::getPropertyRangeAndValue(const PropertyName &name, 111 TimeValueLayer::getPropertyRangeAndValue(const PropertyName &name,
103 int *min, int *max) const 112 int *min, int *max) const
187 } 196 }
188 } else if (name == "Vertical Scale") { 197 } else if (name == "Vertical Scale") {
189 switch (value) { 198 switch (value) {
190 default: 199 default:
191 case 0: return tr("Auto-Align"); 200 case 0: return tr("Auto-Align");
192 case 1: return tr("Linear Scale"); 201 case 1: return tr("Linear");
193 case 2: return tr("Log Scale"); 202 case 2: return tr("Log");
194 case 3: return tr("+/-1 Scale"); 203 case 3: return tr("+/-1");
195 } 204 }
196 } 205 }
197 return tr("<unknown>"); 206 return tr("<unknown>");
198 } 207 }
199 208