comparison base/Layer.cpp @ 3:581f67f370f3

* Beginnings of session save code * Add spline curve mode to time value layer
author Chris Cannam
date Thu, 12 Jan 2006 17:19:08 +0000
parents d86891498eef
children 149bb02a41ba
comparison
equal deleted inserted replaced
2:d86891498eef 3:581f67f370f3
9 9
10 #include "Layer.h" 10 #include "Layer.h"
11 #include "View.h" 11 #include "View.h"
12 12
13 #include <iostream> 13 #include <iostream>
14
15 #include "layer/LayerFactory.h" //!!! shouldn't be including this here -- does that suggest we need to move this into layer/ ?
14 16
15 Layer::Layer(View *w) 17 Layer::Layer(View *w)
16 { 18 {
17 m_view = w; 19 m_view = w;
18 20
30 { 32 {
31 QObject::setObjectName(name); 33 QObject::setObjectName(name);
32 emit layerNameChanged(); 34 emit layerNameChanged();
33 } 35 }
34 36
37 QString
38 Layer::toXmlString(QString indent, QString extraAttributes) const
39 {
40 QString s;
41
42 s += indent;
43
44 s += QString("<layer type=\"%1\" id=\"%2\" name=\"%3\" model=\"%4\" %5/>\n")
45 .arg(LayerFactory::instance()->getLayerTypeName
46 (LayerFactory::instance()->getLayerType(this)))
47 .arg((intptr_t)this)
48 .arg(objectName())
49 .arg((intptr_t)getModel())
50 .arg(extraAttributes);
51
52 return s;
53 }
35 54
36 #ifdef INCLUDE_MOCFILES 55 #ifdef INCLUDE_MOCFILES
37 #include "Layer.moc.cpp" 56 #include "Layer.moc.cpp"
38 #endif 57 #endif
39 58