diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-07-03 14:45:01 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-03 14:45:01 -0700 |
commit | 611bae344111845bfa8bd676c0fad49d1c051c10 (patch) | |
tree | 6500f730170eb455fcceeacdc900316a44682f24 /qt-ui/mainwindow.h | |
parent | d8c31135848d765a3d241d295e5d6afc311f7820 (diff) | |
download | subsurface-611bae344111845bfa8bd676c0fad49d1c051c10.tar.gz |
UI restructure: use displayed_dive for add dive and plan dive
This gets rid of the stagingDive and stops the constant adding and
removing of dives from the divelist (that was an INSANE design,
seriously).
When adding or planning a dive all work is now done in the dedicated
displayed_dive.
Add dive mostly works - when the user clicks save the dive is added to the
dive list and selected.
Plan dive is mostly untested. It passed trivial "start planner, save"
testing so it's not entirely broken, but I'm sure there's more work to be
done there.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r-- | qt-ui/mainwindow.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h index 8bdb47e99..d0406ff15 100644 --- a/qt-ui/mainwindow.h +++ b/qt-ui/mainwindow.h @@ -156,7 +156,6 @@ slots: void recreateDiveList(); void showProfile(); void editCurrentDive(); - void removeFakeDiveForAddAndPlan(); void planCanceled(); void planCreated(); @@ -185,7 +184,6 @@ private: bool plannerStateClean(); void createFakeDiveForAddAndPlan(); - int fakeDiveId; QDialog *survey; }; |