• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kig

  • sources
  • kde-4.14
  • kdeedu
  • kig
  • objects
angle_type.h
Go to the documentation of this file.
1 // Copyright (C) 2003-2004 Dominique Devriese <devriese@kde.org>
2 // Copyright (C) 2004 Pino Toscano <toscano.pino@tiscali.it>
3 
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
8 
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 // 02110-1301, USA.
18 
19 #ifndef KIG_MISC_ANGLE_TYPE_H
20 #define KIG_MISC_ANGLE_TYPE_H
21 
22 #include "base_type.h"
23 
24 class AngleType
25  : public ArgsParserObjectType
26 {
27  AngleType();
28  ~AngleType();
29 public:
30  static const AngleType* instance();
31  ObjectImp* calc( const Args& args, const KigDocument& ) const;
32  const ObjectImpType* resultId() const;
33 
34  QStringList specialActions() const;
35  void executeAction( int i, ObjectHolder& o, ObjectTypeCalcer& c,
36  KigPart& d, KigWidget& w, NormalMode& m ) const;
37 };
38 
39 class HalfAngleType
40  : public ArgsParserObjectType
41 {
42  HalfAngleType();
43  ~HalfAngleType();
44 public:
45  static const HalfAngleType* instance();
46  ObjectImp* calc( const Args& args, const KigDocument& ) const;
47  const ObjectImpType* resultId() const;
48 };
49 
50 #endif
HalfAngleType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: angle_type.cc:184
ObjectImpType
Instances of this class represent a certain ObjectImp type.
Definition: object_imp.h:95
HalfAngleType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: angle_type.cc:219
ArgsParserObjectType
This is a convenience subclass of ObjectType that a type should inherit from if its parents can be sp...
Definition: object_type.h:113
AngleType::calc
ObjectImp * calc(const Args &args, const KigDocument &) const
Definition: angle_type.cc:69
AngleType
Definition: angle_type.h:24
AngleType::instance
static const AngleType * instance()
Definition: angle_type.cc:63
HalfAngleType::instance
static const HalfAngleType * instance()
Definition: angle_type.cc:178
ObjectTypeCalcer
This is an ObjectCalcer that uses one of the various ObjectType's to calculate its ObjectImp...
Definition: object_calcer.h:183
ObjectHolder
An ObjectHolder represents an object as it is known to the document.
Definition: object_holder.h:40
AngleType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: angle_type.cc:101
Args
std::vector< const ObjectImp * > Args
Definition: objects/common.h:47
AngleType::executeAction
void executeAction(int i, ObjectHolder &o, ObjectTypeCalcer &c, KigPart &d, KigWidget &w, NormalMode &m) const
execute the i 'th action from the specialActions above.
Definition: angle_type.cc:116
KigWidget
This class is the real widget showing the document.
Definition: kig_view.h:50
QStringList
KigDocument
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
ObjectImp
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
KigPart
This is a "Part".
Definition: kig_part.h:68
AngleType::specialActions
QStringList specialActions() const
return i18n'd names for the special actions.
Definition: angle_type.cc:106
base_type.h
NormalMode
Definition: normal.h:26
HalfAngleType
Definition: angle_type.h:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal