Kig Python Scripting API Documentation

point_imp.h

00001 // Copyright (C)  2002  Dominique Devriese <devriese@kde.org>
00002 
00003 // This program is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU General Public License
00005 // as published by the Free Software Foundation; either version 2
00006 // of the License, or (at your option) any later version.
00007 
00008 // This program is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011 // GNU General Public License for more details.
00012 
00013 // You should have received a copy of the GNU General Public License
00014 // along with this program; if not, write to the Free Software
00015 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00016 // 02110-1301, USA.
00017 
00018 #ifndef KIG_OBJECTS_POINT_IMP_H
00019 #define KIG_OBJECTS_POINT_IMP_H
00020 
00021 #include "object_imp.h"
00022 #include "../misc/coordinate.h"
00023 
00027 class PointImp
00028   : public ObjectImp
00029 {
00030   Coordinate mc;
00031 public:
00032   typedef ObjectImp Parent;
00036   static const ObjectImpType* stype();
00037 
00041   PointImp( const Coordinate& c );
00042   ~PointImp();
00043 
00044   Rect surroundingRect() const;
00045   Coordinate attachPoint() const;
00046 
00050   const Coordinate& coordinate() const { return mc; }
00054   void setCoordinate( const Coordinate& c );
00055 
00056   void draw( KigPainter& p ) const;
00057   bool contains( const Coordinate& p, int width, const KigWidget& ) const;
00058   bool inRect( const Rect& r, int width, const KigWidget& ) const;
00059 
00060   const uint numberOfProperties() const;
00061   const QCStringList properties() const;
00062   const QCStringList propertiesInternalNames() const;
00063   ObjectImp* property( uint which, const KigDocument& d ) const;
00064   const char* iconForProperty( uint which ) const;
00065   const ObjectImpType* impRequirementForProperty( uint which ) const;
00066   bool isPropertyDefinedOnOrThroughThisImp( uint which ) const;
00067 
00068   ObjectImp* transform( const Transformation& ) const;
00069 
00070   PointImp* copy() const;
00071 
00072   const ObjectImpType* type() const;
00073   void visit( ObjectImpVisitor* vtor ) const;
00074 
00075   void fillInNextEscape( QString& s, const KigDocument& ) const;
00076   bool canFillInNextEscape() const;
00077 
00078   bool equals( const ObjectImp& rhs ) const;
00079 };
00080 
00081 class BogusPointImp
00082   : public PointImp
00083 {
00084 public:
00085   BogusPointImp( const Coordinate& c );
00086   ~BogusPointImp();
00087   static const ObjectImpType* stype();
00088   const ObjectImpType* type() const;
00089 };
00090 
00091 #endif
KDE Logo
This file is part of the documentation for kdelibs 0.10.7.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Jul 5 12:48:00 2008 by doxygen 1.5.6 written by Dimitri van Heesch, © 1997-2001