Mercurial > hg > svgui
comparison layer/TimeValueLayer.h @ 6:02aaea1ffaf7
* 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 | 7af44e8578c8 |
children | 2d5005f2b3d9 |
comparison
equal
deleted
inserted
replaced
5:37b110168acf | 6:02aaea1ffaf7 |
---|---|
43 virtual void setProperty(const PropertyName &, int value); | 43 virtual void setProperty(const PropertyName &, int value); |
44 | 44 |
45 void setBaseColour(QColor); | 45 void setBaseColour(QColor); |
46 QColor getBaseColour() const { return m_colour; } | 46 QColor getBaseColour() const { return m_colour; } |
47 | 47 |
48 enum PlotStyle { PlotPoints, PlotStems, PlotLines, PlotCurve }; | 48 enum PlotStyle { PlotPoints, PlotStems, PlotConnectedPoints, PlotLines, PlotCurve }; |
49 | 49 |
50 void setPlotStyle(PlotStyle style); | 50 void setPlotStyle(PlotStyle style); |
51 PlotStyle getPlotStyle() const { return m_plotStyle; } | 51 PlotStyle getPlotStyle() const { return m_plotStyle; } |
52 | 52 |
53 virtual QString getPropertyContainerIconName() const { return "values"; } | 53 virtual QString getPropertyContainerIconName() const { return "values"; } |
54 | 54 |
55 virtual bool isLayerScrollable() const; | 55 virtual bool isLayerScrollable() const; |
56 | 56 |
57 virtual int getCompletion() const { return m_model->getCompletion(); } | 57 virtual int getCompletion() const { return m_model->getCompletion(); } |
58 | |
59 virtual QString toXmlString(QString indent = "", | |
60 QString extraAttributes = "") const; | |
58 | 61 |
59 protected: | 62 protected: |
60 SparseTimeValueModel::PointList getLocalPoints(int) const; | 63 SparseTimeValueModel::PointList getLocalPoints(int) const; |
61 | 64 |
62 SparseTimeValueModel *m_model; | 65 SparseTimeValueModel *m_model; |