mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
1ea445102e
Previously we would simply show the first dive in the divelist - which worked fine in the default sort by trip setting and assuming that there are no dives from the future in the divelist. With this commit we actually find the correct dive in the divelist and select it instead. If you sort by depth you will see the dive move around in the divelist, but it will stay selected and visible in the profile. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
20 lines
665 B
C
20 lines
665 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 show_and_select_dive(struct dive *dive);
|
|
extern double init_decompression(struct dive * dive);
|
|
#endif
|