<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/map-widget/qml, branch v4.7.5</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.7.5</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.7.5'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2017-12-01T07:14:46Z</updated>
<entry>
<title>Use better aliases for icons.</title>
<updated>2017-12-01T07:14:46Z</updated>
<author>
<name>Martin Měřinský</name>
<email>mermar@centrum.cz</email>
</author>
<published>2017-11-29T09:57:08Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=8ef87e618afd1ec943c0f42a852b3b393c1e2113'/>
<id>urn:sha1:8ef87e618afd1ec943c0f42a852b3b393c1e2113</id>
<content type='text'>
Icon aliases were complete mess.
Some icons had alias some didn't.
Named with underscores vs. hyphens vs. camelCase.
Lower vs. upper case.
"ICON" prefix vs. suffix vs. nothing.
With vs. without filename suffix.
Some didn't make sence. Eg. mapwidget-marker-gray
(I can see, it's grey, but what does it represent?)
Some were duplicated, eg warning vs. warning-icon.
Some were name after widget, which is wrong.

Do not reinvent wheel. Use widely used naming scheme
close to Freedesktop Icon Naming Specification. This
will enable usage of common icons from current set in
the future. Thus Subsurface will fit nicely to GUI.

This changes icon aliases to one, easy grep-able style.

Signed-off-by: Martin Měřinský &lt;mermar@centrum.cz&gt;
</content>
</entry>
<entry>
<title>Revert "Use consistent aliases for all icons."</title>
<updated>2017-11-29T22:05:07Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2017-11-29T22:04:52Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=2747056889c6e003880201998353e28591faab62'/>
<id>urn:sha1:2747056889c6e003880201998353e28591faab62</id>
<content type='text'>
This reverts commit 92e9c6606f6ef3ad16d2e31f9f9a8f5fa14f2c1a.
</content>
</entry>
<entry>
<title>Use consistent aliases for all icons.</title>
<updated>2017-11-29T10:46:35Z</updated>
<author>
<name>Martin Měřinský</name>
<email>mermar@centrum.cz</email>
</author>
<published>2017-11-29T09:57:08Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=92e9c6606f6ef3ad16d2e31f9f9a8f5fa14f2c1a'/>
<id>urn:sha1:92e9c6606f6ef3ad16d2e31f9f9a8f5fa14f2c1a</id>
<content type='text'>
Icon aliases were inconsistent mess. Underscores vs. hyphens vs. camelCase.
With vs. without filename suffix. Lower vs. upper case. "icon" suffix vs.
prefix vs. nothing. Some were duplicated, eg warning vs. warning-icon. Some
icons didn't have alias at all.

This changes all icon aliases to one, easy grep-able style which complies
to Freedesktop Icon Naming Specification (Guidelines).

Signed-off-by: Martin Měřinský &lt;mermar@centrum.cz&gt;
</content>
</entry>
<entry>
<title>mapwidget.qml: return early instead of doing branching</title>
<updated>2017-11-27T21:59:22Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2017-11-27T15:13:57Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=837ed67d867991fd82773205970813426a806852'/>
<id>urn:sha1:837ed67d867991fd82773205970813426a806852</id>
<content type='text'>
The centerOn*() functions can just return early
for invalid input, instead of branching the conditions.

Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
</content>
</entry>
<entry>
<title>mapwidget.qml: more minor improvements</title>
<updated>2017-11-27T21:59:22Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2017-11-27T15:05:43Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=1d80b08a8fb1fe06fd5cf60eac43b9ae1dc1197c'/>
<id>urn:sha1:1d80b08a8fb1fe06fd5cf60eac43b9ae1dc1197c</id>
<content type='text'>
- Add the helper coordIsValid() and use it in centerOnCoordinate().
This checks for NaN coordinates and prevents an infinite while() loop.
- Use '-= 1.0' instead of '--' to be more clear that the decremented
variable is a float
- Store the current center with 'centerStored' in
centerOnCoordinate(). Fixes a possible zoom out glitch.
- use Math.floor() to convert 'zoomLevel' to integer when estimating
zoomOut in centerOn*()

Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
</content>
</entry>
<entry>
<title>mapwidget.qml: remove unused zoom-out function</title>
<updated>2017-11-27T21:59:22Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2017-11-27T14:13:48Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=449c92801b7fee8537fa23c3f03f927cbb4cba5f'/>
<id>urn:sha1:449c92801b7fee8537fa23c3f03f927cbb4cba5f</id>
<content type='text'>
The zoom out function is no longer used as we don't zoom
out when a dive doesn't have dive site coordinates.

Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
</content>
</entry>
<entry>
<title>mapwidget.qml: make pan and zoom-in have the same duration</title>
<updated>2017-11-27T21:59:22Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2017-11-27T14:09:49Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=1bc91bfb670c927fff3af53fa5b941824e27f3e8'/>
<id>urn:sha1:1bc91bfb670c927fff3af53fa5b941824e27f3e8</id>
<content type='text'>
There was a problem with the current different duration
for pan and zoom. Ideally the pan should before the zoom:
Map zooms out -&gt; pan to new center starts -&gt; zoom in

The problem with this is that if the map pans out too much it
loses it's center and the above scheme would not work.

To solve the problem, make the duration of pan and zoom
the same this is not idea, but prevents the case where
the map would not zoom-in at the correct center.

Also remove the easing function.

Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
</content>
</entry>
<entry>
<title>map-widget: interrupt map animations on new interactions</title>
<updated>2017-11-27T21:59:22Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2017-11-25T22:10:08Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=fe69b304b2496233142d9018ab5c6a7675ea089c'/>
<id>urn:sha1:fe69b304b2496233142d9018ab5c6a7675ea089c</id>
<content type='text'>
When the map is performing zoom/pan animation and the
user performs an action that would trigger a new zoom/pan
animation, but some glitches can occurs. An example
would be when one clicks a dive in the dive list -
the zoom/pan animation will trigger, so that the map
is centered on the dive site, but if the user clicks the
[+] button to zoom-in, while the animation is running
the map will glitch.

This patch prevents such glitches by stopping
all running animations in progress when the user:
- single clicks the map
- uses the mouse-wheel to zoom
- presses the [+] / [-] buttons

Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
</content>
</entry>
<entry>
<title>QML UI: QtQuick to 2.6</title>
<updated>2017-11-19T20:20:43Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2017-10-29T07:44:06Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=f3d978b8a5fb6511aa0c1c611cf9b0394fdc125b'/>
<id>urn:sha1:f3d978b8a5fb6511aa0c1c611cf9b0394fdc125b</id>
<content type='text'>
Upgrade QtQuick to 2.6. Seeing a small artifact in the application
header, lets see what happens when upgrading more includes.

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>map-widget: allow real-time updates of edited markers</title>
<updated>2017-11-09T20:40:25Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2017-11-09T16:43:21Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=746874a78e2abb53655e422abe66aa4f61fe47d1'/>
<id>urn:sha1:746874a78e2abb53655e422abe66aa4f61fe47d1</id>
<content type='text'>
This patch allows updating the location of map markers
while editing a dive site and updating the text in the
LocationInformationWidget in real-time.

Currently it is only possible to see the marker changes by
clicking 'Apply'.

The modification required the following changes:
- add the MapWidget::updateCurrentDiveSiteCoordinatesToMap() slot
and call it each time the GPS text updates
- separate the updateCurrentDiveSiteCoordinates(FromMap/ToMap) logic
by having the FromMap/ToMap suffix to method names
- make MapWidgetHelper::updateCurrentDiveSiteCoordinatesToMap()
call a new MapLocationModel::updateMapLocationCoordinates()
method, which updates selected location coordinates and the model
- add MapLocation::setCoordinateNoEmit() that does not emit
a signal when updating a coordinate

Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
</content>
</entry>
</feed>
