summaryrefslogtreecommitdiffstats
path: root/kchart/kdchart/KDChartAxisParamsWrapper.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-20 01:29:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-20 01:29:50 +0000
commit8362bf63dea22bbf6736609b0f49c152f975eb63 (patch)
tree0eea3928e39e50fae91d4e68b21b1e6cbae25604 /kchart/kdchart/KDChartAxisParamsWrapper.h
downloadkoffice-8362bf63dea22bbf6736609b0f49c152f975eb63.tar.gz
koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.zip
Added old abandoned KDE3 version of koffice
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1077364 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kchart/kdchart/KDChartAxisParamsWrapper.h')
-rw-r--r--kchart/kdchart/KDChartAxisParamsWrapper.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/kchart/kdchart/KDChartAxisParamsWrapper.h b/kchart/kdchart/KDChartAxisParamsWrapper.h
new file mode 100644
index 000000000..de8dbcc3f
--- /dev/null
+++ b/kchart/kdchart/KDChartAxisParamsWrapper.h
@@ -0,0 +1,50 @@
+#ifndef KDCHARTAXISPARAMSWRAPPER_H
+#define KDCHARTAXISPARAMSWRAPPER_H
+#include <qobject.h>
+#include <KDChartEnums.h>
+#include <KDChartAxisParams.h>
+#include <qstringlist.h>
+#include <qvariant.h>
+class KDChartAxisParams;
+
+class KDChartAxisParamsWrapper :public QObject
+{
+ Q_OBJECT
+
+public:
+ KDChartAxisParamsWrapper( KDChartAxisParams* );
+
+public slots:
+ // These overload are only for convenience.
+ void setAxisValueStart( double axisValueStart );
+ void setAxisValueEnd( double axisValueEnd );
+ void setAxisValueStart( const QVariant axisValueStart );
+ void setAxisValueEnd( const QVariant axisValueEnd );
+
+public slots:
+ void setAxisValues( bool axisSteadyValueCalc = true,
+ QVariant axisValueStart = KDCHART_AXIS_LABELS_AUTO_LIMIT,
+ QVariant axisValueEnd = KDCHART_AXIS_LABELS_AUTO_LIMIT,
+ double axisValueDelta = KDCHART_AXIS_LABELS_AUTO_DELTA,
+ int axisDigitsBehindComma = KDCHART_AXIS_LABELS_AUTO_DIGITS,
+ int axisMaxEmptyInnerSpan = KDCHART_DONT_CHANGE_EMPTY_INNER_SPAN_NOW,
+ int takeLabelsFromDataRow = KDChartAxisParams::LabelsFromDataRowNo,
+ int labelTextsDataRow = 0,
+ const QVariant& axisLabelStringList = QVariant( QStringList() ),
+ const QVariant& axisShortLabelsStringList = QVariant( QStringList() ),
+ int axisValueLeaveOut = KDCHART_AXIS_LABELS_AUTO_LEAVEOUT,
+ int axisValueDeltaScale = KDChartAxisParams::ValueScaleNumerical );
+
+ void setAxisLabelStringLists( const QVariant& axisLabelStringList,
+ const QVariant& axisShortLabelStringList,
+ const QString& valueStart = QString::null,
+ const QString& valueEnd = QString::null );
+
+ void setAxisLabelTexts( const QVariant& axisLabelTexts );
+private:
+ KDChartAxisParams* _data;
+};
+
+
+#endif /* KDCHARTAXISPARAMSWRAPPER_H */
+