comparison layer/WaveformLayer.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 1f67b110c1a3
children a9dfa2d6d5ac 0895517bb2d1
comparison
equal deleted inserted replaced
334:0a74248af622 335:2f83b6e3b8ca
104 if (name == "Scale") return tr("Scale"); 104 if (name == "Scale") return tr("Scale");
105 if (name == "Gain") return tr("Gain"); 105 if (name == "Gain") return tr("Gain");
106 if (name == "Normalize Visible Area") return tr("Normalize Visible Area"); 106 if (name == "Normalize Visible Area") return tr("Normalize Visible Area");
107 if (name == "Channels") return tr("Channels"); 107 if (name == "Channels") return tr("Channels");
108 return SingleColourLayer::getPropertyLabel(name); 108 return SingleColourLayer::getPropertyLabel(name);
109 }
110
111 QString
112 WaveformLayer::getPropertyIconName(const PropertyName &name) const
113 {
114 if (name == "Normalize Visible Area") return "normalise";
115 return "";
109 } 116 }
110 117
111 Layer::PropertyType 118 Layer::PropertyType
112 WaveformLayer::getPropertyType(const PropertyName &name) const 119 WaveformLayer::getPropertyType(const PropertyName &name) const
113 { 120 {