20 #ifndef GRAPHICSVIEW_VIEWER_H
21 #define GRAPHICSVIEW_VIEWER_H
29 #include <QPainterPath>
31 class QGraphicsSceneMouseEvent;
32 class QGraphicsSceneWheelEvent;
53 Zoom, PanGlobal, Pan, FitWidth, UserTransform = 100 };
62 static QString
Type() {
return "GraphicsView"; }
73 void activateTransform(
int );
76 void setIsInitialized(
bool );
80 void wheelScaleChanged();
85 virtual void onTransformationStarted();
86 virtual void onTransformationFinished();
89 virtual void onKeyEvent( QKeyEvent* );
90 virtual void onMouseEvent( QGraphicsSceneMouseEvent* );
91 virtual void onWheelEvent( QGraphicsSceneWheelEvent* );
93 virtual void onSketchingFinished( QPainterPath );
96 virtual void onSelectionCancel();
98 virtual void onChangeBgColor();
115 void handleKeyPress( QKeyEvent* );
116 void handleKeyRelease( QKeyEvent* );
117 void handleMouseMove( QGraphicsSceneMouseEvent* );
118 void handleMousePress( QGraphicsSceneMouseEvent* );
119 void handleMouseRelease( QGraphicsSceneMouseEvent* );
120 void handleWheel( QGraphicsSceneWheelEvent* );
124 void processQueueOperation(
const QueueOperation );