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
|
@ -46,7 +46,6 @@ public:
|
|||
void tanksUpdated();
|
||||
void rememberTanks();
|
||||
bool tankInUse(struct gasmix gasmix);
|
||||
void copyCylinders(struct dive *d);
|
||||
void setupCylinders();
|
||||
/**
|
||||
* @return the row number.
|
||||
|
@ -100,11 +99,9 @@ private:
|
|||
Mode mode;
|
||||
bool recalc;
|
||||
QVector<divedatapoint> divepoints;
|
||||
struct dive *tempDive;
|
||||
struct dive backupDive;
|
||||
void deleteTemporaryPlan(struct divedatapoint *dp);
|
||||
QVector<sample> backupSamples; // For editing added dives.
|
||||
struct dive *stagingDive;
|
||||
QVector<QPair<int, int> > oldGases;
|
||||
bool drop_stone_mode;
|
||||
QDateTime startTime;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue