Mercurial > hg > svgui
diff layer/SpectrogramLayer.cpp @ 82:82482231b6b1
* Add file open/save operations to main toolbar
* Allow opening any sort of file from toolbar file open function
* First cut at on-disc cacheing for decoded mp3/ogg files
* Permit un-snapped selection by holding Shift
author | Chris Cannam |
---|---|
date | Thu, 27 Apr 2006 17:29:19 +0000 |
parents | d99d67a5b93a |
children | d31c4f5230d7 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Thu Apr 27 11:49:34 2006 +0000 +++ b/layer/SpectrogramLayer.cpp Thu Apr 27 17:29:19 2006 +0000 @@ -142,7 +142,7 @@ list.push_back(tr("Window Type")); list.push_back(tr("Window Size")); list.push_back(tr("Window Overlap")); - list.push_back(tr("Normalize")); + list.push_back(tr("Normalize Columns")); list.push_back(tr("Bin Display")); list.push_back(tr("Threshold")); list.push_back(tr("Gain")); @@ -158,7 +158,7 @@ { if (name == tr("Gain")) return RangeProperty; if (name == tr("Colour Rotation")) return RangeProperty; - if (name == tr("Normalize")) return ToggleProperty; + if (name == tr("Normalize Columns")) return ToggleProperty; if (name == tr("Threshold")) return RangeProperty; return ValueProperty; } @@ -173,7 +173,7 @@ name == tr("Gain") || name == tr("Threshold") || name == tr("Colour Rotation")) return tr("Colour"); - if (name == tr("Normalize") || + if (name == tr("Normalize Columns") || name == tr("Bin Display") || name == tr("Colour Scale")) return tr("Scale"); if (name == tr("Max Frequency") || @@ -304,7 +304,7 @@ *max = 2; deft = (int)m_binDisplay; - } else if (name == tr("Normalize")) { + } else if (name == tr("Normalize Columns")) { deft = (m_normalizeColumns ? 1 : 0); @@ -490,7 +490,7 @@ case 1: setBinDisplay(PeakBins); break; case 2: setBinDisplay(PeakFrequencies); break; } - } else if (name == "Normalize") { + } else if (name == "Normalize Columns") { setNormalizeColumns(value ? true : false); } }