#ifndef __CPBASEQTAPPLICATION__CANVAS__H__ #define __CPBASEQTAPPLICATION__CANVAS__H__ #include #include namespace cpBaseQtApplication { // Some other forward declarations class Block; class Connection; class Editor; /** */ class cpBaseQtApplication_EXPORT Canvas : public QGraphicsView { Q_OBJECT; public: Canvas( QWidget* parent = 0 ); virtual ~Canvas( ); Editor* editor( ); const Editor* editor( ) const; protected: /* TODO void timerEvent( QTimerEvent* event ); */ void keyPressEvent( QKeyEvent* event ); void wheelEvent( QWheelEvent* event ); void dragEnterEvent( QDragEnterEvent* event ); void dragLeaveEvent( QDragLeaveEvent* event ); void dragMoveEvent( QDragMoveEvent* event ); void dropEvent( QDropEvent* event ); void _scaleView( qreal scaleFactor ); protected: Editor* m_Editor; }; } // ecapseman #endif // __CPBASEQTAPPLICATION__CANVAS__H__ // eof - $RCSfile$