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

kig

Public Member Functions | Protected Member Functions | List of all members
GenericTextType Class Reference

#include <text_type.h>

Inheritance diagram for GenericTextType:
Inheritance graph
[legend]

Public Member Functions

const ArgsParser & argParser () const
 
ObjectImp * calc (const Args &parents, const KigDocument &d) const
 
bool canMove (const ObjectTypeCalcer &ourobj) const
 
void executeAction (int i, ObjectHolder &o, ObjectTypeCalcer &c, KigPart &d, KigWidget &w, NormalMode &m) const
 
const ObjectImpType * impRequirement (const ObjectImp *o, const Args &parents) const
 
bool isDefinedOnOrThrough (const ObjectImp *o, const Args &parents) const
 
bool isFreelyTranslatable (const ObjectTypeCalcer &ourobj) const
 
std::vector< ObjectCalcer * > movableParents (const ObjectTypeCalcer &ourobj) const
 
void move (ObjectTypeCalcer &ourobj, const Coordinate &to, const KigDocument &) const
 
const Coordinate moveReferencePoint (const ObjectTypeCalcer &ourobj) const
 
const ObjectImpType * resultId () const
 
std::vector< ObjectCalcer * > sortArgs (const std::vector< ObjectCalcer * > &os) const
 
Args sortArgs (const Args &args) const
 
QStringList specialActions () const
 
- Public Member Functions inherited from ObjectType
virtual ~ObjectType ()
 
const char * fullName () const
 
virtual bool inherits (int type) const
 
virtual bool isTransform () const
 

Protected Member Functions

 GenericTextType (const char *fulltypename)
 
 ~GenericTextType ()
 
- Protected Member Functions inherited from ObjectType
 ObjectType (const char fulltypename[])
 

Additional Inherited Members

- Public Types inherited from ObjectType
enum  { ID_ConstrainedPointType, ID_LocusType, ID_FixedPointType }
 

Detailed Description

Definition at line 23 of file text_type.h.

Constructor & Destructor Documentation

GenericTextType::GenericTextType ( const char *  fulltypename)
protected

Definition at line 52 of file text_type.cc.

GenericTextType::~GenericTextType ( )
protected

Definition at line 57 of file text_type.cc.

Member Function Documentation

const ArgsParser & GenericTextType::argParser ( ) const

Definition at line 130 of file text_type.cc.

ObjectImp * GenericTextType::calc ( const Args &  parents,
const KigDocument &  d 
) const
virtual

Implements ObjectType.

Definition at line 76 of file text_type.cc.

bool GenericTextType::canMove ( const ObjectTypeCalcer &  ourobj) const
virtual

Reimplemented from ObjectType.

Definition at line 105 of file text_type.cc.

void GenericTextType::executeAction ( int  i,
ObjectHolder &  o,
ObjectTypeCalcer &  t,
KigPart &  d,
KigWidget &  w,
NormalMode &  m 
) const
virtual

execute the i 'th action from the specialActions above.

Reimplemented from ObjectType.

Reimplemented in NumericTextType, and TextType.

Definition at line 182 of file text_type.cc.

const ObjectImpType * GenericTextType::impRequirement ( const ObjectImp *  o,
const Args &  parents 
) const
virtual

Supposing that parents would be given as parents to this type's calc function, this function returns the ObjectImp id that o should at least have.

( o should be part of parents )

Implements ObjectType.

Definition at line 66 of file text_type.cc.

bool GenericTextType::isDefinedOnOrThrough ( const ObjectImp *  o,
const Args &  parents 
) const
virtual

Supposing that parents would be given as parents to this type's calc function, this function returns whether the returned ObjectImp will be, by construction, on o ( if o is a curve ), or through o ( if o is a point ).

Implements ObjectType.

Definition at line 168 of file text_type.cc.

bool GenericTextType::isFreelyTranslatable ( const ObjectTypeCalcer &  ourobj) const
virtual

Reimplemented from ObjectType.

Definition at line 110 of file text_type.cc.

std::vector< ObjectCalcer * > GenericTextType::movableParents ( const ObjectTypeCalcer &  ourobj) const
virtual

Reimplemented from ObjectType.

Definition at line 159 of file text_type.cc.

void GenericTextType::move ( ObjectTypeCalcer &  ourobj,
const Coordinate &  to,
const KigDocument &  d 
) const
virtual

Reimplemented from ObjectType.

Definition at line 115 of file text_type.cc.

const Coordinate GenericTextType::moveReferencePoint ( const ObjectTypeCalcer &  ourobj) const
virtual

Reimplemented from ObjectType.

Definition at line 135 of file text_type.cc.

const ObjectImpType * GenericTextType::resultId ( ) const
virtual

returns the ObjectImp id of the ObjectImp's produced by this ObjectType.

if the ObjectType can return different sorts of ObjectImp's, it should return the biggest common id, or ID_AnyImp.

Implements ObjectType.

Definition at line 61 of file text_type.cc.

std::vector< ObjectCalcer * > GenericTextType::sortArgs ( const std::vector< ObjectCalcer * > &  os) const
virtual

Implements ObjectType.

Definition at line 141 of file text_type.cc.

Args GenericTextType::sortArgs ( const Args &  args) const
virtual

Implements ObjectType.

Definition at line 150 of file text_type.cc.

QStringList GenericTextType::specialActions ( ) const
virtual

return i18n'd names for the special actions.

Reimplemented from ObjectType.

Reimplemented in NumericTextType, and TextType.

Definition at line 173 of file text_type.cc.


The documentation for this class was generated from the following files:
  • text_type.h
  • text_type.cc
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:41 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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