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

kig

Public Member Functions | List of all members
TestConstructMode Class Reference

#include <construct_mode.h>

Inheritance diagram for TestConstructMode:
Inheritance graph
[legend]

Public Member Functions

 TestConstructMode (KigPart &d, const ArgsParserObjectType *type)
 
 ~TestConstructMode ()
 
void handleArgs (const std::vector< ObjectCalcer * > &args, KigWidget &w)
 
void handlePrelim (const std::vector< ObjectCalcer * > &os, const QPoint &p, KigPainter &, KigWidget &w)
 
int isAlreadySelectedOK (const std::vector< ObjectCalcer * > &, const int &)
 
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 rightClicked (const std::vector< ObjectHolder * > &oco, const QPoint &p, KigWidget &w)
 
QString selectStatement (const std::vector< ObjectCalcer * > &args, const KigWidget &w)
 
int wantArgs (const std::vector< ObjectCalcer * > &, KigDocument &d, KigWidget &w)
 
- Public Member Functions inherited from BaseConstructMode
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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from BaseConstructMode
 BaseConstructMode (KigPart &d)
 
void cancelConstruction ()
 
void enableActions ()
 
void finish ()
 
void redrawScreen (KigWidget *)
 
- 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)
 
- Protected Attributes inherited from KigMode
KigPart & mdoc
 

Detailed Description

This class constructs a test object.

It has special needs over ConstructMode because first the arguments need to be chosen, and then the location for the resulting TextImp needs to be chosen. It also needs special code for the drawPrelim and wantArgs code.

Therefore, we inherit from BaseConstructMode, and override the event callbacks, so that this mode behaves like a BaseConstructMode, until handleArgs is called. After that, mresult is no longer 0, and then the mode behaves in its own way, allowing the user to choose a location for the new label object.

Definition at line 141 of file construct_mode.h.

Constructor & Destructor Documentation

TestConstructMode::TestConstructMode ( KigPart &  d,
const ArgsParserObjectType *  type 
)

Definition at line 451 of file construct_mode.cc.

TestConstructMode::~TestConstructMode ( )

Definition at line 456 of file construct_mode.cc.

Member Function Documentation

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

Implements BaseConstructMode.

Definition at line 477 of file construct_mode.cc.

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

Implements BaseConstructMode.

Definition at line 428 of file construct_mode.cc.

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

Implements BaseConstructMode.

Definition at line 466 of file construct_mode.cc.

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

Reimplemented from BaseConstructMode.

Definition at line 484 of file construct_mode.cc.

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

Reimplemented from BaseConstructMode.

Definition at line 525 of file construct_mode.cc.

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

Reimplemented from BaseConstructMode.

Definition at line 543 of file construct_mode.cc.

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

Reimplemented from BaseConstructMode.

Definition at line 534 of file construct_mode.cc.

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

Implements BaseConstructMode.

Definition at line 570 of file construct_mode.cc.

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

Implements BaseConstructMode.

Definition at line 472 of file construct_mode.cc.


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: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