• 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 | List of all members
BaseMode Class Referenceabstract

#include <base_mode.h>

Inheritance diagram for BaseMode:
Inheritance graph
[legend]

Public Member Functions

void leftClicked (QMouseEvent *e, KigWidget *v)
 
void leftMouseMoved (QMouseEvent *, KigWidget *)
 
void leftReleased (QMouseEvent *e, KigWidget *v)
 
void midClicked (QMouseEvent *e, KigWidget *v)
 
void midReleased (QMouseEvent *e, KigWidget *v)
 
void mouseMoved (QMouseEvent *e, KigWidget *v)
 
void rightClicked (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 ()
 
QEventLoop * eventLoop () const
 
virtual void invertSelection ()
 
virtual void midMouseMoved (QMouseEvent *, KigWidget *)
 
virtual void newMacro ()
 
virtual void redrawScreen (KigWidget *w)
 
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

 BaseMode (KigPart &)
 
 ~BaseMode ()
 
virtual void dragObject (const std::vector< ObjectHolder * > &os, const QPoint &pointClickedOn, KigWidget &w, bool ctrlOrShiftDown)
 
virtual void dragRect (const QPoint &p, KigWidget &w)
 
void enableActions ()
 
virtual void leftClickedObject (ObjectHolder *o, const QPoint &p, KigWidget &w, bool ctrlOrShiftDown)=0
 
virtual void midClicked (const QPoint &p, KigWidget &w)=0
 
virtual void mouseMoved (const std::vector< ObjectHolder * > &os, const QPoint &p, KigWidget &w, bool shiftpressed)=0
 
std::vector< ObjectHolder * > oco ()
 
QPoint pointLocation ()
 
virtual void rightClicked (const std::vector< ObjectHolder * > &oco, const QPoint &p, KigWidget &w)=0
 
- Protected Member Functions inherited from KigMode
 KigMode (KigPart &d)
 

Additional Inherited Members

- Protected Attributes inherited from KigMode
KigPart & mdoc
 

Detailed Description

The BaseMode is a particular mode that allows an easy mapping of the mouse actions to real, logical actions of the mode.

Definition at line 33 of file base_mode.h.

Constructor & Destructor Documentation

BaseMode::BaseMode ( KigPart &  d)
protected

Definition at line 30 of file base_mode.cc.

BaseMode::~BaseMode ( )
protected

Definition at line 35 of file base_mode.cc.

Member Function Documentation

void BaseMode::dragObject ( const std::vector< ObjectHolder * > &  os,
const QPoint &  pointClickedOn,
KigWidget &  w,
bool  ctrlOrShiftDown 
)
protectedvirtual

Reimplemented in NormalMode.

Definition at line 143 of file base_mode.cc.

void BaseMode::dragRect ( const QPoint &  p,
KigWidget &  w 
)
protectedvirtual

Reimplemented in ScriptModeBase, NormalMode, and DefineMacroMode.

Definition at line 134 of file base_mode.cc.

void BaseMode::enableActions ( )
protectedvirtual

actions: we enable the actions we want when our mode is made active.

This file is part of Kig, a KDE program for Interactive Geometry...

These actions are members of KigDocument, and call slots on KigDocument. These slots all call the correspondent mode() member. Modes reimplement the ones they need, and turn on the actions they support in enableActions().

Copyright (C) 2002 Dominique Devriese devri.nosp@m.ese@.nosp@m.kde.o.nosp@m.rg

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Reimplemented from KigMode.

Reimplemented in BaseConstructMode, ScriptModeBase, NormalMode, DefineMacroMode, and PointConstructMode.

Definition at line 148 of file base_mode.cc.

void BaseMode::leftClicked ( QMouseEvent *  e,
KigWidget *  v 
)
virtual

Reimplemented from KigMode.

Definition at line 39 of file base_mode.cc.

void BaseMode::leftClickedObject ( ObjectHolder *  o,
const QPoint &  p,
KigWidget &  w,
bool  ctrlOrShiftDown 
)
protectedpure virtual

Implemented in TestConstructMode, BaseConstructMode, ScriptModeBase, PointConstructMode, NormalMode, and DefineMacroMode.

Definition at line 138 of file base_mode.cc.

void BaseMode::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 68 of file base_mode.cc.

void BaseMode::leftReleased ( QMouseEvent *  e,
KigWidget *  v 
)
virtual

Reimplemented from KigMode.

Definition at line 76 of file base_mode.cc.

void BaseMode::midClicked ( QMouseEvent *  e,
KigWidget *  v 
)
virtual

Reimplemented from KigMode.

Definition at line 97 of file base_mode.cc.

virtual void BaseMode::midClicked ( const QPoint &  p,
KigWidget &  w 
)
protectedpure virtual

Implemented in TestConstructMode, BaseConstructMode, ScriptModeBase, DefineMacroMode, PointConstructMode, and NormalMode.

void BaseMode::midReleased ( QMouseEvent *  e,
KigWidget *  v 
)
virtual

Reimplemented from KigMode.

Definition at line 107 of file base_mode.cc.

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

mouse moved without any buttons down...

Reimplemented from KigMode.

Definition at line 128 of file base_mode.cc.

virtual void BaseMode::mouseMoved ( const std::vector< ObjectHolder * > &  os,
const QPoint &  p,
KigWidget &  w,
bool  shiftpressed 
)
protectedpure virtual

Implemented in TestConstructMode, BaseConstructMode, ScriptModeBase, DefineMacroMode, PointConstructMode, and NormalMode.

std::vector< ObjectHolder * > BaseMode::oco ( )
protected

Definition at line 153 of file base_mode.cc.

QPoint BaseMode::pointLocation ( )
protected

Definition at line 158 of file base_mode.cc.

void BaseMode::rightClicked ( QMouseEvent *  e,
KigWidget *  w 
)
virtual

Reimplemented from KigMode.

Definition at line 114 of file base_mode.cc.

virtual void BaseMode::rightClicked ( const std::vector< ObjectHolder * > &  oco,
const QPoint &  p,
KigWidget &  w 
)
protectedpure virtual

Implemented in TestConstructMode, BaseConstructMode, ScriptModeBase, DefineMacroMode, PointConstructMode, and NormalMode.


The documentation for this class was generated from the following files:
  • base_mode.h
  • base_mode.cc
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:40 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