Mercurial > hg > svgui
diff layer/TextLayer.h @ 1437:e2b6a13a1f69 single-point
Use updated TextModel
author | Chris Cannam |
---|---|
date | Fri, 22 Mar 2019 11:05:11 +0000 |
parents | 05d614f6e46d |
children | 696e569ff21b |
line wrap: on
line diff
--- a/layer/TextLayer.h Thu Mar 21 15:22:19 2019 +0000 +++ b/layer/TextLayer.h Fri Mar 22 11:05:11 2019 +0000 @@ -96,18 +96,18 @@ int getDefaultColourHint(bool dark, bool &impose) override; - TextModel::PointList getLocalPoints(LayerGeometryProvider *v, int x, int y) const; + EventVector getLocalPoints(LayerGeometryProvider *v, int x, int y) const; - bool getPointToDrag(LayerGeometryProvider *v, int x, int y, TextModel::Point &) const; + bool getPointToDrag(LayerGeometryProvider *v, int x, int y, Event &) const; TextModel *m_model; bool m_editing; QPoint m_editOrigin; - TextModel::Point m_originalPoint; - TextModel::Point m_editingPoint; - TextModel::EditCommand *m_editingCommand; + Event m_originalPoint; + Event m_editingPoint; + ChangeEventsCommand *m_editingCommand; - void finish(TextModel::EditCommand *command) { + void finish(ChangeEventsCommand *command) { Command *c = command->finish(); if (c) CommandHistory::getInstance()->addCommand(c, false); }