kig
#include <bogus_imp.h>
Public Member Functions | |
Coordinate | attachPoint () const |
bool | contains (const Coordinate &p, int width, const KigWidget &w) const |
void | draw (KigPainter &p) const |
bool | inRect (const Rect &r, int width, const KigWidget &w) const |
Rect | surroundingRect () const |
ObjectImp * | transform (const Transformation &) const |
Public Member Functions inherited from ObjectImp | |
virtual | ~ObjectImp () |
virtual bool | canFillInNextEscape () const |
virtual ObjectImp * | copy () const =0 |
virtual bool | equals (const ObjectImp &rhs) const =0 |
virtual void | fillInNextEscape (QString &s, const KigDocument &) const |
int | getPropGid (const char *pname) const |
int | getPropLid (int propgid) const |
const char * | getPropName (int propgid) const |
virtual const char * | iconForProperty (int which) const |
virtual const ObjectImpType * | impRequirementForProperty (int which) const |
bool | inherits (const ObjectImpType *t) const |
virtual bool | isCache () const |
virtual bool | isPropertyDefinedOnOrThroughThisImp (int which) const |
virtual int | numberOfProperties () const |
virtual const QByteArrayList | properties () const |
virtual const QByteArrayList | propertiesInternalNames () const |
virtual ObjectImp * | property (int which, const KigDocument &d) const |
virtual const ObjectImpType * | type () const =0 |
bool | valid () const |
virtual void | visit (ObjectImpVisitor *vtor) const =0 |
Static Public Member Functions | |
static const ObjectImpType * | stype () |
Static Public Member Functions inherited from ObjectImp | |
static const ObjectImpType * | stype () |
Additional Inherited Members | |
Protected Member Functions inherited from ObjectImp | |
ObjectImp () | |
Detailed Description
This is the base class for the so-called BogusImp's.
These ObjectImp's are not really ObjectImp's, in that they don't represent objects. They exist because ObjectImp's also serve another purpose, namely containing data. They can all be loaded and saved, and the only difference between these objects and normal objects are that these serve only to be loaded and saved. This approach adds a lot of flexibility to the Kig system, and has certainly proven itself very valuable.
Definition at line 37 of file bogus_imp.h.
Member Function Documentation
|
virtual |
Returns a reference point where to attach labels; when this returns an invalidCoord then the attachment is either not done at all, or done in a specific way (like for curves, or for points) The treatment of points could also take advantage of this attachment mechanism.
If this method returns a valid Coordinate, then this is interpreted as a pivot point for the label, which can still be moved relative to that point, but follows the object when the object changes. In practice a new RelativePointType is created (position of the string), this type in turn depends on the object (to get its attachPoint) and two DoubleImp that are interpreted as relative displacement (x and y)
Implements ObjectImp.
Definition at line 25 of file bogus_imp.cc.
|
virtual |
Implements ObjectImp.
Definition at line 34 of file bogus_imp.cc.
|
virtual |
Implements ObjectImp.
Definition at line 30 of file bogus_imp.cc.
Implements ObjectImp.
Definition at line 39 of file bogus_imp.cc.
|
static |
Returns the ObjectImpType representing the BogusImp type.
Definition at line 286 of file bogus_imp.cc.
|
virtual |
Implements ObjectImp.
Definition at line 385 of file bogus_imp.cc.
|
virtual |
Return this ObjectImp, transformed by the transformation t.
Implements ObjectImp.
Definition at line 74 of file bogus_imp.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.