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/Painter.h" 00009 #include "../painter/Zoom.h" 00010 #include "View.h" 00011 #include "../graphical/Graphical.h" 00012 #include "PrintDevice.h" 00013 00014 00030 class ScreenView:public QWidget,public PagePrintDevice 00031 { 00032 Q_OBJECT 00033 Mode *mode; 00034 ZoomFactor zoom; 00035 Graphical *graphical; 00036 QPixmap *noteLayer; 00037 Painter * painter; 00038 public: 00039 Painter * getPainter(); 00040 void setMode (Mode *); 00041 QList < MusicSymbol > musicSymbols; 00042 void mouseReleaseEvent (QMouseEvent *); 00043 void mousePressEvent (QMouseEvent *); 00044 void mouseMoveEvent (QMouseEvent * e); 00045 ZoomFactor getZoom (); 00046 void setZoom (ZoomFactor); 00047 ScreenView (QWidget * parent = 0); 00048 public slots: 00049 void setZoomMode (); 00050 void grabMouse (QCursor); 00051 void setPageGrapher(Graphical *); 00052 void paintEvent(QPaintEvent * e); 00053 }; 00054 #endif
1.3.6