comparison base/View.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 214054a0d8b8
comparison
equal deleted inserted replaced
2:d86891498eef 3:581f67f370f3
13 #include <QFrame> 13 #include <QFrame>
14 #include <QProgressBar> 14 #include <QProgressBar>
15 15
16 #include "base/ZoomConstraint.h" 16 #include "base/ZoomConstraint.h"
17 #include "base/PropertyContainer.h" 17 #include "base/PropertyContainer.h"
18 #include "base/XmlExportable.h"
18 19
19 class Layer; 20 class Layer;
20 class ViewManager; 21 class ViewManager;
21 22
22 #include <map> 23 #include <map>
33 * mechanisms for doing so (as well as any other operations and 34 * mechanisms for doing so (as well as any other operations and
34 * properties available) depend on the subclass. 35 * properties available) depend on the subclass.
35 */ 36 */
36 37
37 class View : public QFrame, 38 class View : public QFrame,
38 public PropertyContainer 39 public PropertyContainer,
40 public XmlExportable
39 { 41 {
40 Q_OBJECT 42 Q_OBJECT
41 43
42 public: 44 public:
43 /** 45 /**
145 virtual PropertyContainer *getPropertyContainer(size_t i); 147 virtual PropertyContainer *getPropertyContainer(size_t i);
146 148
147 virtual QString getPropertyContainerName() const { 149 virtual QString getPropertyContainerName() const {
148 return objectName(); 150 return objectName();
149 } 151 }
152
153 virtual QString toXmlString(QString indent = "",
154 QString extraAttributes = "") const;
150 155
151 signals: 156 signals:
152 void propertyContainerAdded(PropertyContainer *pc); 157 void propertyContainerAdded(PropertyContainer *pc);
153 void propertyContainerRemoved(PropertyContainer *pc); 158 void propertyContainerRemoved(PropertyContainer *pc);
154 void propertyContainerPropertyChanged(PropertyContainer *pc); 159 void propertyContainerPropertyChanged(PropertyContainer *pc);
189 194
190 void setCentreFrame(size_t f, bool e); 195 void setCentreFrame(size_t f, bool e);
191 196
192 void checkProgress(void *object); 197 void checkProgress(void *object);
193 198
194 size_t m_centreFrame; 199 size_t m_centreFrame;
195 int m_zoomLevel; 200 int m_zoomLevel;
196 bool m_newModel; 201 bool m_newModel;
197 bool m_followPan; 202 bool m_followPan;
198 bool m_followZoom; 203 bool m_followZoom;
199 PlaybackFollowMode m_followPlay; 204 PlaybackFollowMode m_followPlay;
200 size_t m_playPointerFrame; 205 size_t m_playPointerFrame;
201 bool m_lightBackground; 206 bool m_lightBackground;
202 bool m_showProgress; 207 bool m_showProgress;
203 208
204 QPixmap *m_cache; 209 QPixmap *m_cache;
205 size_t m_cacheCentreFrame; 210 size_t m_cacheCentreFrame;
206 int m_cacheZoomLevel; 211 int m_cacheZoomLevel;
207 212
208 bool m_deleting; 213 bool m_deleting;
209 214
210 LayerList m_layers; // I don't own these, but see note in dtor comment above 215 LayerList m_layers; // I don't own these, but see dtor note above
211 216
212 // caches for use in getScrollableBackLayers, getNonScrollableFrontLayers 217 // caches for use in getScrollableBackLayers, getNonScrollableFrontLayers
213 mutable LayerList m_lastScrollableBackLayers; 218 mutable LayerList m_lastScrollableBackLayers;
214 mutable LayerList m_lastNonScrollableBackLayers; 219 mutable LayerList m_lastNonScrollableBackLayers;
215 220