Mercurial > hg > svgui
comparison widgets/LayerTree.cpp @ 587:4806715f7a19
Seems to be a bad idea to use plain DEBUG symbol on OS/X (system wants it)
author | Chris Cannam |
---|---|
date | Tue, 14 Jun 2011 15:27:05 +0100 |
parents | f4960f8ce798 |
children | d632a1e87018 |
comparison
equal
deleted
inserted
replaced
586:1ae54a29e59e | 587:4806715f7a19 |
---|---|
109 for (std::set<Model *>::iterator i = unfound.begin(); | 109 for (std::set<Model *>::iterator i = unfound.begin(); |
110 i != unfound.end(); ++i) { | 110 i != unfound.end(); ++i) { |
111 m_models.erase(*i); | 111 m_models.erase(*i); |
112 } | 112 } |
113 | 113 |
114 DEBUG << "ModelMetadataModel::rebuildModelSet: " << m_models.size() << " models" << endl; | 114 SVDEBUG << "ModelMetadataModel::rebuildModelSet: " << m_models.size() << " models" << endl; |
115 } | 115 } |
116 | 116 |
117 void | 117 void |
118 ModelMetadataModel::paneAdded() | 118 ModelMetadataModel::paneAdded() |
119 { | 119 { |
369 LayerTreeModel::playParametersAudibilityChanged(bool a) | 369 LayerTreeModel::playParametersAudibilityChanged(bool a) |
370 { | 370 { |
371 PlayParameters *params = dynamic_cast<PlayParameters *>(sender()); | 371 PlayParameters *params = dynamic_cast<PlayParameters *>(sender()); |
372 if (!params) return; | 372 if (!params) return; |
373 | 373 |
374 DEBUG << "LayerTreeModel::playParametersAudibilityChanged(" | 374 SVDEBUG << "LayerTreeModel::playParametersAudibilityChanged(" |
375 << params << "," << a << ")" << endl; | 375 << params << "," << a << ")" << endl; |
376 | 376 |
377 for (int i = 0; i < m_stack->getPaneCount(); ++i) { | 377 for (int i = 0; i < m_stack->getPaneCount(); ++i) { |
378 Pane *pane = m_stack->getPane(i); | 378 Pane *pane = m_stack->getPane(i); |
379 if (!pane) continue; | 379 if (!pane) continue; |
380 for (int j = 0; j < pane->getLayerCount(); ++j) { | 380 for (int j = 0; j < pane->getLayerCount(); ++j) { |
381 Layer *layer = pane->getLayer(j); | 381 Layer *layer = pane->getLayer(j); |
382 if (!layer) continue; | 382 if (!layer) continue; |
383 if (layer->getPlayParameters() == params) { | 383 if (layer->getPlayParameters() == params) { |
384 DEBUG << "LayerTreeModel::playParametersAudibilityChanged(" | 384 SVDEBUG << "LayerTreeModel::playParametersAudibilityChanged(" |
385 << params << "," << a << "): row " << pane->getLayerCount() - j - 1 << ", col " << 2 << endl; | 385 << params << "," << a << "): row " << pane->getLayerCount() - j - 1 << ", col " << 2 << endl; |
386 | 386 |
387 emit dataChanged(createIndex(pane->getLayerCount() - j - 1, | 387 emit dataChanged(createIndex(pane->getLayerCount() - j - 1, |
388 m_layerPlayedColumn, pane), | 388 m_layerPlayedColumn, pane), |
389 createIndex(pane->getLayerCount() - j - 1, | 389 createIndex(pane->getLayerCount() - j - 1, |