Mercurial > hg > svcore
comparison base/Layer.cpp @ 5:31c4ed2d5da6
* Hook up SV file i/o. You can now save and load sessions.
Some problems -- gain is not reloaded correctly for waveforms,
reloaded panes are not properly reconnected to the panner, and
no doubt plenty of others.
author | Chris Cannam |
---|---|
date | Tue, 17 Jan 2006 17:45:55 +0000 |
parents | 149bb02a41ba |
children | 44bbf5793d84 |
comparison
equal
deleted
inserted
replaced
4:149bb02a41ba | 5:31c4ed2d5da6 |
---|---|
39 { | 39 { |
40 QString s; | 40 QString s; |
41 | 41 |
42 s += indent; | 42 s += indent; |
43 | 43 |
44 s += QString("<layer id=\"%2\" type=\"%1\" name=\"%3\" model=\"%4\" %5/>\n") | 44 s += QString("<layer id=\"%2\" type=\"%1\" name=\"%3\" model=\"%4\" %5>\n") |
45 .arg(LayerFactory::instance()->getLayerTypeName | 45 .arg(LayerFactory::instance()->getLayerTypeName |
46 (LayerFactory::instance()->getLayerType(this))) | 46 (LayerFactory::instance()->getLayerType(this))) |
47 .arg(getObjectExportId(this)) | 47 .arg(getObjectExportId(this)) |
48 .arg(objectName()) | 48 .arg(objectName()) |
49 .arg(getObjectExportId(getModel())) | 49 .arg(getObjectExportId(getModel())) |
50 .arg(extraAttributes); | 50 .arg(extraAttributes); |
51 | |
52 PropertyList properties = getProperties(); | |
53 | |
54 for (PropertyList::const_iterator i = properties.begin(); | |
55 i != properties.end(); ++i) { | |
56 | |
57 int pv = getPropertyRangeAndValue(*i, 0, 0); | |
58 s += indent + ""; | |
59 s += QString("<property name=\"%1\" value=\"%2\"/>\n").arg(*i).arg(pv); | |
60 } | |
61 | |
62 s += indent + "</layer>\n"; | |
51 | 63 |
52 return s; | 64 return s; |
53 } | 65 } |
54 | 66 |
55 #ifdef INCLUDE_MOCFILES | 67 #ifdef INCLUDE_MOCFILES |