QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RScriptAction Class Reference

Copyright (c) 2011-2013 by Andrew Mustun. More...

#include <RScriptAction.h>

Inheritance diagram for RScriptAction:
RAction

List of all members.

Public Member Functions

QString getScriptFile ()
 RScriptAction (const QString &scriptFile, RGuiAction *guiAction)
 Copyright (c) 2011-2013 by Andrew Mustun.
- Public Member Functions inherited from RAction
virtual void beginEvent ()=0
 Called as soon as the action is created (menu chosen, toolbutton activated, etc).
virtual void commandEvent (RCommandEvent &event)=0
 Called when a command is entered in the command line.
virtual void commandEventPreview (RCommandEvent &event)=0
 Called when a command is being edited in the command line.
virtual void coordinateEvent (RCoordinateEvent &event)=0
 Called for every coordinate event.
virtual void coordinateEventPreview (RCoordinateEvent &event)=0
 Called if the action is in PickCoordinate mode and the mouse is moved around.
virtual void entityPickEvent (REntityPickEvent &event)=0
 
virtual void entityPickEventPreview (REntityPickEvent &event)=0
 
virtual void escapeEvent ()=0
 Escape events are triggered if the user clicks the right mouse button or hits the Escape key.
virtual void finishEvent ()=0
 Called just before the action is deleted.
RAction::ClickMode getClickMode ()
RDocumentgetDocument ()
RDocumentInterfacegetDocumentInterface ()
QList< RGraphicsScene * > getGraphicsScenes ()
virtual RGuiActiongetGuiAction ()
RActiongetOverrideBase ()
RStoragegetStorage ()
QString getUniqueGroup ()
bool hasNoState ()
bool isOverride ()
bool isTerminated ()
virtual void keyPressEvent (QKeyEvent &event)=0
virtual void keyReleaseEvent (QKeyEvent &event)=0
virtual void mouseDoubleClickEvent (RMouseEvent &event)=0
 Called on mouse double click events.
virtual void mouseMoveEvent (RMouseEvent &event)=0
 Called on mouse move events.
virtual void mousePressEvent (RMouseEvent &event)=0
 Called on mouse press events.
virtual void mouseReleaseEvent (RMouseEvent &event)=0
 Called on mouse release events.
virtual void panGestureEvent (QPanGesture &gesture)=0
 Called on pan gesture events.
virtual void pinchGestureEvent (QPinchGesture &gesture)=0
 Called on pinch gesture events.
virtual void propertyChangeEvent (RPropertyEvent &event)=0
 Called when the value of a property is modified while this action is active.
 RAction (RGuiAction *guiAction=NULL)
 Copyright (c) 2011-2013 by Andrew Mustun.
virtual void resumeEvent ()=0
 Resumes the action (for example when another action became active and then terminated or if the mouse cursor enters the view).
void setClickMode (RAction::ClickMode m)
 Sets the current click mode.
void setDocumentInterface (RDocumentInterface *di)
virtual void setGraphicsView (RGraphicsView *view)=0
 Called if this action is set as a navigation action of a graphics view.
void setGuiAction (RGuiAction *guiAction)
void setNoState ()
void setOverride ()
void setOverrideBase (RAction *base)
void setUniqueGroup (const QString &ug)
RVector snap (RMouseEvent &event)
 Uses the currently active snap function to snap to the closest object or grid point.
virtual void suspendEvent ()=0
 Called with the action is Suspended, for example when another action becomes active or the mouse cursor leaves the view.
virtual void swipeGestureEvent (QSwipeGesture &gesture)=0
 Called on swipe gesture events.
virtual void tabletEvent (RTabletEvent &event)=0
 Called on tablet events.
void terminate ()
 Terminates the action.
virtual void wheelEvent (RWheelEvent &event)=0
 Called on mouse wheel events.
virtual ~RAction ()

Protected Attributes

QString scriptFile
- Protected Attributes inherited from RAction
RAction::ClickMode clickMode
RDocumentInterfacedocumentInterface
RGuiActionguiAction
bool noState
 Indicates whether this action is stateless (i.e.
bool override
RActionoverrideBase
bool terminated
QString uniqueGroup

Additional Inherited Members

- Public Types inherited from RAction
enum  ClickMode { PickCoordinate, PickEntity, PickingDisabled }
 Current mouse click mode. More...

Detailed Description

Copyright (c) 2011-2013 by Andrew Mustun.

All rights reserved.

This file is part of the QCAD project.

QCAD 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 3 of the License, or (at your option) any later version.

QCAD 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 QCAD. Script backed action.

Scriptable:
This class is wrapped for script environments.

Constructor & Destructor Documentation

RScriptAction::RScriptAction ( const QString &  scriptFile,
RGuiAction guiAction 
)

Copyright (c) 2011-2013 by Andrew Mustun.

All rights reserved.

This file is part of the QCAD project.

QCAD 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 3 of the License, or (at your option) any later version.

QCAD 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 QCAD.


Member Function Documentation

QString RScriptAction::getScriptFile ( )
inline

Member Data Documentation

QString RScriptAction::scriptFile
protected

The documentation for this class was generated from the following files: