kig
#include <script_mode.h>
Public Member Functions | |
virtual | ~ScriptModeBase () |
void | addArgs (const std::vector< ObjectHolder * > &obj, KigWidget &w) |
void | argsPageEntered () |
void | codePageEntered () |
void | dragRect (const QPoint &p, KigWidget &w) |
void | enableActions () |
void | goToCodePage () |
void | killMode () |
void | leftClickedObject (ObjectHolder *o, const QPoint &p, KigWidget &w, bool actrlOrShiftDown) |
void | midClicked (const QPoint &, KigWidget &) |
void | mouseMoved (const std::vector< ObjectHolder * > &os, const QPoint &p, KigWidget &w, bool shiftpressed) |
virtual bool | queryCancel ()=0 |
virtual bool | queryFinish ()=0 |
void | redrawScreen (KigWidget *w) |
void | rightClicked (const std::vector< ObjectHolder * > &, const QPoint &, KigWidget &) |
void | setScriptType (ScriptType::Type type) |
Public Member Functions inherited from BaseMode | |
void | leftClicked (QMouseEvent *e, KigWidget *v) |
void | leftMouseMoved (QMouseEvent *, KigWidget *) |
void | leftReleased (QMouseEvent *e, KigWidget *v) |
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 | cancelConstruction () |
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 () |
Protected Types | |
enum | WAWD { SelectingArgs, EnteringCode } |
Protected Member Functions | |
ScriptModeBase (KigPart &doc) | |
Protected Member Functions inherited from BaseMode | |
BaseMode (KigPart &) | |
~BaseMode () | |
virtual void | dragObject (const std::vector< ObjectHolder * > &os, const QPoint &pointClickedOn, KigWidget &w, bool ctrlOrShiftDown) |
std::vector< ObjectHolder * > | oco () |
QPoint | pointLocation () |
Protected Member Functions inherited from KigMode | |
KigMode (KigPart &d) | |
Protected Attributes | |
std::list< ObjectHolder * > | margs |
KigPart & | mpart |
WAWD | mwawd |
NewScriptWizard * | mwizard |
Protected Attributes inherited from KigMode | |
KigPart & | mdoc |
Detailed Description
Base mode to interact with a script.
Definition at line 32 of file script_mode.h.
Member Enumeration Documentation
|
protected |
Enumerator | |
---|---|
SelectingArgs | |
EnteringCode |
Definition at line 46 of file script_mode.h.
Constructor & Destructor Documentation
|
protected |
Definition at line 124 of file script_mode.cc.
|
virtual |
Definition at line 133 of file script_mode.cc.
Member Function Documentation
void ScriptModeBase::addArgs | ( | const std::vector< ObjectHolder * > & | obj, |
KigWidget & | w | ||
) |
Definition at line 276 of file script_mode.cc.
void ScriptModeBase::argsPageEntered | ( | ) |
Definition at line 148 of file script_mode.cc.
void ScriptModeBase::codePageEntered | ( | ) |
Definition at line 160 of file script_mode.cc.
Reimplemented from BaseMode.
Definition at line 45 of file script_mode.cc.
|
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 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 BaseMode.
Definition at line 154 of file script_mode.cc.
void ScriptModeBase::goToCodePage | ( | ) |
Definition at line 287 of file script_mode.cc.
void ScriptModeBase::killMode | ( | ) |
Definition at line 137 of file script_mode.cc.
|
virtual |
Implements BaseMode.
Definition at line 68 of file script_mode.cc.
Implements BaseMode.
Definition at line 261 of file script_mode.cc.
|
virtual |
Implements BaseMode.
Definition at line 91 of file script_mode.cc.
|
pure virtual |
Implemented in ScriptEditMode, and ScriptCreationMode.
|
pure virtual |
Implemented in ScriptEditMode, and ScriptCreationMode.
|
virtual |
Redraw the document on KigWidget w
.
It's up to the mode to refresh the screen...
Reimplemented from KigMode.
Definition at line 172 of file script_mode.cc.
|
virtual |
Implements BaseMode.
Definition at line 265 of file script_mode.cc.
void ScriptModeBase::setScriptType | ( | ScriptType::Type | type | ) |
Definition at line 270 of file script_mode.cc.
Member Data Documentation
|
protected |
Definition at line 41 of file script_mode.h.
|
protected |
Definition at line 44 of file script_mode.h.
|
protected |
Definition at line 47 of file script_mode.h.
|
protected |
Definition at line 42 of file script_mode.h.
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.