summaryrefslogtreecommitdiffstats
path: root/divelist.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-02 21:48:30 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-02 21:50:43 -0700
commitf6e8903a528a65f0e0fd050c203c95d57afd2db9 (patch)
tree48752b81acfd112e62ecb1bd7618f0ad2cf76bf8 /divelist.h
parent22ff8df880461c6e66d45fa8eaba9c9c26edb1bd (diff)
downloadsubsurface-f6e8903a528a65f0e0fd050c203c95d57afd2db9.tar.gz
Add autogen menu command
This adds the ability to auto create trips from the menu. It's a toggle entry (and while at it, we made the zoom toggle a toggle entry as well). We can therfore switch back and forth between auto generated trips. There is one bug. Assume you have no trips. You manually create a trip from some dives out of a group of trips that autogen would turn into a trip. Now you turn on autogen and this trip gets expanded with all the dives that would normally be grouped together. If you turn off autogen again, all those dives are still part of the remaining (initially manually created) trip. Working around this issue seemed a lot more work than the likelihood of anyone running into it seemed worth. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.h')
-rw-r--r--divelist.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/divelist.h b/divelist.h
index c170941db..45c1a18f8 100644
--- a/divelist.h
+++ b/divelist.h
@@ -10,4 +10,5 @@ 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);
#endif