Mercurial > hg > svgui
comparison layer/TimeValueLayer.h @ 1459:42c87368287c
Merge from branch single-point
author | Chris Cannam |
---|---|
date | Fri, 17 May 2019 10:02:52 +0100 |
parents | 8a7c82282fbc |
children | 696e569ff21b |
comparison
equal
deleted
inserted
replaced
1441:8d5bf4ab98ef | 1459:42c87368287c |
---|---|
172 | 172 |
173 protected: | 173 protected: |
174 void getScaleExtents(LayerGeometryProvider *, double &min, double &max, bool &log) const; | 174 void getScaleExtents(LayerGeometryProvider *, double &min, double &max, bool &log) const; |
175 bool shouldAutoAlign() const; | 175 bool shouldAutoAlign() const; |
176 | 176 |
177 SparseTimeValueModel::PointList getLocalPoints(LayerGeometryProvider *v, int) const; | 177 EventVector getLocalPoints(LayerGeometryProvider *v, int) const; |
178 | 178 |
179 int getDefaultColourHint(bool dark, bool &impose) override; | 179 int getDefaultColourHint(bool dark, bool &impose) override; |
180 | 180 |
181 SparseTimeValueModel *m_model; | 181 SparseTimeValueModel *m_model; |
182 bool m_editing; | 182 bool m_editing; |
183 SparseTimeValueModel::Point m_originalPoint; | 183 Event m_originalPoint; |
184 SparseTimeValueModel::Point m_editingPoint; | 184 Event m_editingPoint; |
185 SparseTimeValueModel::EditCommand *m_editingCommand; | 185 ChangeEventsCommand *m_editingCommand; |
186 int m_colourMap; | 186 int m_colourMap; |
187 bool m_colourInverted; | 187 bool m_colourInverted; |
188 PlotStyle m_plotStyle; | 188 PlotStyle m_plotStyle; |
189 VerticalScale m_verticalScale; | 189 VerticalScale m_verticalScale; |
190 bool m_drawSegmentDivisions; | 190 bool m_drawSegmentDivisions; |
191 bool m_derivative; | 191 bool m_derivative; |
192 | 192 |
193 mutable double m_scaleMinimum; | 193 mutable double m_scaleMinimum; |
194 mutable double m_scaleMaximum; | 194 mutable double m_scaleMaximum; |
195 | 195 |
196 void finish(SparseTimeValueModel::EditCommand *command) { | 196 void finish(ChangeEventsCommand *command) { |
197 Command *c = command->finish(); | 197 Command *c = command->finish(); |
198 if (c) CommandHistory::getInstance()->addCommand(c, false); | 198 if (c) CommandHistory::getInstance()->addCommand(c, false); |
199 } | 199 } |
200 }; | 200 }; |
201 | 201 |