Mercurial > hg > svgui
comparison view/View.cpp @ 838:b350de0ec8f7
Use fixed-order when exporting layers to a session
author | Chris Cannam |
---|---|
date | Tue, 02 Sep 2014 16:10:10 +0100 |
parents | 6c4cab21e387 |
children | 757b7baac614 |
comparison
equal
deleted
inserted
replaced
837:6c4cab21e387 | 838:b350de0ec8f7 |
---|---|
2505 m_followPlay == PlaybackScrollPageWithCentre ? "page" : | 2505 m_followPlay == PlaybackScrollPageWithCentre ? "page" : |
2506 m_followPlay == PlaybackScrollPage ? "daw" : | 2506 m_followPlay == PlaybackScrollPage ? "daw" : |
2507 "ignore") | 2507 "ignore") |
2508 .arg(extraAttributes); | 2508 .arg(extraAttributes); |
2509 | 2509 |
2510 for (int i = 0; i < (int)m_layerStack.size(); ++i) { | 2510 for (int i = 0; i < (int)m_fixedOrderLayers.size(); ++i) { |
2511 bool visible = !m_layerStack[i]->isLayerDormant(this); | 2511 bool visible = !m_fixedOrderLayers[i]->isLayerDormant(this); |
2512 m_layerStack[i]->toBriefXml(stream, indent + " ", | 2512 m_fixedOrderLayers[i]->toBriefXml(stream, indent + " ", |
2513 QString("visible=\"%1\"") | 2513 QString("visible=\"%1\"") |
2514 .arg(visible ? "true" : "false")); | 2514 .arg(visible ? "true" : "false")); |
2515 } | 2515 } |
2516 | 2516 |
2517 stream << indent + "</view>\n"; | 2517 stream << indent + "</view>\n"; |
2518 } | 2518 } |
2519 | 2519 |