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

meter.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 METER_H
00011 #define METER_H
00012 
00013 #include <qpixmap.h>
00014 #include <qpainter.h>
00015 #include <qstring.h>
00016 #include <qstringlist.h>
00017 #include <qobject.h>
00018 
00019 #include <qfileinfo.h>
00020 class Meter : public QObject
00021 {
00022 Q_OBJECT
00023 public:
00024 
00025   Meter(int ix,int iy,int iw,int ih);
00026   Meter();
00027   virtual ~Meter();
00028   int getX();
00029   int getY();
00030   int getWidth();
00031   int getHeight();
00032 
00033   void setSize(int ix, int iy, int iw, int ih);
00034 
00035   virtual void setMax( int ){}
00036   virtual void setMin( int ){}
00037 
00038   void setThemePath( QString );
00039 
00040   virtual void mUpdate(QPainter *)=0 ;
00041 
00042   virtual void setValue(int){}
00043   virtual void setValue(QString){}
00044 
00045 
00046 protected: // Protected attributes
00047   int x;
00048   int y;
00049   int width;
00050   int height;
00051   QString themePath;
00052 
00053 
00054 };
00055 #endif // METER_H

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