23 #include <QPainterPath>
32 class QMousePressEvent;
33 class QMouseMoveEvent;
34 class QMouseReleaseEvent;
81 explicit Editor(QWidget *parent = 0);
84 QPair<qint16, Symbol>
symbol();
85 void setSymbol(
const QPair<qint16, Symbol> &pair);
87 QPainterPath
moveTo(
const QPointF &to);
88 QPainterPath
lineTo(
const QPointF &to);
89 QPainterPath
cubicTo(
const QPointF &control1,
const QPointF &control2,
const QPointF &to);
90 QPainterPath
addRectangle(
const QPointF &from,
const QPointF &to);
91 QPainterPath
addEllipse(
const QPointF &from,
const QPointF &to);
93 void movePoint(
int index,
const QPointF &to);
103 QPainterPath
setPath(
const QPainterPath &path);
129 void message(
const QString &text);
143 void addPoint(
const QPointF &point);
144 QPointF
snapPoint(
const QPoint &point)
const;
145 QPair<bool, QPointF>
snapToGrid(
const QPoint &point)
const;
146 QPair<bool, QPointF>
snapToGuide(
const QPointF &point)
const;
147 QPointF
toSymbol(
const QPoint &point)
const;
148 QPoint
toScreen(
const QPointF &point)
const;
149 bool node(
const QPointF &point)
const;
156 QLineF
projected(
const QLineF &line)
const;