23 #ifndef __KDCHARTWIDGET_H__
24 #define __KDCHARTWIDGET_H__
35 template <
typename T1,
typename T2>
struct QPair;
41 class AbstractDiagram;
43 class AbstractCoordinatePlane;
80 void setDataset(
int column,
const QVector< qreal > & data,
const QString& title = QString() );
85 void setDataCell(
int row,
int column, qreal data );
93 void setGlobalLeading(
int left,
int top,
int right,
int bottom );
95 void setGlobalLeadingLeft(
int leading );
97 void setGlobalLeadingTop(
int leading );
99 void setGlobalLeadingRight(
int leading );
101 void setGlobalLeadingBottom(
int leading );
105 int globalLeadingLeft()
const;
107 int globalLeadingTop()
const;
109 int globalLeadingRight()
const;
111 int globalLeadingBottom()
const;
119 void addHeaderFooter(
const QString& text,
164 void addLegend(
Position position );
166 void addLegend (
Legend* legend );
168 void replaceLegend(
Legend* legend,
Legend* oldLegend = 0 );
169 void takeLegend(
Legend* legend );
211 ChartType type()
const;
214 enum SubType { Normal, Stacked, Percent, Rows };
217 SubType subType()
const;
221 void setType( ChartType chartType, SubType subType=Normal );
232 void setSubType( SubType subType );
236 void justifyModelSize(
int rows,
int columns );
238 bool checkDatasetWidth(
int width );
242 #endif // KDChartWidget_H