kchart

KDChartAxisParamsWrapper.h
1#ifndef KDCHARTAXISPARAMSWRAPPER_H
2#define KDCHARTAXISPARAMSWRAPPER_H
3#include <tqobject.h>
4#include <KDChartEnums.h>
5#include <KDChartAxisParams.h>
6#include <tqstringlist.h>
7#include <tqvariant.h>
9
10class KDChartAxisParamsWrapper :public TQObject
11{
12 TQ_OBJECT
13
14
15public:
16 KDChartAxisParamsWrapper( KDChartAxisParams* );
17
18public slots:
19 // These overload are only for convenience.
20 void setAxisValueStart( double axisValueStart );
21 void setAxisValueEnd( double axisValueEnd );
22 void setAxisValueStart( const TQVariant axisValueStart );
23 void setAxisValueEnd( const TQVariant axisValueEnd );
24
25public slots:
26 void setAxisValues( bool axisSteadyValueCalc = true,
27 TQVariant axisValueStart = KDCHART_AXIS_LABELS_AUTO_LIMIT,
28 TQVariant axisValueEnd = KDCHART_AXIS_LABELS_AUTO_LIMIT,
29 double axisValueDelta = KDCHART_AXIS_LABELS_AUTO_DELTA,
30 int axisDigitsBehindComma = KDCHART_AXIS_LABELS_AUTO_DIGITS,
31 int axisMaxEmptyInnerSpan = KDCHART_DONT_CHANGE_EMPTY_INNER_SPAN_NOW,
32 int takeLabelsFromDataRow = KDChartAxisParams::LabelsFromDataRowNo,
33 int labelTextsDataRow = 0,
34 const TQVariant& axisLabelStringList = TQVariant( TQStringList() ),
35 const TQVariant& axisShortLabelsStringList = TQVariant( TQStringList() ),
36 int axisValueLeaveOut = KDCHART_AXIS_LABELS_AUTO_LEAVEOUT,
37 int axisValueDeltaScale = KDChartAxisParams::ValueScaleNumerical );
38
39 void setAxisLabelStringLists( const TQVariant& axisLabelStringList,
40 const TQVariant& axisShortLabelStringList,
41 const TQString& valueStart = TQString(),
42 const TQString& valueEnd = TQString() );
43
44 void setAxisLabelTexts( const TQVariant& axisLabelTexts );
45private:
46 KDChartAxisParams* _data;
47};
48
49
50#endif /* KDCHARTAXISPARAMSWRAPPER_H */
51
Provide access to the chart axis parameters.
#define KDCHART_AXIS_LABELS_AUTO_LIMIT
Use this to specify that the axis label limits are to be calculated automatically.
#define KDCHART_AXIS_LABELS_AUTO_DELTA
Use this to specify that the step-width from one label to the other shall be calculated automatically...
#define KDCHART_DONT_CHANGE_EMPTY_INNER_SPAN_NOW
Use this to prevent setAxisValues from changing the current setting of _axisMaxEmptyInnerSpan.
#define KDCHART_AXIS_LABELS_AUTO_LEAVEOUT
Use this to specify that an automatically computed amount of axis labels are to be skipped if there i...
#define KDCHART_AXIS_LABELS_AUTO_DIGITS
Use this to specify that the number of digits to be shown on the axis labels behind the comma is to b...
Definition of global enums.
access the chart axis parameters.