diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-08-16 13:31:52 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-08-16 13:31:52 -0300 |
commit | 225b13a22da446860c1f1b5cceeb52ba366ae77d (patch) | |
tree | 9386b562fb9ce96b77b960e380a4660a7998239f /qt-ui/maintab.h | |
parent | cbbc7d99ea039b0b5bd676ec1802555d3707e0af (diff) | |
download | subsurface-225b13a22da446860c1f1b5cceeb52ba366ae77d.tar.gz |
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 <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/maintab.h')
-rw-r--r-- | qt-ui/maintab.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 <QTabWidget> #include <QDialog> +#include <QMap> #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<dive*, NotesBackup> notesBackup; QPushButton *addCylinder; QPushButton *addWeight; enum { NONE, DIVE, TRIP } editMode; |