summaryrefslogtreecommitdiff
path: root/noncore/apps/checkbook/graph.h
Unidiff
Diffstat (limited to 'noncore/apps/checkbook/graph.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/checkbook/graph.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/noncore/apps/checkbook/graph.h b/noncore/apps/checkbook/graph.h
index 7379be7..40b23cd 100644
--- a/noncore/apps/checkbook/graph.h
+++ b/noncore/apps/checkbook/graph.h
@@ -24,40 +24,41 @@
24 59 Temple Place - Suite 330, 24 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 25 Boston, MA 02111-1307, USA.
26 26
27*/ 27*/
28 28
29#ifndef GRAPH_H 29#ifndef GRAPH_H
30#define GRAPH_H 30#define GRAPH_H
31 31
32#include <qpixmap.h> 32#include <qpixmap.h>
33#include <qwidget.h> 33#include <qwidget.h>
34 34
35class GraphInfo; 35class GraphInfo;
36class QPainter;
36 37
37class Graph : public QWidget 38class Graph : public QWidget
38{ 39{
39 Q_OBJECT 40 Q_OBJECT
40 41
41 public: 42 public:
42 Graph( QWidget * = 0x0, GraphInfo * = 0x0, const QString & = 0x0, int = 0 ); 43 Graph( QWidget * = 0x0, GraphInfo * = 0x0, const QString & = 0x0, int = 0 );
43 44
44 void setGraphInfo( GraphInfo * ); 45 void setGraphInfo( GraphInfo * );
45 46
46 void drawGraph( bool = FALSE ); 47 void drawGraph( bool = FALSE );
47 48
48 protected: 49 protected:
49 void paintEvent( QPaintEvent * ); 50 void paintEvent( QPaintEvent * );
50 void resizeEvent( QResizeEvent * ); 51 void resizeEvent( QResizeEvent * );
51 52
52 private: 53 private:
53 GraphInfo *data; 54 GraphInfo *data;
54 55
55 QPixmap graph; 56 QPixmap graph;
56 57
57 void initGraph(); 58 void initGraph();
58 void drawBarChart(); 59 void drawBarChart( int, int, float );
59 void drawLineChart(); 60 void drawLineChart( int, int, float );
60 void drawPieChart(); 61 void drawPieChart( int, int, float );
61}; 62};
62 63
63#endif 64#endif