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