20#include "KChartParamsIface.h"
22#include "kchart_params.h"
24#include <dcopclient.h>
29KChartParamsIface::KChartParamsIface( KChartParams *params_ )
35TQString KChartParamsIface::chartType()
const
37 return params->chartTypeToString(params->chartType());
40void KChartParamsIface::setChartType(
const TQString &chart )
42 params->setChartType(params->stringToChartType( chart ));
45TQString KChartParamsIface::barChartSubType()
const
47 return params->barChartSubTypeToString(params->barChartSubType());
50void KChartParamsIface::setBarChartSubType(
const TQString &sub )
52 params->setBarChartSubType(params->stringToBarChartSubType( sub ));
55bool KChartParamsIface::threeDBars()
57 return params->threeDBars();
60void KChartParamsIface::setThreeDBars(
bool threeDBars )
62 params->setThreeDBars(threeDBars);
65void KChartParamsIface::setThreeDBarsShadowColors(
bool shadow )
67 params->setThreeDBarsShadowColors(shadow);
70bool KChartParamsIface::threeDBarsShadowColors()
const
72 return params->threeDBarsShadowColors();
75void KChartParamsIface::setThreeDBarAngle( uint angle )
77 params->setThreeDBarAngle(angle);
80uint KChartParamsIface::threeDBarAngle()
const
82 return params->threeDBarAngle();
85void KChartParamsIface::setThreeDBarDepth(
double depth )
87 params->setThreeDBarDepth(depth);
90double KChartParamsIface::threeDBarDepth()
const
92 return params->threeDBarDepth();
96bool KChartParamsIface::threeDPies()
98 return params->threeDPies();
101void KChartParamsIface::setThreeDPieHeight(
int pixels )
103 params->setThreeDPieHeight(pixels);
106int KChartParamsIface::threeDPieHeight()
108 return params->threeDPieHeight();
111void KChartParamsIface::setPieStart(
int degrees )
113 params->setPieStart(degrees);
116int KChartParamsIface::pieStart()
118 return params->pieStart();
121void KChartParamsIface::setExplode(
bool explode )
123 params->setExplode(explode);
126bool KChartParamsIface::explode()
const
128 return params->explode();
131void KChartParamsIface::setExplodeFactor(
double factor )
133 params->setExplodeFactor(factor);
136double KChartParamsIface::explodeFactor()
const
138 return params->explodeFactor();
141void KChartParamsIface::setThreeDPies(
bool threeDPies )
143 params->setThreeDPies(threeDPies);
146void KChartParamsIface::hideLegend()
148 params->setLegendPosition(KDChartParams::NoLegend);
151void KChartParamsIface::setLegendPosition(
const TQString & pos)
153 params->setLegendPosition(params->stringToLegendPosition(pos));
156TQString KChartParamsIface::legendPostion()
const
158 return params->legendPositionToString(params->legendPosition());
161void KChartParamsIface::setLegendTitleText(
const TQString& text )
163 params->setLegendTitleText( text );
166void KChartParamsIface::setLegendSpacing( uint space )
168 params->setLegendSpacing(space );
171void KChartParamsIface::setLegendFontRelSize(
int legendFontRelSize )
173 params->setLegendFontRelSize(legendFontRelSize);
176int KChartParamsIface::legendFontRelSize()
const
178 return params->legendFontRelSize();
181void KChartParamsIface::setLegendFontUseRelSize(
bool legendFontUseRelSize )
183 params->setLegendFontUseRelSize(legendFontUseRelSize);
186bool KChartParamsIface::legendFontUseRelSize()
const
188 return params->legendFontUseRelSize();
191void KChartParamsIface::setLegendTitleFontUseRelSize(
bool legendTitleFontUseRelSize )
193 params->setLegendTitleFontUseRelSize(legendTitleFontUseRelSize);
196bool KChartParamsIface::legendTitleFontUseRelSize()
const
198 return params->legendTitleFontUseRelSize();
201void KChartParamsIface::setLegendTitleFontRelSize(
int legendTitleFontRelSize )
203 params->setLegendTitleFontRelSize(legendTitleFontRelSize);
206int KChartParamsIface::legendTitleFontRelSize()
const
208 return params->legendTitleFontRelSize();
211uint KChartParamsIface::legendSpacing()
213 return params->legendSpacing();
216void KChartParamsIface::setLineChartSubType(
const TQString & sub)
218 params->setLineChartSubType(params->stringToLineChartSubType(sub));
221TQString KChartParamsIface::lineChartSubType()
const
223 return params->lineChartSubTypeToString(params->lineChartSubType());
227bool KChartParamsIface::lineMarker()
const
229 return params->lineMarker();
232void KChartParamsIface::setLineMarker(
bool b)
234 params->setLineMarker(b);
237void KChartParamsIface::setLineWidth( uint width )
239 params->setLineWidth( width );
242uint KChartParamsIface::lineWidth()
const
244 return params->lineWidth();
247bool KChartParamsIface::threeDLines()
const
249 return params->threeDLines();
252void KChartParamsIface::setThreeDLines(
bool b)
254 params->setThreeDLines(b);
257int KChartParamsIface::threeDLineDepth()
const
259 return params->threeDLineDepth();
262void KChartParamsIface::setThreeDLineDepth(
int depth )
264 params->setThreeDLineDepth( depth );
267int KChartParamsIface::threeDLineXRotation()
const
269 return params->threeDLineXRotation();
272void KChartParamsIface::setThreeDLineXRotation(
int degrees )
274 params->setThreeDLineXRotation( degrees );
277void KChartParamsIface::setThreeDLineYRotation(
int degrees )
279 params->setThreeDLineYRotation(degrees );
282int KChartParamsIface::threeDLineYRotation()
const
284 return params->threeDLineYRotation();
287TQSize KChartParamsIface::lineMarkerSize()
const
289 return params->lineMarkerSize();
292void KChartParamsIface::setLineMarkerSize( TQSize size )
294 params->setLineMarkerSize( size );
298bool KChartParamsIface::showGrid()
300 return params->showGrid();
303TQString KChartParamsIface::header1Text()
const
305 return params->header1Text();
308void KChartParamsIface::setHeader1Text(
const TQString& text )
310 params->setHeader1Text(text);
313void KChartParamsIface::setHeader2Text(
const TQString& text )
315 params->setHeader2Text(text);
318TQString KChartParamsIface::header2Text()
const
320 return params->header2Text();
324void KChartParamsIface::setOutlineDataLineWidth( uint width )
326 params->setOutlineDataLineWidth( width );
329uint KChartParamsIface::outlineDataLineWidth()
const
331 return params->outlineDataLineWidth();
334void KChartParamsIface::setAreaChartSubType(
const TQString &sub)
336 params->setAreaChartSubType(params->stringToAreaChartSubType(sub));
339TQString KChartParamsIface::areaChartSubType()
const
341 return params->areaChartSubTypeToString(params->areaChartSubType());
344void KChartParamsIface::setAreaLocation(
const TQString & loc)
346 params->setAreaLocation(params->stringToAreaLocation(loc));
349TQString KChartParamsIface::areaLocation()
const
351 return params->areaLocationToString( params->areaLocation());
354void KChartParamsIface::setHiLoChartSubType(
const TQString &sub)
356 params->setHiLoChartSubType(params->stringToHiLoChartSubType(sub));
359TQString KChartParamsIface::hiLoChartSubType()
const
361 return params->hiLoChartSubTypeToString(params->hiLoChartSubType());
364bool KChartParamsIface::hiLoChartPrintHighValues()
const
366 return params->hiLoChartPrintHighValues();
369bool KChartParamsIface::hiLoChartLowValuesUseFontRelSize()
const
371 return params->hiLoChartLowValuesUseFontRelSize();
374int KChartParamsIface::hiLoChartLowValuesFontRelSize()
const
376 return params->hiLoChartLowValuesFontRelSize();
379bool KChartParamsIface::hiLoChartPrintLowValues()
const
381 return params->hiLoChartPrintLowValues();
384int KChartParamsIface::hiLoChartOpenValuesFontRelSize()
const
386 return params->hiLoChartOpenValuesFontRelSize();
389bool KChartParamsIface::hiLoChartPrintCloseValues()
const
391 return params->hiLoChartPrintCloseValues();
394bool KChartParamsIface::hiLoChartCloseValuesUseFontRelSize()
const
396 return params->hiLoChartCloseValuesUseFontRelSize();
399int KChartParamsIface::hiLoChartCloseValuesFontRelSize()
const
401 return params->hiLoChartCloseValuesFontRelSize();
404void KChartParamsIface::setPolarLineWidth(
int width )
406 params->setPolarLineWidth( width );
409int KChartParamsIface::polarLineWidth()
const
411 return params->polarLineWidth();
414void KChartParamsIface::setPolarZeroDegreePos(
int degrees )
416 params->setPolarZeroDegreePos( degrees );
419int KChartParamsIface::polarZeroDegreePos()
const
421 return params->polarZeroDegreePos();
424void KChartParamsIface::setPolarRotateCircularLabels(
bool rotateCircularLabels )
426 params->setPolarRotateCircularLabels( rotateCircularLabels );
429bool KChartParamsIface::polarRotateCircularLabels()
const
431 return params->polarRotateCircularLabels();
434TQSize KChartParamsIface::polarMarkerSize()
const
436 return params->polarMarkerSize();
439void KChartParamsIface::setPolarMarkerSize( TQSize size )
441 params->setPolarMarkerSize(size);
444int KChartParamsIface::ringStart()
const
446 return params->ringStart();
449void KChartParamsIface::setRingStart(
int degrees )
451 params->setRingStart( degrees );
455void KChartParamsIface::setThreeDShadowColors(
bool shadow )
457 params->setThreeDShadowColors(shadow);
459bool KChartParamsIface::threeDShadowColors()
461 return params->threeDShadowColors();