Mercurial > hg > svgui
diff layer/TimeValueLayer.h @ 1429:8a7c82282fbc single-point
Update TimeValueLayer etc
author | Chris Cannam |
---|---|
date | Tue, 19 Mar 2019 13:06:35 +0000 |
parents | a18e78b9c78b |
children | 696e569ff21b |
line wrap: on
line diff
--- a/layer/TimeValueLayer.h Fri Mar 15 14:24:22 2019 +0000 +++ b/layer/TimeValueLayer.h Tue Mar 19 13:06:35 2019 +0000 @@ -174,15 +174,15 @@ void getScaleExtents(LayerGeometryProvider *, double &min, double &max, bool &log) const; bool shouldAutoAlign() const; - SparseTimeValueModel::PointList getLocalPoints(LayerGeometryProvider *v, int) const; + EventVector getLocalPoints(LayerGeometryProvider *v, int) const; int getDefaultColourHint(bool dark, bool &impose) override; SparseTimeValueModel *m_model; bool m_editing; - SparseTimeValueModel::Point m_originalPoint; - SparseTimeValueModel::Point m_editingPoint; - SparseTimeValueModel::EditCommand *m_editingCommand; + Event m_originalPoint; + Event m_editingPoint; + ChangeEventsCommand *m_editingCommand; int m_colourMap; bool m_colourInverted; PlotStyle m_plotStyle; @@ -193,7 +193,7 @@ mutable double m_scaleMinimum; mutable double m_scaleMaximum; - void finish(SparseTimeValueModel::EditCommand *command) { + void finish(ChangeEventsCommand *command) { Command *c = command->finish(); if (c) CommandHistory::getInstance()->addCommand(c, false); }