![]() |
Mapper
0.9.0
API documentation
|
Handles drawing and controlling a helper cursor inside the map widget for the mobile UI. More...
#include <touch_cursor.h>
Public Types | |
enum | ControlID { LeftButton = 0, NoButton } |
List of IDs for controls attached to the cursor. More... | |
Public Member Functions | |
TouchCursor (MapWidget *map_widget) | |
Constructs a touch cursor for a map widget. More... | |
void | mousePressEvent (QMouseEvent *event) |
Notifies the cursor of the event, possibly modifying it. More... | |
bool | mouseMoveEvent (QMouseEvent *event) |
Notifies the cursor of the event, possibly modifying it. More... | |
bool | mouseReleaseEvent (QMouseEvent *event) |
Notifies the cursor of the event, possibly modifying it. More... | |
bool | mouseDoubleClickEvent (QMouseEvent *event) |
Notifies the cursor of the event, possibly modifying it. More... | |
void | paint (QPainter *painter) |
Paints the cursor. More... | |
void | updateMapWidget (bool delayed) |
Issues a (delayed) redraw of the cursor. More... | |
Handles drawing and controlling a helper cursor inside the map widget for the mobile UI.
OpenOrienteering::TouchCursor::TouchCursor | ( | MapWidget * | map_widget | ) |
Constructs a touch cursor for a map widget.
bool OpenOrienteering::TouchCursor::mouseDoubleClickEvent | ( | QMouseEvent * | event | ) |
Notifies the cursor of the event, possibly modifying it.
Returns true if the map widget should further process event.
bool OpenOrienteering::TouchCursor::mouseMoveEvent | ( | QMouseEvent * | event | ) |
Notifies the cursor of the event, possibly modifying it.
Returns true if the map widget should further process event.
void OpenOrienteering::TouchCursor::mousePressEvent | ( | QMouseEvent * | event | ) |
Notifies the cursor of the event, possibly modifying it.
Attention: the event type may be changed to a mouse move event.
bool OpenOrienteering::TouchCursor::mouseReleaseEvent | ( | QMouseEvent * | event | ) |
Notifies the cursor of the event, possibly modifying it.
Returns true if the map widget should further process event.
void OpenOrienteering::TouchCursor::paint | ( | QPainter * | painter | ) |
Paints the cursor.
void OpenOrienteering::TouchCursor::updateMapWidget | ( | bool | delayed | ) |
Issues a (delayed) redraw of the cursor.