kig
BaseMode Class Reference
#include <base_mode.h>

Detailed Description
The BaseMode is a particular mode that allows an easy mapping of the mouse actions to real, logical actions of the mode.Definition at line 33 of file base_mode.h.
Protected Member Functions | |
| void | enableActions () |
| std::vector< ObjectHolder * > | oco () |
| QPoint | pointLocation () |
| virtual void | dragRect (const QPoint &p, KigWidget &w) |
| virtual void | dragObject (const std::vector< ObjectHolder * > &os, const QPoint &pointClickedOn, KigWidget &w, bool ctrlOrShiftDown) |
| virtual void | leftClickedObject (ObjectHolder *o, const QPoint &p, KigWidget &w, bool ctrlOrShiftDown)=0 |
| virtual void | midClicked (const QPoint &p, KigWidget &w)=0 |
| virtual void | rightClicked (const std::vector< ObjectHolder * > &oco, const QPoint &p, KigWidget &w)=0 |
| virtual void | mouseMoved (const std::vector< ObjectHolder * > &os, const QPoint &p, KigWidget &w, bool shiftpressed)=0 |
| BaseMode (KigPart &) | |
| ~BaseMode () | |
Constructor & Destructor Documentation
| BaseMode::BaseMode | ( | KigPart & | d | ) | [protected] |
Definition at line 29 of file base_mode.cc.
| BaseMode::~BaseMode | ( | ) | [protected] |
Definition at line 34 of file base_mode.cc.
Member Function Documentation
| void BaseMode::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 KigMode.
Reimplemented in PointConstructMode, BaseConstructMode, DefineMacroMode, NormalMode, and ScriptModeBase.
Definition at line 147 of file base_mode.cc.
| std::vector< ObjectHolder * > BaseMode::oco | ( | ) | [protected] |
Definition at line 152 of file base_mode.cc.
| QPoint BaseMode::pointLocation | ( | ) | [protected] |
Definition at line 157 of file base_mode.cc.
Reimplemented in DefineMacroMode, NormalMode, and ScriptModeBase.
Definition at line 133 of file base_mode.cc.
| void BaseMode::dragObject | ( | const std::vector< ObjectHolder * > & | os, | |
| const QPoint & | pointClickedOn, | |||
| KigWidget & | w, | |||
| bool | ctrlOrShiftDown | |||
| ) | [protected, virtual] |
| void BaseMode::leftClickedObject | ( | ObjectHolder * | o, | |
| const QPoint & | p, | |||
| KigWidget & | w, | |||
| bool | ctrlOrShiftDown | |||
| ) | [protected, pure virtual] |
Implemented in PointConstructMode, BaseConstructMode, TestConstructMode, DefineMacroMode, NormalMode, and ScriptModeBase.
Definition at line 137 of file base_mode.cc.
Implemented in PointConstructMode, BaseConstructMode, TestConstructMode, DefineMacroMode, NormalMode, and ScriptModeBase.
| virtual void BaseMode::rightClicked | ( | const std::vector< ObjectHolder * > & | oco, | |
| const QPoint & | p, | |||
| KigWidget & | w | |||
| ) | [protected, pure virtual] |
Implemented in PointConstructMode, BaseConstructMode, TestConstructMode, DefineMacroMode, NormalMode, and ScriptModeBase.
| virtual void BaseMode::mouseMoved | ( | const std::vector< ObjectHolder * > & | os, | |
| const QPoint & | p, | |||
| KigWidget & | w, | |||
| bool | shiftpressed | |||
| ) | [protected, pure virtual] |
Implemented in PointConstructMode, BaseConstructMode, TestConstructMode, DefineMacroMode, NormalMode, and ScriptModeBase.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference