kchart

KChartParamsIface.h
1/* This file is part of the KDE libraries
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
21
22#ifndef KCHART_PARAMS_IFACE_H
23#define KCHART_PARAMS_IFACE_H
24
25#include <dcopobject.h>
26#include <dcopref.h>
27#include <tqstring.h>
28
29namespace KChart
30{
31
32class KChartParams;
33
34class KChartParamsIface : virtual public DCOPObject
35{
36 K_DCOP
37public:
38 KChartParamsIface( KChartParams *_params );
39
40k_dcop:
41 virtual TQString chartType()const;
42 virtual void setChartType( const TQString & );
43
44 //bar chart config
45 virtual bool threeDBars();
46 virtual void setThreeDBars( bool threeDBars );
47 virtual void setThreeDBarsShadowColors( bool shadow );
48 virtual bool threeDBarsShadowColors() const;
49 virtual void setThreeDBarAngle( uint angle );
50 virtual uint threeDBarAngle() const;
51 virtual void setThreeDBarDepth( double depth );
52 virtual double threeDBarDepth() const;
53 virtual TQString barChartSubType() const;
54 virtual void setBarChartSubType( const TQString & );
55
56 //line chart config
57 virtual bool lineMarker() const;
58 virtual void setLineMarker( bool );
59 virtual void setLineWidth( uint width );
60 virtual uint lineWidth() const;
61 virtual void setLineChartSubType( const TQString & );
62 virtual TQString lineChartSubType() const;
63 virtual bool threeDLines() const;
64 virtual void setThreeDLines(bool b);
65 virtual void setThreeDLineDepth( int depth );
66 virtual int threeDLineDepth() const;
67 virtual int threeDLineXRotation() const;
68 virtual void setThreeDLineXRotation( int degrees );
69 virtual void setThreeDLineYRotation( int degrees );
70 virtual int threeDLineYRotation() const;
71 virtual TQSize lineMarkerSize() const;
72 virtual void setLineMarkerSize( TQSize size );
73
74
75 //pie config
76 virtual bool threeDPies();
77 virtual void setThreeDPieHeight( int pixels );
78 virtual int threeDPieHeight();
79 virtual void setPieStart( int degrees );
80 virtual int pieStart();
81 virtual void setExplode( bool explode );
82 virtual bool explode() const;
83 virtual void setExplodeFactor( double factor );
84 virtual double explodeFactor() const;
85 virtual void setThreeDPies( bool threeDPies );
86
87 //area chart
88 virtual void setAreaChartSubType(const TQString &);
89 virtual TQString areaChartSubType() const;
90 virtual void setAreaLocation(const TQString & );
91 virtual TQString areaLocation() const;
92
93 //hilo chart
94 virtual void setHiLoChartSubType(const TQString &);
95 virtual TQString hiLoChartSubType() const;
96 virtual bool hiLoChartPrintHighValues() const;
97 virtual bool hiLoChartLowValuesUseFontRelSize() const;
98 virtual int hiLoChartLowValuesFontRelSize() const;
99 virtual bool hiLoChartPrintLowValues() const;
100 virtual int hiLoChartOpenValuesFontRelSize() const;
101 virtual bool hiLoChartPrintCloseValues() const;
102 virtual bool hiLoChartCloseValuesUseFontRelSize() const;
103 virtual int hiLoChartCloseValuesFontRelSize() const;
104
105
106 //polar chart
107 virtual void setPolarLineWidth( int width );
108 virtual int polarLineWidth() const;
109 virtual void setPolarZeroDegreePos( int degrees );
110 virtual int polarZeroDegreePos() const;
111 virtual void setPolarRotateCircularLabels( bool rotateCircularLabels );
112 virtual bool polarRotateCircularLabels() const;
113 virtual TQSize polarMarkerSize() const;
114 virtual void setPolarMarkerSize( TQSize size );
115
116 //ring chart
117 virtual int ringStart() const;
118 virtual void setRingStart( int degrees );
119
120
121 //legend
122 virtual void hideLegend();
123 virtual void setLegendPosition(const TQString &);
124 virtual TQString legendPostion() const;
125 virtual void setLegendTitleText( const TQString& text );
126 virtual void setLegendSpacing( uint space );
127 virtual uint legendSpacing();
128 //legend font
129 virtual void setLegendFontRelSize( int legendFontRelSize );
130 virtual int legendFontRelSize() const;
131 virtual void setLegendFontUseRelSize( bool legendFontUseRelSize );
132 virtual bool legendFontUseRelSize() const;
133 virtual void setLegendTitleFontUseRelSize( bool legendTitleFontUseRelSize );
134 virtual bool legendTitleFontUseRelSize() const;
135 virtual void setLegendTitleFontRelSize( int legendTitleFontRelSize );
136 virtual int legendTitleFontRelSize() const;
137
138
139 virtual bool showGrid();
140
141 virtual TQString header1Text() const;
142 virtual void setHeader1Text( const TQString& text );
143 virtual void setHeader2Text( const TQString& text );
144 virtual TQString header2Text() const;
145
146 virtual uint outlineDataLineWidth() const;
147 virtual void setOutlineDataLineWidth( uint width );
148
149 virtual void setThreeDShadowColors( bool shadow );
150 virtual bool threeDShadowColors();
151
152private:
153 KChartParams *params;
154
155};
156
157} //KChart namespace
158
159#endif