7 #ifndef NON_PDF_CROPPING_H 8 #define NON_PDF_CROPPING_H 14 class QGraphicsRectItem;
33 void moveBL (
const QPointF &newPos,
34 const QPointF &oldPos);
37 void moveBR (
const QPointF &newPos,
38 const QPointF &oldPos);
41 void moveTL (
const QPointF &newPos,
42 const QPointF &oldPos);
45 void moveTR (
const QPointF &newPos,
46 const QPointF &oldPos);
59 void createWidgets (QGraphicsScene &scene);
60 void disableEventsWhileMovingAutomatically();
61 void enableEventsWhileMovingAutomatically();
62 QRectF rectFromTLAndBR ()
const;
68 QGraphicsRectItem *m_box;
78 #endif // NON_PDF_CROPPING_H static const int NON_PDF_CROPPING_LEFT
Bit flag when handle is aligned with left edge at reference point.
This class shows a frame around the selected portion of the import preview window.
void moveTL(const QPointF &newPos, const QPointF &oldPos)
Top left corner handle was moved.
QSize windowSize() const
Size of window in scene coordinates.
static const int NON_PDF_CROPPING_TOP
Bit flag when handle is aligned with top edge at reference point.
static const int NON_PDF_CROPPING_BOTTOM
Bit flag when handle is aligned with bottom edge at reference point.
void moveTR(const QPointF &newPos, const QPointF &oldPos)
Top right corner handle was moved.
QRectF frameRect() const
Frame rectangle selected by user.
Class that modifies QGraphicsView to automatically expand/shrink the view to fit the window...
This class acts as a single handle for the NonPdfCropping class.
void moveBR(const QPointF &newPos, const QPointF &oldPos)
Bottom right corner handle was moved.
void moveBL(const QPointF &newPos, const QPointF &oldPos)
Bottom left corner handle was moved.
static const int NON_PDF_CROPPING_RIGHT
Bit flag when handle is aligned with right edge at reference point.