<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/map-widget, branch v4.8.6</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.8.6</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.8.6'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2018-10-29T00:09:31Z</updated>
<entry>
<title>Dive list: take pointer-to-dive_site instead of QVariant</title>
<updated>2018-10-29T00:09:31Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-10-28T21:04:56Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=c980216dc0e15a21b245a902870f9b8c5a18275c'/>
<id>urn:sha1:c980216dc0e15a21b245a902870f9b8c5a18275c</id>
<content type='text'>
Since "struct dive_site *" is now a Q_METATYPE, the functions
MapWidgetHelper::centerOnDiveSite() and ::getCoordinates()
can directly get such a pointer instead of a QVariant. This
makes the code nicer to read.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Dive site: replace dive-&gt;dive_site_uuid by dive_site</title>
<updated>2018-10-29T00:09:31Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-10-26T15:03:54Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=724055f0af4fb7cdb9f1570967fe4b34797f3419'/>
<id>urn:sha1:724055f0af4fb7cdb9f1570967fe4b34797f3419</id>
<content type='text'>
Replace the UUID reference of struct dive by a pointer to dive_site.
This commit is rather large in lines, but nevertheless quite simple
since most of the UUID-&gt;pointer work was done in previous commits.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Dive site: use an array of pointers in reloadMapLocations()</title>
<updated>2018-10-29T00:09:31Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-10-25T18:58:54Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=f41bb32428f1e6377b7b293215e8c2f71fa06c9a'/>
<id>urn:sha1:f41bb32428f1e6377b7b293215e8c2f71fa06c9a</id>
<content type='text'>
MapWidgetHelper::reloadMapLocations() used an array of uuids to
add dive sites to the map only once. Replace this by an array
of pointers. This is a small piece of a larger effort to remove
dive site UUIDs.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Dive site: replace UUID by pointer in mobile code</title>
<updated>2018-10-29T00:09:31Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-10-25T18:46:12Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=75b5d61522f3721adb1761141ce1aeb79c3761c1'/>
<id>urn:sha1:75b5d61522f3721adb1761141ce1aeb79c3761c1</id>
<content type='text'>
Replace UUIDs by pointers to dive-site in mobile code. In both
cases, the value is transported via a QVariant. The function
getCoordinatesForUUID(), which was only used from mobile, can
be replaced by a getCoordinatesFor() function taking a variant
supposed to contain a dive-site pointer. Likewise, the variant
of the centerOnDiveSite function is now supposed to wrap a
pointer-to-divesite.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Dive site: pass pointer to updateDiveSiteCoordinates()</title>
<updated>2018-10-29T00:09:31Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-10-25T10:23:19Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=872d56de0122036e1b9d37348d758b40dcd142d9'/>
<id>urn:sha1:872d56de0122036e1b9d37348d758b40dcd142d9</id>
<content type='text'>
There are two updateDiveSiteCoordinates() member-functions, viz.
in MapWidget and MapWidgetHelper. Adapt them to take a pointer
to dive_site instead of a UUID. This is part of an effort to
replace UUIDs by pointers.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Dive site: Pass dive-site pointer to MapWidgetHelper::enterEditMode()</title>
<updated>2018-10-29T00:09:31Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-10-25T08:07:45Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=cedc23f487977b880495d03a9d170934bbda16fb'/>
<id>urn:sha1:cedc23f487977b880495d03a9d170934bbda16fb</id>
<content type='text'>
Replace the uuid argument to MapWidgetHelper::enterEditMode() by a
pointer. Likewise, adapt the only caller prepareForGetDiveCoordinates().
This is a small step in a bigger effort to replace dive-site UUIDs
by pointers.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Add 'location_t' data structure</title>
<updated>2018-10-21T16:55:09Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2018-10-20T18:12:15Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=28e3413ff66552f392fecee25068d634cdfe59fc'/>
<id>urn:sha1:28e3413ff66552f392fecee25068d634cdfe59fc</id>
<content type='text'>
Instead of having people treat latitude and longitude as separate
things, just add a 'location_t' data structure that contains both.

Almost all cases want to always act on them together.

This is really just prep-work for adding a few more locations that we
track: I want to add a entry/exit location to each dive (independent of
the dive site) because of how the Garmin Descent gives us the
information (and hopefully, some day, other dive computers too).

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>Dive site: select dive site when entering edit mode</title>
<updated>2018-10-19T10:20:07Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-10-18T10:12:43Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=0416e54049da87d834c5102c63c4a9f377c55586'/>
<id>urn:sha1:0416e54049da87d834c5102c63c4a9f377c55586</id>
<content type='text'>
Commit 0aef04352a3210a6024f860758af466ea774dd5e made it impossible
to move new dive sites on the map. When entering dive-site-edit mode,
the filter would be instructed to show only dives of the corresponding
dive site [which didn't yet exist] and therefore all dive sites
on the map were deselected.

Fix this by explicitly centering on the dive site to be edited in
MapWidgetHelper::enterEditMode().

Fixes #1809

Reported-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Map: don't access displayed_dive_site in reloadMapLocations()</title>
<updated>2018-10-11T23:25:32Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-10-08T14:24:41Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=ac02854a8aa98dcd6876c9249654ac9e1d949c92'/>
<id>urn:sha1:ac02854a8aa98dcd6876c9249654ac9e1d949c92</id>
<content type='text'>
MapWidgetHelper::reloadMapLocations() reloads all dive flags
of the non-hidden dives plus the one of the currently edited
dive. Use the current_dive macro to determine whether this
is the current dive site instead of the global displayed_dive_site
object.

This is part of a series of commits, which makes the map-code
independent of the global displayed_dive_site object.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Map: pass down dive site in prepareForGetDiveCoordinates()</title>
<updated>2018-10-11T23:25:32Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-10-08T13:43:06Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=dd44dc4ab8fb888dcb3046ae5ecca2b24fe9e44f'/>
<id>urn:sha1:dd44dc4ab8fb888dcb3046ae5ecca2b24fe9e44f</id>
<content type='text'>
Instead of reading out the global object "displayed_dive_site",
pass the dive site to be edited in arguments to
prepareForGetDiveCoordinates() and enter edit mode.

Simplify the code in LocationInformationWidget by not using
signals to call the prepareForGetDiveCoordinates() function.
While doing this, collect common code in accept() and reject()
in the already existing resetState() function.

This is another entry in a series of commits that makes
data-flow more clear by removing access to the global
"displayed_dive_site" object.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
</feed>
