kig
kig_commands.cpp
Go to the documentation of this file.
175 ChangeObjectConstCalcerTask::ChangeObjectConstCalcerTask( ObjectConstCalcer* calcer, ObjectImp* newimp )
ObjectImp * switchImp(ObjectImp *newimp)
Set the ObjectImp of this ObjectConstCalcer to the given newimp.
Definition: object_calcer.cc:202
a CoordinateSystem is what the user sees: it is kept by KigPart to show the user a grid...
Definition: coordinate_system.h:60
const ObjectImp * imp() const
Returns the ObjectImp of this ObjectCalcer.
Definition: object_calcer.cc:65
~ChangeObjectDrawerTask()
Definition: kig_commands.cpp:363
KigCommand(KigPart &inDoc, const QString &name)
Definition: kig_commands.cpp:48
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
Definition: kig_commands.h:115
RemoveObjectsTask(const std::vector< ObjectHolder * > &os)
Definition: kig_commands.cpp:159
static KigCommand * removeCommand(KigPart &doc, const std::vector< ObjectHolder * > &os)
make sure that when you delete something, you are also deleting its parents.
Definition: kig_commands.cpp:93
Definition: kig_commands.h:124
std::vector< ObjectCalcer * > getAllCalcers(const std::vector< ObjectHolder * > &os)
get the calcers that the holders represent and their namecalcers
Definition: common.cc:21
This represents a single task to be executed in a KigCommand.
Definition: kig_commands.h:91
This is an ObjectCalcer that uses one of the various ObjectType's to calculate its ObjectImp...
Definition: object_calcer.h:183
~ChangeCoordSystemTask()
Definition: kig_commands.cpp:268
static QString setCoordinateSystemStatement(int id)
Definition: coordinate_system.cpp:576
void monitor(const std::vector< ObjectCalcer * > &objs)
add objs to the list of objs to be watched, and save their current imp's.
Definition: kig_commands.cpp:217
~ChangeObjectConstCalcerTask()
Definition: kig_commands.cpp:394
std::vector< ObjectCalcer * > calcPath(const std::vector< ObjectCalcer * > &os)
This function sorts os such that they're in the right order for calc()-ing.
Definition: calcpaths.cc:48
MonitorDataObjects(const std::vector< ObjectCalcer * > &objs)
all the DataObjects in objs will be watched.
Definition: kig_commands.cpp:211
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
~ChangeParentsAndTypeTask()
Definition: kig_commands.cpp:281
static KigCommand * changeCoordSystemCommand(KigPart &doc, CoordinateSystem *s)
This creates directly a command to change the coordinate system to s .
Definition: kig_commands.cpp:118
const std::vector< ObjectHolder * > objects() const
Get a hold of the objects of this KigDocument.
Definition: kig_document.cc:46
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
QString text() const
A class holding some information about how a certain object is drawn on the window.
Definition: object_drawer.h:47
ChangeObjectConstCalcerTask(ObjectConstCalcer *calcer, ObjectImp *newimp)
Definition: kig_commands.cpp:175
AddObjectsTask(const std::vector< ObjectHolder * > &os)
Definition: kig_commands.cpp:134
void _addObjects(const std::vector< ObjectHolder * > &o)
Definition: kig_part.cpp:544
static KigCommand * addCommand(KigPart &doc, const std::vector< ObjectHolder * > &os)
To avoid confusion, this doesn't add a command to anything, this creates an AddCommand ;) ...
Definition: kig_commands.cpp:106
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
~KigViewShownRectChangeTask()
Definition: kig_commands.cpp:344
KigViewShownRectChangeTask(KigWidget &v, const Rect &newrect)
Definition: kig_commands.cpp:337
ChangeParentsAndTypeTask(ObjectTypeCalcer *o, const std::vector< ObjectCalcer * > &newparents, const ObjectType *newtype)
Definition: kig_commands.cpp:286
Definition: kig_commands.h:101
CoordinateSystem * switchCoordinateSystem(CoordinateSystem *s)
sets the coordinate system to s , and returns the old one.
Definition: kig_document.cc:61
ChangeObjectDrawerTask(ObjectHolder *holder, ObjectDrawer *newdrawer)
Definition: kig_commands.cpp:368
virtual const ObjectImp * imp() const =0
Returns the ObjectImp of this ObjectCalcer.
ChangeCoordSystemTask(CoordinateSystem *s)
a command that changes the coordinate-system to s .
Definition: kig_commands.cpp:249
ObjectConstCalcer::shared_ptr mcalcer
Definition: kig_commands.h:134
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
const CoordinateSystem & coordinateSystem() const
Definition: kig_document.cc:40
virtual int id() const =0
std::set< ObjectCalcer * > getAllChildren(ObjectCalcer *obj)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: calcpaths.cc:281
void _delObjects(const std::vector< ObjectHolder * > &o)
Definition: kig_part.cpp:525
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.