kig
#include <base_mode.h>
Protected Member Functions | |
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) |
void | enableActions () |
virtual void | leftClickedObject (ObjectHolder *o, const QPoint &p, KigWidget &w, bool ctrlOrShiftDown)=0 |
virtual void | midClicked (const QPoint &p, KigWidget &w)=0 |
virtual void | mouseMoved (const std::vector< ObjectHolder * > &os, const QPoint &p, KigWidget &w, bool shiftpressed)=0 |
std::vector< ObjectHolder * > | oco () |
QPoint | pointLocation () |
virtual void | rightClicked (const std::vector< ObjectHolder * > &oco, const QPoint &p, KigWidget &w)=0 |
Protected Member Functions inherited from KigMode | |
KigMode (KigPart &d) | |
Additional Inherited Members | |
Protected Attributes inherited from KigMode | |
KigPart & | mdoc |
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.
Constructor & Destructor Documentation
|
protected |
Definition at line 30 of file base_mode.cc.
|
protected |
Definition at line 35 of file base_mode.cc.
Member Function Documentation
|
protectedvirtual |
Reimplemented in NormalMode.
Definition at line 143 of file base_mode.cc.
Reimplemented in ScriptModeBase, NormalMode, and DefineMacroMode.
Definition at line 134 of file base_mode.cc.
|
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 ese@ kde.o 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 KigMode.
Reimplemented in BaseConstructMode, ScriptModeBase, NormalMode, DefineMacroMode, and PointConstructMode.
Definition at line 148 of file base_mode.cc.
|
virtual |
Reimplemented from KigMode.
Definition at line 39 of file base_mode.cc.
|
protectedpure virtual |
Implemented in TestConstructMode, BaseConstructMode, ScriptModeBase, PointConstructMode, NormalMode, and DefineMacroMode.
Definition at line 138 of file base_mode.cc.
|
virtual |
this means: mouse moved with left mouse button down (in case that wasn't clear...)
Reimplemented from KigMode.
Definition at line 68 of file base_mode.cc.
|
virtual |
Reimplemented from KigMode.
Definition at line 76 of file base_mode.cc.
|
virtual |
Reimplemented from KigMode.
Definition at line 97 of file base_mode.cc.
Implemented in TestConstructMode, BaseConstructMode, ScriptModeBase, DefineMacroMode, PointConstructMode, and NormalMode.
|
virtual |
Reimplemented from KigMode.
Definition at line 107 of file base_mode.cc.
|
virtual |
mouse moved without any buttons down...
Reimplemented from KigMode.
Definition at line 128 of file base_mode.cc.
|
protectedpure virtual |
Implemented in TestConstructMode, BaseConstructMode, ScriptModeBase, DefineMacroMode, PointConstructMode, and NormalMode.
|
protected |
Definition at line 153 of file base_mode.cc.
|
protected |
Definition at line 158 of file base_mode.cc.
|
virtual |
Reimplemented from KigMode.
Definition at line 114 of file base_mode.cc.
|
protectedpure virtual |
Implemented in TestConstructMode, BaseConstructMode, ScriptModeBase, DefineMacroMode, PointConstructMode, and NormalMode.
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.