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

graph.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 GRAPH_H
00011 #define GRAPH_H
00012 #include "meter.h"
00013 #include <qpainter.h>
00014 #include <qcolor.h>
00015 
00016 
00021 class Graph : public Meter
00022 {
00023 public:
00024   Graph( int ix,int iy,int iw,int ih,int nbrPoints);
00025   Graph();
00026   ~Graph();
00027 
00028   void setValue( int );
00029   void setValue( QString );
00030 
00031   void setMin( int );
00032   void setMax( int );
00033 
00034   void setColor(int, int, int);
00035   void mUpdate( QPainter * );
00036 
00037 private:
00038 int* values;
00039 int nbrPoints;
00040 int ptPtr;  // points to the array position
00041 int minValue;
00042 int maxValue;
00043 
00044 QColor color;
00045 
00046 }
00047 ;
00048 #endif // GRAPH_H

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