# HG changeset patch # User Chris Cannam # Date 1483460591 0 # Node ID f7bb22999d2e848e29d358156d8b4c6c2dd338fd # Parent 0a13a1de1d7e536ce6b4596ad02be7640fad5a70 Provisionally add labels for normalisation menu (sigh) diff -r 0a13a1de1d7e -r f7bb22999d2e layer/Colour3DPlotLayer.cpp --- 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) { diff -r 0a13a1de1d7e -r f7bb22999d2e layer/SpectrogramLayer.cpp --- 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);