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" 37 #include <QtOpenGL/QGLWidget> 39 #include "QtSvg/QGraphicsSvgItem" 72 static QStringList
MapTypes(){
return MapType::TypesList();}
85 static QStringList
GeoCoderTypes(){
return GeoCoderStatusCode::TypesList();}
155 Q_PROPERTY(
int MinZoom READ MinZoom WRITE SetMinZoom)
156 Q_PROPERTY(
bool ShowTileGridLines READ ShowTileGridLines WRITE SetShowTileGridLines)
157 Q_PROPERTY(
double Zoom READ ZoomTotal WRITE SetZoom)
158 Q_PROPERTY(qreal Rotate READ Rotate WRITE SetRotate)
159 Q_ENUMS(
internals::MouseWheelZoomType::Types)
163 QSize sizeHint() const;
179 bool ShowTileGridLines()
const {
return map->showTileGridLines;}
226 void SetZoom(
double const& value){map->SetZoom(value);}
229 void SetRotate(qreal
const& value);
236 void SetUseOpenGL(
bool const& value);
247 void SetFollowMouse(
bool const& value){followmouse=value;this->setMouseTracking(followmouse);}
331 QList<WayPointItem*> WPSelected();
339 void WPRenumber(
WayPointItem* item,
int const& newnumber);
341 void SetShowCompass(
bool const& value);
346 void SetShowUAV(
bool const& value);
348 void SetShowHome(
bool const& value);
350 void SetShowDiagnostics(
bool const& value);
351 void SetUavPic(QString UAVPic);
355 QGraphicsScene mscene;
363 QGraphicsSvgItem *compass;
367 QGraphicsTextItem * diagGraphItem;
373 void resizeEvent(QResizeEvent *event);
374 void showEvent ( QShowEvent * event );
375 void closeEvent(QCloseEvent *event);
376 void mouseMoveEvent ( QMouseEvent * event );
379 void zoomChanged(
double zoomt,
double zoom,
double zoomd);
387 void WPNumberChanged(
int const& oldnumber,
int const& newnumber,
WayPointItem* waypoint);
407 void WPInserted(
int const& number,
WayPointItem* waypoint);
413 void WPDeleted(
int const& number);
419 void UAVReachedWayPoint(
int const& waypointnumber,
WayPointItem* waypoint);
437 void OnTileLoadComplete();
442 void OnTileLoadStart();
452 void OnMapZoomChanged();
471 void OnTilesStillToLoad(
int number);
480 #endif // OPMAPWIDGET_H
A graphicsItem representing a WayPoint.
A graphicsItem representing a WayPoint.
Definition: rectlatlng.h:37
A QGraphicsItem representing a WayPoint.
Definition: waypointitem.h:43
A QGraphicsItem representing the UAV.
Definition: uavitem.h:52
Definition: accessmode.h:35
Definition: pointlatlng.h:35
Definition: homeitem.h:39
Definition: copyrightstrings.h:33
A class that centralizes most of the mapcontrol configurations.
A class that allows ripping of a selection of the map.
A graphicsItem representing a WayPoint.
A class that centralizes most of the mapcontrol configurations.
Definition: configuration.h:46
Collection of static functions to help dealing with various enums used Contains functions for enumToS...
Definition: opmapwidget.h:55
A graphicsItem representing a WayPoint.
Definition: accessmode.h:36
Definition: geodecoderstatus.h:35
The main graphicsItem used on the widget, contains the map and map logic.
Definition: mapgraphicitem.h:51