<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/qt-ui/profile, branch v4.3.950</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.3.950</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.3.950'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2015-01-23T21:48:12Z</updated>
<entry>
<title>Avoid overprinting of cylinder presssure labels for CCR dives</title>
<updated>2015-01-23T21:48:12Z</updated>
<author>
<name>willem ferguson</name>
<email>willemferguson@zoology.up.ac.za</email>
</author>
<published>2015-01-23T18:54:12Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=724a07b7e08c3bb8f85328c30744753198139395'/>
<id>urn:sha1:724a07b7e08c3bb8f85328c30744753198139395</id>
<content type='text'>
This patch takes the cylinder pressures of CCR dives and prints them
in a non-overlapping way.

Remaining issue: When the dive profile is made taller by dragging the
window or the appropriate slider far down the screen, the labels move
further apart; similarly, when the profle is made flat/shallow by dragging
the window edge or appropriate slider up, the labels get close to each
other and start to overlap.

There are quite a few lines of additional code going into the patch. This
is primarily because separate provisions for when po2 &gt; p(diluent) or vice
versa. In addition, I could not determine the size of the text characters
which would allow much more precise placement of text. This is because the
.scale member of the text is private and not available in the methods
involved in printing the labels. However, the height of the vertical scale
of the cylinder pressure graph can be determined [e.g. vAxis-&gt;maximum()].
This helped a lot to get the positioning of the text more or less correct.

While the results of the patch is not perfect, It contributes
significantly to make the profiles of Poseidon dives more readable.

Signed-off-by: willem ferguson &lt;willemferguson@zoology.up.ac.za&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Correcly look at all relevant dive computer structures</title>
<updated>2015-01-23T19:07:02Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2015-01-23T19:05:32Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=c3614424f9117c053c783fba5f6499743ec125f9'/>
<id>urn:sha1:c3614424f9117c053c783fba5f6499743ec125f9</id>
<content type='text'>
When calculating maxima for a dive, we need to take data from all existing
dive computer structures plus potentially also a fake dive computer
structure that is just passed in in order to create a meaningful profile.

