Logo Search packages:      
Sourcecode: qlandkartegt version File versions

CMouseMoveMap Class Reference

#include <CMouseMoveMap.h>

Inheritance diagram for CMouseMoveMap:


List of all members.

Detailed Description

move the map area by point-click-n-move

Definition at line 28 of file CMouseMoveMap.h.

Public Member Functions

 CMouseMoveMap (CCanvas *parent)
void contextMenu (QMenu &menu)
 append a context menu by own actions
void draw (QPainter &p)
 draw mouse function spezific elements
virtual void looseFocus ()
 called by CCanvas right befor a new mouse handler is selected.
void mouseMoveEvent (QMouseEvent *e)
 the mouse move event as defined by QWidget::mouseMoveEvent
void mousePressEvent (QMouseEvent *e)
 the mouse press event as defined by QWidget::mousePressEvent
void mouseReleaseEvent (QMouseEvent *e)
 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

 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

Private Slots

void slotAddWpt ()
void slotCopyPositionTrack ()
void slotCopyPositionWpt ()
void slotDeleteWpt ()
void slotEditTrack ()
void slotEditWpt ()
void slotMoveWpt ()

Private Attributes

QPoint mousePos
bool moveMap
 true if left mouse button is pressed
QPoint oldPoint
 the initial starting point of the transformation

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

Generated by  Doxygen 1.6.0   Back to index