comparison base/Layer.cpp @ 77:2beca8ddcdc3

* Add BZipFileDevice to handle bzip2 compress/uncompress without all that ugly code in MainWindow.cpp * Remove all that ugly code in MainWindow.cpp and replace with uses of BZipFileDevice * Fix layer import/export for SV XML layers * and a few other minor fixes
author Chris Cannam
date Wed, 12 Apr 2006 09:59:40 +0000
parents d397ea0a79f5
children c30728d5625c
comparison
equal deleted inserted replaced
76:af2725b5d6fe 77:2beca8ddcdc3
68 QString s; 68 QString s;
69 69
70 s += indent; 70 s += indent;
71 71
72 s += QString("<layer id=\"%2\" type=\"%1\" name=\"%3\" model=\"%4\" %5/>\n") 72 s += QString("<layer id=\"%2\" type=\"%1\" name=\"%3\" model=\"%4\" %5/>\n")
73 .arg(LayerFactory::instance()->getLayerTypeName 73 .arg(encodeEntities(LayerFactory::instance()->getLayerTypeName
74 (LayerFactory::instance()->getLayerType(this))) 74 (LayerFactory::instance()->getLayerType(this))))
75 .arg(getObjectExportId(this)) 75 .arg(getObjectExportId(this))
76 .arg(objectName()) 76 .arg(encodeEntities(objectName()))
77 .arg(getObjectExportId(getModel())) 77 .arg(getObjectExportId(getModel()))
78 .arg(extraAttributes); 78 .arg(extraAttributes);
79 79
80 return s; 80 return s;
81 } 81 }