moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kig / objects / conic_types.h
blob81f14cf0a3c63373f58ada83651b6b4ec045a7cc
1 // Copyright (C) 2003 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_CONIC_TYPES_H
19 #define KIG_OBJECTS_CONIC_TYPES_H
21 #include "base_type.h"
23 class ConicB5PType
24 : public ArgsParserObjectType
26 ConicB5PType();
27 ~ConicB5PType();
28 public:
29 static const ConicB5PType* instance();
30 ObjectImp* calc( const Args& parents, const KigDocument& ) const;
31 const ObjectImpType* resultId() const;
34 class ConicBAAPType
35 : public ArgsParserObjectType
37 ConicBAAPType();
38 ~ConicBAAPType();
39 public:
40 static const ConicBAAPType* instance();
41 ObjectImp* calc( const Args& parents, const KigDocument& ) const;
42 const ObjectImpType* resultId() const;
45 class ConicBFFPType
46 : public ArgsParserObjectType
48 protected:
49 ConicBFFPType( const char* fullname, const ArgsParser::spec*, int n );
50 ~ConicBFFPType();
51 public:
52 ObjectImp* calc( const Args& parents, const KigDocument& ) const;
54 // -1 for hyperbola, 1 for ellipse..
55 virtual int type() const = 0;
56 const ObjectImpType* resultId() const;
59 class EllipseBFFPType
60 : public ConicBFFPType
62 EllipseBFFPType();
63 ~EllipseBFFPType();
64 public:
65 static const EllipseBFFPType* instance();
66 int type() const;
69 class HyperbolaBFFPType
70 : public ConicBFFPType
72 HyperbolaBFFPType();
73 ~HyperbolaBFFPType();
74 public:
75 static const HyperbolaBFFPType* instance();
76 int type() const;
79 class ConicBDFPType
80 : public ArgsParserObjectType
82 ConicBDFPType();
83 ~ConicBDFPType();
84 public:
85 static const ConicBDFPType* instance();
86 ObjectImp* calc( const Args& parents, const KigDocument& ) const;
87 const ObjectImpType* resultId() const;
90 class ParabolaBTPType
91 : public ArgsParserObjectType
93 ParabolaBTPType();
94 ~ParabolaBTPType();
95 public:
96 static const ParabolaBTPType* instance();
97 ObjectImp* calc( const Args& parents, const KigDocument& ) const;
98 const ObjectImpType* resultId() const;
101 class EquilateralHyperbolaB4PType
102 : public ArgsParserObjectType
104 EquilateralHyperbolaB4PType();
105 ~EquilateralHyperbolaB4PType();
106 public:
107 static const EquilateralHyperbolaB4PType* instance();
108 ObjectImp* calc( const Args& parents, const KigDocument& ) const;
109 const ObjectImpType* resultId() const;
112 class ConicPolarPointType
113 : public ArgsParserObjectType
115 ConicPolarPointType();
116 ~ConicPolarPointType();
117 public:
118 static const ConicPolarPointType* instance();
119 ObjectImp* calc( const Args& parents, const KigDocument& ) const;
120 const ObjectImpType* resultId() const;
123 class ConicPolarLineType
124 : public ArgsParserObjectType
126 ConicPolarLineType();
127 ~ConicPolarLineType();
128 public:
129 static const ConicPolarLineType* instance();
130 ObjectImp* calc( const Args& parents, const KigDocument& ) const;
131 const ObjectImpType* resultId() const;
134 class ConicDirectrixType
135 : public ArgsParserObjectType
137 ConicDirectrixType();
138 ~ConicDirectrixType();
139 public:
140 static const ConicDirectrixType* instance();
141 ObjectImp* calc( const Args& parents, const KigDocument& ) const;
142 const ObjectImpType* resultId() const;
145 class ParabolaBDPType
146 : public ObjectLPType
148 ParabolaBDPType();
149 ~ParabolaBDPType();
150 public:
151 static const ParabolaBDPType* instance();
152 ObjectImp* calc( const LineData& l, const Coordinate& c ) const;
153 const ObjectImpType* resultId() const;
156 class ConicAsymptoteType
157 : public ArgsParserObjectType
159 ConicAsymptoteType();
160 ~ConicAsymptoteType();
161 public:
162 static const ConicAsymptoteType* instance();
163 ObjectImp* calc( const Args& parents, const KigDocument& ) const;
164 const ObjectImpType* resultId() const;
167 class ConicRadicalType
168 : public ArgsParserObjectType
170 ConicRadicalType();
171 ~ConicRadicalType();
172 public:
173 static const ConicRadicalType* instance();
174 ObjectImp* calc( const Args& parents, const KigDocument& ) const;
175 const ObjectImpType* resultId() const;
176 QStringList specialActions() const;
177 void executeAction( int i, ObjectHolder& o, ObjectTypeCalcer& t,
178 KigPart& d, KigWidget& w, NormalMode& m ) const;
181 #endif