Mercurial > hg > svcore
comparison base/Layer.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 | 44bbf5793d84 |
comparison
equal
deleted
inserted
replaced
2:d86891498eef | 3:581f67f370f3 |
---|---|
10 | 10 |
11 #ifndef _VIEWER_H_ | 11 #ifndef _VIEWER_H_ |
12 #define _VIEWER_H_ | 12 #define _VIEWER_H_ |
13 | 13 |
14 #include "PropertyContainer.h" | 14 #include "PropertyContainer.h" |
15 #include "XmlExportable.h" | |
15 | 16 |
16 #include <QObject> | 17 #include <QObject> |
17 #include <QRect> | 18 #include <QRect> |
18 | 19 |
19 class ZoomConstraint; | 20 class ZoomConstraint; |
26 * Model. Layers are expected to be able to draw themselves onto a | 27 * Model. Layers are expected to be able to draw themselves onto a |
27 * View, and may also be editable. | 28 * View, and may also be editable. |
28 */ | 29 */ |
29 | 30 |
30 class Layer : public QObject, | 31 class Layer : public QObject, |
31 public PropertyContainer | 32 public PropertyContainer, |
33 public XmlExportable | |
32 { | 34 { |
33 Q_OBJECT | 35 Q_OBJECT |
34 | 36 |
35 public: | 37 public: |
36 Layer(View *w); | 38 Layer(View *w); |
84 */ | 86 */ |
85 virtual int getCompletion() const { return 100; } | 87 virtual int getCompletion() const { return 100; } |
86 | 88 |
87 virtual void setObjectName(const QString &name); | 89 virtual void setObjectName(const QString &name); |
88 | 90 |
91 virtual QString toXmlString(QString indent = "", | |
92 QString extraAttributes = "") const; | |
93 | |
89 signals: | 94 signals: |
90 void modelChanged(); | 95 void modelChanged(); |
91 void modelCompletionChanged(); | 96 void modelCompletionChanged(); |
92 void modelChanged(size_t startFrame, size_t endFrame); | 97 void modelChanged(size_t startFrame, size_t endFrame); |
93 void modelReplaced(); | 98 void modelReplaced(); |