kchart

KChartParamsIface.cpp
1/* This file is part of the KDE project
2 Copyright (C) 2001,2002,2003,2004 Laurent Montel <montel@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#include "KChartParamsIface.h"
21
22#include "kchart_params.h"
23
24#include <dcopclient.h>
25
26namespace KChart
27{
28
29KChartParamsIface::KChartParamsIface( KChartParams *params_ )
30 : DCOPObject()
31{
32 params = params_;
33}
34
35TQString KChartParamsIface::chartType()const
36{
37 return params->chartTypeToString(params->chartType());
38}
39
40void KChartParamsIface::setChartType( const TQString &chart )
41{
42 params->setChartType(params->stringToChartType( chart ));
43}
44
45TQString KChartParamsIface::barChartSubType() const
46{
47 return params->barChartSubTypeToString(params->barChartSubType());
48}
49
50void KChartParamsIface::setBarChartSubType( const TQString &sub )
51{
52 params->setBarChartSubType(params->stringToBarChartSubType( sub ));
53}
54
55bool KChartParamsIface::threeDBars()
56{
57 return params->threeDBars();
58}
59
60void KChartParamsIface::setThreeDBars( bool threeDBars )
61{
62 params->setThreeDBars(threeDBars);
63}
64
65void KChartParamsIface::setThreeDBarsShadowColors( bool shadow )
66{
67 params->setThreeDBarsShadowColors(shadow);
68}
69
70bool KChartParamsIface::threeDBarsShadowColors() const
71{
72 return params->threeDBarsShadowColors();
73}
74
75void KChartParamsIface::setThreeDBarAngle( uint angle )
76{
77 params->setThreeDBarAngle(angle);
78}
79
80uint KChartParamsIface::threeDBarAngle() const
81{
82 return params->threeDBarAngle();
83}
84
85void KChartParamsIface::setThreeDBarDepth( double depth )
86{
87 params->setThreeDBarDepth(depth);
88}
89
90double KChartParamsIface::threeDBarDepth() const
91{
92 return params->threeDBarDepth();
93}
94
95
96bool KChartParamsIface::threeDPies()
97{
98 return params->threeDPies();
99}
100
101void KChartParamsIface::setThreeDPieHeight( int pixels )
102{
103 params->setThreeDPieHeight(pixels);
104}
105
106int KChartParamsIface::threeDPieHeight()
107{
108 return params->threeDPieHeight();
109}
110
111void KChartParamsIface::setPieStart( int degrees )
112{
113 params->setPieStart(degrees);
114}
115
116int KChartParamsIface::pieStart()
117{
118 return params->pieStart();
119}
120
121void KChartParamsIface::setExplode( bool explode )
122{
123 params->setExplode(explode);
124}
125
126bool KChartParamsIface::explode() const
127{
128 return params->explode();
129}
130
131void KChartParamsIface::setExplodeFactor( double factor )
132{
133 params->setExplodeFactor(factor);
134}
135
136double KChartParamsIface::explodeFactor() const
137{
138 return params->explodeFactor();
139}
140
141void KChartParamsIface::setThreeDPies( bool threeDPies )
142{
143 params->setThreeDPies(threeDPies);
144}
145
146void KChartParamsIface::hideLegend()
147{
148 params->setLegendPosition(KDChartParams::NoLegend);
149}
150
151void KChartParamsIface::setLegendPosition(const TQString & pos)
152{
153 params->setLegendPosition(params->stringToLegendPosition(pos));
154}
155
156TQString KChartParamsIface::legendPostion() const
157{
158 return params->legendPositionToString(params->legendPosition());
159}
160
161void KChartParamsIface::setLegendTitleText( const TQString& text )
162{
163 params->setLegendTitleText( text );
164}
165
166void KChartParamsIface::setLegendSpacing( uint space )
167{
168 params->setLegendSpacing(space );
169}
170
171void KChartParamsIface::setLegendFontRelSize( int legendFontRelSize )
172{
173 params->setLegendFontRelSize(legendFontRelSize);
174}
175
176int KChartParamsIface::legendFontRelSize() const
177{
178 return params->legendFontRelSize();
179}
180
181void KChartParamsIface::setLegendFontUseRelSize( bool legendFontUseRelSize )
182{
183 params->setLegendFontUseRelSize(legendFontUseRelSize);
184}
185
186bool KChartParamsIface::legendFontUseRelSize() const
187{
188 return params->legendFontUseRelSize();
189}
190
191void KChartParamsIface::setLegendTitleFontUseRelSize( bool legendTitleFontUseRelSize )
192{
193 params->setLegendTitleFontUseRelSize(legendTitleFontUseRelSize);
194}
195
196bool KChartParamsIface::legendTitleFontUseRelSize() const
197{
198 return params->legendTitleFontUseRelSize();
199}
200
201void KChartParamsIface::setLegendTitleFontRelSize( int legendTitleFontRelSize )
202{
203 params->setLegendTitleFontRelSize(legendTitleFontRelSize);
204}
205
206int KChartParamsIface::legendTitleFontRelSize() const
207{
208 return params->legendTitleFontRelSize();
209}
210
211uint KChartParamsIface::legendSpacing()
212{
213 return params->legendSpacing();
214}
215
216void KChartParamsIface::setLineChartSubType( const TQString & sub)
217{
218 params->setLineChartSubType(params->stringToLineChartSubType(sub));
219}
220
221TQString KChartParamsIface::lineChartSubType() const
222{
223 return params->lineChartSubTypeToString(params->lineChartSubType());
224}
225
226
227bool KChartParamsIface::lineMarker() const
228{
229 return params->lineMarker();
230}
231
232void KChartParamsIface::setLineMarker( bool b)
233{
234 params->setLineMarker(b);
235}
236
237void KChartParamsIface::setLineWidth( uint width )
238{
239 params->setLineWidth( width );
240}
241
242uint KChartParamsIface::lineWidth() const
243{
244 return params->lineWidth();
245}
246
247bool KChartParamsIface::threeDLines() const
248{
249 return params->threeDLines();
250}
251
252void KChartParamsIface::setThreeDLines(bool b)
253{
254 params->setThreeDLines(b);
255}
256
257int KChartParamsIface::threeDLineDepth() const
258{
259 return params->threeDLineDepth();
260}
261
262void KChartParamsIface::setThreeDLineDepth( int depth )
263{
264 params->setThreeDLineDepth( depth );
265}
266
267int KChartParamsIface::threeDLineXRotation() const
268{
269 return params->threeDLineXRotation();
270}
271
272void KChartParamsIface::setThreeDLineXRotation( int degrees )
273{
274 params->setThreeDLineXRotation( degrees );
275}
276
277void KChartParamsIface::setThreeDLineYRotation( int degrees )
278{
279 params->setThreeDLineYRotation(degrees );
280}
281
282int KChartParamsIface::threeDLineYRotation() const
283{
284 return params->threeDLineYRotation();
285}
286
287TQSize KChartParamsIface::lineMarkerSize() const
288{
289 return params->lineMarkerSize();
290}
291
292void KChartParamsIface::setLineMarkerSize( TQSize size )
293{
294 params->setLineMarkerSize( size );
295}
296
297
298bool KChartParamsIface::showGrid()
299{
300 return params->showGrid();
301}
302
303TQString KChartParamsIface::header1Text() const
304{
305 return params->header1Text();
306}
307
308void KChartParamsIface::setHeader1Text( const TQString& text )
309{
310 params->setHeader1Text(text);
311}
312
313void KChartParamsIface::setHeader2Text( const TQString& text )
314{
315 params->setHeader2Text(text);
316}
317
318TQString KChartParamsIface::header2Text() const
319{
320 return params->header2Text();
321}
322
323
324void KChartParamsIface::setOutlineDataLineWidth( uint width )
325{
326 params->setOutlineDataLineWidth( width );
327}
328
329uint KChartParamsIface::outlineDataLineWidth() const
330{
331 return params->outlineDataLineWidth();
332}
333
334void KChartParamsIface::setAreaChartSubType(const TQString &sub)
335{
336 params->setAreaChartSubType(params->stringToAreaChartSubType(sub));
337}
338
339TQString KChartParamsIface::areaChartSubType() const
340{
341 return params->areaChartSubTypeToString(params->areaChartSubType());
342}
343
344void KChartParamsIface::setAreaLocation(const TQString & loc)
345{
346 params->setAreaLocation(params->stringToAreaLocation(loc));
347}
348
349TQString KChartParamsIface::areaLocation() const
350{
351 return params->areaLocationToString( params->areaLocation());
352}
353
354void KChartParamsIface::setHiLoChartSubType(const TQString &sub)
355{
356 params->setHiLoChartSubType(params->stringToHiLoChartSubType(sub));
357}
358
359TQString KChartParamsIface::hiLoChartSubType() const
360{
361 return params->hiLoChartSubTypeToString(params->hiLoChartSubType());
362}
363
364bool KChartParamsIface::hiLoChartPrintHighValues() const
365{
366 return params->hiLoChartPrintHighValues();
367}
368
369bool KChartParamsIface::hiLoChartLowValuesUseFontRelSize() const
370{
371 return params->hiLoChartLowValuesUseFontRelSize();
372}
373
374int KChartParamsIface::hiLoChartLowValuesFontRelSize() const
375{
376 return params->hiLoChartLowValuesFontRelSize();
377}
378
379bool KChartParamsIface::hiLoChartPrintLowValues() const
380{
381 return params->hiLoChartPrintLowValues();
382}
383
384int KChartParamsIface::hiLoChartOpenValuesFontRelSize() const
385{
386 return params->hiLoChartOpenValuesFontRelSize();
387}
388
389bool KChartParamsIface::hiLoChartPrintCloseValues() const
390{
391 return params->hiLoChartPrintCloseValues();
392}
393
394bool KChartParamsIface::hiLoChartCloseValuesUseFontRelSize() const
395{
396 return params->hiLoChartCloseValuesUseFontRelSize();
397}
398
399int KChartParamsIface::hiLoChartCloseValuesFontRelSize() const
400{
401 return params->hiLoChartCloseValuesFontRelSize();
402}
403
404void KChartParamsIface::setPolarLineWidth( int width )
405{
406 params->setPolarLineWidth( width );
407}
408
409int KChartParamsIface::polarLineWidth() const
410{
411 return params->polarLineWidth();
412}
413
414void KChartParamsIface::setPolarZeroDegreePos( int degrees )
415{
416 params->setPolarZeroDegreePos( degrees );
417}
418
419int KChartParamsIface::polarZeroDegreePos() const
420{
421 return params->polarZeroDegreePos();
422}
423
424void KChartParamsIface::setPolarRotateCircularLabels( bool rotateCircularLabels )
425{
426 params->setPolarRotateCircularLabels( rotateCircularLabels );
427}
428
429bool KChartParamsIface::polarRotateCircularLabels() const
430{
431 return params->polarRotateCircularLabels();
432}
433
434TQSize KChartParamsIface::polarMarkerSize() const
435{
436 return params->polarMarkerSize();
437}
438
439void KChartParamsIface::setPolarMarkerSize( TQSize size )
440{
441 params->setPolarMarkerSize(size);
442}
443
444int KChartParamsIface::ringStart() const
445{
446 return params->ringStart();
447}
448
449void KChartParamsIface::setRingStart( int degrees )
450{
451 params->setRingStart( degrees );
452}
453
454
455void KChartParamsIface::setThreeDShadowColors( bool shadow )
456{
457 params->setThreeDShadowColors(shadow);
458}
459bool KChartParamsIface::threeDShadowColors()
460{
461 return params->threeDShadowColors();
462}
463
464} //KChart namespace