Mercurial > hg > svgui
comparison layer/TimeValueLayer.h @ 513:1341e95eeae9
* Make drawing segment divisions optional in segmentation plot style of
time value layer
* Don't follow playback when Alt is held down (complements use of Alt as
peek modifier)
author | Chris Cannam |
---|---|
date | Thu, 26 Feb 2009 16:58:25 +0000 |
parents | b3140e9e0665 |
children | ff1dc4f302bd |
comparison
equal
deleted
inserted
replaced
512:ed65126e503d | 513:1341e95eeae9 |
---|---|
101 }; | 101 }; |
102 | 102 |
103 void setVerticalScale(VerticalScale scale); | 103 void setVerticalScale(VerticalScale scale); |
104 VerticalScale getVerticalScale() const { return m_verticalScale; } | 104 VerticalScale getVerticalScale() const { return m_verticalScale; } |
105 | 105 |
106 void setDrawSegmentDivisions(bool); | |
107 bool getDrawSegmentDivisions() const { return m_drawSegmentDivisions; } | |
108 | |
106 virtual bool isLayerScrollable(const View *v) const; | 109 virtual bool isLayerScrollable(const View *v) const; |
107 | 110 |
108 virtual bool isLayerEditable() const { return true; } | 111 virtual bool isLayerEditable() const { return true; } |
109 | 112 |
110 virtual int getCompletion(View *) const { return m_model->getCompletion(); } | 113 virtual int getCompletion(View *) const { return m_model->getCompletion(); } |
154 SparseTimeValueModel::Point m_editingPoint; | 157 SparseTimeValueModel::Point m_editingPoint; |
155 SparseTimeValueModel::EditCommand *m_editingCommand; | 158 SparseTimeValueModel::EditCommand *m_editingCommand; |
156 int m_colourMap; | 159 int m_colourMap; |
157 PlotStyle m_plotStyle; | 160 PlotStyle m_plotStyle; |
158 VerticalScale m_verticalScale; | 161 VerticalScale m_verticalScale; |
162 bool m_drawSegmentDivisions; | |
159 | 163 |
160 mutable float m_scaleMinimum; | 164 mutable float m_scaleMinimum; |
161 mutable float m_scaleMaximum; | 165 mutable float m_scaleMaximum; |
162 | 166 |
163 void finish(SparseTimeValueModel::EditCommand *command) { | 167 void finish(SparseTimeValueModel::EditCommand *command) { |