Main Page   Class Hierarchy   Alphabetical List   Compound List   File List  

textlabel.h

00001 /***************************************************************************
00002  *   Copyright (C) 2003 by Hans Karlsson                                   *
00003  *   karlsson.h@home.se                                                      *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
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     QString str;
00064 }
00065 ;
00066 #endif // TEXTLABEL_H

Generated on Tue May 6 09:52:09 2003 for karamba by doxygen1.2.18