00001 #ifndef QPAINTERZOOM_H
00002 #define QPAINTERZOOM_H
00003 #include <qpainter.h>
00004 #include "Zoom.h"
00005 #include <qfont.h>
00006
00012 class QPainterZoom:public Painter
00013 {
00014 QPainter * painter;
00015 QPaintDevice *paintDevice;
00016 float previousWidth;
00017 float previousY;
00021 FTFont *ftcurrent;
00022 FTFont *fughetta;
00023 FTFont *times;
00024
00025 ZoomFactor zoom;
00026 int resX,effectiveResX;
00027 int resY,effectiveResY;
00028 int textFlag;
00029 public:
00033 void setFont (QFont);
00034 void setFontSize (double);
00035 void setFontFamily (int);
00036 void setTextAlign(int);
00037
00038
00039
00040 void setFTFont(int);
00041 QPainterZoom (QPaintDevice *);
00042 void drawFTSymbol (int nglyph, float xpos, float ypos);
00043 void drawFTSymbolEnc (unsigned long code, float xpos, float ypos,int enc);
00044
00045 void drawText (double, double, QString);
00046 void drawNoteLine (float xpos, float ypos, int height);
00047 void drawLine (double, double,double,double);
00048 void drawRect (QCoordsRect);
00049 QCoordsRect getBoundingBox (int nglyph);
00050 void setFTSize(int);
00051 void drawRect (double, double, double, double);
00052 void drawRect (int, int, int, int);
00053 void drawStemBar (double, double, double, double);
00054 void drawSlur(double,double,double,double,int);
00055 void drawBrace(double,double,double);
00056 void drawEllipse (float, float, float, float);
00057 void drawEllipse (int, int, int, int);
00058 void end();
00059 void setZoom(ZoomFactor);
00060 void begin();
00061 void setRes(int, int);
00062 void setPenColor(const QColor&);
00063 void setPen(const QColor&);
00064 void setPen(Qt::PenStyle );
00065 void setBrush(const QColor&);
00066 void setBrush(Qt::BrushStyle );
00067 void drawLine (int, int, int, int);
00068 };
00069 #endif