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

kig

Public Member Functions | List of all members
StandardConstructorBase Class Referenceabstract

#include <object_constructor.h>

Inheritance diagram for StandardConstructorBase:
Inheritance graph
[legend]

Public Member Functions

 StandardConstructorBase (const char *descname, const char *desc, const char *iconfile, const ArgsParser &parser)
 
virtual ~StandardConstructorBase ()
 
virtual std::vector
< ObjectHolder * > 
build (const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const =0
 
const QString description () const
 
const QString descriptiveName () const
 
virtual void drawprelim (const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const =0
 
void handleArgs (const std::vector< ObjectCalcer * > &os, KigPart &d, KigWidget &v) const
 
void handlePrelim (KigPainter &p, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
 
const QByteArray iconFileName (const bool canBeNull=false) const
 
bool isAlreadySelectedOK (const std::vector< ObjectCalcer * > &os, const uint &) const
 
QString selectStatement (const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &w) const
 
QString useText (const ObjectCalcer &o, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
 
virtual int wantArgs (const std::vector< ObjectCalcer * > &os, const KigDocument &d, const KigWidget &v) const
 
- Public Member Functions inherited from ObjectConstructor
virtual ~ObjectConstructor ()
 
virtual BaseConstructMode * constructMode (KigPart &doc)
 
virtual bool isIntersection () const
 
virtual bool isTest () const
 
virtual bool isTransform () const =0
 
virtual void plug (KigPart *doc, KigGUIAction *kact)=0
 

Detailed Description

This class provides wraps ObjectConstructor in a more simple interface for the most common object types.

Definition at line 133 of file object_constructor.h.

Constructor & Destructor Documentation

StandardConstructorBase::StandardConstructorBase ( const char *  descname,
const char *  desc,
const char *  iconfile,
const ArgsParser &  parser 
)

Definition at line 67 of file object_constructor.cc.

StandardConstructorBase::~StandardConstructorBase ( )
virtual

Definition at line 150 of file object_constructor.cc.

Member Function Documentation

virtual std::vector<ObjectHolder*> StandardConstructorBase::build ( const std::vector< ObjectCalcer * > &  os,
KigDocument &  d,
KigWidget &  w 
) const
pure virtual

Implemented in TestConstructor, MidPointOfTwoPointsConstructor, LocusConstructor, ConicRadicalConstructor, MultiObjectTypeConstructor, PropertyObjectConstructor, SimpleObjectTypeConstructor, PolygonSideTypeConstructor, PolygonVertexTypeConstructor, ThreeTwoOneIntersectionConstructor, and TwoOrOneIntersectionConstructor.

const QString StandardConstructorBase::description ( ) const
virtual

Implements ObjectConstructor.

Definition at line 52 of file object_constructor.cc.

const QString StandardConstructorBase::descriptiveName ( ) const
virtual

Implements ObjectConstructor.

Definition at line 47 of file object_constructor.cc.

virtual void StandardConstructorBase::drawprelim ( const ObjectDrawer &  drawer,
KigPainter &  p,
const std::vector< ObjectCalcer * > &  parents,
const KigDocument &   
) const
pure virtual

Implemented in TestConstructor, MidPointOfTwoPointsConstructor, LocusConstructor, ConicRadicalConstructor, MultiObjectTypeConstructor, PropertyObjectConstructor, SimpleObjectTypeConstructor, PolygonSideTypeConstructor, PolygonVertexTypeConstructor, ThreeTwoOneIntersectionConstructor, and TwoOrOneIntersectionConstructor.

void StandardConstructorBase::handleArgs ( const std::vector< ObjectCalcer * > &  os,
KigPart &  d,
KigWidget &  v 
) const
virtual

do something fun with os .

. This func is only called if wantArgs returned Complete.. handleArgs should not do any drawing.. after somebody calls this function, he should redrawScreen() himself..

Implements ObjectConstructor.

Definition at line 84 of file object_constructor.cc.

void StandardConstructorBase::handlePrelim ( KigPainter &  p,
const std::vector< ObjectCalcer * > &  sel,
const KigDocument &  d,
const KigWidget &  v 
) const
virtual

show a preliminary version of what you would do when handleArgs would be called.

. E.g. if this constructor normally constructs a locus through some 5 points, then it will try to draw a locus through whatever number of points it gets..

Implements ObjectConstructor.

Definition at line 98 of file object_constructor.cc.

const QByteArray StandardConstructorBase::iconFileName ( const bool  canBeNull = false) const
virtual

Implements ObjectConstructor.

Definition at line 57 of file object_constructor.cc.

bool StandardConstructorBase::isAlreadySelectedOK ( const std::vector< ObjectCalcer * > &  os,
const uint &   
) const
virtual

the following function is called in case of duplication of arguments and returns true if this is acceptable; this will return false for typical objects

Implements ObjectConstructor.

Definition at line 62 of file object_constructor.cc.

QString StandardConstructorBase::selectStatement ( const std::vector< ObjectCalcer * > &  sel,
const KigDocument &  d,
const KigWidget &  w 
) const
virtual

return a string describing what argument you want next, if the given selection of objects were selected.

Implements ObjectConstructor.

Definition at line 313 of file object_constructor.cc.

QString StandardConstructorBase::useText ( const ObjectCalcer &  o,
const std::vector< ObjectCalcer * > &  sel,
const KigDocument &  d,
const KigWidget &  v 
) const
virtual

return a string describing what you would use o for if it were selected...

o should be part of sel .

Implements ObjectConstructor.

Reimplemented in LocusConstructor, and ConicRadicalConstructor.

Definition at line 301 of file object_constructor.cc.

int StandardConstructorBase::wantArgs ( const std::vector< ObjectCalcer * > &  os,
const KigDocument &  d,
const KigWidget &  v 
) const
virtual

can this constructor do something useful with os ? return ArgsParser::Complete, Valid or NotGood

Implements ObjectConstructor.

Reimplemented in TestConstructor, and LocusConstructor.

Definition at line 77 of file object_constructor.cc.


The documentation for this class was generated from the following files:
  • object_constructor.h
  • object_constructor.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