<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/profile-widget, branch v4.9.7</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.9.7</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.9.7'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2020-09-13T20:54:59Z</updated>
<entry>
<title>cleanup: fold core/divecomputer.cpp into core/device.c</title>
<updated>2020-09-13T20:54:59Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-09-13T17:08:41Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=a01ab817139be16906c30f89e16a0a3fbbe026cd'/>
<id>urn:sha1:a01ab817139be16906c30f89e16a0a3fbbe026cd</id>
<content type='text'>
core/device.h was declaring a number of functions that were related
to divecomputers (dcs): creating a fake dc for manually entered dives
and registering / accessing dc nicknames. On could argue whether
these should be lumped together, but it is what it is.

However, part of that was implemented in C++/Qt code in a separate
core/divecomputer.cpp file. Some function therein where only
accessible to C++ and declared in core/divecomputer.h.

All in all, a big mess. Let's simply combine the files and
conditionally compile the C++-only functions depending on
the __cplusplus define.

Yes, that means turning device.c into device.cpp. A brave soul
might turn the C++/Qt code into C code if they whish later on.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: remove count_divecomputers() function</title>
<updated>2020-09-09T00:20:09Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-09-06T15:41:25Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=048cdcaa318f111e12d78c60927a0e2fc30eb1d6'/>
<id>urn:sha1:048cdcaa318f111e12d78c60927a0e2fc30eb1d6</id>
<content type='text'>
There is a number_of_computers() function which does
the same thing with two exceptions:
1) checks for null-dive
2) returns an unsigned int

Replace calls to count_divecomputers() by calls to number_of_computers().
In one case, the return type makes a different - add a cast to int there.
Ultimately, we should probably change the dc_number to signed int
throughout the code.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Increase event icon size in print mode</title>
<updated>2020-09-03T18:46:18Z</updated>
<author>
<name>Robert C. Helling</name>
<email>helling@atdotde.de</email>
</author>
<published>2020-08-07T19:10:46Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=52aa7d83b6eb0200702c75425972223720fde00a'/>
<id>urn:sha1:52aa7d83b6eb0200702c75425972223720fde00a</id>
<content type='text'>
When plotting the profile in higher resolution for export,
increase the icon size in the same way.

This is commented out for the mobile version as that
uses printMode for profile display.

Signed-off-by: Robert C. Helling &lt;helling@atdotde.de&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Add an "Edit Gas Change" right-click option.</title>
<updated>2020-08-26T14:11:49Z</updated>
<author>
<name>Michael Werle</name>
<email>micha@michaelwerle.com</email>
</author>
<published>2020-08-24T20:37:08Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=f5ba42e933ae4701f40ba8b8b8058e5dd8c82cc0'/>
<id>urn:sha1:f5ba42e933ae4701f40ba8b8b8058e5dd8c82cc0</id>
<content type='text'>
This new option allows a user to select a new destination tank for an
existing "Gas Change" event. This is useful when Subsurface's heuristics
get tanks wrong after an import from a divecomputer. The use-case arose
from sidemount divers with air-integrated transmitters as well as carrying
a deco tank.

Signed-off-by: Michael Werle &lt;micha@michaelwerle.com&gt;
</content>
</entry>
<entry>
<title>profile: clear pictures when displaying empty dive</title>
<updated>2020-05-06T20:58:09Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-19T17:33:19Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=aeee2a08027b177495635262114374f085351ce7'/>
<id>urn:sha1:aeee2a08027b177495635262114374f085351ce7</id>
<content type='text'>
Since the profile does not listen to DivePictureModel resets anymore,
the pictures weren't cleared when clearing the canvas. Do this
explicitly.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>undo: make picture (media) deletion undoable</title>
<updated>2020-05-06T20:58:09Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-17T21:18:58Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=434644b381cb1dc8d2080b19a9725bfe2660a217'/>
<id>urn:sha1:434644b381cb1dc8d2080b19a9725bfe2660a217</id>
<content type='text'>
The code is rather complex. Firstly, we have different representations
of pictures throughout the code. Secondly, this tries to do add the
pictures in batches to the divepicture model and that is always rather
tricky.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>undo: implement undo of setting a picture time by drag&amp;drop</title>
<updated>2020-05-06T20:58:09Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-14T20:07:00Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=e61641c79cd57bfa55d2371615a7eef7c73b4eb7'/>
<id>urn:sha1:e61641c79cd57bfa55d2371615a7eef7c73b4eb7</id>
<content type='text'>
Even though the functionality is seemingly trivial, this is a bit
invasive, as the code has to be split into two distinct parts:
1) Post undo command
2) React to changes to the divelist

Don't compile that code on mobile.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>profile: don't interpret NULL as current_dive in plotDive()</title>
<updated>2020-05-03T21:47:49Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-13T11:45:52Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=17556cc66cedc84aaf6de2bfabcafbcca8bda53c'/>
<id>urn:sha1:17556cc66cedc84aaf6de2bfabcafbcca8bda53c</id>
<content type='text'>
ProfileWidget2::plotDive() had this weird interface, where passing
in NULL as dive would mean "show current_dive". However, most callers
would already pass in current_dive. Therefore, unify and always pass
in current_dive if the caller wants to draw the current dive.

This allows us to interpret NULL as "show empty profile". Thus,
passing in current_dive when there is no current_dive simply shows
an empty profile. This makes the calling code in
MainWindow::selectionChanged() simpler.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>profile: use member-to-function style connect() statements</title>
<updated>2020-05-03T21:47:49Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-12T10:48:38Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=c1963fd5ddd82b5ed0133ce6b04be9d525e27d89'/>
<id>urn:sha1:c1963fd5ddd82b5ed0133ce6b04be9d525e27d89</id>
<content type='text'>
This makes things compile-time instead of run-time checked.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: remove parameter to ProfleWidget2::replot()</title>
<updated>2020-05-03T21:47:49Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-12T10:20:25Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=d520ac22864fed77f44de9461c3bb5302b22e30f'/>
<id>urn:sha1:d520ac22864fed77f44de9461c3bb5302b22e30f</id>
<content type='text'>
Firstly, the parameter appears conceptually wrong, as replot suggests
that the currently shown dive is replot. Secondly, the only caller that
passed a parameter was passing in current_dive, which is just what happens
if one doesn't pass a parameter. Therefore, change that caller (call
plotDive directly) and remove the parameter.

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