Commit 86c961614bfa ("Actually walk all dive computers, don't just claim
to do so") missed that second case and no longer took the fake_dc into
account, breaking the display of dives that don't have samples.

Reported-by: Miika Turkia &lt;miika.turkia@gmail.com&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Don't show previous dive computer text</title>
<updated>2015-01-23T18:54:16Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2015-01-23T18:54:16Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=6aee901f6fb329b3c8b3945fc394842a921ca2c7'/>
<id>urn:sha1:6aee901f6fb329b3c8b3945fc394842a921ca2c7</id>
<content type='text'>
There were situations when the last text was still shown. E.g. when the
current file was closed and then a new dive was imported from CSV.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Code cleanup: CCR setpoint and o2 sensor visualisation</title>
<updated>2015-01-23T09:41:28Z</updated>
<author>
<name>willem ferguson</name>
<email>willemferguson@zoology.up.ac.za</email>
</author>
<published>2015-01-23T07:47:33Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=4487e13e15bcee1f9c1d893dba017045ee4e783c'/>
<id>urn:sha1:4487e13e15bcee1f9c1d893dba017045ee4e783c</id>
<content type='text'>
This patch does some cleaning up of the code that provides visualisation
of CCR o2 sensor and o2 setpoint data. It reduces the number of
conditional evalauations that are required and it improves the readability
of these parts of the code.

Signed-off-by: willem ferguson &lt;willemferguson@zoology.up.ac.za&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>CCR option: display o2 sensor data</title>
<updated>2015-01-21T05:00:18Z</updated>
<author>
<name>willem ferguson</name>
<email>willemferguson@zoology.up.ac.za</email>
</author>
<published>2015-01-20T18:13:53Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=a700be32076225e68bfaa4b6c418cff015e2ceec'/>
<id>urn:sha1:a700be32076225e68bfaa4b6c418cff015e2ceec</id>
<content type='text'>
This patch creates the possibility of viewing the individual sensor
values when the po2 button on the profile toolbar is activated. This
follows exactly the procedure for optionally displaying the setpoint
values while viewing po2. A checkbox in the preferences panel determines
whether sensor information is shown. By default it is set to OFF. When
checked, and the po2 button is activated, sensor1 values are shown in
grey, sensor2 in blue and sensor3 in brown.

Signed-off-by: willem ferguson &lt;willemferguson@zoology.up.ac.za&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Actually walk all dive computers, don't just claim to do so</title>
<updated>2015-01-19T09:52:08Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2015-01-19T09:52:08Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=86c961614bfa8ab9057319ea5f22816351a7f61a'/>
<id>urn:sha1:86c961614bfa8ab9057319ea5f22816351a7f61a</id>
<content type='text'>
If the first dive computer had pressure samples, but the second one (and
no higher one) did, then we would draw a flat horizontal line for the tank
pressure graph (but lable it with the correct pressures). This routine
that is hunting for the actual maxima and minima does have to really go
through all dive computers, not just "this one and up".

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Fix extreme sluggish profile over time</title>
<updated>2015-01-19T04:25:13Z</updated>
<author>
<name>Tomaz Canabrava</name>
<email>tomaz.canabrava@intel.com</email>
</author>
<published>2015-01-18T21:17:24Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=ecf4d18b417aa9c50ddbc936dc65f80c58d64368'/>
<id>urn:sha1:ecf4d18b417aa9c50ddbc936dc65f80c58d64368</id>
<content type='text'>
Whoa, this deserves a good explanation.

Everytime that the mouse moved in add / plan mode, or anytime a new dive
was displayed on the profile, this method would be called and connect the
dataModel to the modelChanged method. This added the slot in a call-vector
that the fired signal would call, adding one call to the Slot per add /
plan mouse move (about 20x/s) or each time a new dive was displayed.
Quickly filling the vector with more than 200 - 300 calls to this same
Slot.

The fix is to only connect one time. this made the add / plan mode *so*
much smoother... :)

Signed-off-by: Tomaz Canabrava &lt;tomaz.canabrava@intel.com&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Fix build: add missing #includes</title>
<updated>2015-01-18T09:26:53Z</updated>
<author>
<name>Thiago Macieira</name>
<email>thiago@macieira.org</email>
</author>
<published>2015-01-17T15:02:03Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=f5726ffa9d21f80232b1206456eaf971468c4b2f'/>
<id>urn:sha1:f5726ffa9d21f80232b1206456eaf971468c4b2f</id>
<content type='text'>
qt-ui/profile/profilewidget2.cpp:1351:10: error: invalid use of incomplete type ‘class QDebug’
qt-ui/printlayout.cpp:141:27: error: variable ‘QPointer&lt;ProfileWidget2&gt; profile’ has initializer but incomplete type

In commit f9ceff009b35 ("Clean up the header files") things got broken for
an as of now unreliesed future version of Qt.

Signed-off-by: Thiago Macieira &lt;thiago@macieira.org&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Move the heart rate graph</title>
<updated>2015-01-18T09:26:06Z</updated>
<author>
<name>Joakim Bygdell</name>
<email>j.bygdell@gmail.com</email>
</author>
<published>2015-01-17T18:54:10Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=76e3a10f08f20c447c0d93df9a1cc48cb9288c55'/>
<id>urn:sha1:76e3a10f08f20c447c0d93df9a1cc48cb9288c55</id>
<content type='text'>
Move the heart rate graph down to the same space as the tissue saturation
graph so that it does not overlap with temperature or partial pressures.

Signed-off-by: Joakim Bygdell &lt;j.bygdell@gmail.com&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Clean up the header files</title>
<updated>2015-01-18T09:25:59Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2015-01-17T09:43:52Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=f9ceff009b35f73dec6d13f4037119172f6cf0de'/>
<id>urn:sha1:f9ceff009b35f73dec6d13f4037119172f6cf0de</id>
<content type='text'>
Lots and lots and lots of header files were being included without being
needed. This attempts to clean some of that crud up.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
</feed>
