diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-01-06 22:09:12 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-06 22:15:03 -0800 |
commit | be9be189f7350cfb92899680907735719566631e (patch) | |
tree | d7d5a8a33d14a0f6782b08328ede15b96c8c002e /divelist.h | |
parent | fb99c9a16383ffd00a7b71f85bdc5556e9c86cae (diff) | |
download | subsurface-be9be189f7350cfb92899680907735719566631e.tar.gz |
Display dive profile of the dive we plan, as we plan it
As the user enters data into the entry fields, that data is validated and
as soon as there is enough data we start constructing a dive profile,
including the final ascent to the surface, including required deco stops,
etc.
This commit still has some serious issues.
- when data is input that doesn't validate, we just print a warning to
stdout - instead we need to change the backgroundcolor of the input
field or something.
- when we switch to the last dive in order to show the profile we don't
actually search for the last dive - we just show the first one in the
tree. This works for the default sort order but is of course wrong
otherwise
I'm sure there are many other bugs, but I want to push it out where it is
right now for others to be able to take a look.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.h')
-rw-r--r-- | divelist.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/divelist.h b/divelist.h index 1690ec657..89762187b 100644 --- a/divelist.h +++ b/divelist.h @@ -15,5 +15,6 @@ extern void remember_tree_state(void); extern void restore_tree_state(void); extern void select_next_dive(void); extern void select_prev_dive(void); +extern void select_last_dive(void); extern double init_decompression(struct dive * dive); #endif |