kchart
KChartParamsIface.cc
00001 /* This file is part of the KDE project 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 #include "KChartParamsIface.h" 00021 00022 #include "kchart_params.h" 00023 00024 #include <dcopclient.h> 00025 00026 namespace KChart 00027 { 00028 00029 KChartParamsIface::KChartParamsIface( KChartParams *params_ ) 00030 : DCOPObject() 00031 { 00032 params = params_; 00033 } 00034 00035 QString KChartParamsIface::chartType()const 00036 { 00037 return params->chartTypeToString(params->chartType()); 00038 } 00039 00040 void KChartParamsIface::setChartType( const QString &chart ) 00041 { 00042 params->setChartType(params->stringToChartType( chart )); 00043 } 00044 00045 QString KChartParamsIface::barChartSubType() const 00046 { 00047 return params->barChartSubTypeToString(params->barChartSubType()); 00048 } 00049 00050 void KChartParamsIface::setBarChartSubType( const QString &sub ) 00051 { 00052 params->setBarChartSubType(params->stringToBarChartSubType( sub )); 00053 } 00054 00055 bool KChartParamsIface::threeDBars() 00056 { 00057 return params->threeDBars(); 00058 } 00059 00060 void KChartParamsIface::setThreeDBars( bool threeDBars ) 00061 { 00062 params->setThreeDBars(threeDBars); 00063 } 00064 00065 void KChartParamsIface::setThreeDBarsShadowColors( bool shadow ) 00066 { 00067 params->setThreeDBarsShadowColors(shadow); 00068 } 00069 00070 bool KChartParamsIface::threeDBarsShadowColors() const 00071 { 00072 return params->threeDBarsShadowColors(); 00073 } 00074 00075 void KChartParamsIface::setThreeDBarAngle( uint angle ) 00076 { 00077 params->setThreeDBarAngle(angle); 00078 } 00079 00080 uint KChartParamsIface::threeDBarAngle() const 00081 { 00082 return params->threeDBarAngle(); 00083 } 00084 00085 void KChartParamsIface::setThreeDBarDepth( double depth ) 00086 { 00087 params->setThreeDBarDepth(depth); 00088 } 00089 00090 double KChartParamsIface::threeDBarDepth() const 00091 { 00092 return params->threeDBarDepth(); 00093 } 00094 00095 00096 bool KChartParamsIface::threeDPies() 00097 { 00098 return params->threeDPies(); 00099 } 00100 00101 void KChartParamsIface::setThreeDPieHeight( int pixels ) 00102 { 00103 params->setThreeDPieHeight(pixels); 00104 } 00105 00106 int KChartParamsIface::threeDPieHeight() 00107 { 00108 return params->threeDPieHeight(); 00109 } 00110 00111 void KChartParamsIface::setPieStart( int degrees ) 00112 { 00113 params->setPieStart(degrees); 00114 } 00115 00116 int KChartParamsIface::pieStart() 00117 { 00118 return params->pieStart(); 00119 } 00120 00121 void KChartParamsIface::setExplode( bool explode ) 00122 { 00123 params->setExplode(explode); 00124 } 00125 00126 bool KChartParamsIface::explode() const 00127 { 00128 return params->explode(); 00129 } 00130 00131 void KChartParamsIface::setExplodeFactor( double factor ) 00132 { 00133 params->setExplodeFactor(factor); 00134 } 00135 00136 double KChartParamsIface::explodeFactor() const 00137 { 00138 return params->explodeFactor(); 00139 } 00140 00141 void KChartParamsIface::setThreeDPies( bool threeDPies ) 00142 { 00143 params->setThreeDPies(threeDPies); 00144 } 00145 00146 void KChartParamsIface::hideLegend() 00147 { 00148 params->setLegendPosition(KDChartParams::NoLegend); 00149 } 00150 00151 void KChartParamsIface::setLegendPosition(const QString & pos) 00152 { 00153 params->setLegendPosition(params->stringToLegendPosition(pos)); 00154 } 00155 00156 QString KChartParamsIface::legendPostion() const 00157 { 00158 return params->legendPositionToString(params->legendPosition()); 00159 } 00160 00161 void KChartParamsIface::setLegendTitleText( const QString& text ) 00162 { 00163 params->setLegendTitleText( text ); 00164 } 00165 00166 void KChartParamsIface::setLegendSpacing( uint space ) 00167 { 00168 params->setLegendSpacing(space ); 00169 } 00170 00171 void KChartParamsIface::setLegendFontRelSize( int legendFontRelSize ) 00172 { 00173 params->setLegendFontRelSize(legendFontRelSize); 00174 } 00175 00176 int KChartParamsIface::legendFontRelSize() const 00177 { 00178 return params->legendFontRelSize(); 00179 } 00180 00181 void KChartParamsIface::setLegendFontUseRelSize( bool legendFontUseRelSize ) 00182 { 00183 params->setLegendFontUseRelSize(legendFontUseRelSize); 00184 } 00185 00186 bool KChartParamsIface::legendFontUseRelSize() const 00187 { 00188 return params->legendFontUseRelSize(); 00189 } 00190 00191 void KChartParamsIface::setLegendTitleFontUseRelSize( bool legendTitleFontUseRelSize ) 00192 { 00193 params->setLegendTitleFontUseRelSize(legendTitleFontUseRelSize); 00194 } 00195 00196 bool KChartParamsIface::legendTitleFontUseRelSize() const 00197 { 00198 return params->legendTitleFontUseRelSize(); 00199 } 00200 00201 void KChartParamsIface::setLegendTitleFontRelSize( int legendTitleFontRelSize ) 00202 { 00203 params->setLegendTitleFontRelSize(legendTitleFontRelSize); 00204 } 00205 00206 int KChartParamsIface::legendTitleFontRelSize() const 00207 { 00208 return params->legendTitleFontRelSize(); 00209 } 00210 00211 uint KChartParamsIface::legendSpacing() 00212 { 00213 return params->legendSpacing(); 00214 } 00215 00216 void KChartParamsIface::setLineChartSubType( const QString & sub) 00217 { 00218 params->setLineChartSubType(params->stringToLineChartSubType(sub)); 00219 } 00220 00221 QString KChartParamsIface::lineChartSubType() const 00222 { 00223 return params->lineChartSubTypeToString(params->lineChartSubType()); 00224 } 00225 00226 00227 bool KChartParamsIface::lineMarker() const 00228 { 00229 return params->lineMarker(); 00230 } 00231 00232 void KChartParamsIface::setLineMarker( bool b) 00233 { 00234 params->setLineMarker(b); 00235 } 00236 00237 void KChartParamsIface::setLineWidth( uint width ) 00238 { 00239 params->setLineWidth( width ); 00240 } 00241 00242 uint KChartParamsIface::lineWidth() const 00243 { 00244 return params->lineWidth(); 00245 } 00246 00247 bool KChartParamsIface::threeDLines() const 00248 { 00249 return params->threeDLines(); 00250 } 00251 00252 void KChartParamsIface::setThreeDLines(bool b) 00253 { 00254 params->setThreeDLines(b); 00255 } 00256 00257 int KChartParamsIface::threeDLineDepth() const 00258 { 00259 return params->threeDLineDepth(); 00260 } 00261 00262 void KChartParamsIface::setThreeDLineDepth( int depth ) 00263 { 00264 params->setThreeDLineDepth( depth ); 00265 } 00266 00267 int KChartParamsIface::threeDLineXRotation() const 00268 { 00269 return params->threeDLineXRotation(); 00270 } 00271 00272 void KChartParamsIface::setThreeDLineXRotation( int degrees ) 00273 { 00274 params->setThreeDLineXRotation( degrees ); 00275 } 00276 00277 void KChartParamsIface::setThreeDLineYRotation( int degrees ) 00278 { 00279 params->setThreeDLineYRotation(degrees ); 00280 } 00281 00282 int KChartParamsIface::threeDLineYRotation() const 00283 { 00284 return params->threeDLineYRotation(); 00285 } 00286 00287 QSize KChartParamsIface::lineMarkerSize() const 00288 { 00289 return params->lineMarkerSize(); 00290 } 00291 00292 void KChartParamsIface::setLineMarkerSize( QSize size ) 00293 { 00294 params->setLineMarkerSize( size ); 00295 } 00296 00297 00298 bool KChartParamsIface::showGrid() 00299 { 00300 return params->showGrid(); 00301 } 00302 00303 QString KChartParamsIface::header1Text() const 00304 { 00305 return params->header1Text(); 00306 } 00307 00308 void KChartParamsIface::setHeader1Text( const QString& text ) 00309 { 00310 params->setHeader1Text(text); 00311 } 00312 00313 void KChartParamsIface::setHeader2Text( const QString& text ) 00314 { 00315 params->setHeader2Text(text); 00316 } 00317 00318 QString KChartParamsIface::header2Text() const 00319 { 00320 return params->header2Text(); 00321 } 00322 00323 00324 void KChartParamsIface::setOutlineDataLineWidth( uint width ) 00325 { 00326 params->setOutlineDataLineWidth( width ); 00327 } 00328 00329 uint KChartParamsIface::outlineDataLineWidth() const 00330 { 00331 return params->outlineDataLineWidth(); 00332 } 00333 00334 void KChartParamsIface::setAreaChartSubType(const QString &sub) 00335 { 00336 params->setAreaChartSubType(params->stringToAreaChartSubType(sub)); 00337 } 00338 00339 QString KChartParamsIface::areaChartSubType() const 00340 { 00341 return params->areaChartSubTypeToString(params->areaChartSubType()); 00342 } 00343 00344 void KChartParamsIface::setAreaLocation(const QString & loc) 00345 { 00346 params->setAreaLocation(params->stringToAreaLocation(loc)); 00347 } 00348 00349 QString KChartParamsIface::areaLocation() const 00350 { 00351 return params->areaLocationToString( params->areaLocation()); 00352 } 00353 00354 void KChartParamsIface::setHiLoChartSubType(const QString &sub) 00355 { 00356 params->setHiLoChartSubType(params->stringToHiLoChartSubType(sub)); 00357 } 00358 00359 QString KChartParamsIface::hiLoChartSubType() const 00360 { 00361 return params->hiLoChartSubTypeToString(params->hiLoChartSubType()); 00362 } 00363 00364 bool KChartParamsIface::hiLoChartPrintHighValues() const 00365 { 00366 return params->hiLoChartPrintHighValues(); 00367 } 00368 00369 bool KChartParamsIface::hiLoChartLowValuesUseFontRelSize() const 00370 { 00371 return params->hiLoChartLowValuesUseFontRelSize(); 00372 } 00373 00374 int KChartParamsIface::hiLoChartLowValuesFontRelSize() const 00375 { 00376 return params->hiLoChartLowValuesFontRelSize(); 00377 } 00378 00379 bool KChartParamsIface::hiLoChartPrintLowValues() const 00380 { 00381 return params->hiLoChartPrintLowValues(); 00382 } 00383 00384 int KChartParamsIface::hiLoChartOpenValuesFontRelSize() const 00385 { 00386 return params->hiLoChartOpenValuesFontRelSize(); 00387 } 00388 00389 bool KChartParamsIface::hiLoChartPrintCloseValues() const 00390 { 00391 return params->hiLoChartPrintCloseValues(); 00392 } 00393 00394 bool KChartParamsIface::hiLoChartCloseValuesUseFontRelSize() const 00395 { 00396 return params->hiLoChartCloseValuesUseFontRelSize(); 00397 } 00398 00399 int KChartParamsIface::hiLoChartCloseValuesFontRelSize() const 00400 { 00401 return params->hiLoChartCloseValuesFontRelSize(); 00402 } 00403 00404 void KChartParamsIface::setPolarLineWidth( int width ) 00405 { 00406 params->setPolarLineWidth( width ); 00407 } 00408 00409 int KChartParamsIface::polarLineWidth() const 00410 { 00411 return params->polarLineWidth(); 00412 } 00413 00414 void KChartParamsIface::setPolarZeroDegreePos( int degrees ) 00415 { 00416 params->setPolarZeroDegreePos( degrees ); 00417 } 00418 00419 int KChartParamsIface::polarZeroDegreePos() const 00420 { 00421 return params->polarZeroDegreePos(); 00422 } 00423 00424 void KChartParamsIface::setPolarRotateCircularLabels( bool rotateCircularLabels ) 00425 { 00426 params->setPolarRotateCircularLabels( rotateCircularLabels ); 00427 } 00428 00429 bool KChartParamsIface::polarRotateCircularLabels() const 00430 { 00431 return params->polarRotateCircularLabels(); 00432 } 00433 00434 QSize KChartParamsIface::polarMarkerSize() const 00435 { 00436 return params->polarMarkerSize(); 00437 } 00438 00439 void KChartParamsIface::setPolarMarkerSize( QSize size ) 00440 { 00441 params->setPolarMarkerSize(size); 00442 } 00443 00444 int KChartParamsIface::ringStart() const 00445 { 00446 return params->ringStart(); 00447 } 00448 00449 void KChartParamsIface::setRingStart( int degrees ) 00450 { 00451 params->setRingStart( degrees ); 00452 } 00453 00454 00455 void KChartParamsIface::setThreeDShadowColors( bool shadow ) 00456 { 00457 params->setThreeDShadowColors(shadow); 00458 } 00459 bool KChartParamsIface::threeDShadowColors() 00460 { 00461 return params->threeDShadowColors(); 00462 } 00463 00464 } //KChart namespace