kpresenter

KPrObjectIface.h
1/* This file is part of the KDE project
2 Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
3 Copyright (C) 2005 Thorsten Zachmann <zachmann@kde.org>
4
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.
9
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.
14
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., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KPRESENTER_OBJ_IFACE_H
22#define KPRESENTER_OBJ_IFACE_H
23
24#include <dcopobject.h>
25#include <dcopref.h>
26
27#include <tqstring.h>
28#include <tqcolor.h>
29
30class KPrObject;
31
32class KPrObjectIface : public DCOPObject
33{
34 K_DCOP
35public:
36 KPrObjectIface( KPrObject *obj_ );
37
38k_dcop:
39 int getType() const;
40
42 void move( double x, double y );
44 void resize( double width, double height );
45
46 bool isSelected() const;
47 float angle() const;
48 int shadowDistance() const;
49 int shadowDirection() const;
50 TQColor shadowColor() const;
51 int effect() const;
52 int effect2() const;
53 int appearStep() const;
54 int subPresSteps() const;
55 bool disappear() const;
56 int disappearStep() const;
57 int effect3() const;
58
59 void setEffect(const TQString & effect);
60 void setEffect3(const TQString & effect);
61
62 void setSelected( bool _selected );
63 void rotate( float _angle );
64 void setShadowDistance( int _distance );
65
66 void shadowColor( const TQColor & _color );
67
68 void setAppearTimer( int _appearTimer );
69 void setDisappearTimer( int _disappearTimer );
70
71 void setAppearSoundEffect( bool b );
72 void setDisappearSoundEffect( bool b );
73 void setAppearSoundEffectFileName( const TQString & _a_fileName );
74 void setDisappearSoundEffectFileName( const TQString &_d_fileName );
75
76 void setObjectName( const TQString &_objectName );
77
78 void setAppearStep( int _appearStep );
79
80 void setDisappear( bool b );
81
82 int appearTimer() const;
83 int disappearTimer() const;
84 bool appearSoundEffect() const;
85 bool disappearSoundEffect() const;
86 TQString appearSoundEffectFileName() const;
87 TQString disappearSoundEffectFileName() const;
88 TQString typeString() const;
89
90 void setProtected( bool b );
91 bool isProtected() const;
92
93 void setKeepRatio( bool b );
94 bool isKeepRatio() const;
95
96private:
97 KPrObject *obj;
98};
99
100#endif