kpresenter

KPrObjectIface.h

00001 // -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*-
00002 /* This file is part of the KDE project
00003    Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
00004    Copyright (C) 2005 Thorsten Zachmann <zachmann@kde.org>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License as published by the Free Software Foundation; either
00009    version 2 of the License, or (at your option) any later version.
00010 
00011    This library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Library General Public License for more details.
00015 
00016    You should have received a copy of the GNU Library General Public License
00017    along with this library; see the file COPYING.LIB.  If not, write to
00018    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef KPRESENTER_OBJ_IFACE_H
00023 #define KPRESENTER_OBJ_IFACE_H
00024 
00025 #include <dcopobject.h>
00026 #include <dcopref.h>
00027 
00028 #include <qstring.h>
00029 #include <qcolor.h>
00030 
00031 class KPrObject;
00032 
00033 class KPrObjectIface : public DCOPObject
00034 {
00035     K_DCOP
00036 public:
00037     KPrObjectIface( KPrObject *obj_ );
00038 
00039 k_dcop:
00040     int getType() const;
00041 
00043     void move( double x, double y );
00045     void resize( double width, double height );
00046 
00047     bool isSelected() const;
00048     float angle() const;
00049     int shadowDistance() const;
00050     int shadowDirection() const;
00051     QColor shadowColor() const;
00052     int effect() const;
00053     int effect2() const;
00054     int appearStep() const;
00055     int subPresSteps() const;
00056     bool disappear() const;
00057     int disappearStep() const;
00058     int effect3() const;
00059 
00060     void setEffect(const QString & effect);
00061     void setEffect3(const QString & effect);
00062 
00063     void setSelected( bool _selected );
00064     void rotate( float _angle );
00065     void setShadowDistance( int _distance );
00066 
00067     void shadowColor( const QColor & _color );
00068 
00069     void setAppearTimer( int _appearTimer );
00070     void setDisappearTimer( int _disappearTimer );
00071 
00072     void setAppearSoundEffect( bool b );
00073     void setDisappearSoundEffect( bool b );
00074     void setAppearSoundEffectFileName( const QString & _a_fileName );
00075     void setDisappearSoundEffectFileName( const QString &_d_fileName );
00076 
00077     void setObjectName( const QString &_objectName );
00078 
00079     void setAppearStep( int _appearStep );
00080 
00081     void setDisappear( bool b );
00082 
00083     int appearTimer() const;
00084     int disappearTimer() const;
00085     bool appearSoundEffect() const;
00086     bool disappearSoundEffect() const;
00087     QString appearSoundEffectFileName() const;
00088     QString disappearSoundEffectFileName() const;
00089     QString typeString() const;
00090 
00091     void setProtected( bool b );
00092     bool isProtected() const;
00093 
00094     void setKeepRatio( bool b );
00095     bool isKeepRatio() const;
00096 
00097 private:
00098     KPrObject *obj;
00099 };
00100 
00101 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys