You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
465 lines
9.9 KiB
465 lines
9.9 KiB
15 years ago
|
/* This file is part of the KDE project
|
||
|
Copyright (C) 2001,2002,2003,2004 Laurent Montel <montel@kde.org>
|
||
|
|
||
|
This library is free software; you can redistribute it and/or
|
||
|
modify it under the terms of the GNU Library General Public
|
||
|
License as published by the Free Software Foundation; either
|
||
|
version 2 of the License, or (at your option) any later version.
|
||
|
|
||
|
This library is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
Library General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU Library General Public License
|
||
|
along with this library; see the file COPYING.LIB. If not, write to
|
||
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
|
* Boston, MA 02110-1301, USA.
|
||
|
*/
|
||
|
|
||
|
#include "KChartParamsIface.h"
|
||
|
|
||
|
#include "kchart_params.h"
|
||
|
|
||
|
#include <dcopclient.h>
|
||
|
|
||
|
namespace KChart
|
||
|
{
|
||
|
|
||
|
KChartParamsIface::KChartParamsIface( KChartParams *params_ )
|
||
|
: DCOPObject()
|
||
|
{
|
||
|
params = params_;
|
||
|
}
|
||
|
|
||
14 years ago
|
TQString KChartParamsIface::chartType()const
|
||
15 years ago
|
{
|
||
|
return params->chartTypeToString(params->chartType());
|
||
|
}
|
||
|
|
||
14 years ago
|
void KChartParamsIface::setChartType( const TQString &chart )
|
||
15 years ago
|
{
|
||
|
params->setChartType(params->stringToChartType( chart ));
|
||
|
}
|
||
|
|
||
14 years ago
|
TQString KChartParamsIface::barChartSubType() const
|
||
15 years ago
|
{
|
||
|
return params->barChartSubTypeToString(params->barChartSubType());
|
||
|
}
|
||
|
|
||
14 years ago
|
void KChartParamsIface::setBarChartSubType( const TQString &sub )
|
||
15 years ago
|
{
|
||
|
params->setBarChartSubType(params->stringToBarChartSubType( sub ));
|
||
|
}
|
||
|
|
||
|
bool KChartParamsIface::threeDBars()
|
||
|
{
|
||
|
return params->threeDBars();
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setThreeDBars( bool threeDBars )
|
||
|
{
|
||
|
params->setThreeDBars(threeDBars);
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setThreeDBarsShadowColors( bool shadow )
|
||
|
{
|
||
|
params->setThreeDBarsShadowColors(shadow);
|
||
|
}
|
||
|
|
||
|
bool KChartParamsIface::threeDBarsShadowColors() const
|
||
|
{
|
||
|
return params->threeDBarsShadowColors();
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setThreeDBarAngle( uint angle )
|
||
|
{
|
||
|
params->setThreeDBarAngle(angle);
|
||
|
}
|
||
|
|
||
|
uint KChartParamsIface::threeDBarAngle() const
|
||
|
{
|
||
|
return params->threeDBarAngle();
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setThreeDBarDepth( double depth )
|
||
|
{
|
||
|
params->setThreeDBarDepth(depth);
|
||
|
}
|
||
|
|
||
|
double KChartParamsIface::threeDBarDepth() const
|
||
|
{
|
||
|
return params->threeDBarDepth();
|
||
|
}
|
||
|
|
||
|
|
||
|
bool KChartParamsIface::threeDPies()
|
||
|
{
|
||
|
return params->threeDPies();
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setThreeDPieHeight( int pixels )
|
||
|
{
|
||
|
params->setThreeDPieHeight(pixels);
|
||
|
}
|
||
|
|
||
|
int KChartParamsIface::threeDPieHeight()
|
||
|
{
|
||
|
return params->threeDPieHeight();
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setPieStart( int degrees )
|
||
|
{
|
||
|
params->setPieStart(degrees);
|
||
|
}
|
||
|
|
||
|
int KChartParamsIface::pieStart()
|
||
|
{
|
||
|
return params->pieStart();
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setExplode( bool explode )
|
||
|
{
|
||
|
params->setExplode(explode);
|
||
|
}
|
||
|
|
||
|
bool KChartParamsIface::explode() const
|
||
|
{
|
||
|
return params->explode();
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setExplodeFactor( double factor )
|
||
|
{
|
||
|
params->setExplodeFactor(factor);
|
||
|
}
|
||
|
|
||
|
double KChartParamsIface::explodeFactor() const
|
||
|
{
|
||
|
return params->explodeFactor();
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setThreeDPies( bool threeDPies )
|
||
|
{
|
||
|
params->setThreeDPies(threeDPies);
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::hideLegend()
|
||
|
{
|
||
|
params->setLegendPosition(KDChartParams::NoLegend);
|
||
|
}
|
||
|
|
||
14 years ago
|
void KChartParamsIface::setLegendPosition(const TQString & pos)
|
||
15 years ago
|
{
|
||
|
params->setLegendPosition(params->stringToLegendPosition(pos));
|
||
|
}
|
||
|
|
||
14 years ago
|
TQString KChartParamsIface::legendPostion() const
|
||
15 years ago
|
{
|
||
|
return params->legendPositionToString(params->legendPosition());
|
||
|
}
|
||
|
|
||
14 years ago
|
void KChartParamsIface::setLegendTitleText( const TQString& text )
|
||
15 years ago
|
{
|
||
|
params->setLegendTitleText( text );
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setLegendSpacing( uint space )
|
||
|
{
|
||
|
params->setLegendSpacing(space );
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setLegendFontRelSize( int legendFontRelSize )
|
||
|
{
|
||
|
params->setLegendFontRelSize(legendFontRelSize);
|
||
|
}
|
||
|
|
||
|
int KChartParamsIface::legendFontRelSize() const
|
||
|
{
|
||
|
return params->legendFontRelSize();
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setLegendFontUseRelSize( bool legendFontUseRelSize )
|
||
|
{
|
||
|
params->setLegendFontUseRelSize(legendFontUseRelSize);
|
||
|
}
|
||
|
|
||
|
bool KChartParamsIface::legendFontUseRelSize() const
|
||
|
{
|
||
|
return params->legendFontUseRelSize();
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setLegendTitleFontUseRelSize( bool legendTitleFontUseRelSize )
|
||
|
{
|
||
|
params->setLegendTitleFontUseRelSize(legendTitleFontUseRelSize);
|
||
|
}
|
||
|
|
||
|
bool KChartParamsIface::legendTitleFontUseRelSize() const
|
||
|
{
|
||
|
return params->legendTitleFontUseRelSize();
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setLegendTitleFontRelSize( int legendTitleFontRelSize )
|
||
|
{
|
||
|
params->setLegendTitleFontRelSize(legendTitleFontRelSize);
|
||
|
}
|
||
|
|
||
|
int KChartParamsIface::legendTitleFontRelSize() const
|
||
|
{
|
||
|
return params->legendTitleFontRelSize();
|
||
|
}
|
||
|
|
||
|
uint KChartParamsIface::legendSpacing()
|
||
|
{
|
||
|
return params->legendSpacing();
|
||
|
}
|
||
|
|
||
14 years ago
|
void KChartParamsIface::setLineChartSubType( const TQString & sub)
|
||
15 years ago
|
{
|
||
|
params->setLineChartSubType(params->stringToLineChartSubType(sub));
|
||
|
}
|
||
|
|
||
14 years ago
|
TQString KChartParamsIface::lineChartSubType() const
|
||
15 years ago
|
{
|
||
|
return params->lineChartSubTypeToString(params->lineChartSubType());
|
||
|
}
|
||
|
|
||
|
|
||
|
bool KChartParamsIface::lineMarker() const
|
||
|
{
|
||
|
return params->lineMarker();
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setLineMarker( bool b)
|
||
|
{
|
||
|
params->setLineMarker(b);
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setLineWidth( uint width )
|
||
|
{
|
||
|
params->setLineWidth( width );
|
||
|
}
|
||
|
|
||
|
uint KChartParamsIface::lineWidth() const
|
||
|
{
|
||
|
return params->lineWidth();
|
||
|
}
|
||
|
|
||
|
bool KChartParamsIface::threeDLines() const
|
||
|
{
|
||
|
return params->threeDLines();
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setThreeDLines(bool b)
|
||
|
{
|
||
|
params->setThreeDLines(b);
|
||
|
}
|
||
|
|
||
|
int KChartParamsIface::threeDLineDepth() const
|
||
|
{
|
||
|
return params->threeDLineDepth();
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setThreeDLineDepth( int depth )
|
||
|
{
|
||
|
params->setThreeDLineDepth( depth );
|
||
|
}
|
||
|
|
||
|
int KChartParamsIface::threeDLineXRotation() const
|
||
|
{
|
||
|
return params->threeDLineXRotation();
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setThreeDLineXRotation( int degrees )
|
||
|
{
|
||
|
params->setThreeDLineXRotation( degrees );
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setThreeDLineYRotation( int degrees )
|
||
|
{
|
||
|
params->setThreeDLineYRotation(degrees );
|
||
|
}
|
||
|
|
||
|
int KChartParamsIface::threeDLineYRotation() const
|
||
|
{
|
||
|
return params->threeDLineYRotation();
|
||
|
}
|
||
|
|
||
14 years ago
|
TQSize KChartParamsIface::lineMarkerSize() const
|
||
15 years ago
|
{
|
||
|
return params->lineMarkerSize();
|
||
|
}
|
||
|
|
||
14 years ago
|
void KChartParamsIface::setLineMarkerSize( TQSize size )
|
||
15 years ago
|
{
|
||
|
params->setLineMarkerSize( size );
|
||
|
}
|
||
|
|
||
|
|
||
|
bool KChartParamsIface::showGrid()
|
||
|
{
|
||
|
return params->showGrid();
|
||
|
}
|
||
|
|
||
14 years ago
|
TQString KChartParamsIface::header1Text() const
|
||
15 years ago
|
{
|
||
|
return params->header1Text();
|
||
|
}
|
||
|
|
||
14 years ago
|
void KChartParamsIface::setHeader1Text( const TQString& text )
|
||
15 years ago
|
{
|
||
|
params->setHeader1Text(text);
|
||
|
}
|
||
|
|
||
14 years ago
|
void KChartParamsIface::setHeader2Text( const TQString& text )
|
||
15 years ago
|
{
|
||
|
params->setHeader2Text(text);
|
||
|
}
|
||
|
|
||
14 years ago
|
TQString KChartParamsIface::header2Text() const
|
||
15 years ago
|
{
|
||
|
return params->header2Text();
|
||
|
}
|
||
|
|
||
|
|
||
|
void KChartParamsIface::setOutlineDataLineWidth( uint width )
|
||
|
{
|
||
|
params->setOutlineDataLineWidth( width );
|
||
|
}
|
||
|
|
||
|
uint KChartParamsIface::outlineDataLineWidth() const
|
||
|
{
|
||
|
return params->outlineDataLineWidth();
|
||
|
}
|
||
|
|
||
14 years ago
|
void KChartParamsIface::setAreaChartSubType(const TQString &sub)
|
||
15 years ago
|
{
|
||
|
params->setAreaChartSubType(params->stringToAreaChartSubType(sub));
|
||
|
}
|
||
|
|
||
14 years ago
|
TQString KChartParamsIface::areaChartSubType() const
|
||
15 years ago
|
{
|
||
|
return params->areaChartSubTypeToString(params->areaChartSubType());
|
||
|
}
|
||
|
|
||
14 years ago
|
void KChartParamsIface::setAreaLocation(const TQString & loc)
|
||
15 years ago
|
{
|
||
|
params->setAreaLocation(params->stringToAreaLocation(loc));
|
||
|
}
|
||
|
|
||
14 years ago
|
TQString KChartParamsIface::areaLocation() const
|
||
15 years ago
|
{
|
||
|
return params->areaLocationToString( params->areaLocation());
|
||
|
}
|
||
|
|
||
14 years ago
|
void KChartParamsIface::setHiLoChartSubType(const TQString &sub)
|
||
15 years ago
|
{
|
||
|
params->setHiLoChartSubType(params->stringToHiLoChartSubType(sub));
|
||
|
}
|
||
|
|
||
14 years ago
|
TQString KChartParamsIface::hiLoChartSubType() const
|
||
15 years ago
|
{
|
||
|
return params->hiLoChartSubTypeToString(params->hiLoChartSubType());
|
||
|
}
|
||
|
|
||
|
bool KChartParamsIface::hiLoChartPrintHighValues() const
|
||
|
{
|
||
|
return params->hiLoChartPrintHighValues();
|
||
|
}
|
||
|
|
||
|
bool KChartParamsIface::hiLoChartLowValuesUseFontRelSize() const
|
||
|
{
|
||
|
return params->hiLoChartLowValuesUseFontRelSize();
|
||
|
}
|
||
|
|
||
|
int KChartParamsIface::hiLoChartLowValuesFontRelSize() const
|
||
|
{
|
||
|
return params->hiLoChartLowValuesFontRelSize();
|
||
|
}
|
||
|
|
||
|
bool KChartParamsIface::hiLoChartPrintLowValues() const
|
||
|
{
|
||
|
return params->hiLoChartPrintLowValues();
|
||
|
}
|
||
|
|
||
|
int KChartParamsIface::hiLoChartOpenValuesFontRelSize() const
|
||
|
{
|
||
|
return params->hiLoChartOpenValuesFontRelSize();
|
||
|
}
|
||
|
|
||
|
bool KChartParamsIface::hiLoChartPrintCloseValues() const
|
||
|
{
|
||
|
return params->hiLoChartPrintCloseValues();
|
||
|
}
|
||
|
|
||
|
bool KChartParamsIface::hiLoChartCloseValuesUseFontRelSize() const
|
||
|
{
|
||
|
return params->hiLoChartCloseValuesUseFontRelSize();
|
||
|
}
|
||
|
|
||
|
int KChartParamsIface::hiLoChartCloseValuesFontRelSize() const
|
||
|
{
|
||
|
return params->hiLoChartCloseValuesFontRelSize();
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setPolarLineWidth( int width )
|
||
|
{
|
||
|
params->setPolarLineWidth( width );
|
||
|
}
|
||
|
|
||
|
int KChartParamsIface::polarLineWidth() const
|
||
|
{
|
||
|
return params->polarLineWidth();
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setPolarZeroDegreePos( int degrees )
|
||
|
{
|
||
|
params->setPolarZeroDegreePos( degrees );
|
||
|
}
|
||
|
|
||
|
int KChartParamsIface::polarZeroDegreePos() const
|
||
|
{
|
||
|
return params->polarZeroDegreePos();
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setPolarRotateCircularLabels( bool rotateCircularLabels )
|
||
|
{
|
||
|
params->setPolarRotateCircularLabels( rotateCircularLabels );
|
||
|
}
|
||
|
|
||
|
bool KChartParamsIface::polarRotateCircularLabels() const
|
||
|
{
|
||
|
return params->polarRotateCircularLabels();
|
||
|
}
|
||
|
|
||
14 years ago
|
TQSize KChartParamsIface::polarMarkerSize() const
|
||
15 years ago
|
{
|
||
|
return params->polarMarkerSize();
|
||
|
}
|
||
|
|
||
14 years ago
|
void KChartParamsIface::setPolarMarkerSize( TQSize size )
|
||
15 years ago
|
{
|
||
|
params->setPolarMarkerSize(size);
|
||
|
}
|
||
|
|
||
|
int KChartParamsIface::ringStart() const
|
||
|
{
|
||
|
return params->ringStart();
|
||
|
}
|
||
|
|
||
|
void KChartParamsIface::setRingStart( int degrees )
|
||
|
{
|
||
|
params->setRingStart( degrees );
|
||
|
}
|
||
|
|
||
|
|
||
|
void KChartParamsIface::setThreeDShadowColors( bool shadow )
|
||
|
{
|
||
|
params->setThreeDShadowColors(shadow);
|
||
|
}
|
||
|
bool KChartParamsIface::threeDShadowColors()
|
||
|
{
|
||
|
return params->threeDShadowColors();
|
||
|
}
|
||
|
|
||
|
} //KChart namespace
|