kig
#include <object_constructor.h>
Public Member Functions | |
MergeObjectConstructor (const char *descname, const char *desc, const char *iconfilename) | |
~MergeObjectConstructor () | |
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 |
virtual bool | isAlreadySelectedOK (const std::vector< ObjectCalcer * > &os, const uint &) const |
bool | isTransform () const |
void | merge (ObjectConstructor *e) |
void | plug (KigPart *doc, KigGUIAction *kact) |
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 |
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 |
Detailed Description
This class is a collection of some other ObjectConstructors, that makes them appear to the user as a single ObjectConstructor.
It is e.g. used for the "intersection" constructor.
Definition at line 285 of file object_constructor.h.
Constructor & Destructor Documentation
MergeObjectConstructor::MergeObjectConstructor | ( | const char * | descname, |
const char * | desc, | ||
const char * | iconfilename | ||
) |
Definition at line 224 of file object_constructor.cc.
MergeObjectConstructor::~MergeObjectConstructor | ( | ) |
Definition at line 218 of file object_constructor.cc.
Member Function Documentation
|
virtual |
Implements ObjectConstructor.
Definition at line 245 of file object_constructor.cc.
|
virtual |
Implements ObjectConstructor.
Definition at line 240 of file object_constructor.cc.
|
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 271 of file object_constructor.cc.
|
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 286 of file object_constructor.cc.
|
virtual |
Implements ObjectConstructor.
Definition at line 250 of file object_constructor.cc.
|
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.
Reimplemented in GenericProjectivityConstructor, and GenericAffinityConstructor.
Definition at line 255 of file object_constructor.cc.
|
virtual |
Implements ObjectConstructor.
Definition at line 513 of file object_constructor.cc.
void MergeObjectConstructor::merge | ( | ObjectConstructor * | e | ) |
Definition at line 235 of file object_constructor.cc.
|
virtual |
Implements ObjectConstructor.
Definition at line 471 of file object_constructor.cc.
|
virtual |
return a string describing what argument you want next, if the given selection of objects were selected.
Implements ObjectConstructor.
Reimplemented in GenericIntersectionConstructor.
Definition at line 338 of file object_constructor.cc.
|
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 CocConstructor, TangentConstructor, and GenericIntersectionConstructor.
Definition at line 326 of file object_constructor.cc.
|
virtual |
can this constructor do something useful with os
? return ArgsParser::Complete, Valid or NotGood
Implements ObjectConstructor.
Definition at line 260 of file object_constructor.cc.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.