00001 #ifndef SCREENVIEW_H 00002 #define SCREENVIEW_H 00003 class Mode; 00004 #include <qwidget.h> 00005 #include <qstack.h> 00006 #include <qcursor.h> 00007 #include <qpushbutton.h> 00008 #include "../painter/QPainterZoom.h" 00009 #include "View.h" 00010 #include "../graphical/Container.h" 00011 00012 00022 class ScreenView:public View 00023 { 00024 Q_OBJECT 00025 // QButton *zoomButton; 00026 Mode *mode; 00027 ZoomFactor zoom; 00028 Container *topContainer; 00029 00030 public: 00031 void setMode (Mode *); 00032 QList < MusicSymbol > musicSymbols; 00033 void mouseReleaseEvent (QMouseEvent *); 00034 void mousePressEvent (QMouseEvent *); 00035 void mouseMoveEvent (QMouseEvent * e); 00036 ZoomFactor getZoom (); 00037 void setZoom (ZoomFactor); 00038 ScreenView (QWidget * parent = 0); 00039 public slots:void setZoomMode (); 00040 void grabMouse (QCursor); 00041 void setTopContainer(Container *); 00042 void paintEvent(QPaintEvent * e); 00043 }; 00044 #endif
1.3.6