summaryrefslogtreecommitdiffstats
path: root/kchart/kdchart/KDChartAxisParamsWrapper.cpp
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.cpp
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.cpp')
-rw-r--r--kchart/kdchart/KDChartAxisParamsWrapper.cpp73
1 files changed, 73 insertions, 0 deletions
diff --git a/kchart/kdchart/KDChartAxisParamsWrapper.cpp b/kchart/kdchart/KDChartAxisParamsWrapper.cpp
new file mode 100644
index 00000000..5250a713
--- /dev/null
+++ b/kchart/kdchart/KDChartAxisParamsWrapper.cpp
@@ -0,0 +1,73 @@
+#include "KDChartAxisParamsWrapper.h"
+#include <KDChartAxisParams.h>
+
+KDChartAxisParamsWrapper::KDChartAxisParamsWrapper( KDChartAxisParams* data ) :QObject(0), _data(data)
+{
+}
+
+void KDChartAxisParamsWrapper::setAxisValueStart( double axisValueStart )
+{
+ _data->setAxisValueStart( axisValueStart );
+}
+
+void KDChartAxisParamsWrapper::setAxisValueEnd( double axisValueEnd )
+{
+ _data->setAxisValueEnd( axisValueEnd);
+}
+
+void KDChartAxisParamsWrapper::setAxisValueStart( const QVariant axisValueStart )
+{
+ _data->setAxisValueStart( axisValueStart );
+}
+
+void KDChartAxisParamsWrapper::setAxisValueEnd( const QVariant axisValueEnd )
+{
+ _data->setAxisValueEnd( axisValueEnd );
+}
+
+void KDChartAxisParamsWrapper::setAxisValues( bool axisSteadyValueCalc,
+ QVariant axisValueStart,
+ QVariant axisValueEnd,
+ double axisValueDelta,
+ int axisDigitsBehindComma,
+ int axisMaxEmptyInnerSpan,
+ int takeLabelsFromDataRow,
+ int labelTextsDataRow,
+ const QVariant& axisLabelStringList,
+ const QVariant& axisShortLabelsStringList,
+ int axisValueLeaveOut,
+ int axisValueDeltaScale )
+{
+ QStringList l1 = axisLabelStringList.toStringList();
+ QStringList l2 = axisShortLabelsStringList.toStringList();
+ _data->setAxisValues( axisSteadyValueCalc,
+ axisValueStart,
+ axisValueEnd,
+ axisValueDelta,
+ axisDigitsBehindComma,
+ axisMaxEmptyInnerSpan,
+ (KDChartAxisParams::LabelsFromDataRow) takeLabelsFromDataRow,
+ labelTextsDataRow,
+ &l1,
+ &l2,
+ axisValueLeaveOut,
+ (KDChartAxisParams::ValueScale) axisValueDeltaScale );
+}
+
+void KDChartAxisParamsWrapper::setAxisLabelStringLists( const QVariant& axisLabelStringList,
+ const QVariant& axisShortLabelStringList,
+ const QString& valueStart,
+ const QString& valueEnd )
+{
+ QStringList l1 = axisLabelStringList.toStringList();
+ QStringList l2 = axisShortLabelStringList.toStringList();
+ _data->setAxisLabelStringLists( &l1, &l2, valueStart, valueEnd );
+}
+
+void KDChartAxisParamsWrapper::setAxisLabelTexts( const QVariant& axisLabelTexts )
+{
+ QStringList l = axisLabelTexts.toStringList();
+ _data->setAxisLabelTexts( &l );
+}
+
+#include "KDChartAxisParamsWrapper.moc"