changeset 1209:f7bb22999d2e 3.0-integration

Provisionally add labels for normalisation menu (sigh)
author Chris Cannam
date Tue, 03 Jan 2017 16:23:11 +0000
parents 0a13a1de1d7e
children efc7586de499
files layer/Colour3DPlotLayer.cpp layer/SpectrogramLayer.cpp
diffstat 2 files changed, 16 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.cpp	Tue Jan 03 16:14:59 2017 +0000
+++ b/layer/Colour3DPlotLayer.cpp	Tue Jan 03 16:23:11 2017 +0000
@@ -388,7 +388,14 @@
 	}
     }
     if (name == "Normalization") {
-        return ""; // icon only
+        switch(value) {
+        default:
+        case 0: return tr("None");
+        case 1: return tr("Col");
+        case 2: return tr("View");
+        case 3: return tr("Hybrid");
+        }
+//        return ""; // icon only
     }
     if (name == "Bin Scale") {
 	switch (value) {
--- a/layer/SpectrogramLayer.cpp	Tue Jan 03 16:14:59 2017 +0000
+++ b/layer/SpectrogramLayer.cpp	Tue Jan 03 16:23:11 2017 +0000
@@ -440,7 +440,14 @@
 	}
     }
     if (name == "Normalization") {
-        return ""; // icon only
+        switch(value) {
+        default:
+        case 0: return tr("None");
+        case 1: return tr("Col");
+        case 2: return tr("View");
+        case 3: return tr("Hybrid");
+        }
+//        return ""; // icon only
     }
     if (name == "Window Size") {
 	return QString("%1").arg(32 << value);