mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
d8c3113584
commit
611bae3441
6 changed files with 113 additions and 137 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue