<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/map-widget, branch v4.7.8</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.7.8</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.7.8'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2018-04-02T20:47:43Z</updated>
<entry>
<title>mapwidget-mobile: do not animate the first selection</title>
<updated>2018-04-02T20:47:43Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2018-04-02T19:48:23Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=48c032bb8ee3c2493783f3db3691f7f067f7782f'/>
<id>urn:sha1:48c032bb8ee3c2493783f3db3691f7f067f7782f</id>
<content type='text'>
centerOnLocationHard() is added in MapPage.qml so that
on `firstRun` the map is hard panned to the desired location
without animation.

This affects the selection of a new "Dive details" -&gt; "Map it" or
when opening a GPS location in the map.

The idea behind this change is to avoid starting the map animation
from an arbitrary location such as [0,0] or London. Also, to not
start the map zoomed out completely and then zoom in on a selected
dive.

For this change to work, add the helper getCoordinatesForUUID()
to qmlmapwidgethelper.cpp/.h and use it to obtain the
QGeoCoordinates for a dive site UUID.

Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
</content>
</entry>
<entry>
<title>MapWidgetContextMenu.qml: improve the action text</title>
<updated>2018-03-15T21:27:18Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2018-03-14T17:02:36Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=e1c81560b9a6c1208ba60621340ab02f0c3cc690'/>
<id>urn:sha1:e1c81560b9a6c1208ba60621340ab02f0c3cc690</id>
<content type='text'>
The first 3 actions in the map widget context menu
are about the current map widget center and not about the
selected dive site / marker.

Avoid using the word "location" for these, use "coordinates"
for the second and third entry.

Suggested-by: Willem Ferguson &lt;willemferguson@zoology.up.ac.za&gt;
Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
</content>
</entry>
<entry>
<title>MapWidget.qml: try to preserve zoom when opening Google Maps</title>
<updated>2018-03-15T21:27:18Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2018-03-14T18:06:13Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=64e2247aa719da2096ada77984f15a242171a089'/>
<id>urn:sha1:64e2247aa719da2096ada77984f15a242171a089</id>
<content type='text'>
Extend openLocationInGoogleMaps() so that the current
map widget zoom level is roughly mapped to the Google Maps
zoom level.

The two zoom scales are quite different. Google Maps uses meters
directly, while the QML map uses a scale from ~1 - 21.

The approximation is done via exponential regression over
a small data set gathered from experiment.

Add a console.log() call so that the URL is logged.

Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
</content>
</entry>
<entry>
<title>MapWidget.qml: use a new URL format for Google Maps</title>
<updated>2018-03-15T21:27:18Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2018-03-14T16:57:06Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=16b3892f22225640a0c30fd45353aa9805b2be9d'/>
<id>urn:sha1:16b3892f22225640a0c30fd45353aa9805b2be9d</id>
<content type='text'>
Make the map widget use a new URL format for Google Maps
in openLocationInGoogleMaps(). The new URL format does
not show a marker once the location is open in Google Maps
as this might confuse some users.

Suggested-by: Willem Ferguson &lt;willemferguson@zoology.up.ac.za&gt;
Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
</content>
</entry>
<entry>
<title>mapwidget.qml: emit a signal when the marker changed</title>
<updated>2018-03-11T18:40:12Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2018-03-08T19:59:34Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=8b43633c7d22a31f882919f535a8fc332f61af62'/>
<id>urn:sha1:8b43633c7d22a31f882919f535a8fc332f61af62</id>
<content type='text'>
The signal to emit is selectedDivesChanged() and it accepts
a list if diveIds. The 'nSelectedDives' counter is redundant.

Also expose the 'map' and 'mapHelper' objects as aliases.

Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
</content>
</entry>
<entry>
<title>qmapwidgethelper: make adjustmets for the mobile version</title>
<updated>2018-03-11T18:40:12Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2018-03-08T19:43:23Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=fbbb6ba4fb748eace8d8f8674ec799813012cf0f'/>
<id>urn:sha1:fbbb6ba4fb748eace8d8f8674ec799813012cf0f</id>
<content type='text'>
The mobile version is limited as it does not support dive list
selection of multiple dives and editing multiple dives.

Also the dive list on mobile does not follow the same indexing as
the desktop version dive list.

Use the SUBSURFACE_MOBILE macro and for:
- centerOnDiveSite() either deselect map markers or center on
a single one (never on a rectangle like the desktop version)
- selectedLocationChanged() and selectVisibleLocations() return
a list of single dive ID

Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
</content>
</entry>
<entry>
<title>qmapwidgethelper: add centerOnDiveSiteUUID()</title>
<updated>2018-03-11T18:40:12Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2018-03-08T19:38:14Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=8fa2295a6174a0cc0cd86a0aea0420eb453bdd63'/>
<id>urn:sha1:8fa2295a6174a0cc0cd86a0aea0420eb453bdd63</id>
<content type='text'>
centerOnDiveSiteUUID() is a helper to center the map on a dive_site
UUID instead of a dive_site pointer.
Make it call centerOnDiveSite().

Make both this function and reloadMapLocations() Q_INVOKABLE
as these are going to be called from QML.

Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
</content>
</entry>
<entry>
<title>qmapwidgethelper: move includes to the header</title>
<updated>2018-03-11T18:40:12Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2018-03-08T19:35:44Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=eb8772d967cc033c7d0e38d3b659eb869be61ac4'/>
<id>urn:sha1:eb8772d967cc033c7d0e38d3b659eb869be61ac4</id>
<content type='text'>
Add the following includes in the header -
&lt;QVariant&gt; and &lt;QGeoCoordinate&gt; otherwise the
mobile build fails.

It is unclear how the desktop build does not complain
about this.

Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
</content>
</entry>
<entry>
<title>Cleanup: Unify qthelper.h and qthelperfromc.h</title>
<updated>2018-02-26T17:06:02Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-02-24T22:28:13Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=cd5e17cf79c2f1eb896efd0436c103221de446ae'/>
<id>urn:sha1:cd5e17cf79c2f1eb896efd0436c103221de446ae</id>
<content type='text'>
Since all qt-helpers are defined in qthelper.cpp, there seems to be
no reason to have two include files. By unifying the two files,
duplication and inconsistencies are removed. The C++-only part is
simply compiled away with #ifdefs.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: Uninitialized pointer field</title>
<updated>2017-12-28T16:30:25Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2017-12-28T11:20:34Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=92a5e0644e1cb6c25c2c5e96b39d2368f0f1be5b'/>
<id>urn:sha1:92a5e0644e1cb6c25c2c5e96b39d2368f0f1be5b</id>
<content type='text'>
CID: 208335

Mainly to silence Coverity, as I do not believe this caused
any problem.

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
</feed>
