diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-09-18 23:33:39 -0500 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-09-19 22:54:00 -0500 |
commit | 46b125782ee0e8af84c929deaa1ed34f53e7bcd0 (patch) | |
tree | e9f4eba166841cb50965bb53a851a5bfddba6565 /dive.h | |
parent | 5a96389cd3039ac822482232b3102106bbe70a5a (diff) | |
download | subsurface-46b125782ee0e8af84c929deaa1ed34f53e7bcd0.tar.gz |
Hook up adding a dive
This gets things mostly right.
It creates a dive and uses the planner widget to create samples which are
copied into the dive. It fills in some reasonable defaults (DC model,
timestamp), but doesn't allow editing the timestamp (or the temperatures
and air pressure).
On accept the planner gets reset and the dive appears correctly in the
dive list.
Cancel still needs to be handled.
And I bet there are many subtle bugs lurking here and there. But it's a
start.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -622,6 +622,7 @@ extern unsigned int dc_airtemp(struct divecomputer *dc); extern struct dive *merge_dives(struct dive *a, struct dive *b, int offset, gboolean prefer_downloaded); extern struct dive *try_to_merge(struct dive *a, struct dive *b, gboolean prefer_downloaded); extern void renumber_dives(int nr); +extern void copy_samples(struct dive *s, struct dive *d); extern void add_gas_switch_event(struct dive *dive, struct divecomputer *dc, int time, int idx); extern void add_event(struct divecomputer *dc, int time, int type, int flags, int value, const char *name); |