summaryrefslogtreecommitdiffstats
path: root/core/divelist.h
diff options
context:
space:
mode:
authorGravatar Doug Junkins <junkins@foghead.com>2019-05-04 20:46:42 -0700
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2019-05-06 10:48:44 +0200
commit98b3a326bd952c616843694821a48e0c029db699 (patch)
tree45038f420e6a8490ed75ddfe92ae0faa7ed1d006 /core/divelist.h
parent704ff9f82e35699dcd5ba260cda798195b0860a5 (diff)
downloadsubsurface-98b3a326bd952c616843694821a48e0c029db699.tar.gz
Add "Import dive sites" menu to mainwindow
Adds "Import->Import dive sites" menu to mainwindow.cpp and adds the on_actionImportDiveSites_triggered() method to prompt for the filename to import from. The files are parsed and then any dive and trip data is cleared before opening a dialog box to select which sites are to be imported. Signed-off-by: Doug Junkins <junkins@foghead.com>
Diffstat (limited to 'core/divelist.h')
-rw-r--r--core/divelist.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/divelist.h b/core/divelist.h
index ae71040c4..86f40941f 100644
--- a/core/divelist.h
+++ b/core/divelist.h
@@ -69,6 +69,7 @@ void report_datafile_version(int version);
int get_dive_id_closest_to(timestamp_t when);
void clear_dive_file_data();
void clear_table(struct dive_table *table);
+void clear_trip_table(struct trip_table *table);
typedef enum {PO2VAL, SINGLE_EXP, SINGLE_SLOPE, DAILY_EXP, DAILY_SLOPE, NO_COLUMNS} cns_table_headers;