Lubomir I. Ivanov
99c2bf6290
mapwidget.cpp: obtain a reference of the MapWidgetHelper from QML
...
Use findChild() to obtain the only MapWidgetHelper object created
in the MapWidget.qml. Store the reference as a member variable -
m_mapHelper.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-07-28 07:31:11 -07:00
Lubomir I. Ivanov
e2a4f3fcee
desktop-widgets/mapwidget: register the MapWidgetHelper QML type
...
This commit registers the class MapWidgetHelper for QML
in the desktop version.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-07-28 07:31:11 -07:00
Lubomir I. Ivanov
df519be01e
mapwidget: add the placeholder prepareForGetDiveCoordinates() slot
...
Port from GlobeGPS.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-07-28 07:31:11 -07:00
Lubomir I. Ivanov
8f52b129af
mapwidget: add the placeholder repopulateLabels() method
...
Another placeholder for the Marble port.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-07-28 07:31:11 -07:00
Lubomir I. Ivanov
4334d33413
mapwidget: add the method centerOnIndex()
...
Again for the port from Marble, later can be removed / renamed.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-07-28 07:31:11 -07:00
Lubomir I. Ivanov
0d3d9c01eb
mapwidget: add public slot endGetDiveCoordinates()
...
Later this has to be replaced / renamed if needed.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-07-28 07:31:11 -07:00
Lubomir I. Ivanov
39af5bb05b
mapwidget: add an empty reload() method
...
Call same method in MainWindow if the NO_MARBLE macro is defined.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-07-28 07:31:11 -07:00
Lubomir I. Ivanov
a1fbffc96c
mapwidget: add placeholder centerOnDiveSite() public slot
...
This is WIP and would be developed futher, so that the new
map widget can center on a divesite location.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-07-28 07:31:11 -07:00
Lubomir I. Ivanov
b083795233
map: add placeholder .cpp and .h files for the new map widget
...
The files are WIP and located in desktop-widgets, as these
would only be used by the desktop version.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-07-28 07:31:11 -07:00