14 class QGraphicsRectItem;
35 void moveBL (
const QPointF &newPos,
36 const QPointF &oldPos);
39 void moveBR (
const QPointF &newPos,
40 const QPointF &oldPos);
43 void moveTL (
const QPointF &newPos,
44 const QPointF &oldPos);
47 void moveTR (
const QPointF &newPos,
48 const QPointF &oldPos);
61 void createWidgets (QGraphicsScene &scene);
62 void disableEventsWhileMovingAutomatically();
63 void enableEventsWhileMovingAutomatically();
64 QRectF rectFromTLAndBR ()
const;
70 QGraphicsRectItem *m_box;
80 #endif // PDF_CROPPING_H void moveTL(const QPointF &newPos, const QPointF &oldPos)
Top left corner handle was moved.
void moveBR(const QPointF &newPos, const QPointF &oldPos)
Bottom right corner handle was moved.
static const int PDF_CROPPING_RIGHT
Bit flag when handle is aligned with right edge at reference point.
static const int PDF_CROPPING_TOP
Bit flag when handle is aligned with top edge at reference point.
QRectF frameRect() const
Frame rectangle selected by user.
Class that modifies QGraphicsView to automatically expand/shrink the view to fit the window...
This class shows a frame around the selected portion of the pdf import preview window.
static const int PDF_CROPPING_BOTTOM
Bit flag when handle is aligned with bottom edge at reference point.
void moveBL(const QPointF &newPos, const QPointF &oldPos)
Bottom left corner handle was moved.
QSize windowSize() const
Size of window in scene coordinates.
This class acts as a single handle for the PdfCropping class.
static const int PDF_CROPPING_LEFT
Bit flag when handle is aligned with left edge at reference point.
void moveTR(const QPointF &newPos, const QPointF &oldPos)
Top right corner handle was moved.