<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/map-widget, branch v4.9.1</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.9.1</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.9.1'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2019-05-11T19:06:19Z</updated>
<entry>
<title>Cleanup: construct MapWidgetHelper::pluginObject()</title>
<updated>2019-05-11T19:06:19Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2019-05-09T19:43:18Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=ae6f17af0c15ec3d9907a4ba9ca8846dbb0e2721'/>
<id>urn:sha1:ae6f17af0c15ec3d9907a4ba9ca8846dbb0e2721</id>
<content type='text'>
Instead of multiple string-concatenations, create the string object
from a single string literal.

Yes, this is a mostly pointless "optimization". But it saves a few
bytes.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Map: automatically update names on the map</title>
<updated>2019-05-11T19:06:19Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2019-05-09T19:33:01Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=44c65fec8855315d322b84b4c4207713b90328d3'/>
<id>urn:sha1:44c65fec8855315d322b84b4c4207713b90328d3</id>
<content type='text'>
Currently, dive site names are only updated on full reload.
Instead hook directly into the corresponding signal in the
MapLocationModel to set the name. Also to the coordinates
directly there instead of going via the MapWidgetHelper.

In the MapWidgetHelper, just center on the changed dive site.
Hook into the signal directly there and remove the slot
from the MapWidget. This makes the whole call-chain at least
one call shorter.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Map: ignore dive sites without location in centerOnSelectedDiveSite()</title>
<updated>2019-05-11T19:06:19Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2019-05-08T20:26:28Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=30d96d37043684a4087f09b7171b1873ec140236'/>
<id>urn:sha1:30d96d37043684a4087f09b7171b1873ec140236</id>
<content type='text'>
Don't zoom onto (0,0) for selected dive sites that have no location.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Map: in edit mode place no-gps dive sites at center of map</title>
<updated>2019-05-11T19:06:19Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2019-05-08T20:15:01Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=0da86dfd8601edd33c47c787d42e4a687fff8aaf'/>
<id>urn:sha1:0da86dfd8601edd33c47c787d42e4a687fff8aaf</id>
<content type='text'>
Move the code to add the first selected dive site from
MapWidgetHelper::enterEditMode() to MapLocationModel::reload().

Thus, the list of sites is built only at one place. For this
it is necessary to pass a pointer to the map, so that new
dive sites can be added at the center of the map.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Map: don't recalculate selected dive sites</title>
<updated>2019-05-11T19:06:19Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2019-05-05T10:59:47Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=15cb7e4e920105e81fe31821ee077cc74243e9fd'/>
<id>urn:sha1:15cb7e4e920105e81fe31821ee077cc74243e9fd</id>
<content type='text'>
In MapWidgetHelper::centerOnSelectedDiveSite() the selected dive
sites were recalculated. Simply use the ones we already know are
selected.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Map: make edit mode depend on dive-site-filtering</title>
<updated>2019-05-11T19:06:19Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2019-05-03T21:16:40Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=d29f82c52d604ddf65476bf382d4bbf1b5634525'/>
<id>urn:sha1:d29f82c52d604ddf65476bf382d4bbf1b5634525</id>
<content type='text'>
Since the dive-site-filter is active either on the dive-site-edit
page or the dive-site-list page, use that as the flag for dive-site-edit
mode. Moreover, when the filter is reset, the
MapWidgetHelper::reloadMapLocations() function is called, so we
can use that place to enter/exit edit mode.

This makes it easier to keep everything consistent.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Map: remove dead code</title>
<updated>2019-05-11T19:06:19Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2019-05-03T20:49:39Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=b6d830f0047cf0f68d9f7564f02c6b527f5051a0'/>
<id>urn:sha1:b6d830f0047cf0f68d9f7564f02c6b527f5051a0</id>
<content type='text'>
When entering map-edit mode and the dive site existed, its
coordinates were extracted but never used. Remove that useless
if-branch.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: remove MapWidgetHelper::m_selectedDiveIds member</title>
<updated>2019-05-11T19:06:19Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2019-05-02T20:41:24Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=48b8129137ed3db1c4b0940301c8bfc9662bcee3'/>
<id>urn:sha1:48b8129137ed3db1c4b0940301c8bfc9662bcee3</id>
<content type='text'>
This member variable was only used locally in functions.
Accordingly, make it a function-local variable.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Map: don't set map selection in selectVisibleLocations()</title>
<updated>2019-05-11T19:06:19Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2019-05-02T20:22:52Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=79f3000630d62ccd242b2edca1b4dd412bc5a74b'/>
<id>urn:sha1:79f3000630d62ccd242b2edca1b4dd412bc5a74b</id>
<content type='text'>
MapWidgetHelper::selectVisibleLocations() calls setSelection()
on a single dive. Firstly, this make no sense anymore, as
we now support multiple highlithed flags. Secondly, the
highlted dives are now derived from the selected dives.
Therefore, remove the call.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Map: don't update map-selection in centerOnSelectedDiveSite()</title>
<updated>2019-05-11T19:06:19Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2019-05-02T19:44:05Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=7c99b3a76fc2d257b5d89f271154cf4b91574d0c'/>
<id>urn:sha1:7c99b3a76fc2d257b5d89f271154cf4b91574d0c</id>
<content type='text'>
To detangle this code a little bit, let centerOnSelectedDiveSite()
just do what is says: center on the selected dive sites.
Don't update the selected dive site by calling
MapLocationModel::setSelected().

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