47
43
* from @p clicked to a point later provided in the handleMouseMove() continuously
48
44
* showing a semi-transarant 'rubber-mat' over the objects it is about to select.
49
45
* @param tool the parent tool which controls this strategy
50
* @param canvas The canvas that owns the tool for this strategy.
51
46
* @param clicked the initial point that the user depressed (in pt).
52
47
* @param useSnapToGrid use the snap-to-grid settings while doing the rubberstamp.
54
KoShapeRubberSelectStrategy(KoTool *tool, KoCanvasBase *canvas, const QPointF &clicked, bool useSnapToGrid = false);
55
virtual ~KoShapeRubberSelectStrategy();
49
KoShapeRubberSelectStrategy(KoToolBase *tool, const QPointF &clicked, bool useSnapToGrid = false);
57
void paint(QPainter &painter, const KoViewConverter &converter);
58
void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers);
59
virtual QUndoCommand* createCommand() {
51
virtual void paint(QPainter &painter, const KoViewConverter &converter);
52
virtual void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers);
53
virtual QUndoCommand *createCommand();
62
54
virtual void finishInteraction(Qt::KeyboardModifiers modifiers);
66
* Return the rectangle that the user dragged.
67
* The rectangle is normalized and immutable.
68
* @return a rectangle in pt.
70
const QRectF selectRect() const;
58
KoShapeRubberSelectStrategy(KoShapeRubberSelectStrategyPrivate &);
75
KoSnapGuide * m_snapGuide;
61
Q_DECLARE_PRIVATE(KoShapeRubberSelectStrategy)
78
64
#endif /* KODEFRUBBERSELECT_H */