From 7c427dcc020064e0ea867c77ee86db6e1f4755bb Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 1 Oct 2015 21:17:37 -0400 Subject: Add support to "split" a dive with surface time in the middle Right now this requires that (a) the dive have only one divecomputer associated with it. Trying to split a dive with multiple dive computers would be *much* harder to do, since you'd have to try to line up the surface interval between computers etc. So just don't do it after downloading multiple dive computers for the same dive. (b) there must be at least one minute between the sample that came up to the surface and the sample that goes down again. If you just peeked your head above the surface, don't try to split things into two dives. Maybe we can relax this for freediving or something. also note that the split dive will only get new numbering if the dive that was split was the very last dive in the divelist. Signed-off-by: Linus Torvalds Signed-off-by: Dirk Hohndel --- qt-ui/divelistview.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/divelistview.h') diff --git a/qt-ui/divelistview.h b/qt-ui/divelistview.h index 42802b6ea..aaec37af5 100644 --- a/qt-ui/divelistview.h +++ b/qt-ui/divelistview.h @@ -49,6 +49,7 @@ slots: void addToTripAbove(); void addToTripBelow(); void mergeDives(); + void splitDives(); void renumberDives(); void shiftTimes(); void loadImages(); -- cgit v1.2.3-70-g09d2