comparison layer/LayerFactory.cpp @ 8:06bba0b79b1c

* Session file save, and the skeleton of session file load.
author Chris Cannam
date Fri, 13 Jan 2006 18:05:07 +0000
parents 02aaea1ffaf7
children 2d5005f2b3d9
comparison
equal deleted inserted replaced
7:634324c6296e 8:06bba0b79b1c
193 193
194 if (!layer) { 194 if (!layer) {
195 std::cerr << "LayerFactory::createLayer: Unknown layer type " 195 std::cerr << "LayerFactory::createLayer: Unknown layer type "
196 << type << std::endl; 196 << type << std::endl;
197 } else { 197 } else {
198 setModel(layer, model); 198 if (model) setModel(layer, model);
199 std::cerr << "LayerFactory::createLayer: Setting object name " 199 std::cerr << "LayerFactory::createLayer: Setting object name "
200 << getLayerPresentationName(type).toStdString() << " on " << layer << std::endl; 200 << getLayerPresentationName(type).toStdString() << " on " << layer << std::endl;
201 layer->setObjectName(getLayerPresentationName(type)); 201 layer->setObjectName(getLayerPresentationName(type));
202 } 202 }
203 203