diff 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
line wrap: on
line diff
--- a/layer/NoteLayer.cpp	Thu Feb 01 14:31:28 2007 +0000
+++ b/layer/NoteLayer.cpp	Thu Feb 01 16:54:42 2007 +0000
@@ -92,6 +92,15 @@
     return ValueProperty;
 }
 
+QString
+NoteLayer::getPropertyGroupName(const PropertyName &name) const
+{
+    if (name == "Vertical Scale" || name == "Scale Units") {
+        return tr("Scale");
+    }
+    return QString();
+}
+
 int
 NoteLayer::getPropertyRangeAndValue(const PropertyName &name,
 					 int *min, int *max) const
@@ -152,9 +161,9 @@
 	switch (value) {
 	default:
 	case 0: return tr("Auto-Align");
-	case 1: return tr("Linear Scale");
-	case 2: return tr("Log Scale");
-	case 3: return tr("MIDI Note Range");
+	case 1: return tr("Linear");
+	case 2: return tr("Log");
+	case 3: return tr("MIDI Notes");
 	}
     }
     return tr("<unknown>");