kig
text_type.cc
Go to the documentation of this file.
66 const ObjectImpType* GenericTextType::impRequirement( const ObjectImp* o, const Args& args ) const
141 std::vector<ObjectCalcer*> GenericTextType::sortArgs( const std::vector<ObjectCalcer*>& os ) const
159 std::vector<ObjectCalcer*> GenericTextType::movableParents( const ObjectTypeCalcer& ourobj ) const
static bool checkArgs(const Collection &os, uint min, const std::vector< ArgsParser::spec > &argsspec)
Definition: argsparser.cpp:199
Instances of this class represent a certain ObjectImp type.
Definition: object_imp.h:95
Definition: text_type.h:54
bool inherits(const ObjectImpType *t) const
Returns true if this ObjectImp inherits the ObjectImp type represented by t.
Definition: object_imp.cc:279
void setImp(ObjectImp *newimp)
Set the ObjectImp of this ObjectConstCalcer to the given newimp.
Definition: object_calcer.cc:241
KIG_INSTANTIATE_OBJECT_TYPE_INSTANCE(SegmentAxisType)
void executeAction(int i, ObjectHolder &o, ObjectTypeCalcer &c, KigPart &d, KigWidget &w, NormalMode &m) const
execute the i 'th action from the specialActions above.
Definition: text_type.cc:250
a KigCommand represents almost every action performed in Kig.
Definition: kig_commands.h:44
void fillInNextEscape(QString &s, const KigDocument &) const
Definition: bogus_imp.cc:103
This is an ObjectCalcer that keeps an ObjectImp, and never calculates a new one.
Definition: object_calcer.h:232
Definition: text_type.h:23
Definition: text_imp.h:26
Definition: kig_commands.h:124
static const ObjectImpType * stype()
Returns the ObjectImpType representing the DoubleImp type.
Definition: bogus_imp.cc:270
void move(ObjectTypeCalcer &ourobj, const Coordinate &to, const KigDocument &) const
Definition: text_type.cc:115
Definition: text_imp.h:70
bool isFreelyTranslatable(const ObjectTypeCalcer &ourobj) const
Definition: text_type.cc:110
static const ObjectImpType * stype()
Returns the ObjectImpType representing the IntImp type.
Definition: bogus_imp.cc:278
const Coordinate moveReferencePoint(const ObjectTypeCalcer &ourobj) const
Definition: text_type.cc:135
static const ObjectImpType * stype()
The ObjectImpType representing the base ObjectImp class.
Definition: object_imp.cc:284
This is an ObjectCalcer that uses one of the various ObjectType's to calculate its ObjectImp...
Definition: object_calcer.h:183
QStringList specialActions() const
return i18n'd names for the special actions.
Definition: text_type.cc:294
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
std::vector< ObjectCalcer * > movableParents(const ObjectTypeCalcer &ourobj) const
Definition: text_type.cc:159
const ObjectImpType * impRequirement(const ObjectImp *o, const Args &parents) const
Supposing that parents would be given as parents to this type's calc function, this function returns ...
Definition: text_type.cc:66
QStringList specialActions() const
return i18n'd names for the special actions.
Definition: text_type.cc:173
int count(const T &value) const
Definition: kig_commands.h:223
QClipboard * clipboard()
void executeAction(int i, ObjectHolder &o, ObjectTypeCalcer &c, KigPart &d, KigWidget &w, NormalMode &m) const
execute the i 'th action from the specialActions above.
Definition: text_type.cc:301
double getDoubleFromUser(const QString &caption, const QString &label, double value, QWidget *parent, bool *ok, double min, double max, int decimals)
Here, we define some algorithms which we need in various places...
Definition: common.cpp:349
An ObjectHolder represents an object as it is known to the document.
Definition: object_holder.h:40
const ObjectImp * imp() const
Returns the ObjectImp of this ObjectCalcer.
Definition: object_calcer.cc:100
Definition: text_imp.h:91
Definition: text_type.h:67
QStringList specialActions() const
return i18n'd names for the special actions.
Definition: text_type.cc:243
this class monitors a set of DataObjects for changes and returns an appropriate ChangeObjectImpsComma...
Definition: kig_commands.h:153
bool checkArgs(const std::vector< ObjectCalcer * > &os) const
Definition: argsparser.cpp:222
Definition: label.h:118
std::vector< ObjectCalcer * > sortArgs(const std::vector< ObjectCalcer * > &os) const
Definition: text_type.cc:141
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 finish(KigCommand *comm)
add the generated KigCommandTasks to the command comm .
Definition: kig_commands.cpp:227
The ObjectType class is a thing that represents the "behaviour" for a certain type.
Definition: object_type.h:32
const ObjectImpType * impRequirement(const ObjectImp *o, const Args &parents) const
returns the minimal ObjectImp ID that o needs to inherit in order to be useful.
Definition: argsparser.cpp:185
static const ObjectImpType * stype()
Returns the ObjectImpType representing PointImp's.
Definition: point_imp.cc:159
bool isDefinedOnOrThrough(const ObjectImp *o, const Args &parents) const
Supposing that parents would be given as parents to this type's calc function, this function returns ...
Definition: text_type.cc:168
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: text_type.cc:61
bool canMove(const ObjectTypeCalcer &ourobj) const
Definition: text_type.cc:105
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
static const ObjectImpType * stype()
Returns the ObjectImpType representing the StringImp type.
Definition: bogus_imp.cc:220
std::vector< ObjectCalcer * > parents() const
Returns the parent ObjectCalcer's of this ObjectCalcer.
Definition: object_calcer.cc:105
ObjectImp * calc(const Args &parents, const KigDocument &d) const
Definition: text_type.cc:76
void setText(const QString &text, Mode mode)
ObjectDrawer * getCopyFont(const QFont &f) const
returns a new ObjectDrawer that is identical to this one, except that the font state is set to f ...
Definition: object_drawer.cc:122
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
GenericTextType(const char *fulltypename)
Definition: text_type.cc:52
Definition: normal.h:26
Definition: bogus_imp.h:253
void push(QUndoCommand *cmd)
void executeAction(int i, ObjectHolder &o, ObjectTypeCalcer &c, KigPart &d, KigWidget &w, NormalMode &m) const
execute the i 'th action from the specialActions above.
Definition: text_type.cc:182
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.