00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef TEXTLABEL_H
00011 #define TEXTLABEL_H
00012 #include "meter.h"
00013 #include <qstring.h>
00014 #include <qpainter.h>
00015 #include <qcolor.h>
00016 #include <qfont.h>
00017 #include <qfontmetrics.h>
00018 #include <qstringlist.h>
00019 #include <qrect.h>
00020 class TextLabel : public Meter
00021 {
00022 public:
00023 TextLabel( int x,int y,int w,int h);
00024 TextLabel();
00025 ~TextLabel();
00026
00027 void setValue( QString );
00028 void setValue( int );
00029 void setFontSize( int );
00030 void setMove( int );
00031 void setMaxMove( int );
00032 void setColor( int, int, int );
00033 void setBGColor( int, int, int);
00034 void setFont( QString );
00035 void setAlignment( QString );
00036 void setFixedPitch( bool );
00037 void setShadow( int );
00038 void mUpdate( QPainter * );
00039
00040 int getFontSize() const;
00041 QColor getColor() const;
00042 QColor getBGColor() const;
00043 QString getFont() const;
00044 QString getAlignment() const;
00045 bool getFixedPitch() const;
00046 int getShadow() const;
00047 int getMove() const;
00048 int getMaxMove() const;
00049
00050
00051 private:
00052 int alignment;
00053 int clip;
00054 QStringList value;
00055 QFont font;
00056 QColor color;
00057 QColor bgColor;
00058 int lineHeight;
00059 int shadow;
00060 int position;
00061 int move;
00062 int maxmove;
00063 }
00064 ;
00065 #endif // TEXTLABEL_H