kchart
KDChart.hGo to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef __KDCHART_H__
00030 #define __KDCHART_H__
00031
00032 #ifdef QSA
00033 #include <qsproject.h>
00034 #endif // QSA
00035
00036 #include "KDChartGlobal.h"
00037 #include "KDChartTable.h"
00038 #include "KDChartUnknownTypeException.h"
00039 #include "KDChartParams.h"
00040 #include "KDChartDataRegion.h"
00041
00050 class KDChartPainter;
00051 class QPainter;
00052 class QSInterpreter;
00053
00054
00055 class KDCHART_EXPORT KDChart
00056 {
00057 friend void cleanupPainter();
00058
00059 public:
00060 static bool setupGeometry( QPainter* painter,
00061 KDChartParams* params,
00062 KDChartTableDataBase* data,
00063 const QRect& drawRect );
00064
00065 static bool painterToDrawRect( QPainter* painter, QRect& drawRect );
00066
00067 static void paint( QPainter*, KDChartParams*, KDChartTableDataBase*,
00068 KDChartDataRegionList* regions = 0,
00069 const QRect* rect = 0,
00070 bool mustCalculateGeometry = true );
00071
00072 static void print( QPainter*, KDChartParams*, KDChartTableDataBase*,
00073 KDChartDataRegionList* regions = 0,
00074 const QRect* rect = 0,
00075 bool mustCalculateGeometry = true );
00076
00077 #ifdef QSA
00078 static void initInterpreter( QSInterpreter* );
00079 static void initProject( QSProject* );
00080 #endif
00081
00082 private:
00083 KDChart();
00084
00085 static KDChartParams* oldParams;
00086 static KDChartPainter* cpainter;
00087 static KDChartPainter* cpainter2;
00088 static KDChartParams::ChartType cpainterType;
00089 static KDChartParams::ChartType cpainterType2;
00090
00091 #ifdef QSA
00092 static QString globals();
00093 static void privateInitInterpreter( QSInterpreter* interpreter );
00094 #endif
00095 };
00096
00097 #endif
|