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
18 #ifndef KIG_OBJECTS_SEGMENT_H
19 #define KIG_OBJECTS_SEGMENT_H
21 #include "base_type.h"
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;
48 static const LineABType
* instance();
49 ObjectImp
* calc( const Coordinate
& a
, const Coordinate
& b
) const;
50 const ObjectImpType
* resultId() const;
59 static const RayABType
* instance();
60 ObjectImp
* calc( const Coordinate
& a
, const Coordinate
& b
) const;
61 const ObjectImpType
* resultId() const;
64 class LinePerpendLPType
70 static LinePerpendLPType
* instance();
71 ObjectImp
* calc( const LineData
& a
, const Coordinate
& b
) const;
72 const ObjectImpType
* resultId() const;
75 class LineParallelLPType
79 ~LineParallelLPType();
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
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();
103 static const HalflineByVectorType
* instance();
104 ObjectImp
* calc( const Args
& args
, const KigDocument
& ) const;
105 const ObjectImpType
* resultId() const;