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

rocs/VisualEditor

Public Slots | Public Member Functions | Protected Attributes | List of all members
AbstractAction Class Reference

#include <AbstractAction.h>

Inheritance diagram for AbstractAction:
Inheritance graph
[legend]

Public Slots

bool eventFilter (QObject *watched, QEvent *event)
 
virtual bool executeDoubleClick (QPointF pos)
 
virtual bool executeKeyPress (QKeyEvent *keyEvent)
 
virtual bool executeKeyRelease (QKeyEvent *keyEvent)
 
virtual bool executeMove (QPointF pos)
 
virtual bool executePress (QPointF pos)
 
virtual bool executeRelease (QPointF pos)
 
virtual bool executeWheelEvent (QGraphicsSceneWheelEvent *wEvent)
 
void sendExecuteBit ()
 

Public Member Functions

 AbstractAction (GraphScene *scene, QObject *parent)
 
const QString & name () const
 

Protected Attributes

GraphScene * _graphScene
 
QString _name
 

Detailed Description

the base class for custom actions. This class provides the basic functionality for all custom actions Used on the pallete bar that will interact directly with the scene.

Definition at line 36 of file AbstractAction.h.

Constructor & Destructor Documentation

AbstractAction::AbstractAction ( GraphScene *  scene,
QObject *  parent 
)

Default Constructor scene the GraphicsScene that this action will interact. parent the MainWindow

Definition at line 30 of file AbstractAction.cpp.

Member Function Documentation

bool AbstractAction::eventFilter ( QObject *  watched,
QEvent *  event 
)
slot

Definition at line 46 of file AbstractAction.cpp.

bool AbstractAction::executeDoubleClick ( QPointF  pos)
virtualslot

virtual, executed when a mouse click is released on the scene. pos the position where the release occourred.

Reimplemented in ZoomAction.

Definition at line 107 of file AbstractAction.cpp.

bool AbstractAction::executeKeyPress ( QKeyEvent *  keyEvent)
virtualslot

virtual, executed when a keyboard key is pressed on the scene. keyEvent the key event from the scene.

Definition at line 112 of file AbstractAction.cpp.

bool AbstractAction::executeKeyRelease ( QKeyEvent *  keyEvent)
virtualslot

virtual, executed when a keyboard key is released on the scene keyEvent the key event from the scene.

Reimplemented in ZoomAction.

Definition at line 117 of file AbstractAction.cpp.

bool AbstractAction::executeMove ( QPointF  pos)
virtualslot

Virtual, executed when a mouse move on the scene. pos the position on screen that the mouse is now.

Reimplemented in ZoomAction.

Definition at line 97 of file AbstractAction.cpp.

bool AbstractAction::executePress ( QPointF  pos)
virtualslot

Virtual, executed when a mouse press occours on the scene. pos the position on screen that the execution will take part.

Reimplemented in DeleteHandAction, and ZoomAction.

Definition at line 92 of file AbstractAction.cpp.

bool AbstractAction::executeRelease ( QPointF  pos)
virtualslot

virtual, executed when a mouse click is released on the scene. pos the position where the release occourred.

Reimplemented in ZoomAction.

Definition at line 102 of file AbstractAction.cpp.

bool AbstractAction::executeWheelEvent ( QGraphicsSceneWheelEvent *  wEvent)
virtualslot

Reimplemented in ZoomAction.

Definition at line 122 of file AbstractAction.cpp.

const QString & AbstractAction::name ( ) const

Definition at line 41 of file AbstractAction.cpp.

void AbstractAction::sendExecuteBit ( )
slot

sends this action to be the executed thing with mouse interaction on the GraphicsView

Definition at line 36 of file AbstractAction.cpp.

Member Data Documentation

GraphScene* AbstractAction::_graphScene
protected

pointer to the GraphicsScene with the drawing

Definition at line 88 of file AbstractAction.h.

QString AbstractAction::_name
protected

Definition at line 90 of file AbstractAction.h.


The documentation for this class was generated from the following files:
  • AbstractAction.h
  • AbstractAction.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

rocs/VisualEditor

Skip menu "rocs/VisualEditor"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal