<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/qt-ui, branch v4.0.2</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.0.2</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.0.2'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2014-01-09T07:48:33Z</updated>
<entry>
<title>Remove now stale arguments to "CHANGED()" macro</title>
<updated>2014-01-09T07:48:33Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2014-01-09T02:47:28Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=0646f3e9ff3e5289b65d24d5f41408ee5be4a845'/>
<id>urn:sha1:0646f3e9ff3e5289b65d24d5f41408ee5be4a845</id>
<content type='text'>
We now never remove units or percentage signs, and always just compare
the string data, so we should remove the hacky arguments that are no
longer used.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Add and use 'string_to_fraction()' helper converter function</title>
<updated>2014-01-09T07:48:22Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2014-01-09T02:43:28Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=3734bb9068d4b66fa76b0e13a027b1a8497ae27f'/>
<id>urn:sha1:3734bb9068d4b66fa76b0e13a027b1a8497ae27f</id>
<content type='text'>
This matches the pattern of unit conversion, and will allow us to remove
all the code that uses the old complex "CHANGED()" macro that tries to
remove units or percent signs.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Add unit-aware cylinder size string parserc</title>
<updated>2014-01-09T07:46:03Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2014-01-09T02:34:25Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=a79ddde1b9b4d2149c0e2a34a4f63a6ab5ae176d'/>
<id>urn:sha1:a79ddde1b9b4d2149c0e2a34a4f63a6ab5ae176d</id>
<content type='text'>
Whittling down on the string parsing that doesn't check user-specified
units.  Still need to handle temperatures (and will do percentages to
match the pattern too), but this is getting us closer to always honoring
user-specified units.

With this you can say that you have a "10l" cylinder at "3000psi", and
it will do the right thing (it's basically a 72 cuft cylinder in
imperial measurements).

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Add unit-aware conversion of pressure data</title>
<updated>2014-01-09T01:31:19Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2014-01-09T00:49:21Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=110c07e27b61cacacf4daba3a4606974c995721d'/>
<id>urn:sha1:110c07e27b61cacacf4daba3a4606974c995721d</id>
<content type='text'>
This just adds (and uses) a string_to_pressure() to parse pressure units
correctly when filling in cylinder pressures.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Add a string_to_depth() helper function to match our string_to_weight one</title>
<updated>2014-01-09T01:30:35Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2014-01-08T06:55:47Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=262bc9c84b1ab04934e84d6671e6a2b7c19c9af3'/>
<id>urn:sha1:262bc9c84b1ab04934e84d6671e6a2b7c19c9af3</id>
<content type='text'>
It's currently only used for the setting of the cylinder switching
depth, but now that one should work with user-specified units (so you
can set a max depth in feet even if you use metric, and vice versa).

In the future, if we also make the unit preferences something you can
pass in (with user preferences as a default argument value), we might
want to use this for parsing the XML too, so that we'd honor explicit
units in the XML strings.  But the XML input unit preferences are not
necessarily at all the same as the user preferences, so that does
require us to extend the conversion functions to do possibly explicit
unit preference selection.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>const'ify our strtod() helper functions</title>
<updated>2014-01-09T01:30:25Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2014-01-08T06:51:22Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=1c72b8b0545e6a13ea3db917a1434152c73a3c3b'/>
<id>urn:sha1:1c72b8b0545e6a13ea3db917a1434152c73a3c3b</id>
<content type='text'>
The C library doesn't use const char pointers for legacy reasons (and
because you *can* modify the string the end pointer points to), but
let's do it in our internal implementation just because it's a nice
guarantee to have.

We actually used to have a non-const end pointer and replace a decimal
comma with a decimal dot, but that was because we didn't have the fancy
"allow commas" flags.  So by using our own strtod_flags() function, we
can now keep all the strings we parse read-only rather than modify them
as we parse them.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Make 'string_to_grams()' use proper type safe types</title>
<updated>2014-01-09T01:30:18Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2014-01-08T06:24:35Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=b9d7e440fd37a4da8455d80a71911a4fbcdbfa11'/>
<id>urn:sha1:b9d7e440fd37a4da8455d80a71911a4fbcdbfa11</id>
<content type='text'>
Make it use 'weight_t' and hide the "grams" part inside the type.  That
was the whole point of the weight_t type, after all.  Returning a
"double" was always bogus, since we internally always do integer grams
(and the function actually used "rint()" to get all the rounding right
anyway).

As a result, it's now called "string_to_weight()".

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>DownloadFromDCWidget: prevent possible leaks for log/dump files</title>
<updated>2014-01-09T01:29:40Z</updated>
<author>
<name>Lubomir I. Ivanov</name>
<email>neolit123@gmail.com</email>
</author>
<published>2014-01-07T14:41:21Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=7d56e404fdd09c1ec24b966eb00ba31c8f87ba70'/>
<id>urn:sha1:7d56e404fdd09c1ec24b966eb00ba31c8f87ba70</id>
<content type='text'>
If the 'logfile_name' and 'dumpfile_name' were NULL we can simply
strdup() them with a new value, but if there was a previous value
we need to free() first.

C99 6.7.8 allows us to keep said variables without the
explicit NULL initialiazation.

Signed-off-by: Lubomir I. Ivanov &lt;neolit123@gmail.com&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Setting dive as 'current' when restoring selection</title>
<updated>2014-01-09T01:28:45Z</updated>
<author>
<name>Tomaz Canabrava</name>
<email>tcanabrava@kde.org</email>
</author>
<published>2014-01-06T22:13:21Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=7f4d1a9f32987a92d6418bc6d18e6359536289ff'/>
<id>urn:sha1:7f4d1a9f32987a92d6418bc6d18e6359536289ff</id>
<content type='text'>
Restoring the selection was not setting the selected dive as current, and
thus, breaking keyboard navigation.

Fixes #402

Signed-off-by: Tomaz Canabrava &lt;tcanabrava@kde.org&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Add CaseInsensitivity to all of the completers.</title>
<updated>2014-01-09T01:28:31Z</updated>
<author>
<name>Tomaz Canabrava</name>
<email>tcanabrava@kde.org</email>
</author>
<published>2014-01-06T22:00:10Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=0c3075dc41cc9a6256bd5846e1654bc6c157d331'/>
<id>urn:sha1:0c3075dc41cc9a6256bd5846e1654bc6c157d331</id>
<content type='text'>
Just one of the completers had Qt::CaseInsentitive set,
setting for all of them.

Fixes #400

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