kig
#include <construct_mode.h>
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
|
virtual |
Implements BaseConstructMode.
Definition at line 477 of file construct_mode.cc.
|
virtual |
Implements BaseConstructMode.
Definition at line 428 of file construct_mode.cc.
|
virtual |
Implements BaseConstructMode.
Definition at line 466 of file construct_mode.cc.
|
virtual |
Reimplemented from BaseConstructMode.
Definition at line 484 of file construct_mode.cc.
Reimplemented from BaseConstructMode.
Definition at line 525 of file construct_mode.cc.
|
virtual |
Reimplemented from BaseConstructMode.
Definition at line 543 of file construct_mode.cc.
|
virtual |
Reimplemented from BaseConstructMode.
Definition at line 534 of file construct_mode.cc.
|
virtual |
Implements BaseConstructMode.
Definition at line 570 of file construct_mode.cc.
|
virtual |
Implements BaseConstructMode.
Definition at line 472 of file construct_mode.cc.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.