• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

kig

ScriptModeBase Class Reference

#include <script_mode.h>

Inheritance diagram for ScriptModeBase:

Inheritance graph
[legend]

List of all members.


Detailed Description

Base mode to interact with a script.

Definition at line 32 of file script_mode.h.


Public Member Functions

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)
virtual ~ScriptModeBase ()

Protected Types

enum  WAWD { SelectingArgs, EnteringCode }

Protected Member Functions

 ScriptModeBase (KigPart &doc)

Protected Attributes

std::list< ObjectHolder * > margs
KigPart & mpart
WAWD mwawd
NewScriptWizard * mwizard

Member Enumeration Documentation

enum ScriptModeBase::WAWD [protected]

Enumerator:
SelectingArgs 
EnteringCode 

Definition at line 46 of file script_mode.h.


Constructor & Destructor Documentation

ScriptModeBase::ScriptModeBase ( KigPart &  doc  )  [protected]

Definition at line 122 of file script_mode.cc.

ScriptModeBase::~ScriptModeBase (  )  [virtual]

Definition at line 131 of file script_mode.cc.


Member Function Documentation

void ScriptModeBase::addArgs ( const std::vector< ObjectHolder * > &  obj,
KigWidget &  w 
)

Definition at line 274 of file script_mode.cc.

void ScriptModeBase::argsPageEntered (  ) 

Definition at line 146 of file script_mode.cc.

void ScriptModeBase::codePageEntered (  ) 

Definition at line 158 of file script_mode.cc.

void ScriptModeBase::dragRect ( const QPoint &  p,
KigWidget &  w 
) [virtual]

Reimplemented from BaseMode.

Definition at line 43 of file script_mode.cc.

void ScriptModeBase::enableActions (  )  [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 152 of file script_mode.cc.

void ScriptModeBase::goToCodePage (  ) 

Definition at line 285 of file script_mode.cc.

void ScriptModeBase::killMode (  ) 

Definition at line 135 of file script_mode.cc.

void ScriptModeBase::leftClickedObject ( ObjectHolder *  o,
const QPoint &  p,
KigWidget &  w,
bool  actrlOrShiftDown 
) [virtual]

Implements BaseMode.

Definition at line 66 of file script_mode.cc.

void ScriptModeBase::midClicked ( const QPoint &  ,
KigWidget &   
) [virtual]

Implements BaseMode.

Definition at line 259 of file script_mode.cc.

void ScriptModeBase::mouseMoved ( const std::vector< ObjectHolder * > &  os,
const QPoint &  p,
KigWidget &  w,
bool  shiftpressed 
) [virtual]

Implements BaseMode.

Definition at line 89 of file script_mode.cc.

virtual bool ScriptModeBase::queryCancel (  )  [pure virtual]

Implemented in ScriptCreationMode, and ScriptEditMode.

virtual bool ScriptModeBase::queryFinish (  )  [pure virtual]

Implemented in ScriptCreationMode, and ScriptEditMode.

void ScriptModeBase::redrawScreen ( KigWidget *  w  )  [virtual]

Redraw the document on KigWidget w .

It's up to the mode to refresh the screen...

Reimplemented from KigMode.

Definition at line 170 of file script_mode.cc.

void ScriptModeBase::rightClicked ( const std::vector< ObjectHolder * > &  ,
const QPoint &  ,
KigWidget &   
) [virtual]

Implements BaseMode.

Definition at line 263 of file script_mode.cc.

void ScriptModeBase::setScriptType ( ScriptType::Type  type  ) 

Definition at line 268 of file script_mode.cc.


Member Data Documentation

std::list<ObjectHolder*> ScriptModeBase::margs [protected]

Definition at line 41 of file script_mode.h.

KigPart& ScriptModeBase::mpart [protected]

Definition at line 44 of file script_mode.h.

WAWD ScriptModeBase::mwawd [protected]

Definition at line 47 of file script_mode.h.

NewScriptWizard* ScriptModeBase::mwizard [protected]

Definition at line 42 of file script_mode.h.


The documentation for this class was generated from the following files:
  • script_mode.h
  • script_mode.cc

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal