map2d_widget
Public Types | Public Slots | Signals | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
mapcontrol::WayPointItem Class Reference

A QGraphicsItem representing a WayPoint. More...

#include "waypointitem.h"

Inheritance diagram for mapcontrol::WayPointItem:

Public Types

enum  { Type = UserType + 1 }
 

Public Slots

void WPDeleted (int const &number)
 Called when a WayPoint is deleted. More...
 
void WPRenumbered (int const &oldnumber, int const &newnumber, WayPointItem *waypoint)
 Called when a WayPoint is renumbered. More...
 
void WPInserted (int const &number, WayPointItem *waypoint)
 Called when a WayPoint is inserted. More...
 

Signals

void WPNumberChanged (int const &oldnumber, int const &newnumber, WayPointItem *waypoint)
 fires when this WayPoint number changes (not fired if due to a auto-renumbering) More...
 
void WPValuesChanged (WayPointItem *waypoint)
 Fired when the description, altitude or coordinates change. More...
 

Public Member Functions

 WayPointItem (internals::PointLatLng const &coord, int const &altitude, MapGraphicItem *map)
 Constructer. More...
 
 WayPointItem (internals::PointLatLng const &coord, int const &altitude, QString const &description, MapGraphicItem *map)
 Constructer. More...
 
QString Description ()
 Returns the WayPoint description. More...
 
void SetDescription (QString const &value)
 Sets the WayPoint description. More...
 
bool Reached ()
 Returns true if WayPoint is Reached. More...
 
void SetReached (bool const &value)
 Sets if WayPoint is Reached. More...
 
int Number ()
 Returns the WayPoint number. More...
 
void SetNumber (int const &value)
 Sets WayPoint number. More...
 
internals::PointLatLng Coord ()
 Returns WayPoint LatLng coordinate. More...
 
void SetCoord (internals::PointLatLng const &value)
 Sets WayPoint LatLng coordinate. More...
 
bool ShowNumber ()
 Used if WayPoint number is to be drawn on screen. More...
 
void SetShowNumber (bool const &value)
 Used to set if WayPoint number is to be drawn on screen. More...
 
int Altitude ()
 Returns the WayPoint altitude. More...
 
void SetAltitude (int const &value)
 Sets the WayPoint Altitude. More...
 
int type () const
 
QRectF boundingRect () const
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 
void RefreshPos ()
 
void RefreshToolTip ()
 
 ~WayPointItem ()
 

Public Attributes

QPixmap picture
 

Static Public Attributes

static int snumber =0
 

Protected Member Functions

void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
 
void mousePressEvent (QGraphicsSceneMouseEvent *event)
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 

Detailed Description

A QGraphicsItem representing a WayPoint.


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