Add suport to import Scubapro's LogTrak files

Import can be done from .script files generated by LogTrak software or
from .asd files generated by SmartTrak and LogTrak export option.

This code was writen in C, and has just been "ported" to some extent to
C++, so it can work with recent rework of Subsurface to C++.

I'm not a C++ guy, so this is mostly C with some make-up.

Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
This commit is contained in:
Salvador Cuñat 2024-12-22 18:49:43 +01:00
parent 939154705b
commit 62924e6ef4
6 changed files with 1355 additions and 1 deletions

View file

@ -898,6 +898,8 @@ QString MainWindow::filter_open()
" *.apd"
" *.dive"
" *.zxu *.zxl"
" *.script"
" *.asd"
");;";
f += tr("Subsurface files") + " (*.ssrf *.xml);;";
@ -914,7 +916,9 @@ QString MainWindow::filter_open()
f += tr("MkVI files") + " (*.txt);;";
f += tr("APD log viewer") + " (*.apd);;";
f += tr("OSTCtools") + " (*.dive);;";
f += tr("DAN DL7") + " (*.zxu *.zxl)";
f += tr("DAN DL7") + " (*.zxu *.zxl);;";
f += tr("LogTrak/JTrak") + " (*.script);;";
f += tr("Scubapro ASD") + " (*.asd)";
return f;
}
@ -940,6 +944,8 @@ QString MainWindow::filter_import()
" *.apd"
" *.dive"
" *.zxu *.zxl"
" *.script"
" *.asd"
");;";
f += tr("Subsurface files") + " (*.ssrf *.xml);;";
@ -958,6 +964,8 @@ QString MainWindow::filter_import()
f += tr("APD log viewer") + " (*.apd);;";
f += tr("OSTCtools") + " (*.dive);;";
f += tr("DAN DL7") + " (*.zxu *.zxl);;";
f += tr("LogTrak/JTrak") + " (*.script);;";
f += tr("Scubapro ASD") + " (*.asd);;";
f += tr("All files") + " (*.*)";
return f;