From 225b13a22da446860c1f1b5cceeb52ba366ae77d Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 16 Aug 2013 13:31:52 -0300 Subject: Enable Multi Dive Editing. This patch enables multi dive editing on the selected dives. It's a bit of big patch where I reworked how it worked since it was written just for a single dive. this means that this can introduce bugs - I'v tested it quite a bit but a thing could slip thru my fingers. :) How this is supposed to work: Select a few dives that you want ( one or more ) then click on the field that you wanna edit / multi edit, and press 'accept'. *only* the edited field will be modified thru all dives. Next patch - I'll change the bg color of the edited fields.A Signed-off-by: Tomaz Canabrava --- qt-ui/maintab.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qt-ui/maintab.h') diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h index 8c398a77d..5180b26e2 100644 --- a/qt-ui/maintab.h +++ b/qt-ui/maintab.h @@ -9,11 +9,12 @@ #include #include +#include #include "models.h" class QCompleter; - +struct dive; namespace Ui { class MainTab; @@ -76,8 +77,7 @@ private: Ui::MainTab *ui; WeightModel *weightModel; CylindersModel *cylindersModel; - NotesBackup notesBackup; - struct dive* currentDive; + QMap notesBackup; QPushButton *addCylinder; QPushButton *addWeight; enum { NONE, DIVE, TRIP } editMode; -- cgit v1.2.3-70-g09d2