kig
label.cc
  
Go to the documentation of this file.
  487     label = ObjectFactory::instance()->attachedLabel( s, locationparent, coord, needframe, args, mdoc.document() );
  594 //    double param = static_cast<const CurveImp*>( locationparent->imp() )->getParam( coord, mdoc.document() );
Definition: textlabelwizard.h:28
bool inherits(const ObjectImpType *t) const 
Returns true if this ObjectImp inherits the ObjectImp type represented by t. 
Definition: object_imp.cc:279
void setCursor(const QCursor &)
a KigCommand represents almost every action performed in Kig. 
Definition: kig_commands.h:44
This is an ObjectCalcer that keeps an ObjectImp, and never calculates a new one. 
Definition: object_calcer.h:232
QVariant data() const
void enableActions()
actions: we enable the actions we want when our mode is made active. 
Definition: label.cc:670
QPoint mapToGlobal(const QPoint &pos) const
ObjectCalcer * getAttachPoint(ObjectCalcer *locationparent, const Coordinate &loc, const KigDocument &doc) const 
this has been added because it comes handy when redefining a text label, we move here all the code fo...
Definition: object_factory.cc:421
void finish(const Coordinate &coord, const QString &s, const argvect &props, bool needframe, ObjectCalcer *locationparent)
Definition: label.cc:475
virtual void enableActions()
actions: we enable the actions we want when our mode is made active. 
Definition: mode.cc:27
static const ObjectImpType * stype()
Returns the ObjectImpType representing the IntImp type. 
Definition: bogus_imp.cc:278
This is an ObjectCalcer that uses one of the various ObjectType's to calculate its ObjectImp...
Definition: object_calcer.h:183
const ObjectConstCalcer * nameCalcer() const 
Definition: object_holder.cc:63
TextLabelRedefineMode(KigPart &d, ObjectTypeCalcer *label)
Definition: label.cc:493
void leftReleased(QMouseEvent *, KigWidget *)
Definition: label.cc:530
this is an ABC of a class containing the current "Mode" of the Kig document... 
Definition: mode.h:37
int size() const
void mouseMoved(QMouseEvent *, KigWidget *)
mouse moved without any buttons down... 
Definition: label.cc:679
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
int matchedLength() const
void leftReleased(QMouseEvent *, KigWidget *, ObjectTypeCalcer *prevlabel=0)
Definition: label.cc:128
int indexIn(const QString &str, int offset, CaretMode caretMode) const
const ScreenInfo & screenInfo() const 
the part of the document we're currently showing i.e. 
Definition: kig_view.cpp:272
QString fromUtf8(const char *str, int size)
int toInt(bool *ok) const
ObjectHolder * label(const QString &s, const Coordinate &loc, bool needframe, const std::vector< ObjectCalcer * > &parents, const KigDocument &doc) const 
returns a label with text s at point c . 
Definition: object_factory.cc:386
virtual const char * iconForProperty(int which) const 
Definition: object_imp.cc:187
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
void setObjectName(const QString &name)
void selectArgumentsPageEntered()
Definition: label.cc:289
An ObjectCalcer is an object that represents an algorithm for calculating an ObjectImp from other Obj...
Definition: object_calcer.h:66
this class monitors a set of DataObjects for changes and returns an appropriate ChangeObjectImpsComma...
Definition: kig_commands.h:153
std::vector< ObjectHolder * > whatAmIOn(const Coordinate &p, const KigWidget &w) const 
Return a vector of objects that contain the given point. 
Definition: kig_document.cc:68
virtual void calc(const KigDocument &)=0
Makes the ObjectCalcer recalculate its ObjectImp from its parents. 
This is an ObjectCalcer that has a single parent, and gets a certain property from it in its calc() m...
Definition: object_calcer.h:276
void updateCurPix(const std::vector< QRect > &=std::vector< QRect >())
update curPix (bitBlt stillPix onto curPix..) 
Definition: kig_view.cpp:187
void setNameCalcer(ObjectConstCalcer *namecalcer)
Setting the namecalcer is only allowed if previously none was set. 
Definition: object_holder.cc:151
void setData(const QVariant &userData)
QVariant fromValue(const T &value)
QPixmap curPix
temporary, gets bitBlt'd (copied) onto the widget (to avoid flickering) 
Definition: kig_view.h:84
QString mid(int position, int n) const
static const ObjectImpType * stype()
Returns the ObjectImpType representing PointImp's. 
Definition: point_imp.cc:159
~TextLabelConstructionMode()
Definition: label.cc:471
Definition: linkslabel.h:38
ObjectHolder * attachedLabel(const QString &s, ObjectCalcer *locationparent, const Coordinate &loc, bool needframe, const std::vector< ObjectCalcer * > &parents, const KigDocument &doc) const 
Definition: object_factory.cc:474
static const ObjectImpType * stype()
Returns the ObjectImpType representing the CurveImp type. 
Definition: curve_imp.cc:27
void updateWidget(const std::vector< QRect > &=std::vector< QRect >())
this means bitBlting curPix on the actual widget... 
Definition: kig_view.cpp:115
static const ObjectImpType * stype()
Returns the ObjectImpType representing the StringImp type. 
Definition: bogus_imp.cc:220
int length() const
void setX(int x)
Definition: kig_commands.h:196
virtual void finish(const Coordinate &c, const QString &s, const argvect &props, bool needframe, ObjectCalcer *locationparent)=0
std::vector< ObjectCalcer * > parents() const 
Returns the parent ObjectCalcer's of this ObjectCalcer. 
Definition: object_calcer.cc:105
void setPropertyObjects(const argvect &props)
objects you pass here, should be newly created property objects, that have no children. 
Definition: label.cc:459
const QPoint & pos() const
ObjectHolder * numericValue(const double value, const Coordinate &loc, const KigDocument &doc) const 
this returns a numeric label with the value value at the position loc . 
Definition: object_factory.cc:59
this is the base class for TextLabelConstructionMode and TextLabelRedefineMode. 
Definition: label.h:41
void redrawScreen(const std::vector< ObjectHolder * > &selection, bool paintOnWidget=true)
Definition: kig_view.cpp:252
bool percentCountChanged(uint percentcount)
Definition: label.cc:345
TextLabelConstructionMode(KigPart &d)
Definition: label.cc:466
void push(QUndoCommand *cmd)
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.
 KDE API Reference
    KDE API Reference