Mercurial > hg > svgui
comparison layer/NoteLayer.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 | 34bbbcb3c01f |
comparison
equal
deleted
inserted
replaced
197:6b023411087b | 198:c2ed5014d4ff |
---|---|
90 { | 90 { |
91 if (name == "Scale Units") return UnitsProperty; | 91 if (name == "Scale Units") return UnitsProperty; |
92 return ValueProperty; | 92 return ValueProperty; |
93 } | 93 } |
94 | 94 |
95 QString | |
96 NoteLayer::getPropertyGroupName(const PropertyName &name) const | |
97 { | |
98 if (name == "Vertical Scale" || name == "Scale Units") { | |
99 return tr("Scale"); | |
100 } | |
101 return QString(); | |
102 } | |
103 | |
95 int | 104 int |
96 NoteLayer::getPropertyRangeAndValue(const PropertyName &name, | 105 NoteLayer::getPropertyRangeAndValue(const PropertyName &name, |
97 int *min, int *max) const | 106 int *min, int *max) const |
98 { | 107 { |
99 //!!! factor this colour handling stuff out into a colour manager class | 108 //!!! factor this colour handling stuff out into a colour manager class |
150 } | 159 } |
151 } else if (name == "Vertical Scale") { | 160 } else if (name == "Vertical Scale") { |
152 switch (value) { | 161 switch (value) { |
153 default: | 162 default: |
154 case 0: return tr("Auto-Align"); | 163 case 0: return tr("Auto-Align"); |
155 case 1: return tr("Linear Scale"); | 164 case 1: return tr("Linear"); |
156 case 2: return tr("Log Scale"); | 165 case 2: return tr("Log"); |
157 case 3: return tr("MIDI Note Range"); | 166 case 3: return tr("MIDI Notes"); |
158 } | 167 } |
159 } | 168 } |
160 return tr("<unknown>"); | 169 return tr("<unknown>"); |
161 } | 170 } |
162 | 171 |