45 void setVisible(
bool visible);
46 void setEnabled(
bool enabled);
47 bool eventFilter(QObject *obj, QEvent *event)
override;
49 void setHandleEnabled(
bool enabled);
54 void showContextMenu(
const QPoint& pos);
55 void disableSelectionActionsPanel();
56 void configureSelectionActionsPanel();
57 void configChanged(
bool skipResettingOffset =
false);
58 void canvasStateChanged();
62 void recalculateDimensions();
65 QPoint getFixedPosition()
const;
67 QRectF getWidgetSelectionRect()
const;
69 QPoint horizontalFreeFloatingTopLeftPosition(
bool calculateOnlyAnchor =
false)
const;
70 QPoint verticalFreeFloatingTopLeftPosition(
bool calculateOnlyAnchor =
false)
const;
71 QPoint freeFloatingInitialTopLeftPosition(
bool calculateOnlyAnchor =
false)
const;
73 QPoint clipPositionToCanvasBoundaries(QPoint position, QWidget *canvasWidget)
const;
75 QPoint currentTopLeftPosition()
const;
79 void drawAnchorWhileMoving(QPainter &painter)
const;
82 void drawDebugRectangle(QPainter &painter,
Position position);
83 void drawDebugRectanglesForFreeFloatingBehaviour(QPainter &painter);
85 bool handlePress(QEvent *event,
const QPoint &pos, Qt::MouseButton
button = Qt::LeftButton);
86 bool handleMove(QEvent *event,
const QPoint &pos);
87 bool handleRelease(QEvent *event);
90 void movePanelWidgets();
92 QPoint mouseEventPos(
const QMouseEvent *mouseEvent);
93 QPoint tabletEventPos(
const QTabletEvent *tabletEvent);
96 bool touchEventPos(
const QTouchEvent *touchEvent, QPoint &outPos);
98 QPoint transformHandleCoords(QPoint pos);
101 QScopedPointer<Private>
d;