Map View class. Used to display Map. More...
#include <mapviewscreen.h>

Public Slots | |
| void | setOwnLocationCrosshairVisibility (bool visibility) |
| Slot for setting own location crosshair visibility. | |
Signals | |
| void | enableAutoCentering (bool enabled) |
| Signal for enabling auto centering. | |
| void | friendsLocationsReady (QList< User * > &friendsList) |
| Signal when friend list locations are fetched. | |
| void | gpsEnabled (bool enabled) |
| Signal for GPS enabling / disabling. | |
| void | mapLocationChanged () |
| Signal for map location change. | |
| void | positionReceived (QPointF position, qreal accuracy) |
| Slot for GPS position. | |
| void | ownLocation (QPointF ownLatitudeLongitudeLocation) |
| Signal from MapEngine to SituareEngine is travelling here. | |
| void | requestOwnLocation () |
| Signal from SituareEngine to MapEngine is travelling here. | |
| void | refreshUserData () |
| Signal for refreshing user data. | |
| void | requestReverseGeo () |
| Signal for requesting reverseGeo from SituareEngine. | |
| void | reverseGeoReady (const QString &address) |
| Signals, when address data is ready. | |
| void | statusUpdate (const QString &status, const bool &publish) |
| Signal Signal for requestLocationUpdate from SituareEngine via MainWindow class. | |
| void | userLocationReady (User *user) |
| Signal when user location is fetched. | |
| void | zoomInKeyPressed () |
| Signal for HW increase button. | |
| void | zoomOutKeyPressed () |
| Signal for HW decrease button. | |
Public Member Functions | |
| MapViewScreen (QWidget *parent=0) | |
| Constructor. | |
Private Slots | |
| void | drawOsmLicense (int width, int height) |
| Slot for drawing the Open Street Map license text. | |
| void | drawOwnLocationCrosshair (int width, int height) |
| Slot for drawing the own location crosshair. | |
| void | setViewPortSize (const int width, const int height) |
| Slot for map location change. | |
Private Attributes | |
| bool | m_drawOwnLocationCrosshair |
| Flag for making ownLocationCrosshair visible or not. | |
| FriendListPanel * | m_friendsListPanel |
| Instance of friends list panel. | |
| MapEngine * | m_mapEngine |
| MapEngine. | |
| QLabel * | m_osmLicense |
| Label for Open Street Map license. | |
| QLabel * | m_ownLocationCrosshair |
| Label that show ownLocationCrosshair. | |
| UserInfoPanel * | m_userPanel |
| Instance of the user information panel. | |
| int | m_viewPortHeight |
| Height of view port. | |
| int | m_viewPortWidth |
| Width of view port. | |
| ZoomButtonPanel * | m_zoomButtonPanel |
| Instance of zoom button panel. | |
Map View class. Used to display Map.
| MapViewScreen::MapViewScreen | ( | QWidget * | parent = 0 |
) |
Constructor.
| parent | Parent |
| void MapViewScreen::drawOsmLicense | ( | int | width, | |
| int | height | |||
| ) | [private, slot] |
Slot for drawing the Open Street Map license text.
| width | Width of the viewport | |
| height | Height of the viewport |
| void MapViewScreen::drawOwnLocationCrosshair | ( | int | width, | |
| int | height | |||
| ) | [private, slot] |
Slot for drawing the own location crosshair.
| width | Width of the viewport | |
| height | Height of the viewport |
| void MapViewScreen::enableAutoCentering | ( | bool | enabled | ) | [signal] |
Signal for enabling auto centering.
| enabled | true if map should center to GPS position, false otherwise |
| void MapViewScreen::friendsLocationsReady | ( | QList< User * > & | friendsList | ) | [signal] |
Signal when friend list locations are fetched.
Forwarded to map engine and friends list panel
| friendsList | Friends list data |
| void MapViewScreen::gpsEnabled | ( | bool | enabled | ) | [signal] |
Signal for GPS enabling / disabling.
| enabled | True is GPS is enabled, otherwise false |
| void MapViewScreen::positionReceived | ( | QPointF | position, | |
| qreal | accuracy | |||
| ) | [signal] |
Slot for GPS position.
| position | latitude and longitude values | |
| accuracy | coordinate accuracy in metres |
| void MapViewScreen::reverseGeoReady | ( | const QString & | address | ) | [signal] |
Signals, when address data is ready.
| address | Street address |
| void MapViewScreen::setOwnLocationCrosshairVisibility | ( | bool | visibility | ) | [slot] |
Slot for setting own location crosshair visibility.
| visibility | false <-> show, true <-> hide |
| void MapViewScreen::setViewPortSize | ( | const int | width, | |
| const int | height | |||
| ) | [private, slot] |
Slot for map location change.
Set correnct view port size to datamembers
| width | Width of the viewport | |
| height | Height of the viewport |
| void MapViewScreen::statusUpdate | ( | const QString & | status, | |
| const bool & | publish | |||
| ) | [signal] |
Signal Signal for requestLocationUpdate from SituareEngine via MainWindow class.
| status | Status message | |
| publish | Publish on Facebook |
| void MapViewScreen::userLocationReady | ( | User * | user | ) | [signal] |
Signal when user location is fetched.
| user | User data |
1.6.1