7#ifndef KIS_TOOL_RECTANGLE_BASE_H
8#define KIS_TOOL_RECTANGLE_BASE_H
22 void constraintsChanged(
bool forceRatio,
bool forceWidth,
bool forceHeight,
float ratio,
float width,
float height);
23 void roundCornersChanged(
int rx,
int ry);
43 void activate(
const QSet<KoShape*> &shapes)
override;
50 virtual void finishRect(
const QRectF &
rect, qreal roundCornersX, qreal roundCornersY) = 0;
72 qreal getRotationAngle();
73 QPainterPath drawX(
const QPointF &pt);
74 void applyConstraints(QSizeF& area,
bool overrideRatio);
75 void getRotatedPath(QPainterPath &path,
const QPointF ¢er,
const qreal &angle);
78 virtual void paintRectangle(QPainter &gc,
const QRectF &imageRect);
79 virtual QRectF createRect(
const QPointF &start,
const QPointF &end);
80 virtual bool showRoundCornersGUI()
const;
static QCursor load(const QString &cursorName, int hotspotX=-1, int hotspotY=-1)