comparison base/Model.h @ 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 a6ef94ecbe74
comparison
equal deleted inserted replaced
2:d86891498eef 3:581f67f370f3
11 #define _MODEL_H_ 11 #define _MODEL_H_
12 12
13 #include <vector> 13 #include <vector>
14 #include <QObject> 14 #include <QObject>
15 15
16 #include "XmlExportable.h"
17
16 typedef std::vector<float> SampleBlock; 18 typedef std::vector<float> SampleBlock;
17 19
18 /** 20 /**
19 * Model is the base class for all data models that represent any sort 21 * Model is the base class for all data models that represent any sort
20 * of data on a time scale based on an audio frame rate. 22 * of data on a time scale based on an audio frame rate.
21 */ 23 */
22 24
23 class Model : virtual public QObject 25 class Model : virtual public QObject,
26 public XmlExportable
24 { 27 {
25 Q_OBJECT 28 Q_OBJECT
26 29
27 public: 30 public:
28 /** 31 /**
80 if (completion) *completion = (ok ? 100 : 0); 83 if (completion) *completion = (ok ? 100 : 0);
81 return ok; 84 return ok;
82 } 85 }
83 static const int COMPLETION_UNKNOWN; 86 static const int COMPLETION_UNKNOWN;
84 87
88 virtual QString toXmlString(QString indent = "",
89 QString extraAttributes = "") const;
90
85 signals: 91 signals:
86 /** 92 /**
87 * Emitted when a model has been edited (or more data retrieved 93 * Emitted when a model has been edited (or more data retrieved
88 * from cache, in the case of a cached model that generates slowly) 94 * from cache, in the case of a cached model that generates slowly)
89 */ 95 */