Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

textlabel.h

Go to the documentation of this file.
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 
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 
00021 #include "karamba.h"
00022 #include "meter.h"
00023 class karamba;
00024 
00030 class TextLabel : public Meter
00031 {
00032 public:
00033     TextLabel( int x,int y,int w,int h);
00034     TextLabel();
00035     ~TextLabel();
00036 
00037     void setValue( QString );
00038     void setValue( int );
00039     void setFontSize( int );
00040     void setMove( int );
00041     void setMaxMove( int );
00042     void setColor( int, int, int );
00043     void setBGColor( int, int, int);
00044     void setFont( QString );
00045     void setAlignment( QString );
00046     void setFixedPitch( bool );
00047     void setShadow( int );
00048     void mUpdate( QPainter * );
00049     void setKaramba(karamba*);
00050 
00051     int getFontSize() const;
00052     QColor getColor() const;
00053     QColor getBGColor() const;
00054     QString getFont() const;
00055     QString getAlignment() const;
00056     bool getFixedPitch() const;
00057     int getShadow() const;
00058     int getMove() const;
00059     int getMaxMove() const;
00060 
00061 
00062 private:
00063     int alignment;
00064     int clip;
00065     QStringList value;
00066     QFont font;
00067     QColor color;
00068     QColor bgColor;
00069     int lineHeight;
00070     int shadow;
00071     int position;
00072     int move;
00073     int mm;
00074     int maxmove;
00075     int len;
00076     int strsize;
00077     int strlen;
00078     QString str;
00079     karamba* myKaramba;
00080 }
00081 ;
00082 #endif // TEXTLABEL_H

Generated on Mon May 16 13:59:20 2005 for karamba by  doxygen 1.3.9.1