00001
00002
00003
00004
00005
00006
00007 #ifndef NON_PDF_FRAME_HANDLE_H
00008 #define NON_PDF_FRAME_HANDLE_H
00009
00010 #include <QGraphicsRectItem>
00011
00012 class NonPdfCropping;
00013 class QGraphicsScene;
00014 class QGraphicsView;
00015 class QPointF;
00016 class QRectF;
00017
00019 class NonPdfFrameHandle : public QGraphicsRectItem
00020 {
00021 public:
00023 NonPdfFrameHandle(QGraphicsScene &scene,
00024 QGraphicsView &view,
00025 const QPointF &pointReference,
00026 int orientationFlags,
00027 NonPdfCropping &nonPdfCropping,
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 NonPdfFrameHandle();
00041
00042 NonPdfCropping &m_nonPdfCropping;
00043 int m_orientationFlags;
00044
00045 bool m_disableEventsWhileMovingAutomatically;
00046 QGraphicsScene &m_scene;
00047 QGraphicsView &m_view;
00048 };
00049
00050 #endif // NON_PDF_FRAME_HANDLE_H