• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kig

Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MovingModeBase Class Referenceabstract

#include <moving.h>

Inheritance diagram for MovingModeBase:
Inheritance graph
[legend]

Public Member Functions

void leftMouseMoved (QMouseEvent *, KigWidget *)
 
void leftReleased (QMouseEvent *, KigWidget *)
 
void mouseMoved (QMouseEvent *, KigWidget *)
 
- Public Member Functions inherited from KigMode
virtual ~KigMode ()
 
virtual void browseHistory ()
 
virtual void cancelConstruction ()
 
virtual void deleteObjects ()
 
virtual void deselectAll ()
 
virtual void editTypes ()
 
virtual void enableActions ()
 
QEventLoop * eventLoop () const
 
virtual void invertSelection ()
 
virtual void leftClicked (QMouseEvent *, KigWidget *)
 
virtual void midClicked (QMouseEvent *, KigWidget *)
 
virtual void midMouseMoved (QMouseEvent *, KigWidget *)
 
virtual void midReleased (QMouseEvent *, KigWidget *)
 
virtual void newMacro ()
 
virtual void redrawScreen (KigWidget *w)
 
virtual void rightClicked (QMouseEvent *, KigWidget *)
 
virtual void rightMouseMoved (QMouseEvent *, KigWidget *)
 
virtual void rightReleased (QMouseEvent *, KigWidget *)
 
virtual void selectAll ()
 
void setEventLoop (QEventLoop *e)
 
virtual void showHidden ()
 
virtual StdConstructionMode * toStdConstructionMode ()
 

Protected Member Functions

 MovingModeBase (KigPart &doc, KigWidget &v)
 
 ~MovingModeBase ()
 
void initScreen (const std::vector< ObjectCalcer * > &amo)
 
virtual void moveTo (const Coordinate &o, bool snaptogrid)=0
 
virtual void stopMove ()=0
 
- Protected Member Functions inherited from KigMode
 KigMode (KigPart &d)
 

Protected Attributes

KigWidget & mview
 
- Protected Attributes inherited from KigMode
KigPart & mdoc
 

Detailed Description

"Template method" pattern ( see the Design patterns book ): This is a base class for two modes: normal MovingMode: used for moving a set of objects around, using Object::startMove, Object::moveTo and Object::stopMove, and another mode PointRedefineMode, used for redefining a NormalPoint...

Definition at line 39 of file moving.h.

Constructor & Destructor Documentation

MovingModeBase::MovingModeBase ( KigPart &  doc,
KigWidget &  v 
)
protected

Definition at line 203 of file moving.cc.

MovingModeBase::~MovingModeBase ( )
protected

Definition at line 208 of file moving.cc.

Member Function Documentation

void MovingModeBase::initScreen ( const std::vector< ObjectCalcer * > &  amo)
protected

Subclasses should call this in their constructor, when they know which objects will be moving around...

They are expected to be in the right order for being calc()'ed...

Definition at line 39 of file moving.cc.

void MovingModeBase::leftMouseMoved ( QMouseEvent *  ,
KigWidget *   
)
virtual

this means: mouse moved with left mouse button down (in case that wasn't clear...)

Reimplemented from KigMode.

Definition at line 212 of file moving.cc.

void MovingModeBase::leftReleased ( QMouseEvent *  ,
KigWidget *  v 
)
virtual

Reimplemented from KigMode.

Definition at line 69 of file moving.cc.

void MovingModeBase::mouseMoved ( QMouseEvent *  ,
KigWidget *   
)
virtual

mouse moved without any buttons down...

Reimplemented from KigMode.

Definition at line 85 of file moving.cc.

virtual void MovingModeBase::moveTo ( const Coordinate &  o,
bool  snaptogrid 
)
protectedpure virtual
virtual void MovingModeBase::stopMove ( )
protectedpure virtual

Member Data Documentation

KigWidget& MovingModeBase::mview
protected

Definition at line 43 of file moving.h.


The documentation for this class was generated from the following files:
  • moving.h
  • moving.cc
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal