<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/qt-models, branch v4.7.7</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.7.7</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.7.7'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2018-02-07T08:22:15Z</updated>
<entry>
<title>Bugfix in plannermodel for very short dive durations</title>
<updated>2018-02-07T08:22:15Z</updated>
<author>
<name>Oliver Schwaneberg</name>
<email>oliver.schwaneberg@gmail.com</email>
</author>
<published>2018-02-04T22:17:58Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=218ea948316fe9e1581935becac8f1225d16e955'/>
<id>urn:sha1:218ea948316fe9e1581935becac8f1225d16e955</id>
<content type='text'>
When adding a dive manually, you might clear the "duration" field and fill
in your value by hand. Unfortunately, commit #1052 produced a bug that
practically limited the dive duration to 6 minutes once the field was cleared.

Signed-off-by: Oliver Schwaneberg &lt;oliver.schwaneberg@gmail.com&gt;
</content>
</entry>
<entry>
<title>mobile cleanup: restyle construction of locationlist</title>
<updated>2018-01-31T13:48:14Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2018-01-28T14:21:28Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=494ad2654082d85846cb902556921ab62a6dbb14'/>
<id>urn:sha1:494ad2654082d85846cb902556921ab62a6dbb14</id>
<content type='text'>
See also e6e1473e6. The construction of the locationlist
was not the same as the 3 previous lists, and it needs
the inclusion of a new model file (divelocationmodel.cpp)
in the mobile app. In addition, as the mobile app is mainly
interested in a simple stringList (model) to populate a HintsText
field (or maybe later a combobox), this stringlist is added
to the model, to easy interfacing with QML.

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>mobile cleanup: unduplicate code and do not loop over dives (1)</title>
<updated>2018-01-31T13:48:14Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2018-01-28T08:52:51Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=fed2c5b6a1c71649bcb310c0bd118cb1abcf9ea0'/>
<id>urn:sha1:fed2c5b6a1c71649bcb310c0bd118cb1abcf9ea0</id>
<content type='text'>
This is the first of a set of commits that are (very) similar.
It appeared that a number of more or less static lists, which are
constructed by a loop over all dives in the logbook, were executed
when changing focus to a next dive. For example, the in this
commit addressed list of used dive suits.

What was wrong was that the suitList was linked to a dive. There
is only a need to construct the list of used suits when data is
changed (and obviously, once on startup of the app). Further, it
appeared that a lot of code was duplicated and that we can use
(in this case) the same code from the desktop completionmodels.cpp.

Basically, this commit involves the following changes:
- include completionmodels.cpp in mobile and desktop (so move
it from the desktop only category to the generic category).
- remove double code from DiveObjectHelper.cpp
- Do not differentiate in the init phase and the normal refresh
of the list
- the per dive logic is now only the getting of a previously
constructed list (in init or update of the divelist).

There are no visible changes in the UI, other than a better
performance when scrolling over dive details.

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>Initialise cylinder start pressure with working pressure</title>
<updated>2018-01-26T06:04:45Z</updated>
<author>
<name>Robert C. Helling</name>
<email>helling@atdotde.de</email>
</author>
<published>2018-01-25T10:25:47Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=6d3c2327bd6a7bfdb283fe2e681aff2449327f89'/>
<id>urn:sha1:6d3c2327bd6a7bfdb283fe2e681aff2449327f89</id>
<content type='text'>
In the planner, this is the natural assumption.

Signed-off-by: Robert C. Helling &lt;helling@atdotde.de&gt;
</content>
</entry>
<entry>
<title>Improve profile display in planner</title>
<updated>2018-01-19T10:38:11Z</updated>
<author>
<name>Willem Ferguson</name>
<email>willemferguson@zoology.up.ac.za</email>
</author>
<published>2018-01-15T12:51:47Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=9a8bab21c9996020b16f1dd140647efe8e262a42'/>
<id>urn:sha1:9a8bab21c9996020b16f1dd140647efe8e262a42</id>
<content type='text'>
This patch allows the planner to save the last manually-entered
dive planner point of a dive plan. When the plan has been saved
and re-opened for edit, the time of the last-entered dive planner
point is used to ensure that dive planning continues from the same
point in the profile as was when the original dive plan was saved.
Mechanism:

1) In dive.h, create a new dc attribute dc-&gt;last_manual_time
   with data type of duration_t.
2) In diveplanner.c, ensure that the last manually-entered
   dive planner point is saved in dc-&gt;last_manual_time.
