From f11ac405933f2bc124dcff05ec44dd6860cf712c Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 28 Jan 2019 18:35:27 +0100 Subject: Undo: implement undo of dive mode editing Add a new UndoCommand for dive mode editing. This one is a bit special, as the mode is associated with a dive computer (DC), not a dive. Thus the edit command has an additional parameter, viz. the index of the DC. This does not fit properly to the EditBase class, as this class isn't aware of additional parameters and therefore this parameter is not sent via signals. At the moment this doesn't matter. In any case, the semantics of editing are weird and therefore let's do the simple thing (derive from EditBase) and let's see what the future brings. Signed-off-by: Berthold Stoeger --- desktop-widgets/tab-widgets/maintab.h | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop-widgets/tab-widgets/maintab.h') diff --git a/desktop-widgets/tab-widgets/maintab.h b/desktop-widgets/tab-widgets/maintab.h index e8fdd0ac4..2ac463aec 100644 --- a/desktop-widgets/tab-widgets/maintab.h +++ b/desktop-widgets/tab-widgets/maintab.h @@ -68,6 +68,7 @@ slots: void addWeight_clicked(); void updateDiveInfo(bool clear = false); void updateNotes(const struct dive *d); + void updateMode(struct dive *d); void updateDepthDuration(); void acceptChanges(); void rejectChanges(); -- cgit v1.2.3-70-g09d2