45 void setVisible(
bool visible);
46 void setEnabled(
bool enabled);
47 bool eventFilter(QObject *obj, QEvent *event)
override;
49 void setHandleEnabled(
bool enabled);
53 void updatePositioning();
56 void showContextMenu(
const QPoint& pos);
57 void disableSelectionActionsPanel();
58 void configureSelectionActionsPanel();
59 void configChanged(
bool skipResettingOffset =
false);
60 void canvasStateChanged();
64 void recalculateDimensions();
67 QPoint getFixedPosition()
const;
69 QRectF getWidgetSelectionRect()
const;
71 QPoint horizontalFreeFloatingTopLeftPosition(
bool calculateOnlyAnchor =
false)
const;
72 QPoint verticalFreeFloatingTopLeftPosition(
bool calculateOnlyAnchor =
false)
const;
73 QPoint freeFloatingInitialTopLeftPosition(
bool calculateOnlyAnchor =
false)
const;
75 QPoint clipPositionToCanvasBoundaries(QPoint position, QWidget *canvasWidget)
const;
77 QPoint currentTopLeftPosition()
const;
81 void drawAnchorWhileMoving(QPainter &painter)
const;
84 void drawDebugRectangle(QPainter &painter,
Position position);
85 void drawDebugRectanglesForFreeFloatingBehaviour(QPainter &painter);
87 bool handlePress(QEvent *event,
const QPoint &pos, Qt::MouseButton
button = Qt::LeftButton);
88 bool handleMove(QEvent *event,
const QPoint &pos);
89 bool handleRelease(QEvent *event);
92 void movePanelWidgets();
94 QPoint mouseEventPos(
const QMouseEvent *mouseEvent);
95 QPoint tabletEventPos(
const QTabletEvent *tabletEvent);
98 bool touchEventPos(
const QTouchEvent *touchEvent, QPoint &outPos);
100 QPoint transformHandleCoords(QPoint pos);
103 QScopedPointer<Private>
d;