kchart
KChartParamsIface.h
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2001, 2002, 2003, 2004 Laurent Montel <montel@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 * Boston, MA 02110-1301, USA. 00018 */ 00019 00020 00021 00022 #ifndef KCHART_PARAMS_IFACE_H 00023 #define KCHART_PARAMS_IFACE_H 00024 00025 #include <dcopobject.h> 00026 #include <dcopref.h> 00027 #include <qstring.h> 00028 00029 namespace KChart 00030 { 00031 00032 class KChartParams; 00033 00034 class KChartParamsIface : virtual public DCOPObject 00035 { 00036 K_DCOP 00037 public: 00038 KChartParamsIface( KChartParams *_params ); 00039 00040 k_dcop: 00041 virtual QString chartType()const; 00042 virtual void setChartType( const QString & ); 00043 00044 //bar chart config 00045 virtual bool threeDBars(); 00046 virtual void setThreeDBars( bool threeDBars ); 00047 virtual void setThreeDBarsShadowColors( bool shadow ); 00048 virtual bool threeDBarsShadowColors() const; 00049 virtual void setThreeDBarAngle( uint angle ); 00050 virtual uint threeDBarAngle() const; 00051 virtual void setThreeDBarDepth( double depth ); 00052 virtual double threeDBarDepth() const; 00053 virtual QString barChartSubType() const; 00054 virtual void setBarChartSubType( const QString & ); 00055 00056 //line chart config 00057 virtual bool lineMarker() const; 00058 virtual void setLineMarker( bool ); 00059 virtual void setLineWidth( uint width ); 00060 virtual uint lineWidth() const; 00061 virtual void setLineChartSubType( const QString & ); 00062 virtual QString lineChartSubType() const; 00063 virtual bool threeDLines() const; 00064 virtual void setThreeDLines(bool b); 00065 virtual void setThreeDLineDepth( int depth ); 00066 virtual int threeDLineDepth() const; 00067 virtual int threeDLineXRotation() const; 00068 virtual void setThreeDLineXRotation( int degrees ); 00069 virtual void setThreeDLineYRotation( int degrees ); 00070 virtual int threeDLineYRotation() const; 00071 virtual QSize lineMarkerSize() const; 00072 virtual void setLineMarkerSize( QSize size ); 00073 00074 00075 //pie config 00076 virtual bool threeDPies(); 00077 virtual void setThreeDPieHeight( int pixels ); 00078 virtual int threeDPieHeight(); 00079 virtual void setPieStart( int degrees ); 00080 virtual int pieStart(); 00081 virtual void setExplode( bool explode ); 00082 virtual bool explode() const; 00083 virtual void setExplodeFactor( double factor ); 00084 virtual double explodeFactor() const; 00085 virtual void setThreeDPies( bool threeDPies ); 00086 00087 //area chart 00088 virtual void setAreaChartSubType(const QString &); 00089 virtual QString areaChartSubType() const; 00090 virtual void setAreaLocation(const QString & ); 00091 virtual QString areaLocation() const; 00092 00093 //hilo chart 00094 virtual void setHiLoChartSubType(const QString &); 00095 virtual QString hiLoChartSubType() const; 00096 virtual bool hiLoChartPrintHighValues() const; 00097 virtual bool hiLoChartLowValuesUseFontRelSize() const; 00098 virtual int hiLoChartLowValuesFontRelSize() const; 00099 virtual bool hiLoChartPrintLowValues() const; 00100 virtual int hiLoChartOpenValuesFontRelSize() const; 00101 virtual bool hiLoChartPrintCloseValues() const; 00102 virtual bool hiLoChartCloseValuesUseFontRelSize() const; 00103 virtual int hiLoChartCloseValuesFontRelSize() const; 00104 00105 00106 //polar chart 00107 virtual void setPolarLineWidth( int width ); 00108 virtual int polarLineWidth() const; 00109 virtual void setPolarZeroDegreePos( int degrees ); 00110 virtual int polarZeroDegreePos() const; 00111 virtual void setPolarRotateCircularLabels( bool rotateCircularLabels ); 00112 virtual bool polarRotateCircularLabels() const; 00113 virtual QSize polarMarkerSize() const; 00114 virtual void setPolarMarkerSize( QSize size ); 00115 00116 //ring chart 00117 virtual int ringStart() const; 00118 virtual void setRingStart( int degrees ); 00119 00120 00121 //legend 00122 virtual void hideLegend(); 00123 virtual void setLegendPosition(const QString &); 00124 virtual QString legendPostion() const; 00125 virtual void setLegendTitleText( const QString& text ); 00126 virtual void setLegendSpacing( uint space ); 00127 virtual uint legendSpacing(); 00128 //legend font 00129 virtual void setLegendFontRelSize( int legendFontRelSize ); 00130 virtual int legendFontRelSize() const; 00131 virtual void setLegendFontUseRelSize( bool legendFontUseRelSize ); 00132 virtual bool legendFontUseRelSize() const; 00133 virtual void setLegendTitleFontUseRelSize( bool legendTitleFontUseRelSize ); 00134 virtual bool legendTitleFontUseRelSize() const; 00135 virtual void setLegendTitleFontRelSize( int legendTitleFontRelSize ); 00136 virtual int legendTitleFontRelSize() const; 00137 00138 00139 virtual bool showGrid(); 00140 00141 virtual QString header1Text() const; 00142 virtual void setHeader1Text( const QString& text ); 00143 virtual void setHeader2Text( const QString& text ); 00144 virtual QString header2Text() const; 00145 00146 virtual uint outlineDataLineWidth() const; 00147 virtual void setOutlineDataLineWidth( uint width ); 00148 00149 virtual void setThreeDShadowColors( bool shadow ); 00150 virtual bool threeDShadowColors(); 00151 00152 private: 00153 KChartParams *params; 00154 00155 }; 00156 00157 } //KChart namespace 00158 00159 #endif