00001 #ifndef DIRECTPAINTER_H
00002 #define DIRECTPAINTER_H
00003 #include <qpainter.h>
00004 #include "Zoom.h"
00005 #include <qfont.h>
00011 class DirectPainter:public Painter,QPainter
00012 {
00013 float previousWidth;
00014 float previousY;
00015 FTFont *ff;
00016 ZoomFactor screenZoom;
00017 ZoomFactor realZoom;
00018 public:
00019
00020 void setFont (QFont);
00021 DirectPainter(QPaintDevice *);
00022 void drawFTSymbol (int nglyph, float xpos, float ypos);
00023 void drawFTSymbolEnc (unsigned long code, float xpos, float ypos,int);
00024 void drawText (int, int, QString);
00025 float getPreviousWidth ();
00026 void drawNoteLine (float xpos, float ypos, int height);
00027 void drawLine (float, float, float, float);
00028 void drawRect (QCoordsRect);
00029 void drawRect (double, double, double, double);
00030 void drawRect (int, int, int, int);
00031 void drawEllipse (float, float, float, float);
00032 void setBrush(const QColor&);
00033 void setPen(Qt::PenStyle);
00034 void setPen(const QColor&);
00035 void drawStemBar (double, double, double, double);
00036 void end();
00037 void setZoom(ZoomFactor);
00038 void begin();
00039 void setPenColor(const QColor&);
00040 void drawLine (int, int, int, int);
00041 float getPreviousY ();
00042 };
00043 #endif