Mercurial > hg > svgui
diff layer/LayerFactory.cpp @ 336:4a542ba875c2
* Improvements to layer summary dialog (LayerTree, LayerTreeDialog), & rename.
It's still rather unstable though.
author | Chris Cannam |
---|---|
date | Wed, 28 Nov 2007 17:45:37 +0000 |
parents | 29fcf125f98b |
children | 369a197737c7 0895517bb2d1 |
line wrap: on
line diff
--- a/layer/LayerFactory.cpp Fri Nov 23 16:48:23 2007 +0000 +++ b/layer/LayerFactory.cpp Wed Nov 28 17:45:37 2007 +0000 @@ -418,8 +418,8 @@ std::cerr << "LayerFactory::createLayer: Unknown layer type " << type << std::endl; } else { - std::cerr << "LayerFactory::createLayer: Setting object name " - << getLayerPresentationName(type).toStdString() << " on " << layer << std::endl; +// std::cerr << "LayerFactory::createLayer: Setting object name " +// << getLayerPresentationName(type).toStdString() << " on " << layer << std::endl; layer->setObjectName(getLayerPresentationName(type)); setLayerDefaultProperties(type, layer); } @@ -430,14 +430,14 @@ void LayerFactory::setLayerDefaultProperties(LayerType type, Layer *layer) { - std::cerr << "LayerFactory::setLayerDefaultProperties: type " << type << " (name \"" << getLayerTypeName(type).toStdString() << "\"" << std::endl; +// std::cerr << "LayerFactory::setLayerDefaultProperties: type " << type << " (name \"" << getLayerTypeName(type).toStdString() << "\")" << std::endl; QSettings settings; settings.beginGroup("LayerDefaults"); QString defaults = settings.value(getLayerTypeName(type), "").toString(); if (defaults == "") return; - std::cerr << "defaults=\"" << defaults.toStdString() << "\"" << std::endl; +// std::cerr << "defaults=\"" << defaults.toStdString() << "\"" << std::endl; QString xml = layer->toXmlString(); QDomDocument docOld, docNew; @@ -453,9 +453,9 @@ for (unsigned int i = 0; i < attrNodes.length(); ++i) { QDomAttr attr = attrNodes.item(i).toAttr(); if (attr.isNull()) continue; - std::cerr << "append \"" << attr.name().toStdString() - << "\" -> \"" << attr.value().toStdString() << "\"" - << std::endl; +// std::cerr << "append \"" << attr.name().toStdString() +// << "\" -> \"" << attr.value().toStdString() << "\"" +// << std::endl; attrs.append(attr.name(), "", "", attr.value()); } @@ -465,9 +465,9 @@ QDomAttr attr = attrNodes.item(i).toAttr(); if (attr.isNull()) continue; if (attrs.value(attr.name()) == "") { - std::cerr << "append \"" << attr.name().toStdString() - << "\" -> \"" << attr.value().toStdString() << "\"" - << std::endl; +// std::cerr << "append \"" << attr.name().toStdString() +// << "\" -> \"" << attr.value().toStdString() << "\"" +// << std::endl; attrs.append(attr.name(), "", "", attr.value()); } }