kig
object_constructor.cc
Go to the documentation of this file.
62 bool StandardConstructorBase::isAlreadySelectedOK( const std::vector<ObjectCalcer*>&, const uint& ) const
128 void SimpleObjectTypeConstructor::drawprelim( const ObjectDrawer& drawer, KigPainter& p, const std::vector<ObjectCalcer*>& parents,
182 void MultiObjectTypeConstructor::drawprelim( const ObjectDrawer& drawer, KigPainter& p, const std::vector<ObjectCalcer*>& parents,
255 bool MergeObjectConstructor::isAlreadySelectedOK( const std::vector<ObjectCalcer*>&, const uint& ) const
301 QString StandardConstructorBase::useText( const ObjectCalcer& o, const std::vector<ObjectCalcer*>& sel,
326 QString MergeObjectConstructor::useText( const ObjectCalcer& o, const std::vector<ObjectCalcer*>& sel,
389 bool MacroConstructor::isAlreadySelectedOK( const std::vector<ObjectCalcer*>&, const uint& ) const
429 QString MacroConstructor::useText( const ObjectCalcer& o, const std::vector<ObjectCalcer*>& sel,
bool isAlreadySelectedOK(const std::vector< ObjectCalcer * > &os, const uint &) const
the following function is called in case of duplication of arguments and returns true if this is acce...
Definition: object_constructor.cc:389
bool isAlreadySelectedOK(const std::vector< ObjectCalcer * > &os, const uint &) const
the following function is called in case of duplication of arguments and returns true if this is acce...
Definition: object_constructor.cc:62
Instances of this class represent a certain ObjectImp type.
Definition: object_imp.h:95
const ObjectImpType * idOfLastResult() const
Definition: object_hierarchy.cc:634
virtual int wantArgs(const std::vector< ObjectCalcer * > &os, const KigDocument &d, const KigWidget &v) const
can this constructor do something useful with os ? return ArgsParser::Complete, Valid or NotGood ...
Definition: object_constructor.cc:77
Definition: object_hierarchy.h:30
Definition: construct_mode.h:58
const QString descriptiveName() const
Definition: object_constructor.cc:374
This is a convenience subclass of ObjectType that a type should inherit from if its parents can be sp...
Definition: object_type.h:113
const QByteArray iconFileName(const bool canBeNull=false) const
Definition: object_constructor.cc:250
SimpleObjectTypeConstructor(const ArgsParserObjectType *t, const char *descname, const char *desc, const char *iconfile)
Definition: object_constructor.cc:115
virtual ~StandardConstructorBase()
Definition: object_constructor.cc:150
This is an ObjectCalcer that keeps an ObjectImp, and never calculates a new one.
Definition: object_calcer.h:232
void plug(KigPart *doc, KigGUIAction *kact)
Definition: object_constructor.cc:467
const ObjectHierarchy & hierarchy() const
Definition: object_constructor.cc:498
void handlePrelim(KigPainter &p, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
show a preliminary version of what you would do when handleArgs would be called.
Definition: object_constructor.cc:442
~PropertyObjectConstructor()
Definition: object_constructor.cc:550
MacroConstructor(const std::vector< ObjectCalcer * > &input, const std::vector< ObjectCalcer * > &output, const QString &name, const QString &description, const QByteArray &iconfile=0)
Definition: object_constructor.cc:359
virtual ObjectImp * property(int which, const KigDocument &d) const
Definition: object_imp.cc:70
bool isNull() const
bool inherits(const ObjectImpType *t) const
Does the ObjectImp type represented by this instance inherit the ObjectImp type represented by t ...
Definition: object_imp.cc:224
void handlePrelim(KigPainter &p, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
show a preliminary version of what you would do when handleArgs would be called.
Definition: object_constructor.cc:286
const QString description() const
Definition: object_constructor.cc:379
virtual std::vector< ObjectHolder * > build(const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const =0
void draw(const ObjectImp &imp, KigPainter &p, bool selected) const
Draw the object imp on kigpainter p .
Definition: object_drawer.cc:29
Definition: argsparser.h:112
void handleArgs(const std::vector< ObjectCalcer * > &os, KigPart &d, KigWidget &v) const
do something fun with os .
Definition: object_constructor.cc:400
bool isTransform() const
Definition: object_constructor.cc:508
This is an ObjectCalcer that uses one of the various ObjectType's to calculate its ObjectImp...
Definition: object_calcer.h:183
const QByteArray iconFileName(const bool canBeNull=false) const
Definition: object_constructor.cc:57
virtual bool isIntersection() const
Definition: object_constructor.cc:531
QString selectStatement(const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &w) const
return a string describing what argument you want next, if the given selection of objects were select...
Definition: object_constructor.cc:313
QString useText(const ObjectCalcer &o, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
return a string describing what you would use o for if it were selected...
Definition: object_constructor.cc:301
virtual void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const =0
const QByteArray iconFileName(const bool canBeNull=false) const
Definition: object_constructor.cc:384
void plug(KigPart *doc, KigGUIAction *kact)
Definition: object_constructor.cc:475
Definition: guiaction.h:34
bool isTransform() const
Definition: object_constructor.cc:503
QString selectStatement(const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &w) const
return a string describing what argument you want next, if the given selection of objects were select...
Definition: object_constructor.cc:416
This class represents a way to construct a set of objects from a set of other objects.
Definition: object_constructor.h:44
void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const
Definition: object_constructor.cc:128
void handleArgs(const std::vector< ObjectCalcer * > &os, KigPart &d, KigWidget &v) const
do something fun with os .
Definition: object_constructor.cc:84
void append(const T &value)
int wantArgs(const std::vector< ObjectCalcer * > &os, const KigDocument &d, const KigWidget &v) const
can this constructor do something useful with os ? return ArgsParser::Complete, Valid or NotGood ...
Definition: object_constructor.cc:394
StandardConstructorBase(const char *descname, const char *desc, const char *iconfile, const ArgsParser &parser)
Definition: object_constructor.cc:67
PropertyObjectConstructor(const ObjectImpType *imprequirement, const char *usetext, const char *selectstat, const char *descname, const char *desc, const char *iconfile, const char *propertyinternalname)
Definition: object_constructor.cc:536
~SimpleObjectTypeConstructor()
Definition: object_constructor.cc:124
virtual bool isAlreadySelectedOK(const std::vector< ObjectCalcer * > &os, const uint &) const
the following function is called in case of duplication of arguments and returns true if this is acce...
Definition: object_constructor.cc:255
void setWidth(int c)
setting this to -1 means to use the default width for the object being drawn.
Definition: kigpainter.cpp:232
An ObjectHolder represents an object as it is known to the document.
Definition: object_holder.h:40
void plug(KigPart *doc, KigGUIAction *kact)
Definition: object_constructor.cc:471
std::vector< ObjectHolder * > build(const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const
Definition: object_constructor.cc:565
An ObjectCalcer is an object that represents an algorithm for calculating an ObjectImp from other Obj...
Definition: object_calcer.h:66
bool isTransform() const
is this the ctor for a transformation type.
Definition: object_constructor.cc:521
This class provides wraps ObjectConstructor in a more simple interface for the most common object typ...
Definition: object_constructor.h:133
MultiObjectTypeConstructor(const ArgsParserObjectType *t, const char *descname, const char *desc, const char *iconfile, const std::vector< int > ¶ms)
Definition: object_constructor.cc:154
std::vector< ObjectHolder * > build(const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const
Definition: object_constructor.cc:140
Definition: argsparser.h:112
virtual ~ObjectConstructor()
Definition: object_constructor.cc:231
static const ObjectImpType * stype()
Returns the ObjectImpType representing the SegmentImp type.
Definition: line_imp.cc:545
This is an ObjectCalcer that has a single parent, and gets a certain property from it in its calc() m...
Definition: object_calcer.h:276
Definition: argsparser.h:113
This class is meant to take care of checking the types of the parents to ObjectCalcer's, and to put them in the correct order.
Definition: argsparser.h:106
void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const
Definition: object_constructor.cc:182
void setDescription(const QString &desc)
Definition: object_constructor.cc:602
static const ObjectImpType * stype()
Returns the ObjectImpType representing the CircleImp type.
Definition: circle_imp.cc:342
~MultiObjectTypeConstructor()
Definition: object_constructor.cc:178
void plug(KigPart *doc, KigGUIAction *kact)
Definition: object_constructor.cc:578
std::vector< ObjectHolder * > build(const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const
Definition: object_constructor.cc:201
A class holding some information about how a certain object is drawn on the window.
Definition: object_drawer.h:47
std::vector< ObjectCalcer * > buildObjects(const std::vector< ObjectCalcer * > &os, const KigDocument &) const
build a set of objects that interdepend according to this ObjectHierarchy.
Definition: object_hierarchy.cc:613
static const ObjectImpType * stype()
Returns the ObjectImpType representing PointImp's.
Definition: point_imp.cc:159
QString selectStatement(const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &w) const
return a string describing what argument you want next, if the given selection of objects were select...
Definition: object_constructor.cc:338
static const ObjectImpType * stype()
Returns the ObjectImpType representing the ConicImp type.
Definition: conic_imp.cc:380
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
QString useText(const ObjectCalcer &o, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
return a string describing what you would use o for if it were selected...
Definition: object_constructor.cc:429
static const ObjectImpType * stype()
Returns the ObjectImpType representing the AbstractLineImp type.
Definition: line_imp.cc:520
const QString descriptiveName() const
Definition: object_constructor.cc:47
virtual const ObjectImp * imp() const =0
Returns the ObjectImp of this ObjectCalcer.
virtual BaseConstructMode * constructMode(KigPart &doc)
Which construct mode should be used for this ObjectConstructor.
Definition: object_constructor.cc:592
int wantArgs(const std::vector< ObjectCalcer * > &os, const KigDocument &d, const KigWidget &v) const
can this constructor do something useful with os ? return ArgsParser::Complete, Valid or NotGood ...
Definition: object_constructor.cc:260
const QString description() const
Definition: object_constructor.cc:52
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
void addObjects(const std::vector< ObjectHolder * > &os)
Definition: kig_part.cpp:500
void handleArgs(const std::vector< ObjectCalcer * > &os, KigPart &d, KigWidget &v) const
do something fun with os .
Definition: object_constructor.cc:271
const QString descriptiveName() const
Definition: object_constructor.cc:240
void plug(KigPart *doc, KigGUIAction *kact)
Definition: object_constructor.cc:463
~MergeObjectConstructor()
Definition: object_constructor.cc:218
Definition: construct_mode.h:114
MergeObjectConstructor(const char *descname, const char *desc, const char *iconfilename)
Definition: object_constructor.cc:224
void handlePrelim(KigPainter &p, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
show a preliminary version of what you would do when handleArgs would be called.
Definition: object_constructor.cc:98
bool isTransform() const
Definition: object_constructor.cc:582
QString useText(const ObjectCalcer &o, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const
return a string describing what you would use o for if it were selected...
Definition: object_constructor.cc:326
void drawprelim(const ObjectDrawer &drawer, KigPainter &p, const std::vector< ObjectCalcer * > &parents, const KigDocument &) const
Definition: object_constructor.cc:554
const QString description() const
Definition: object_constructor.cc:245
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
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.