Engauge Digitizer 2
|
This class shows a frame around the selected portion of the pdf import preview window. More...
#include <PdfCropping.h>
Public Member Functions | |
PdfCropping (QGraphicsScene &scene, ViewPreview &view) | |
Single constructor. | |
QRectF | frameRect () const |
Frame rectangle selected by user. | |
void | moveBL (const QPointF &newPos, const QPointF &oldPos) |
Bottom left corner handle was moved. | |
void | moveBR (const QPointF &newPos, const QPointF &oldPos) |
Bottom right corner handle was moved. | |
void | moveTL (const QPointF &newPos, const QPointF &oldPos) |
Top left corner handle was moved. | |
void | moveTR (const QPointF &newPos, const QPointF &oldPos) |
Top right corner handle was moved. | |
QSize | windowSize () const |
Size of window in scene coordinates. | |
Static Public Attributes | |
static const int | PDF_CROPPING_BOTTOM = 1 |
Bit flag when handle is aligned with bottom edge at reference point. | |
static const int | PDF_CROPPING_LEFT = 2 |
Bit flag when handle is aligned with left edge at reference point. | |
static const int | PDF_CROPPING_RIGHT = 4 |
Bit flag when handle is aligned with right edge at reference point. | |
static const int | PDF_CROPPING_TOP = 8 |
Bit flag when handle is aligned with top edge at reference point. | |
This class shows a frame around the selected portion of the pdf import preview window.
Originally there were 4 handles at the corners and 4 handles at the middles of the sides, but dragging the corner handles did not result in 1/2 the movement at the middle handles. The middle handles were deemed not worth the effort
Definition at line 24 of file PdfCropping.h.
PdfCropping::PdfCropping | ( | QGraphicsScene & | scene, |
ViewPreview & | view ) |
Single constructor.
Definition at line 20 of file PdfCropping.cpp.
QRectF PdfCropping::frameRect | ( | ) | const |
Frame rectangle selected by user.
Definition at line 69 of file PdfCropping.cpp.
Bottom left corner handle was moved.
Definition at line 83 of file PdfCropping.cpp.
Bottom right corner handle was moved.
Definition at line 101 of file PdfCropping.cpp.
Top left corner handle was moved.
Definition at line 119 of file PdfCropping.cpp.
Top right corner handle was moved.
Definition at line 137 of file PdfCropping.cpp.
QSize PdfCropping::windowSize | ( | ) | const |
Size of window in scene coordinates.
Definition at line 166 of file PdfCropping.cpp.
Bit flag when handle is aligned with bottom edge at reference point.
Definition at line 50 of file PdfCropping.h.
Bit flag when handle is aligned with left edge at reference point.
Definition at line 51 of file PdfCropping.h.
Bit flag when handle is aligned with right edge at reference point.
Definition at line 52 of file PdfCropping.h.
Bit flag when handle is aligned with top edge at reference point.
Definition at line 53 of file PdfCropping.h.