Open Source 2D CAD
EventHandler Class Reference

Event handler class. More...

Inheritance diagram for EventHandler:

Public Member Functions

void drop (void event)
 Handles drop into the drawing area. More...
void EventHandler (void viewport, void documentInterface)
- Public Member Functions inherited from REventHandler
void drawInfoLabel (QPainter *painter, const RTextLabel &textLabel)
void drawSnapLabel (QPainter *painter, const RVector &pos, const RVector &posRestriction, const QString &text)
 REventHandler (QWidget *widget=NULL, RDocumentInterface *documentInterface=NULL)
 Copyright (c) 2011-2016 by Andrew Mustun. More...

Additional Inherited Members

- Public Slots inherited from REventHandler
void dragEnter (QDragEnterEvent *event)
void horizontalScrolled (double pos)
void updateSnapInfo (QPainter *painter, RSnap *snap, RSnapRestriction *restriction)
 Called on every repaint of a view to update snap related information. More...
void updateTextLabel (QPainter *painter, const RTextLabel &textLabel)
 Handles drop into the drawing area. More...
void verticalScrolled (double pos)
void viewportChanged ()
 Called whenever the current viewport changed through panning or zooming. More...
- Static Public Member Functions inherited from REventHandler
static QList< QUrl > getUrlsFromMimeData (QMimeData *mimeData)
static bool isUrl (const QString &urlString)

Detailed Description

Event handler class.

For each new document that is created or opened, an event handler is created to handle various events for the life time of the document.

Constructor & Destructor Documentation

void EventHandler::EventHandler ( void  viewport,
void  documentInterface 

Member Function Documentation

void EventHandler::drop ( void  event)

Handles drop into the drawing area.


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