kig
moving.cc
Go to the documentation of this file.
55 std::set_difference( docobjsset.begin(), docobjsset.end(), drawableset.begin(), drawableset.end(),
void leftMouseMoved(QMouseEvent *, KigWidget *)
this means: mouse moved with left mouse button down (in case that wasn't clear...) ...
Definition: moving.cc:212
a KigCommand represents almost every action performed in Kig.
Definition: kig_commands.h:44
virtual Coordinate snapToGrid(const Coordinate &c, const KigWidget &w) const =0
void setParents(const std::vector< ObjectCalcer * > np)
Set the parents of this ObjectTypeCalcer to np.
Definition: object_calcer.cc:246
virtual void stopMove()=0
This is an ObjectCalcer that uses one of the various ObjectType's to calculate its ObjectImp...
Definition: object_calcer.h:183
void initScreen(const std::vector< ObjectCalcer * > &amo)
Subclasses should call this in their constructor, when they know which objects will be moving around...
Definition: moving.cc:39
this is an ABC of a class containing the current "Mode" of the Kig document...
Definition: mode.h:37
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
const ScreenInfo & screenInfo() const
the part of the document we're currently showing i.e.
Definition: kig_view.cpp:272
std::vector< ObjectCalcer * > getAllParents(const std::vector< ObjectCalcer * > &objs)
This function returns all objects above the given in the dependency graph.
Definition: calcpaths.cc:229
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
void mouseMoved(QMouseEvent *, KigWidget *)
mouse moved without any buttons down...
Definition: moving.cc:85
void redefinePoint(ObjectTypeCalcer *point, const Coordinate &c, KigDocument &d, const KigWidget &w) const
set point to what sensiblePoint would have returned.
Definition: object_factory.cc:497
An ObjectHolder represents an object as it is known to the document.
Definition: object_holder.h:40
this class monitors a set of DataObjects for changes and returns an appropriate ChangeObjectImpsComma...
Definition: kig_commands.h:153
const std::vector< ObjectHolder * > objects() const
Get a hold of the objects of this KigDocument.
Definition: kig_document.cc:46
void updateCurPix(const std::vector< QRect > &=std::vector< QRect >())
update curPix (bitBlt stillPix onto curPix..)
Definition: kig_view.cpp:187
void drawGrid(const CoordinateSystem &c, bool showGrid=true, bool showAxes=true)
Definition: kigpainter.cpp:507
void finish(KigCommand *comm)
add the generated KigCommandTasks to the command comm .
Definition: kig_commands.cpp:227
Qt::KeyboardModifiers modifiers() const
virtual void moveTo(const Coordinate &o, bool snaptogrid)=0
The ObjectType class is a thing that represents the "behaviour" for a certain type.
Definition: object_type.h:32
MovingMode(const std::vector< ObjectHolder * > &objects, const Coordinate &c, KigWidget &, KigPart &)
Definition: moving.cc:120
QPixmap curPix
temporary, gets bitBlt'd (copied) onto the widget (to avoid flickering)
Definition: kig_view.h:84
void clearStillPix()
The following are functions used by KigMode's to tell us to draw stuff...
Definition: kig_view.cpp:245
void updateWidget(const std::vector< QRect > &=std::vector< QRect >())
this means bitBlting curPix on the actual widget...
Definition: kig_view.cpp:115
Definition: kig_commands.h:196
std::vector< ObjectCalcer * > parents() const
Returns the parent ObjectCalcer's of this ObjectCalcer.
Definition: object_calcer.cc:105
PointRedefineMode(ObjectHolder *p, KigPart &d, KigWidget &v)
Definition: moving.cc:175
const QPoint & pos() const
virtual std::vector< ObjectCalcer * > parents() const =0
Returns the parent ObjectCalcer's of this ObjectCalcer.
const CoordinateSystem & coordinateSystem() const
Definition: kig_document.cc:40
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 drawObjects(const std::vector< ObjectHolder * > &os, bool sel)
Definition: kigpainter.cpp:518
void redrawScreen(const std::vector< ObjectHolder * > &selection, bool paintOnWidget=true)
Definition: kig_view.cpp:252
QPixmap stillPix
what do the still objects look like wondering if this is appropriate, maybe it should be part of Movi...
Definition: kig_view.h:79
void push(QUndoCommand *cmd)
"Template method" pattern ( see the Design patterns book ): This is a base class for two modes: norma...
Definition: moving.h:39
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.