Logo Search packages:      
Sourcecode: qlandkartegt version File versions

IMouse Class Reference

#include <IMouse.h>

Inheritance diagram for IMouse:

CMouseMoveMap CMouseSelMap

List of all members.


Detailed Description

Base class to all mouse function objects.

The function of the mouse changes depending on the mega menu selection. All mouse events will be forwared to a subclass of IMouse. The subclass will define the current function and it keeps track of all runtime variables.

Definition at line 43 of file IMouse.h.


Public Member Functions

virtual void contextMenu (QMenu &)
 append a context menu by own actions
virtual void draw (QPainter &)
 draw mouse function spezific elements
 IMouse (CCanvas *parent)
virtual void looseFocus ()
 called by CCanvas right befor a new mouse handler is selected.
virtual void mouseMoveEvent (QMouseEvent *e)=0
 the mouse move event as defined by QWidget::mouseMoveEvent
virtual void mousePressEvent (QMouseEvent *e)=0
 the mouse press event as defined by QWidget::mousePressEvent
virtual void mouseReleaseEvent (QMouseEvent *e)=0
 the mouse release event as defined by QWidget::mouseReleaseEvent
 operator const QCursor & ()
 the current mouse cursor

Protected Member Functions

void drawRect (QPainter &p)
 actually draw the current capture rectangle
void drawSelSearch (QPainter &p)
 draw selected search
void drawSelTrkPt (QPainter &p)
 draw selected track point
void drawSelWpt (QPainter &p)
 draw selected waypoint
void mouseMoveEventOverlay (QMouseEvent *e)
 choose overlay under cursor
void mouseMoveEventSearch (QMouseEvent *e)
 choose waypoint close to cursor
void mouseMoveEventTrack (QMouseEvent *e)
 choose track point close to cursor
void mouseMoveEventWpt (QMouseEvent *e)
 choose waypoint close to cursor
void mousePressEventSearch (QMouseEvent *e)
 trigger search function
void mousePressEventWpt (QMouseEvent *e)
 trigger waypoint function
void resizeRect (const QPoint &p)
 for internal use to set the bottom right of the capture rectangle
void startRect (const QPoint &p)
 for internal use to start a semi-transparent capture rectangle

Protected Attributes

CCanvascanvas
 pointer to the parent canvas
QCursor cursor
 the functions mouse icon
bool doSpecialCursorSearch
bool doSpecialCursorWpt
QRect rect
 capture rectangle
QRect rectConvertSearch
QRect rectCopySearch
QRect rectCopyWpt
QRect rectDelSearch
QRect rectDelWpt
QRect rectEditWpt
QRect rectMoveWpt
QPointer< IOverlayselOverlay
 current selected overlay
QPointer< CSearch > selSearch
CTrack::pt_t * selTrkPt
 current selected trackpoint
QPointer< CWptselWpt
 current selected waypoint

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

Generated by  Doxygen 1.6.0   Back to index