30 #include "../mapwidget/mapgraphicitem.h"
31 #include "../core/geodecoderstatus.h"
32 #include "../core/maptype.h"
33 #include "../core/languagetype.h"
34 #include "../core/diagnostics.h"
38 #include "QtSvg/QGraphicsSvgItem"
47 #include "../core/corecommon.h"
48 #include <QGraphicsView>
70 static MapType::Types
MapTypeFromString(QString
const& value){
return MapType::TypeByStr(value);}
74 static QString
StrFromMapType(MapType::Types
const& value){
return MapType::StrByType(value);}
78 static QStringList
MapTypes(){
return MapType::TypesList();}
91 static QStringList
GeoCoderTypes(){
return GeoCoderStatusCode::TypesList();}
96 static internals::MouseWheelZoomType::Types
MouseWheelZoomTypeFromString(QString
const& value){
return internals::MouseWheelZoomType::TypeByStr(value);}
100 static QString
StrFromMouseWheelZoomType(internals::MouseWheelZoomType::Types
const& value){
return internals::MouseWheelZoomType::StrByType(value);}
108 static core::LanguageType::Types
LanguageTypeFromString(QString
const& value){
return core::LanguageType::TypeByStr(value);}
112 static QString
StrFromLanguageType(core::LanguageType::Types
const& value){
return core::LanguageType::StrByType(value);}
120 static core::AccessMode::Types
AccessModeFromString(QString
const& value){
return core::AccessMode::TypeByStr(value);}
124 static QString
StrFromAccessMode(core::AccessMode::Types
const& value){
return core::AccessMode::StrByType(value);}
137 static QString
StrFromUAVMapFollow(UAVMapFollowType::Types
const& value){
return UAVMapFollowType::StrByType(value);}
149 static QString
StrFromUAVTrailType(UAVTrailType::Types
const& value){
return UAVTrailType::StrByType(value);}
160 Q_PROPERTY(
int MinZoom READ MinZoom WRITE SetMinZoom)
161 Q_PROPERTY(
bool ShowTileGridLines READ ShowTileGridLines WRITE SetShowTileGridLines)
162 Q_PROPERTY(
double Zoom READ ZoomTotal WRITE SetZoom)
163 Q_PROPERTY(qreal Rotate READ Rotate WRITE SetRotate)
164 Q_ENUMS(internals::MouseWheelZoomType::Types)
165 Q_ENUMS(core::GeoCoderStatusCode::Types)
168 QSize sizeHint() const;
183 bool ShowTileGridLines()
const {
return map->showTileGridLines;}
214 void SetMouseWheelZoomType(internals::MouseWheelZoomType::Types
const& value){map->core->SetMouseWheelZoomType(value);}
230 void SetZoom(
double const& value){map->SetZoom(value);}
233 void SetRotate(qreal
const& value);
240 void SetMapType(MapType::Types
const& value){map->lastimage=QImage(); map->core->SetMapType(value);}
251 void SetFollowMouse(
bool const& value){followmouse=value;this->setMouseTracking(followmouse);}
353 void WPRenumber(
WayPointItem* item,
int const& newnumber);
355 void SetShowCompassRose(
bool const& value);
356 void SetShowWindCompass(
bool const& value);
358 void setOverlayOpacity(qreal value);
363 void SetShowUAV(
bool const& value);
365 void SetShowHome(
bool const& value);
367 void SetShowDiagnostics(
bool const& value);
368 void SetUavPic(QString UAVPic);
381 void deleteAllOverlays();
382 void WPSetVisibleAll(
bool value);
385 void WPDelete(
int number);
389 void setWindVelocity(
double windVelocity_NED[3]);
393 GeoCoderStatusCode
x;
399 QGraphicsSvgItem *compassRose;
400 QGraphicsSvgItem *windCompass;
404 QGraphicsTextItem * diagGraphItem;
406 qreal overlayOpacity;
408 QGraphicsTextItem *windspeedTxt;
414 void resizeEvent(QResizeEvent *event);
415 void showEvent ( QShowEvent * event );
416 void closeEvent(QCloseEvent *event);
417 void mouseMoveEvent ( QMouseEvent * event );
420 void zoomChanged(
double zoomt,
double zoom,
double zoomd);
428 void WPNumberChanged(
int const& oldnumber,
int const& newnumber,
WayPointItem* waypoint);
443 void WPCreated(
int const& number,
WayPointItem* waypoint);
451 void WPInserted(
int const& number,
WayPointItem* waypoint);
457 void WPDeleted(
int const& number,
WayPointItem* waypoint);
465 void UAVReachedWayPoint(
int const& waypointnumber,
WayPointItem* waypoint);
483 void OnTileLoadComplete();
488 void OnTileLoadStart();
498 void OnMapZoomChanged();
504 void OnMapTypeChanged(MapType::Types type);
517 void OnTilesStillToLoad(
int number);
525 void OnSelectionChanged();
529 #endif // TLMAPWIDGET_H
A graphicsItem representing a WayPoint.
A graphicsItem representing a WayPoint.
A graphicsItem representing a line connecting 2 map points.
Collection of static functions to help dealing with various enums used Contains functions for enumToS...
A class that centralizes most of the mapcontrol configurations.
A class that allows ripping of a selection of the map.
A class that centralizes most of the mapcontrol configurations.
A graphicsItem representing a Home Location.
The WayPointCurve class draws an arc between two graphics items of a given radius and direction of cu...
The main graphicsItem used on the widget, contains the map and map logic.
A graphicsItem representing a WayPoint.
A QGraphicsItem representing a WayPoint.
A QGraphicsItem representing the UAV.
A graphicsItem representing a curve connecting 2 waypoints.
A graphicsItem representing a circle connecting 2 map point.