kig
#include <text_imp.h>
Public Types | |
typedef ObjectImp | Parent |
Public Member Functions | |
TextImp (const QString &text, const Coordinate &loc, bool frame=false) | |
~TextImp () | |
Coordinate | attachPoint () const |
bool | contains (const Coordinate &p, int width, const KigWidget &) const |
const Coordinate | coordinate () const |
TextImp * | copy () const |
void | draw (KigPainter &p) const |
bool | equals (const ObjectImp &rhs) const |
bool | hasFrame () const |
const char * | iconForProperty (int which) const |
const ObjectImpType * | impRequirementForProperty (int which) const |
bool | inRect (const Rect &r, int width, const KigWidget &) const |
bool | isPropertyDefinedOnOrThroughThisImp (int which) const |
int | numberOfProperties () const |
const QByteArrayList | properties () const |
const QByteArrayList | propertiesInternalNames () const |
ObjectImp * | property (int which, const KigDocument &w) const |
Rect | surroundingRect () const |
QString | text () const |
ObjectImp * | transform (const Transformation &) const |
const ObjectImpType * | type () const |
bool | valid () const |
void | visit (ObjectImpVisitor *vtor) const |
Public Member Functions inherited from ObjectImp | |
virtual | ~ObjectImp () |
virtual bool | canFillInNextEscape () const |
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 |
bool | inherits (const ObjectImpType *t) const |
virtual bool | isCache () const |
bool | valid () const |
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
Definition at line 26 of file text_imp.h.
Member Typedef Documentation
typedef ObjectImp TextImp::Parent |
Definition at line 36 of file text_imp.h.
Constructor & Destructor Documentation
TextImp::TextImp | ( | const QString & | text, |
const Coordinate & | loc, | ||
bool | frame = false |
||
) |
Definition at line 23 of file text_imp.cc.
TextImp::~TextImp | ( | ) |
Definition at line 33 of file text_imp.cc.
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 37 of file text_imp.cc.
|
virtual |
Implements ObjectImp.
Definition at line 54 of file text_imp.cc.
const Coordinate TextImp::coordinate | ( | ) | const |
Definition at line 125 of file text_imp.cc.
|
virtual |
Returns a copy of this ObjectImp.
The copy is an exact copy. Changes to the copy don't affect the original.
Implements ObjectImp.
Reimplemented in BoolTextImp, and NumericTextImp.
Definition at line 28 of file text_imp.cc.
|
virtual |
Implements ObjectImp.
Definition at line 48 of file text_imp.cc.
|
virtual |
Returns true if this ObjectImp is equal to rhs.
This function checks whether rhs is of the same ObjectImp type, and whether it contains the same data as this ObjectImp.
It is used e.g. by the KigCommand stuff to see what the user has changed during a move.
Implements ObjectImp.
Definition at line 130 of file text_imp.cc.
bool TextImp::hasFrame | ( | ) | const |
Definition at line 138 of file text_imp.cc.
|
virtual |
Reimplemented from ObjectImp.
Reimplemented in BoolTextImp, and NumericTextImp.
Definition at line 95 of file text_imp.cc.
|
virtual |
Reimplemented from ObjectImp.
Reimplemented in BoolTextImp, and NumericTextImp.
Definition at line 88 of file text_imp.cc.
Implements ObjectImp.
Definition at line 59 of file text_imp.cc.
|
virtual |
Reimplemented from ObjectImp.
Reimplemented in BoolTextImp, and NumericTextImp.
Definition at line 165 of file text_imp.cc.
|
virtual |
Reimplemented from ObjectImp.
Reimplemented in BoolTextImp, and NumericTextImp.
Definition at line 69 of file text_imp.cc.
|
virtual |
Reimplemented from ObjectImp.
Reimplemented in BoolTextImp, and NumericTextImp.
Definition at line 81 of file text_imp.cc.
|
virtual |
Reimplemented from ObjectImp.
Reimplemented in BoolTextImp, and NumericTextImp.
Definition at line 74 of file text_imp.cc.
|
virtual |
Reimplemented from ObjectImp.
Reimplemented in BoolTextImp, and NumericTextImp.
Definition at line 105 of file text_imp.cc.
|
static |
Definition at line 143 of file text_imp.cc.
|
virtual |
Implements ObjectImp.
Definition at line 170 of file text_imp.cc.
QString TextImp::text | ( | ) | const |
Definition at line 115 of file text_imp.cc.
|
virtual |
Return this ObjectImp, transformed by the transformation t.
Implements ObjectImp.
Definition at line 42 of file text_imp.cc.
|
virtual |
Returns the lowermost ObjectImpType that this object is an instantiation of.
E.g. if you want to get a string containing the internal name of the type of an object, you can do:
Implements ObjectImp.
Reimplemented in BoolTextImp, and NumericTextImp.
Definition at line 160 of file text_imp.cc.
bool TextImp::valid | ( | ) | const |
Definition at line 64 of file text_imp.cc.
|
virtual |
Implements ObjectImp.
Definition at line 120 of file text_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.