1
// -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*-
2
/* This file is part of the KDE project
3
Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public
7
License as published by the Free Software Foundation; either
8
version 2 of the License, or (at your option) any later version.
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library General Public License for more details.
15
You should have received a copy of the GNU Library General Public License
16
along with this library; see the file COPYING.LIB. If not, write to
17
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
Boston, MA 02111-1307, USA.
21
#include "KPPieObjectIface.h"
22
#include "kppieobject.h"
24
#include "kpresenter_utils.h"
25
#include <kapplication.h>
26
#include <dcopclient.h>
29
KPPieObjectIface::KPPieObjectIface( KPPieObject *_obj )
30
: KPresenterObject2DIface(_obj)
35
void KPPieObjectIface::setPieAngle( int _p_angle )
37
obj->setPieAngle(_p_angle);
40
void KPPieObjectIface::setPieLength( int _p_len )
42
obj->setPieLength(_p_len);
45
int KPPieObjectIface::pieAngle() const
47
return obj->getPieAngle();
50
int KPPieObjectIface::pieLength() const
52
return obj->getPieLength();
55
void KPPieObjectIface::setPieType( const QString & type )
58
obj->setPieType(PT_PIE);
60
obj->setPieType(PT_ARC);
61
else if(type=="Chord")
62
obj->setPieType(PT_CHORD);
65
void KPPieObjectIface::setLineBegin( const QString & type)
67
obj->setLineBegin(lineEndBeginFromString( type ));
70
void KPPieObjectIface::setLineEnd( const QString & type)
72
obj->setLineEnd(lineEndBeginFromString( type ));
75
void KPPieObjectIface::horizontalFlip()
80
void KPPieObjectIface::verticalFlip()