subsurface/commands
Berthold Stoeger 4e8a838f74 undo: store all cylinders in EditCylinderBase
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 <bstoeger@mail.tuwien.ac.at>
2020-04-07 00:13:35 +02:00
..
CMakeLists.txt undo: implement addBookmark undo command 2020-04-07 00:13:35 +02:00
command.cpp undo: implement gas switch 2020-04-07 00:13:35 +02:00
command.h undo: implement gas switch 2020-04-07 00:13:35 +02:00
command_base.cpp undo infrastructure: improve undo command texts 2020-03-10 09:25:57 -07:00
command_base.h undo: implement addBookmark undo command 2020-04-07 00:13:35 +02:00
command_divelist.cpp translations: qualify tr function to get correct context 2020-03-22 12:02:48 -07:00
command_divelist.h Cleanup: use getDiveSelection() for shifting time 2020-03-06 10:00:13 +01:00
command_divesite.cpp translations: qualify tr function to get correct context 2020-03-22 12:02:48 -07:00
command_divesite.h undo: implement ApplyGPSFixes undo command 2020-03-09 12:41:57 -07:00
command_edit.cpp undo: store all cylinders in EditCylinderBase 2020-04-07 00:13:35 +02:00
command_edit.h undo: store all cylinders in EditCylinderBase 2020-04-07 00:13:35 +02:00
command_edit_trip.cpp translations: qualify tr function to get correct context 2020-03-22 12:02:48 -07:00
command_edit_trip.h Cleanup: lower-case filenames in core/subsurface-qt/ 2020-02-04 02:16:46 +01:00
command_event.cpp undo: reload dive on removal of gas-switch 2020-04-07 00:13:35 +02:00
command_event.h undo: reload dive on removal of gas-switch 2020-04-07 00:13:35 +02:00