moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kig / objects / line_type.h
blob89d1487bc659a1853e927e36770c553aef8d63bf
1 // Copyright (C) 2002 Dominique Devriese <devriese@kde.org>
3 // This program is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU General Public License
5 // as published by the Free Software Foundation; either version 2
6 // of the License, or (at your option) any later version.
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
16 // 02111-1307, USA.
18 #ifndef KIG_OBJECTS_SEGMENT_H
19 #define KIG_OBJECTS_SEGMENT_H
21 #include "base_type.h"
23 class LineData;
25 class SegmentABType
26 : public ObjectABType
28 SegmentABType();
29 ~SegmentABType();
30 public:
31 static const SegmentABType* instance();
33 ObjectImp* calc( const Coordinate& a, const Coordinate& b ) const;
34 const ObjectImpType* resultId() const;
36 QStringList specialActions() const;
37 // execute the i'th action from the specialActions above..
38 void executeAction( int i, ObjectHolder& o, ObjectTypeCalcer& c,
39 KigPart& d, KigWidget& w, NormalMode& m ) const;
42 class LineABType
43 : public ObjectABType
45 LineABType();
46 ~LineABType();
47 public:
48 static const LineABType* instance();
49 ObjectImp* calc( const Coordinate& a, const Coordinate& b ) const;
50 const ObjectImpType* resultId() const;
53 class RayABType
54 : public ObjectABType
56 RayABType();
57 ~RayABType();
58 public:
59 static const RayABType* instance();
60 ObjectImp* calc( const Coordinate& a, const Coordinate& b ) const;
61 const ObjectImpType* resultId() const;
64 class LinePerpendLPType
65 : public ObjectLPType
67 LinePerpendLPType();
68 ~LinePerpendLPType();
69 public:
70 static LinePerpendLPType* instance();
71 ObjectImp* calc( const LineData& a, const Coordinate& b ) const;
72 const ObjectImpType* resultId() const;
75 class LineParallelLPType
76 : public ObjectLPType
78 LineParallelLPType();
79 ~LineParallelLPType();
80 public:
81 static LineParallelLPType* instance();
82 ObjectImp* calc( const LineData& a, const Coordinate& b ) const;
83 const ObjectImpType* resultId() const;
86 class LineByVectorType
87 : public ArgsParserObjectType
89 LineByVectorType();
90 ~LineByVectorType();
91 public:
92 static const LineByVectorType* instance();
93 ObjectImp* calc( const Args& args, const KigDocument& ) const;
94 const ObjectImpType* resultId() const;
97 class HalflineByVectorType
98 : public ArgsParserObjectType
100 HalflineByVectorType();
101 ~HalflineByVectorType();
102 public:
103 static const HalflineByVectorType* instance();
104 ObjectImp* calc( const Args& args, const KigDocument& ) const;
105 const ObjectImpType* resultId() const;
108 #endif