• 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
TestConstructor Class Reference

#include <special_constructors.h>

Inheritance diagram for TestConstructor:
Inheritance graph
[legend]

Public Member Functions

 TestConstructor (const ArgsParserObjectType *type, const char *descname, const char *desc, const char *iconfile)
 
 ~TestConstructor ()
 
std::vector< ObjectHolder * > build (const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const
 
BaseConstructMode * constructMode (KigPart &doc)
 
void drawprelim (const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const
 
bool isTest () const
 
bool isTransform () const
 
void plug (KigPart *doc, KigGUIAction *kact)
 
int wantArgs (const std::vector< ObjectCalcer * > &os, const KigDocument &d, const KigWidget &v) const
 
- Public Member Functions inherited from StandardConstructorBase
 StandardConstructorBase (const char *descname, const char *desc, const char *iconfile, const ArgsParser &parser)
 
virtual ~StandardConstructorBase ()
 
const QString description () const
 
const QString descriptiveName () const
 
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
 
- Public Member Functions inherited from ObjectConstructor
virtual ~ObjectConstructor ()
 
virtual bool isIntersection () const
 

Detailed Description

Definition at line 414 of file special_constructors.h.

Constructor & Destructor Documentation

TestConstructor::TestConstructor ( const ArgsParserObjectType *  type,
const char *  descname,
const char *  desc,
const char *  iconfile 
)

Definition at line 2118 of file special_constructors.cc.

TestConstructor::~TestConstructor ( )

Definition at line 2125 of file special_constructors.cc.

Member Function Documentation

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

Implements StandardConstructorBase.

Definition at line 2136 of file special_constructors.cc.

BaseConstructMode * TestConstructor::constructMode ( KigPart &  doc)
virtual

Which construct mode should be used for this ObjectConstructor.

In fact, this is not a pretty design. The Kig GUIAction-ObjectConstructor stuff should be reworked into a general GUIAction, which just models something which can be executed given a certain number of arguments. The code for drawPrelim and such should all be in the ConstructMode, and the new GUIAction should just start the correct KigMode with the correct arguments.

This function is only overridden in TestConstructor.

Reimplemented from ObjectConstructor.

Definition at line 2159 of file special_constructors.cc.

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

Implements StandardConstructorBase.

Definition at line 2129 of file special_constructors.cc.

bool TestConstructor::isTest ( ) const
virtual

Reimplemented from ObjectConstructor.

Definition at line 2154 of file special_constructors.cc.

bool TestConstructor::isTransform ( ) const
virtual

Implements ObjectConstructor.

Definition at line 2149 of file special_constructors.cc.

void TestConstructor::plug ( KigPart *  doc,
KigGUIAction *  kact 
)
virtual

Implements ObjectConstructor.

Definition at line 2145 of file special_constructors.cc.

int TestConstructor::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

Reimplemented from StandardConstructorBase.

Definition at line 2164 of file special_constructors.cc.


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