From b1d7ba9f6346bdd9c54866712e67de03ddd3687f Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 9 Jul 2014 21:07:45 +0200 Subject: Initial stab at Seabear CSV imports This adds a preconfigured import setting for Seabear CSV files. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- qt-ui/divelogimportdialog.cpp | 2 ++ qt-ui/divelogimportdialog.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp index fc5f6dfef..3eb17ef7e 100644 --- a/qt-ui/divelogimportdialog.cpp +++ b/qt-ui/divelogimportdialog.cpp @@ -6,10 +6,12 @@ #include "ui_divelogimportdialog.h" const DiveLogImportDialog::CSVAppConfig DiveLogImportDialog::CSVApps[CSVAPPS] = { + // time, depth, temperature, po2, cns, stopdepth { "", }, { "APD Log Viewer", 1, 2, 16, 7, 18, 19, "Tab" }, { "XP5", 1, 2, 10, -1, -1, -1, "Tab" }, { "SensusCSV", 10, 11, -1, -1, -1, -1, "," }, + { "Seabear CSV", 1, 2, 6, -1, -1, 5, ";" }, { NULL, } }; diff --git a/qt-ui/divelogimportdialog.h b/qt-ui/divelogimportdialog.h index a3dc0b26b..f9df691db 100644 --- a/qt-ui/divelogimportdialog.h +++ b/qt-ui/divelogimportdialog.h @@ -40,7 +40,7 @@ private: QString separator; }; -#define CSVAPPS 5 +#define CSVAPPS 6 static const CSVAppConfig CSVApps[CSVAPPS]; }; -- cgit v1.2.3-70-g09d2