kig
object_holder.h
Go to the documentation of this file.
bool isFreelyTranslatable() const
This call is simply forwarded to the ObjectCalcer.
Definition: object_holder.cc:123
This is an ObjectCalcer that keeps an ObjectImp, and never calculates a new one.
Definition: object_calcer.h:232
const ObjectConstCalcer * nameCalcer() const
Definition: object_holder.cc:63
const QString name() const
returns a null QString if no name is set.
Definition: object_holder.cc:140
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
void calc(const KigDocument &)
Make our ObjectCalcer recalculate its ObjectImp.
Definition: object_holder.cc:73
void setDrawer(ObjectDrawer *d)
Set the ObjectDrawer of this ObjectHolder to d , the old ObjectDrawer is deleted. ...
Definition: object_holder.cc:68
An ObjectHolder represents an object as it is known to the document.
Definition: object_holder.h:40
An ObjectCalcer is an object that represents an algorithm for calculating an ObjectImp from other Obj...
Definition: object_calcer.h:66
bool canMove() const
This call is simply forwarded to the ObjectCalcer.
Definition: object_holder.cc:118
void setNameCalcer(ObjectConstCalcer *namecalcer)
Setting the namecalcer is only allowed if previously none was set.
Definition: object_holder.cc:151
QString selectStatement() const
Return a statement saying something like "select this segment" or "select segment ab" depending on wh...
Definition: object_holder.cc:157
bool contains(const Coordinate &p, const KigWidget &w, bool nv=false) const
Returns whether this object contains the point p .
Definition: object_holder.cc:83
A class holding some information about how a certain object is drawn on the window.
Definition: object_drawer.h:47
void draw(KigPainter &p, bool selected) const
Draw this object on the given KigPainter.
Definition: object_holder.cc:78
const Coordinate moveReferencePoint() const
This call is simply forwarded to the ObjectCalcer.
Definition: object_holder.cc:108
ObjectDrawer * switchDrawer(ObjectDrawer *d)
Set the ObjectDrawer of this ObjectHolder to d , the old ObjectDrawer is not deleted, but returned.
Definition: object_holder.cc:128
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
ObjectHolder(ObjectCalcer *calcer, ObjectDrawer *drawer, ObjectConstCalcer *namecalcer)
Construct a new ObjectHolder with a given ObjectCalcer and ObjectDrawer, with a given name calcer...
Definition: object_holder.cc:31
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
void move(const Coordinate &to, const KigDocument &)
This call is simply forwarded to the ObjectCalcer.
Definition: object_holder.cc:113
bool inRect(const Rect &r, const KigWidget &w) const
Returns whether this object is in the rectangle r .
Definition: object_holder.cc:88
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.