subsurface/core/subsurface-qt
Berthold Stoeger 6f574c53a3 Undo: implement undo of dive site editing
This one is a bit more tricky. There are two modes: set dive site
and set newly created dive site. This is realized using an OO model
with derived classed. Quite convoluted - but it seems to work.

Moreover, editing a dive site is not simply setting a value,
but the list of dives in a dive site has to be kept up to date.

Finally, we have to inform the dive site list of the changed
number of dives. Therefore add a new signal diveSiteDivesChanged.
To send only one signal per dive site, hook into the undo() and
redo() functions and call the functions of the base class there.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-04-12 18:19:07 +03:00
..
CylinderObjectHelper.cpp Cleanup: fold core/helpers.h into core/qthelper.h 2018-06-04 08:50:10 -07:00
CylinderObjectHelper.h Add SPDX header to remaining core files 2017-04-29 13:32:55 -07:00
DiveListNotifier.cpp Dive list: implement proper Qt-model semantics for DiveTripModel 2018-10-11 16:22:27 -07:00
DiveListNotifier.h Undo: implement undo of dive site editing 2019-04-12 18:19:07 +03:00
DiveObjectHelper.cpp Dive sites: prepare for dive site ref-counting 2019-04-12 18:19:07 +03:00
DiveObjectHelper.h Mobile: don't format trip heading for all dives 2018-11-23 13:22:24 -08:00