1 #ifndef __CPBASEQTAPPLICATION__CANVAS__H__
2 #define __CPBASEQTAPPLICATION__CANVAS__H__
4 #include <cpBaseQtApplication_Export.h>
5 #include <QtGui/QGraphicsView>
7 namespace cpBaseQtApplication
9 // Some other forward declarations
16 class cpBaseQtApplication_EXPORT Canvas
17 : public QGraphicsView
22 Canvas( QWidget* parent = 0 );
26 const Editor* editor( ) const;
29 void keyPressEvent( QKeyEvent* event );
30 void wheelEvent( QWheelEvent* event );
32 void dragEnterEvent( QDragEnterEvent* event );
33 void dragLeaveEvent( QDragLeaveEvent* event );
34 void dragMoveEvent( QDragMoveEvent* event );
35 void dropEvent( QDropEvent* event );
37 void _scaleView( qreal scaleFactor );
45 #endif // __CPBASEQTAPPLICATION__CANVAS__H__