comparison layer/LayerFactory.cpp @ 52:f2fe98a7c57e

* Use commands for add/delete pane in main window * Add compound command collection to command history (for add pane, import file etc) * Add hide/show pane and hidden pane list to PaneStack * Various other fixes
author Chris Cannam
date Mon, 13 Mar 2006 17:55:19 +0000
parents ad214997dddb
children 68869408f5c7
comparison
equal deleted inserted replaced
51:d2eac322d71b 52:f2fe98a7c57e
229 return 0; 229 return 0;
230 } 230 }
231 } 231 }
232 232
233 Layer * 233 Layer *
234 LayerFactory::createLayer(LayerType type, Model *model, int channel) 234 LayerFactory::createLayer(LayerType type, int channel)
235 { 235 {
236 Layer *layer = 0; 236 Layer *layer = 0;
237 237
238 switch (type) { 238 switch (type) {
239 239
286 286
287 if (!layer) { 287 if (!layer) {
288 std::cerr << "LayerFactory::createLayer: Unknown layer type " 288 std::cerr << "LayerFactory::createLayer: Unknown layer type "
289 << type << std::endl; 289 << type << std::endl;
290 } else { 290 } else {
291 if (model) setModel(layer, model);
292 std::cerr << "LayerFactory::createLayer: Setting object name " 291 std::cerr << "LayerFactory::createLayer: Setting object name "
293 << getLayerPresentationName(type).toStdString() << " on " << layer << std::endl; 292 << getLayerPresentationName(type).toStdString() << " on " << layer << std::endl;
294 layer->setObjectName(getLayerPresentationName(type)); 293 layer->setObjectName(getLayerPresentationName(type));
295 } 294 }
296 295