kig
BaseConstructMode Class Reference
#include <construct_mode.h>

Detailed Description
Definition at line 53 of file construct_mode.h.
Public Member Functions | |
| void | selectObject (ObjectHolder *o, KigWidget &w) |
| void | selectObjects (const std::vector< ObjectHolder * > &os, KigWidget &w) |
| virtual | ~BaseConstructMode () |
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 |
Constructor & Destructor Documentation
| BaseConstructMode::~BaseConstructMode | ( | ) | [virtual] |
Definition at line 62 of file construct_mode.cc.
| BaseConstructMode::BaseConstructMode | ( | KigPart & | d | ) | [protected] |
Definition at line 52 of file construct_mode.cc.
Member Function Documentation
| void BaseConstructMode::cancelConstruction | ( | ) | [protected, virtual] |
| void BaseConstructMode::enableActions | ( | ) | [protected, 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 <devriese@kde.org>
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 350 of file construct_mode.cc.
| void BaseConstructMode::finish | ( | ) | [protected] |
Definition at line 407 of file construct_mode.cc.
| virtual void BaseConstructMode::handleArgs | ( | const std::vector< ObjectCalcer * > & | args, | |
| KigWidget & | w | |||
| ) | [protected, pure virtual] |
Implemented in ConstructMode, and TestConstructMode.
| virtual void BaseConstructMode::handlePrelim | ( | const std::vector< ObjectCalcer * > & | os, | |
| const QPoint & | p, | |||
| KigPainter & | , | |||
| KigWidget & | w | |||
| ) | [protected, pure virtual] |
Implemented in ConstructMode, and TestConstructMode.
| virtual int BaseConstructMode::isAlreadySelectedOK | ( | const std::vector< ObjectCalcer * > & | , | |
| const int & | ||||
| ) | [protected, pure virtual] |
Implemented in ConstructMode, and TestConstructMode.
| void BaseConstructMode::leftClickedObject | ( | ObjectHolder * | o, | |
| const QPoint & | p, | |||
| KigWidget & | w, | |||
| bool | ctrlOrShiftDown | |||
| ) | [protected, virtual] |
Implements BaseMode.
Reimplemented in TestConstructMode.
Definition at line 105 of file construct_mode.cc.
Implements BaseMode.
Reimplemented in TestConstructMode.
Definition at line 160 of file construct_mode.cc.
| void BaseConstructMode::mouseMoved | ( | const std::vector< ObjectHolder * > & | os, | |
| const QPoint & | p, | |||
| KigWidget & | w, | |||
| bool | shiftpressed | |||
| ) | [protected, virtual] |
Implements BaseMode.
Reimplemented in TestConstructMode.
Definition at line 181 of file construct_mode.cc.
| void BaseConstructMode::redrawScreen | ( | KigWidget * | w | ) | [protected, virtual] |
Redraw the document on KigWidget w .
It's up to the mode to refresh the screen...
Reimplemented from KigMode.
Definition at line 582 of file construct_mode.cc.
| void BaseConstructMode::rightClicked | ( | const std::vector< ObjectHolder * > & | oco, | |
| const QPoint & | p, | |||
| KigWidget & | w | |||
| ) | [protected, virtual] |
Implements BaseMode.
Reimplemented in TestConstructMode.
Definition at line 176 of file construct_mode.cc.
| void BaseConstructMode::selectObject | ( | ObjectHolder * | o, | |
| KigWidget & | w | |||
| ) |
Definition at line 277 of file construct_mode.cc.
| void BaseConstructMode::selectObjects | ( | const std::vector< ObjectHolder * > & | os, | |
| KigWidget & | w | |||
| ) |
Definition at line 374 of file construct_mode.cc.
| virtual QString BaseConstructMode::selectStatement | ( | const std::vector< ObjectCalcer * > & | args, | |
| const KigWidget & | w | |||
| ) | [protected, pure virtual] |
Implemented in ConstructMode, and TestConstructMode.
| virtual int BaseConstructMode::wantArgs | ( | const std::vector< ObjectCalcer * > & | , | |
| KigDocument & | d, | |||
| KigWidget & | w | |||
| ) | [protected, pure virtual] |
Implemented in ConstructMode, and TestConstructMode.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference