comparison layer/TimeValueLayer.h @ 23:ca57f70b0e48

* Add Zero Crossings output from zc plugin (as well as Zero Crossings Count) * Use brief friendly names for layers instead of full transform descriptions * Clearer command names for editing commands * Some efficiencies in drawing dense points in TimeInstantLayer
author Chris Cannam
date Tue, 31 Jan 2006 17:19:45 +0000
parents 179bf7b5ddea
children dcdb21b62dbb
comparison
equal deleted inserted replaced
22:179bf7b5ddea 23:ca57f70b0e48
62 void setPlotStyle(PlotStyle style); 62 void setPlotStyle(PlotStyle style);
63 PlotStyle getPlotStyle() const { return m_plotStyle; } 63 PlotStyle getPlotStyle() const { return m_plotStyle; }
64 64
65 virtual bool isLayerScrollable() const; 65 virtual bool isLayerScrollable() const;
66 66
67 virtual bool isLayerEditable() const { return true; }
68
67 virtual int getCompletion() const { return m_model->getCompletion(); } 69 virtual int getCompletion() const { return m_model->getCompletion(); }
68 70
69 virtual QString toXmlString(QString indent = "", 71 virtual QString toXmlString(QString indent = "",
70 QString extraAttributes = "") const; 72 QString extraAttributes = "") const;
71 73
77 79
78 SparseTimeValueModel::PointList getLocalPoints(int) const; 80 SparseTimeValueModel::PointList getLocalPoints(int) const;
79 81
80 SparseTimeValueModel *m_model; 82 SparseTimeValueModel *m_model;
81 bool m_editing; 83 bool m_editing;
84 SparseTimeValueModel::Point m_originalPoint;
82 SparseTimeValueModel::Point m_editingPoint; 85 SparseTimeValueModel::Point m_editingPoint;
83 SparseTimeValueModel::EditCommand *m_editingCommand; 86 SparseTimeValueModel::EditCommand *m_editingCommand;
84 QColor m_colour; 87 QColor m_colour;
85 PlotStyle m_plotStyle; 88 PlotStyle m_plotStyle;
86 }; 89 };