<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/commands, branch v4.9.4</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.9.4</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.9.4'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2020-05-02T12:52:51Z</updated>
<entry>
<title>cleanup: remove unnecessary include in command_divelist.cpp</title>
<updated>2020-05-02T12:52:51Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-05-02T11:52:16Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=e535ac90f944a568bf1d96571774be702345a8e2'/>
<id>urn:sha1:e535ac90f944a568bf1d96571774be702345a8e2</id>
<content type='text'>
"code/display.h" needs not be included anymore for selection
things.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: move dive_table from dive.h to divelist.h</title>
<updated>2020-05-01T16:42:31Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-05-01T11:43:52Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=95284c026e763482ef581c8b6298012d2c1fd941'/>
<id>urn:sha1:95284c026e763482ef581c8b6298012d2c1fd941</id>
<content type='text'>
This allows us to decouple dive.h and divelist.h, a small step in
include disentangling.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>core: always keep an empty cylinder at the end of the cylinder array</title>
<updated>2020-05-01T10:36:28Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-28T12:50:40Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=b949bad026c8bab7611998fb0fcf9f6008dbd7e9'/>
<id>urn:sha1:b949bad026c8bab7611998fb0fcf9f6008dbd7e9</id>
<content type='text'>
This will be temporarilly used by the planner to mark consumption of
air at the surface. Do this by creating a new function add_cylinder,
which replaces add_to_cylinder_table() and takes care of always adding
a dummy cylinder at the end of the table. Make the original
add_to_cylinder_table() local, so that it cannot be accessed anymore.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: remove Command::inCommand()</title>
<updated>2020-04-26T20:54:59Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-26T17:09:28Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=f43b3f56b252c2403b072298d4dbd613f03c479f'/>
<id>urn:sha1:f43b3f56b252c2403b072298d4dbd613f03c479f</id>
<content type='text'>
This was used by the divelist to check wether a selection change is
programmatical or user-initiated. However, since there is only one
entry point for programmatical selection changes, this is not needed
anymore. Remove it - this removes an inter-module dependency.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>divelist: when removing/adding a dive unregister/register fulltext</title>
<updated>2020-04-13T15:52:48Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-13T10:17:43Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=103951bc78485beb615feafd1f3d8e7aac3120ea'/>
<id>urn:sha1:103951bc78485beb615feafd1f3d8e7aac3120ea</id>
<content type='text'>
This fixes a crash: when the undo commands removed a dive from
the list, the fulltext cache was not cleared. If now the divelist
is reset and then the undo-command deleted, deletion of the owned
dive tries to remove it's fulltext cache, which doesn't exist
anymore.

For reasons of symmetry, when readding the dive, its fulltext
has to be registered.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>Merge pull request #2643 from bstoeger/cylinder4</title>
<updated>2020-04-11T18:03:05Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-04-11T18:03:05Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=6d187b5f4a3b51043fa3b53b6c73a7e0ec7f0b53'/>
<id>urn:sha1:6d187b5f4a3b51043fa3b53b6c73a7e0ec7f0b53</id>
<content type='text'>
First steps of cylinder-editing undo</content>
</entry>
<entry>
<title>undo: refine pasting of cylinders</title>
<updated>2020-04-10T16:43:32Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-08T19:36:43Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=4489389a018d7099e6fd0019e4717dcf95bc08b5'/>
<id>urn:sha1:4489389a018d7099e6fd0019e4717dcf95bc08b5</id>
<content type='text'>
When pasting cylinders, the destination dive got a verbatim copy
of the cylinders of the source dive. This is not what users want:
for example, the start and stop pressures from the dive computer
as well as the gas mix may be overwritten.

There seems to be no perfect solution, since some times users may
want to paste the gas-mix.

Therefore, let's choose a heuristic approach for now (in the future
we might implement a UI-flag):

When copying over existing cylinders, only copy type and maximum
pressure.

When adding new cylinders (i.e. from-dive has more cylinders than
to-dive), copy everything, but reset start- and top-pressure to 0,
which represents unkown.

Moroever, in the latter case, set "manually added" to true, since
obviously this wasn't added by a dive computer.

Fixes #2676

Reported-by: Miika Turkia &lt;miika.turkia@gmail.com&gt;
Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>undo: call invalidate_dive_cache() when editing cylinders</title>
<updated>2020-04-06T22:13:35Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-04-03T12:25:43Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=e2f77f9238134c7d45944cb5cf62c2c15f202870'/>
<id>urn:sha1:e2f77f9238134c7d45944cb5cf62c2c15f202870</id>
<content type='text'>
Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>undo: more fine-grained editing of cylinder</title>
<updated>2020-04-06T22:13:35Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-03-27T20:09:59Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=2eeb5f4fc2d6da8a8c8950f0b479b7cb2055af07'/>
<id>urn:sha1:2eeb5f4fc2d6da8a8c8950f0b479b7cb2055af07</id>
<content type='text'>
Don't overwrite the full cylinder when editing a single field.
Implement three "modes": editing of type, pressure and gasmix.

Don't consider individual fields, because some of them are
related. E.g. you can change the gasmix by setting the MOD.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>undo: store all cylinders in EditCylinderBase</title>
<updated>2020-04-06T22:13:35Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-03-27T08:22:11Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=4e8a838f746d7319b97b56a209651a65655aca7f'/>
<id>urn:sha1:4e8a838f746d7319b97b56a209651a65655aca7f</id>
<content type='text'>
We stored only one cylinder in EditCylinderBase, which is the
base class of RemoveCylinder and EditCylinder. This turns out
to be too crude: when removing the "same" cylinder from
multiple dives, there are some "hidden variables" such as
bestmix_o2 or manually_added, which might actually be different.
We don't want to overwrite those on undo of delete.
Moreover, the cylinder edit is way too crude at the moment,
as it overwrites the whole cylinder even when the user edited
only a single field. To enable a more refined edit, we have
to store each changed cylinder.

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