Mercurial > hg > svgui
diff layer/TimeInstantLayer.h @ 1459:42c87368287c
Merge from branch single-point
author | Chris Cannam |
---|---|
date | Fri, 17 May 2019 10:02:52 +0100 |
parents | 9abddbd57667 |
children | 696e569ff21b |
line wrap: on
line diff
--- a/layer/TimeInstantLayer.h Wed Apr 24 11:29:53 2019 +0100 +++ b/layer/TimeInstantLayer.h Fri May 17 10:02:52 2019 +0100 @@ -112,7 +112,7 @@ int getVerticalScaleWidth(LayerGeometryProvider *, bool, QPainter &) const override { return 0; } protected: - SparseOneDimensionalModel::PointList getLocalPoints(LayerGeometryProvider *v, int) const; + EventVector getLocalPoints(LayerGeometryProvider *v, int) const; int getDefaultColourHint(bool dark, bool &impose) override; @@ -120,11 +120,11 @@ SparseOneDimensionalModel *m_model; bool m_editing; - SparseOneDimensionalModel::Point m_editingPoint; - SparseOneDimensionalModel::EditCommand *m_editingCommand; + Event m_editingPoint; + ChangeEventsCommand *m_editingCommand; PlotStyle m_plotStyle; - void finish(SparseOneDimensionalModel::EditCommand *command) { + void finish(ChangeEventsCommand *command) { Command *c = command->finish(); if (c) CommandHistory::getInstance()->addCommand(c, false); }