3) In save-xml.c, create a new XML attribute for the &lt;divecomputer&gt;
   element, named last-manual-time. For dive plans, the element would
   now look like:
   &lt;divecomputer model='planned dive' last-manual-time='31:17 min'&gt;
4) In parse-xml.c, insert code that recognises the last-manual-time
   XML attribute, reads the time value and assigns this time to
   dc-&gt;last_manual_time.
5) In diveplannermodel.cpp, method DiveplannerPointModel::loadfromdive,
   insert code that sets the appropriate boolean value to dp-&gt;entered
   by comparing newtime (i.e. time of dp) with dc-&gt;last_manual_time.
6) Diveplannermodel.cpp also accepts profile data from normal dives in
   the dive log, whether hand-entered or loaded from dive computer. It
   looks like the reduction of dive points for dives with &gt;100 points
   continues to work ok.
The result is that when a dive plan is saved with manually entered
points up to e.g. 10 minutes into the dive, it can be re-opened for edit
in the dive planner and the planner re-creates the plan with manually
entered points up to 10 minutes. The rest of the points are "soft"
points, shaped by the deco calculations of the planner.

Improvements: Improve code for profile display in dive planner

This responds to #1052.
Change load-git.c and save-git.c so that the last-manual-time is
also saved in the git-format dive log.

Several stylistic changes in text for consistent C source code.

Improvement of dive planner profile display:

Do some simplification of my alterations to diveplannermodel.cpp

Two small style changes in planner.c and diveplannermodel.cpp
as requested ny @neolit123

Signed-off-by: Willem Ferguson &lt;willemferguson@zoology.up.ac.za&gt;
</content>
</entry>
<entry>
<title>Use helper function empty_string() instead of manual checks</title>
<updated>2018-01-11T05:07:13Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-01-07T14:42:28Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=6a07ccbad273cdcbea3f984c5c2e9d1b272aae05'/>
<id>urn:sha1:6a07ccbad273cdcbea3f984c5c2e9d1b272aae05</id>
<content type='text'>
For code consistency, substitute boolean expressions:
 s &amp;&amp; *s     -&gt; !empty_string(s)
 s &amp;&amp; s[0]   -&gt; !empty_string(s)
 !s || !*s   -&gt;  empty_string(s)
 !s || !s[0] -&gt;  empty_string(s)

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Introduce helper function empty_string()</title>
<updated>2018-01-11T05:07:13Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-01-07T10:12:48Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=e85ecdd9254a8bd222ccb2dfed7d3b3bb96c8294'/>
<id>urn:sha1:e85ecdd9254a8bd222ccb2dfed7d3b3bb96c8294</id>
<content type='text'>
There are ca. 50 constructs of the kind
  same_string(s, "")
to test for empty or null strings. Replace them by the new helper
function empty_string().

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Pictures tied to profile are not supported on mobile</title>
<updated>2018-01-10T20:28:02Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2018-01-10T12:55:29Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=34bc4fc0af953723fd42c4ffc0b0a8bf1cf68b22'/>
<id>urn:sha1:34bc4fc0af953723fd42c4ffc0b0a8bf1cf68b22</id>
<content type='text'>
Move divepicturemodel.cpp to the desktop only category and deal
with the (limited) fallout. We, currently, do not support dive
pictures tied to the profile on mobile, so there is no use
including this code.

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>Un-tie plannner model from profile on mobile</title>
<updated>2018-01-10T20:28:02Z</updated>
<author>
<name>Jan Mulder</name>
<email>jlmulder@xs4all.nl</email>
</author>
<published>2018-01-09T18:32:41Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=9c01315d31e71c857a7a5ef34db6da7343b030ac'/>
<id>urn:sha1:9c01315d31e71c857a7a5ef34db6da7343b030ac</id>
<content type='text'>
Do not pull in the DivePlannerPointsModel::instance as this is not
used in the called function. We (currently) do not support deco
computations on mobile, so trying to pull in any deco state from
the planner is futile anyway.

With this uncoupling, 6 more model files are not needed in mobile
any more.

Signed-off-by: Jan Mulder &lt;jlmulder@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>Typo: indice -&gt; index</title>
<updated>2018-01-10T20:25:02Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2018-01-10T16:33:20Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=85ac3106e6ed1e9620a6fd05e207ae2c9d8e762e'/>
<id>urn:sha1:85ac3106e6ed1e9620a6fd05e207ae2c9d8e762e</id>
<content type='text'>
Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
</feed>
