mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
be9be189f7
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>
20 lines
648 B
C
20 lines
648 B
C
#ifndef DIVELIST_H
|
|
#define DIVELIST_H
|
|
|
|
struct dive;
|
|
|
|
extern void dive_list_update_dives(void);
|
|
extern void update_dive_list_col_visibility(void);
|
|
extern void update_dive_list_units(void);
|
|
extern void flush_divelist(struct dive *);
|
|
extern void update_cylinder_related_info(struct dive *);
|
|
extern void mark_divelist_changed(int);
|
|
extern int unsaved_changes(void);
|
|
extern void remove_autogen_trips(void);
|
|
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
|