• 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
KigMode Class Reference

#include <mode.h>

Inheritance diagram for KigMode:
Inheritance graph
[legend]

Public Member Functions

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 leftMouseMoved (QMouseEvent *, KigWidget *)
 
virtual void leftReleased (QMouseEvent *, KigWidget *)
 
virtual void midClicked (QMouseEvent *, KigWidget *)
 
virtual void midMouseMoved (QMouseEvent *, KigWidget *)
 
virtual void midReleased (QMouseEvent *, KigWidget *)
 
virtual void mouseMoved (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

 KigMode (KigPart &d)
 

Protected Attributes

KigPart & mdoc
 

Detailed Description

this is an ABC of a class containing the current "Mode" of the Kig document...

It tells us how to respond to a certain event.

Definition at line 37 of file mode.h.

Constructor & Destructor Documentation

KigMode::~KigMode ( )
virtual

Definition at line 43 of file mode.cc.

KigMode::KigMode ( KigPart &  d)
protected

Definition at line 47 of file mode.cc.

Member Function Documentation

void KigMode::browseHistory ( )
virtual

Reimplemented in NormalMode.

Definition at line 115 of file mode.cc.

void KigMode::cancelConstruction ( )
virtual

Reimplemented in NumericLabelMode, BaseConstructMode, and PointConstructMode.

Definition at line 95 of file mode.cc.

void KigMode::deleteObjects ( )
virtual

Reimplemented in NormalMode.

Definition at line 99 of file mode.cc.

void KigMode::deselectAll ( )
virtual

Reimplemented in NormalMode.

Definition at line 132 of file mode.cc.

void KigMode::editTypes ( )
virtual

Reimplemented in NormalMode.

Definition at line 111 of file mode.cc.

void KigMode::enableActions ( )
virtual

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 in NumericLabelMode, BaseConstructMode, ScriptModeBase, NormalMode, DefineMacroMode, PointConstructMode, and BaseMode.

Definition at line 27 of file mode.cc.

QEventLoop * KigMode::eventLoop ( ) const

Definition at line 145 of file mode.cc.

void KigMode::invertSelection ( )
virtual

Reimplemented in NormalMode.

Definition at line 136 of file mode.cc.

void KigMode::leftClicked ( QMouseEvent *  ,
KigWidget *   
)
virtual

Reimplemented in NumericLabelMode, and BaseMode.

Definition at line 52 of file mode.cc.

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

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

Reimplemented in MovingModeBase, and BaseMode.

Definition at line 56 of file mode.cc.

void KigMode::leftReleased ( QMouseEvent *  ,
KigWidget *   
)
virtual

Reimplemented in NumericLabelMode, TextLabelRedefineMode, MovingModeBase, and BaseMode.

Definition at line 60 of file mode.cc.

void KigMode::midClicked ( QMouseEvent *  ,
KigWidget *   
)
virtual

Reimplemented in BaseMode.

Definition at line 67 of file mode.cc.

void KigMode::midMouseMoved ( QMouseEvent *  ,
KigWidget *   
)
virtual

Definition at line 71 of file mode.cc.

void KigMode::midReleased ( QMouseEvent *  ,
KigWidget *   
)
virtual

Reimplemented in BaseMode.

Definition at line 75 of file mode.cc.

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

mouse moved without any buttons down...

Reimplemented in NumericLabelMode, MovingModeBase, and BaseMode.

Definition at line 91 of file mode.cc.

void KigMode::newMacro ( )
virtual

Reimplemented in NormalMode.

Definition at line 107 of file mode.cc.

void KigMode::redrawScreen ( KigWidget *  w)
virtual

Redraw the document on KigWidget w .

It's up to the mode to refresh the screen...

Reimplemented in NumericLabelMode, BaseConstructMode, ScriptModeBase, PointConstructMode, NormalMode, and TextLabelModeBase.

Definition at line 119 of file mode.cc.

void KigMode::rightClicked ( QMouseEvent *  ,
KigWidget *   
)
virtual

Reimplemented in BaseMode.

Definition at line 79 of file mode.cc.

void KigMode::rightMouseMoved ( QMouseEvent *  ,
KigWidget *   
)
virtual

Definition at line 83 of file mode.cc.

void KigMode::rightReleased ( QMouseEvent *  ,
KigWidget *   
)
virtual

Definition at line 87 of file mode.cc.

void KigMode::selectAll ( )
virtual

Reimplemented in NormalMode.

Definition at line 128 of file mode.cc.

void KigMode::setEventLoop ( QEventLoop *  e)

Definition at line 140 of file mode.cc.

void KigMode::showHidden ( )
virtual

Reimplemented in NormalMode.

Definition at line 103 of file mode.cc.

StdConstructionMode * KigMode::toStdConstructionMode ( )
virtual

Definition at line 123 of file mode.cc.

Member Data Documentation

KigPart& KigMode::mdoc
protected

Definition at line 94 of file mode.h.


The documentation for this class was generated from the following files:
  • mode.h
  • 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: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