rocs/VisualEditor
#include <AbstractAction.h>
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
Definition at line 46 of file AbstractAction.cpp.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|
protected |
pointer to the GraphicsScene with the drawing
Definition at line 88 of file AbstractAction.h.
|
protected |
Definition at line 90 of file AbstractAction.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:16:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.