Display slowness warning before opening a V2 file

This is somewhat invasive as aborting the XML file read requires us to
report things up the recursive parsing chain.

What we really need to do here is to ask the user how they want to use the
data from reverse geo lookup. But for now we only warn about the fact that
this can take a while.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-02-25 10:05:37 +01:00
parent d15641a6fa
commit 0ed4356fc2
4 changed files with 68 additions and 25 deletions

2
dive.h
View file

@ -49,6 +49,8 @@ extern "C" {
#endif
extern int last_xml_version;
extern bool abort_read_of_old_file;
extern bool v2_question_shown;
enum dive_comp_type {OC, CCR, PSCR, FREEDIVE, NUM_DC_TYPE}; // Flags (Open-circuit and Closed-circuit-rebreather) for setting dive computer type
enum cylinderuse {OC_GAS, DILUENT, OXYGEN, NUM_GAS_USE}; // The different uses for cylinders