subsurface/commands
Berthold Stoeger ea813938a8 undo: autogenerate trivial set() and data() functions by a template
Some dive-editing undo commands have trivial setter and getter
functions: they simply read and write a struct dive member.
Autogenerate these in a template to which we pass a pointer
to member as template argument.

For the invalid-flag we have to turn the edit command from int
to bool, since that is how the flag is store in the dive struct.

Sadly, quite a number of the setters do funky things and we
cannot autogenerate them.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2020-03-31 21:53:19 +02:00
..
CMakeLists.txt build-system: remove pointless distinction between desktop and mobile 2020-03-10 09:25:57 -07:00
command.cpp Undo: implement invalidate-dive command 2020-03-20 15:20:44 -07:00
command.h Undo: implement invalidate-dive command 2020-03-20 15:20:44 -07:00
command_base.cpp undo infrastructure: improve undo command texts 2020-03-10 09:25:57 -07:00
command_base.h undo infrastructure: improve undo command texts 2020-03-10 09:25:57 -07: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: autogenerate trivial set() and data() functions by a template 2020-03-31 21:53:19 +02:00
command_edit.h undo: autogenerate trivial set() and data() functions by a template 2020-03-31 21:53:19 +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