kig
object_constructor.h
Go to the documentation of this file.
168 virtual void drawprelim( const ObjectDrawer& drawer, KigPainter& p, const std::vector<ObjectCalcer*>& parents,
199 void drawprelim( const ObjectDrawer& drawer, KigPainter& p, const std::vector<ObjectCalcer*>& parents,
228 void drawprelim( const ObjectDrawer& drawer, KigPainter& p, const std::vector<ObjectCalcer*>& parents,
268 void drawprelim( const ObjectDrawer& drawer, KigPainter& p, const std::vector<ObjectCalcer*>& parents,
346 MacroConstructor( const std::vector<ObjectCalcer*>& input, const std::vector<ObjectCalcer*>& output,
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
This class is a collection of some other ObjectConstructors, that makes them appear to the user as a ...
Definition: object_constructor.h:285
virtual void plug(KigPart *doc, KigGUIAction *kact)=0
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
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
virtual const QString descriptiveName() const =0
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
A standard implementation of StandardConstructorBase for simple types.
Definition: object_constructor.h:188
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
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 QString selectStatement(const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &w) const =0
return a string describing what argument you want next, if the given selection of objects were select...
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 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
const QByteArray iconFileName(const bool canBeNull=false) const
Definition: object_constructor.cc:57
virtual bool isTransform() const =0
virtual bool isIntersection() const
Definition: object_constructor.cc:531
virtual void handlePrelim(KigPainter &p, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const =0
show a preliminary version of what you would do when handleArgs would be called.
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
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
MacroConstructor is a class that represents Kig macro's: these are constructed by the user...
Definition: object_constructor.h:336
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 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
virtual void handleArgs(const std::vector< ObjectCalcer * > &os, KigPart &d, KigWidget &v) const =0
do something fun with os .
std::vector< ObjectHolder * > build(const std::vector< ObjectCalcer * > &os, KigDocument &d, KigWidget &w) const
Definition: object_constructor.cc:140
virtual ~ObjectConstructor()
Definition: object_constructor.cc:231
virtual QString useText(const ObjectCalcer &o, const std::vector< ObjectCalcer * > &sel, const KigDocument &d, const KigWidget &v) const =0
return a string describing what you would use o for if it were selected...
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
The ObjectType class is a thing that represents the "behaviour" for a certain type.
Definition: object_type.h:32
~MultiObjectTypeConstructor()
Definition: object_constructor.cc:178
void plug(KigPart *doc, KigGUIAction *kact)
Definition: object_constructor.cc:578
virtual int wantArgs(const std::vector< ObjectCalcer * > &os, const KigDocument &d, const KigWidget &v) const =0
can this constructor do something useful with os ? return ArgsParser::Complete, Valid or NotGood ...
virtual bool isAlreadySelectedOK(const std::vector< ObjectCalcer * > &os, const uint &) const =0
the following function is called in case of duplication of arguments and returns true if this is acce...
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
virtual const QString description() const =0
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
This class is the equivalent of SimpleObjectTypeConstructor for object types that are constructed in ...
Definition: object_constructor.h:251
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
const QString descriptiveName() const
Definition: object_constructor.cc:47
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
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
MergeObjectConstructor(const char *descname, const char *desc, const char *iconfilename)
Definition: object_constructor.cc:224
virtual const QByteArray iconFileName(const bool canBeNull=false) const =0
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
A standard implementation of StandardConstructorBase for property objects...
Definition: object_constructor.h:215
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.