Next step to using gasmix instead of o2/he

This changes the divedatapoints and functions that deal with them.

It changes plan_add_segment(), create_dp(), gasToStr(), and tankInUse() to
consume gasmix instead of o2/he.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-06-01 15:25:19 -07:00
parent 2bf46381a8
commit fe773241ee
5 changed files with 58 additions and 61 deletions

View file

@ -46,7 +46,7 @@ public:
bool recalcQ();
void tanksUpdated();
void rememberTanks();
bool tankInUse(int o2, int he);
bool tankInUse(struct gasmix gasmix);
void copyCylinders(struct dive *d);
void setupCylinders();
/**
@ -137,7 +137,7 @@ private:
Ui::DivePlanner ui;
};
QString gasToStr(const int o2Permille, const int hePermille);
QString gasToStr(gasmix gas);
QString dpGasToStr(const divedatapoint &p);
#endif // DIVEPLANNER_H