summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-07-09 21:07:45 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-09 13:18:58 -0700
commitb1d7ba9f6346bdd9c54866712e67de03ddd3687f (patch)
tree93cb817ad71f17a0272efc0b28ab0dad0293005a
parent76a8e83a541febe9b94ec84d3fd8320c86999265 (diff)
downloadsubsurface-b1d7ba9f6346bdd9c54866712e67de03ddd3687f.tar.gz
Initial stab at Seabear CSV imports
This adds a preconfigured import setting for Seabear CSV files. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/divelogimportdialog.cpp2
-rw-r--r--qt-ui/divelogimportdialog.h2
2 files changed, 3 insertions, 1 deletions
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];
};