mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Import: Move the Import of .FIT Files to 'Import log files'
Move the import of .FIT files into the 'Import log files' menu item, where most people will be looking for it. This also naturally opens a file selection dialog, which is more intuitive than having to select this in the dive computer import dialog. Also fix a bug affecting file imports if the log files contain coordinates - the dive log needs to be set in the import data structure. And refactor the file dialog file filters to make it more natural to add more entries. Requires https://github.com/subsurface/libdc/pull/72 to work. Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
parent
feb70907e5
commit
5889c1a3f8
12 changed files with 77 additions and 72 deletions
|
|
@ -13,8 +13,9 @@
|
|||
struct divelog;
|
||||
struct zip;
|
||||
|
||||
extern int ostctools_import(const std::unique_ptr<std::vector<unsigned char>> &buffer, struct divelog *log);
|
||||
extern int divesoft_import(const std::unique_ptr<std::vector<unsigned char>> &buffer, struct divelog *log);
|
||||
extern int ostctools_import(std::string &buffer, struct divelog *log);
|
||||
extern int divesoft_import(const std::string &buffer, struct divelog *log);
|
||||
extern int fit_file_import(const std::string &buffer, struct divelog *log);
|
||||
|
||||
extern int parse_file(const char *filename, struct divelog *log);
|
||||
extern int try_to_open_zip(const char *filename, struct divelog *log);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue