# HG changeset patch
# User Chris Cannam
# Date 1137519955 0
# Node ID 31c4ed2d5da6b1af96adf6fd86f3d15681523209
# Parent 149bb02a41ba9dbc5067d146360351d508296b1f
* 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.
diff -r 149bb02a41ba -r 31c4ed2d5da6 base/Layer.cpp
--- a/base/Layer.cpp Fri Jan 13 18:05:07 2006 +0000
+++ b/base/Layer.cpp Tue Jan 17 17:45:55 2006 +0000
@@ -41,7 +41,7 @@
s += indent;
- s += QString("\n")
+ s += QString("\n")
.arg(LayerFactory::instance()->getLayerTypeName
(LayerFactory::instance()->getLayerType(this)))
.arg(getObjectExportId(this))
@@ -49,6 +49,18 @@
.arg(getObjectExportId(getModel()))
.arg(extraAttributes);
+ PropertyList properties = getProperties();
+
+ for (PropertyList::const_iterator i = properties.begin();
+ i != properties.end(); ++i) {
+
+ int pv = getPropertyRangeAndValue(*i, 0, 0);
+ s += indent + "";
+ s += QString("\n").arg(*i).arg(pv);
+ }
+
+ s += indent + "\n";
+
return s;
}