Mercurial > hg > svapp
comparison framework/Document.cpp @ 159:06fc6fc21739
* more activity updates
author | Chris Cannam |
---|---|
date | Tue, 24 Feb 2009 16:44:43 +0000 |
parents | c0b176d86be7 |
children | 64b09e5bda21 |
comparison
equal
deleted
inserted
replaced
158:72495c4cd315 | 159:06fc6fc21739 |
---|---|
956 if (!m_added) { | 956 if (!m_added) { |
957 m_d->deleteLayer(m_layer); | 957 m_d->deleteLayer(m_layer); |
958 } | 958 } |
959 } | 959 } |
960 | 960 |
961 QString | |
962 Document::AddLayerCommand::getName() const | |
963 { | |
964 std::cerr << "Document::AddLayerCommand::getName(): Name is " | |
965 << m_name.toStdString() << std::endl; | |
966 return m_name; | |
967 } | |
968 | |
961 void | 969 void |
962 Document::AddLayerCommand::execute() | 970 Document::AddLayerCommand::execute() |
963 { | 971 { |
964 for (int i = 0; i < m_view->getLayerCount(); ++i) { | 972 for (int i = 0; i < m_view->getLayerCount(); ++i) { |
965 if (m_view->getLayer(i) == m_layer) { | 973 if (m_view->getLayer(i) == m_layer) { |
1004 std::cerr << "Document::RemoveLayerCommand::~RemoveLayerCommand" << std::endl; | 1012 std::cerr << "Document::RemoveLayerCommand::~RemoveLayerCommand" << std::endl; |
1005 #endif | 1013 #endif |
1006 if (!m_added) { | 1014 if (!m_added) { |
1007 m_d->deleteLayer(m_layer); | 1015 m_d->deleteLayer(m_layer); |
1008 } | 1016 } |
1017 } | |
1018 | |
1019 QString | |
1020 Document::RemoveLayerCommand::getName() const | |
1021 { | |
1022 std::cerr << "Document::RemoveLayerCommand::getName(): Name is " | |
1023 << m_name.toStdString() << std::endl; | |
1024 return m_name; | |
1009 } | 1025 } |
1010 | 1026 |
1011 void | 1027 void |
1012 Document::RemoveLayerCommand::execute() | 1028 Document::RemoveLayerCommand::execute() |
1013 { | 1029 { |