Main Page   Class Hierarchy   Alphabetical List   Compound List   File List  

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

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