16 #include <QGraphicsView>
17 #include <QGraphicsPixmapItem>
18 #include <QGraphicsPolygonItem>
22 class IView:
public QGraphicsView
25 IView ( QWidget* parent );
28 void setImage (
const QPixmap& pixmap );
32 void setKeepFitted (
bool theValue ) { m_keepFitted = theValue; }
34 void setZoom(
double xz,
double yz = 0);
35 double getZoom()
const;
38 void mouseMoveEvent ( QMouseEvent * e );
39 void mousePressEvent ( QMouseEvent * e );
40 void mouseReleaseEvent ( QMouseEvent * e );
41 void resizeEvent ( QResizeEvent * event );
44 QGraphicsPixmapItem * curImage;
46 QPointF mouseStartPoint;