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

bar.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 BAR_H
00011 #define BAR_H
00012 #include "meter.h"
00013 #include <qpixmap.h>
00014 #include <qstring.h>
00015 #include <qpainter.h>
00016 class Bar : public Meter
00017 {
00018 Q_OBJECT
00019 public:
00020     Bar( int ix,int iy,int iw,int ih );
00021     ~Bar();
00022 
00023     void mUpdate( QPainter * );
00024 
00025 
00026 public slots:
00027     void setImage( QString imagePath );
00028 
00029     void setValue( int );
00030     void setValue( QString );
00031 
00032     void setMax( int );
00033     void setMin( int );
00034 
00035     void setVertical( bool );
00036 
00037 
00038 private:
00039     int value;
00040     int maxValue;
00041     int minValue;
00042 
00043     int pixmapWidth;
00044     int pixmapHeight;
00045 
00046     bool vertical; // vertical bar?
00047 
00048     QPixmap pixmap;
00049 
00050 }
00051 ;
00052 #endif // BAR_H

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