mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Undo: implement autogrouping of trips in DiveAdd
If the autogroup flag is set, search for appropriate trips in DiveAdd() and add the dive to this trip. If no trip exists, add a new trip. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
ec7d85835f
commit
63b65a7e20
7 changed files with 58 additions and 10 deletions
|
|
@ -32,6 +32,7 @@ extern dive_trip_t *alloc_trip(void);
|
|||
extern dive_trip_t *create_trip_from_dive(struct dive *dive);
|
||||
extern dive_trip_t *create_and_hookup_trip_from_dive(struct dive *dive);
|
||||
extern dive_trip_t *get_dives_to_autogroup(int start, int *from, int *to, bool *allocated);
|
||||
extern dive_trip_t *get_trip_for_new_dive(struct dive *new_dive, bool *allocated);
|
||||
extern void autogroup_dives(void);
|
||||
extern struct dive *merge_two_dives(struct dive *a, struct dive *b);
|
||||
extern bool consecutive_selected();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue