Mercurial > hg > svapp
comparison framework/Document.cpp @ 61:215b8b1b0308
* 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 | 621c2edd1693 |
children | b6605be1a2d1 |
comparison
equal
deleted
inserted
replaced
60:7b71da2d0631 | 61:215b8b1b0308 |
---|---|
155 } | 155 } |
156 | 156 |
157 Layer * | 157 Layer * |
158 Document::createEmptyLayer(LayerFactory::LayerType type) | 158 Document::createEmptyLayer(LayerFactory::LayerType type) |
159 { | 159 { |
160 if (!m_mainModel) return 0; | |
161 | |
160 Model *newModel = | 162 Model *newModel = |
161 LayerFactory::getInstance()->createEmptyModel(type, m_mainModel); | 163 LayerFactory::getInstance()->createEmptyModel(type, m_mainModel); |
162 if (!newModel) return 0; | 164 if (!newModel) return 0; |
163 | 165 |
164 Layer *newLayer = createLayer(type); | 166 Layer *newLayer = createLayer(type); |