Mercurial > hg > svgui
comparison layer/SpectrumLayer.cpp @ 335:2f83b6e3b8ca
* Add Erase tool and mode
* Add icons for Normalize buttons in property boxes, and for Show Peaks
* Add support for velocity in notes -- not yet reflected in display or
editable in the note edit dialog, but they are imported from MIDI,
played, and exported
* Begin work on making pastes align pasted times (subtler than I thought)
author | Chris Cannam |
---|---|
date | Fri, 23 Nov 2007 16:48:23 +0000 |
parents | 29fcf125f98b |
children | 8c3fb13ef11c 0895517bb2d1 |
comparison
equal
deleted
inserted
replaced
334:0a74248af622 | 335:2f83b6e3b8ca |
---|---|
132 { | 132 { |
133 if (name == "Window Size") return tr("Window Size"); | 133 if (name == "Window Size") return tr("Window Size"); |
134 if (name == "Window Increment") return tr("Window Overlap"); | 134 if (name == "Window Increment") return tr("Window Overlap"); |
135 if (name == "Show Peak Frequencies") return tr("Show Peak Frequencies"); | 135 if (name == "Show Peak Frequencies") return tr("Show Peak Frequencies"); |
136 return SliceLayer::getPropertyLabel(name); | 136 return SliceLayer::getPropertyLabel(name); |
137 } | |
138 | |
139 QString | |
140 SpectrumLayer::getPropertyIconName(const PropertyName &name) const | |
141 { | |
142 if (name == "Show Peak Frequencies") return "show-peaks"; | |
143 return SliceLayer::getPropertyIconName(name); | |
137 } | 144 } |
138 | 145 |
139 Layer::PropertyType | 146 Layer::PropertyType |
140 SpectrumLayer::getPropertyType(const PropertyName &name) const | 147 SpectrumLayer::getPropertyType(const PropertyName &name) const |
141 { | 148 { |