• 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
BaseConstructMode Class Referenceabstract

#include <construct_mode.h>

Inheritance diagram for BaseConstructMode:
Inheritance graph
[legend]

Public Member Functions

virtual ~BaseConstructMode ()
 
void selectObject (ObjectHolder *o, KigWidget &w)
 
void selectObjects (const std::vector< ObjectHolder * > &os, KigWidget &w)
 
- Public Member Functions inherited from BaseMode
void leftClicked (QMouseEvent *e, KigWidget *v)
 
void leftMouseMoved (QMouseEvent *, KigWidget *)
 
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 deleteObjects ()
 
virtual void deselectAll ()
 
virtual void editTypes ()
 
QEventLoop * eventLoop () const
 
virtual void invertSelection ()
 
virtual void midMouseMoved (QMouseEvent *, KigWidget *)
 
virtual void newMacro ()
 
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

 BaseConstructMode (KigPart &d)
 
void cancelConstruction ()
 
void enableActions ()
 
void finish ()
 
virtual void handleArgs (const std::vector< ObjectCalcer * > &args, KigWidget &w)=0
 
virtual void handlePrelim (const std::vector< ObjectCalcer * > &os, const QPoint &p, KigPainter &, KigWidget &w)=0
 
virtual int isAlreadySelectedOK (const std::vector< ObjectCalcer * > &, const int &)=0
 
void leftClickedObject (ObjectHolder *o, const QPoint &p, KigWidget &w, bool ctrlOrShiftDown)
 
void midClicked (const QPoint &p, KigWidget &w)
 
void mouseMoved (const std::vector< ObjectHolder * > &os, const QPoint &p, KigWidget &w, bool shiftpressed)
 
void redrawScreen (KigWidget *)
 
void rightClicked (const std::vector< ObjectHolder * > &oco, const QPoint &p, KigWidget &w)
 
virtual QString selectStatement (const std::vector< ObjectCalcer * > &args, const KigWidget &w)=0
 
virtual int wantArgs (const std::vector< ObjectCalcer * > &, KigDocument &d, KigWidget &w)=0
 
- Protected Member Functions inherited from BaseMode
 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)
 
std::vector< ObjectHolder * > oco ()
 
QPoint pointLocation ()
 
- Protected Member Functions inherited from KigMode
 KigMode (KigPart &d)
 

Additional Inherited Members

- Protected Attributes inherited from KigMode
KigPart & mdoc
 

Detailed Description

Definition at line 58 of file construct_mode.h.

Constructor & Destructor Documentation

BaseConstructMode::~BaseConstructMode ( )
virtual

Definition at line 64 of file construct_mode.cc.

BaseConstructMode::BaseConstructMode ( KigPart &  d)
protected

Definition at line 54 of file construct_mode.cc.

Member Function Documentation

void BaseConstructMode::cancelConstruction ( )
protectedvirtual

Reimplemented from KigMode.

Definition at line 360 of file construct_mode.cc.

void BaseConstructMode::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 BaseMode.

Definition at line 353 of file construct_mode.cc.

void BaseConstructMode::finish ( )
protected

Definition at line 411 of file construct_mode.cc.

virtual void BaseConstructMode::handleArgs ( const std::vector< ObjectCalcer * > &  args,
KigWidget &  w 
)
protectedpure virtual

Implemented in TestConstructMode, and ConstructMode.

virtual void BaseConstructMode::handlePrelim ( const std::vector< ObjectCalcer * > &  os,
const QPoint &  p,
KigPainter &  ,
KigWidget &  w 
)
protectedpure virtual

Implemented in TestConstructMode, and ConstructMode.

virtual int BaseConstructMode::isAlreadySelectedOK ( const std::vector< ObjectCalcer * > &  ,
const int &   
)
protectedpure virtual

Implemented in TestConstructMode, and ConstructMode.

void BaseConstructMode::leftClickedObject ( ObjectHolder *  o,
const QPoint &  p,
KigWidget &  w,
bool  ctrlOrShiftDown 
)
protectedvirtual

Implements BaseMode.

Reimplemented in TestConstructMode.

Definition at line 108 of file construct_mode.cc.

void BaseConstructMode::midClicked ( const QPoint &  p,
KigWidget &  w 
)
protectedvirtual

Implements BaseMode.

Reimplemented in TestConstructMode.

Definition at line 163 of file construct_mode.cc.

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

Implements BaseMode.

Reimplemented in TestConstructMode.

Definition at line 184 of file construct_mode.cc.

void BaseConstructMode::redrawScreen ( KigWidget *  w)
protectedvirtual

Redraw the document on KigWidget w .

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

Reimplemented from KigMode.

Definition at line 586 of file construct_mode.cc.

void BaseConstructMode::rightClicked ( const std::vector< ObjectHolder * > &  oco,
const QPoint &  p,
KigWidget &  w 
)
protectedvirtual

Implements BaseMode.

Reimplemented in TestConstructMode.

Definition at line 179 of file construct_mode.cc.

void BaseConstructMode::selectObject ( ObjectHolder *  o,
KigWidget &  w 
)

Definition at line 280 of file construct_mode.cc.

void BaseConstructMode::selectObjects ( const std::vector< ObjectHolder * > &  os,
KigWidget &  w 
)

Definition at line 378 of file construct_mode.cc.

virtual QString BaseConstructMode::selectStatement ( const std::vector< ObjectCalcer * > &  args,
const KigWidget &  w 
)
protectedpure virtual

Implemented in TestConstructMode, and ConstructMode.

virtual int BaseConstructMode::wantArgs ( const std::vector< ObjectCalcer * > &  ,
KigDocument &  d,
KigWidget &  w 
)
protectedpure virtual

Implemented in TestConstructMode, and ConstructMode.


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