comparison base/Model.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 da6937383da8
children 149bb02a41ba
comparison
equal deleted inserted replaced
2:d86891498eef 3:581f67f370f3
1 /* -*- c-basic-offset: 4 -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 A waveform viewer and audio annotation editor.
5 Chris Cannam, Queen Mary University of London, 2005-2006
6
7 This is experimental software. Not for distribution.
8 */
1 9
2 #include "Model.h" 10 #include "Model.h"
3 11
4 const int Model::COMPLETION_UNKNOWN = -1; 12 const int Model::COMPLETION_UNKNOWN = -1;
13
14 QString
15 Model::toXmlString(QString indent, QString extraAttributes) const
16 {
17 QString s;
18
19 s += indent;
20
21 s += QString("<model id=\"%1\" name=\"%2\" %3/>\n")
22 .arg((intptr_t)this)
23 .arg(objectName())
24 .arg(extraAttributes);
25
26 return s;
27 }
5 28
6 #ifdef INCLUDE_MOCFILES 29 #ifdef INCLUDE_MOCFILES
7 #ifdef INCLUDE_MOCFILES 30 #ifdef INCLUDE_MOCFILES
8 #include "Model.moc.cpp" 31 #include "Model.moc.cpp"
9 #endif 32 #endif