00001
00002
00003
00004
00005
00006
00007 #ifndef PDF_FRAME_HANDLE_H
00008 #define PDF_FRAME_HANDLE_H
00009
00010 #include <QGraphicsRectItem>
00011
00012 class PdfCropping;
00013 class QGraphicsScene;
00014 class QGraphicsView;
00015 class QPointF;
00016 class QRectF;
00017
00019 class PdfFrameHandle : public QGraphicsRectItem
00020 {
00021 public:
00023 PdfFrameHandle(QGraphicsScene &scene,
00024 QGraphicsView &view,
00025 const QPointF &pointReference,
00026 int orientationFlags,
00027 PdfCropping &pdfCropping,
00028 int zValue);
00029
00031 virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value);
00032
00034 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
00035
00037 void setDisableEventsWhileMovingAutomatically (bool disable);
00038
00039 private:
00040 PdfFrameHandle();
00041
00042 PdfCropping &m_pdfCropping;
00043 int m_orientationFlags;
00044
00045 bool m_disableEventsWhileMovingAutomatically;
00046 QGraphicsScene &m_scene;
00047 QGraphicsView &m_view;
00048 };
00049
00050 #endif // PDF_FRAME_HANDLE_H