Enable adding cylinders in the dive planner

This is in preparation of using those to define the gases available for
planning.

Right now this doesn't seem to work quite right - I don't get the
auto-completions for the cylinders that I was hoping for...

This commit also corrects the tooltip for addint dive data points.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-11-10 21:02:53 +09:00
parent aa4931e8c6
commit 55c127f7c3
2 changed files with 20 additions and 3 deletions

View file

@ -43,6 +43,7 @@ public:
struct diveplan getDiveplan();
public slots:
int addStop(int meters = 0, int minutes = 0, int o2 = 0, int he = 0, int ccpoint = 0 );
void addCylinder_clicked();
void setGFHigh(short gfhigh);
void setGFLow(short ghflow);
void setSurfacePressure(int pressure);
@ -69,6 +70,7 @@ private:
struct dive *tempDive;
void deleteTemporaryPlan(struct divedatapoint *dp);
QVector<sample> backupSamples; // For editing added dives.
struct dive *stagingDive;
};
class Button : public QObject, public QGraphicsRectItem {