comparison framework/Document.cpp @ 160:64b09e5bda21

* rtmidi & activity updates
author Chris Cannam
date Tue, 24 Feb 2009 17:25:55 +0000
parents 06fc6fc21739
children 0bd09fb9e584
comparison
equal deleted inserted replaced
159:06fc6fc21739 160:64b09e5bda21
261 void 261 void
262 Document::setMainModel(WaveFileModel *model) 262 Document::setMainModel(WaveFileModel *model)
263 { 263 {
264 Model *oldMainModel = m_mainModel; 264 Model *oldMainModel = m_mainModel;
265 m_mainModel = model; 265 m_mainModel = model;
266 266
267 emit modelAdded(m_mainModel); 267 emit modelAdded(m_mainModel);
268 if (model) {
269 emit activity(tr("Set main model to %1").arg(model->objectName()));
270 } else {
271 emit activity(tr("Clear main model"));
272 }
268 273
269 std::vector<Layer *> obsoleteLayers; 274 std::vector<Layer *> obsoleteLayers;
270 std::set<QString> failedTransformers; 275 std::set<QString> failedTransformers;
271 276
272 // We need to ensure that no layer is left using oldMainModel or 277 // We need to ensure that no layer is left using oldMainModel or