This is the official upstream of the Subsurface divelog program
Find a file
Dirk Hohndel 89a58e23e0 Correctly parse multiple tags in the divelog
The old parsing code overwrote the first comma with a '\0' and then
checked the index against the length of the buffer - which was changed by
replacing the ',' with the '\0'.

This means that since commit 78acf20848 ("Don't crash on loading tags
longer than 127 chars") Subsurface has potentially damaged / lost data in
dive files!

Added a test dive that shows the issue if opened by a Subsurface version
after the commit mentioned above but before this commit.

Reported-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-12-12 16:29:06 -08:00
.tx Fix translation filter for subsurface4 branch 2013-11-29 08:07:02 -08:00
dives Correctly parse multiple tags in the divelog 2013-12-12 16:29:06 -08:00
Documentation Fix broken image link 2013-12-12 13:10:48 -08:00
icons Add PNG versions of our SVG icons 2013-11-27 10:00:51 -08:00
marbledata Globe: improve the flag placement and size 2013-12-11 16:30:40 +01:00
packaging Don't install the actual icon files 2013-12-12 08:00:41 +01:00
po Fix a mistake naming for the da_dk alias localisation 2013-05-29 19:22:46 +09:00
qt-ui Fix incorrect handling of autogrouped trips 2013-12-12 15:03:25 -08:00
scripts Fix two issues with directory searches on Windows 2013-10-12 10:30:00 -07:00
translations Latest translation updates from Transifex 2013-12-12 04:21:12 +01:00
xslt Allow comma separated CSV files 2013-12-04 15:27:09 -08:00
.gitattributes Ignore some files when archiving. 2013-05-12 07:25:47 -07:00
.gitignore Dependencies are too aggressive for version.h 2013-10-15 19:54:15 -07:00
cochran.c Update cochran depth precision: it's in 3-inch increments 2012-06-19 12:13:50 -07:00
color.h color.h: Define the color BLACK1 2013-10-15 04:23:16 -07:00
deco.c Added a configuration option to have gf_low apply at max depth instead of at deepest ceiling. 2013-11-21 08:11:40 -08:00
deco.h Random white space cleanup 2013-10-15 04:37:31 -07:00
device.c Make fake profile average depth come out right 2013-11-12 16:51:42 +09:00
device.h Random white space cleanup 2013-10-15 04:37:31 -07:00
display.h Remove even more code and declarations 2013-10-07 13:43:17 -07:00
dive.c Editing air or water temperature should modify dive computer, not dive 2013-11-29 12:05:21 -08:00
dive.h Allow comma separated CSV files 2013-12-04 15:27:09 -08:00
divelist.c Fix incorrect handling of autogrouped trips 2013-12-12 15:03:25 -08:00
divelist.h Fix incorrect handling of autogrouped trips 2013-12-12 15:03:25 -08:00
equipment.c Next step towards working translations 2013-10-09 22:51:59 -07:00
file.c Don't use old pointer after realloc 2013-12-11 22:17:21 +01:00
file.h First steps towards removing glib dependencies 2013-10-06 10:41:44 -07:00
flag.h Move flag icon to include file 2013-02-01 17:25:41 +11:00
gettext.h Add comment for "below floor" event 2013-11-29 11:27:41 -08:00
gettextfromc.cpp Fix all leak-at-exit from singletons in Subsurface 2013-11-30 09:28:42 -08:00
gettextfromc.h Support translating UTF8 strings 2013-11-15 13:13:15 +09:00
gpl-2.0.txt Add a copy of the GPL v2 to the project 2011-09-26 11:18:28 -07:00
helpers.h Work around QMessageBox not showing its title on Mac 2013-11-21 04:23:10 -08:00
INSTALL List packages required for compile on Debian 2013-12-12 15:07:45 -08:00
libdivecomputer.c Add some sanity checks 2013-12-11 03:13:30 +01:00
libdivecomputer.h Don't parse 32bit hex values with strtol 2013-11-22 13:31:52 -08:00
linux.c fix device probing for UEMIS computer on linux 2013-10-25 23:56:27 +00:00
macos.c main.cpp: remove usage of subsurface_command_line_* 2013-10-08 06:26:03 -07:00
main.cpp Speed up XML loading 2013-11-02 12:51:32 -07:00
parse-xml.c Correctly parse multiple tags in the divelog 2013-12-12 16:29:06 -08:00
planner.c Match sizeof with pointer type 2013-12-11 03:13:30 +01:00
planner.h Add gas change event from profile context menu 2013-11-19 20:35:15 -08:00
pref.h Create a text entry for default cylinder in preferences 2013-11-23 22:01:11 -08:00
profile.c Remove some dead code 2013-12-11 03:13:30 +01:00
profile.h Disable calc_ndl_tts for print 2013-12-03 15:22:49 -08:00
qt-gui.cpp Fix the logic when to display the "language changed" warning 2013-12-12 06:44:09 +01:00
qt-gui.h Use the same code for command line and gui for file handling. 2013-09-09 05:59:03 -03:00
qthelper.cpp Correctly parse translated GPS coordinates 2013-12-06 20:37:47 -08:00
qthelper.h Remember Trip Selection. 2013-11-26 11:25:50 -08:00
README Update the README 2013-12-12 04:16:42 +01:00
ReleaseNotes.txt First attempt at ReleaseNotes.txt for Subsurface 4 2013-12-12 04:00:00 +01:00
satellite.svg Satellite icon diet 2013-01-22 22:25:03 -08:00
save-xml.c Really save airtemp and watertemp in the dive 2013-12-06 20:13:12 -08:00
sha1.c Fix sha1 build for Windows 2013-02-15 19:53:07 -08:00
sha1.h Get the SHA1 routines from git instead of openssl 2013-02-15 19:26:39 -08:00
statistics.c Close warning first might be garbage 2013-12-11 22:17:50 +01:00
statistics.h Adding trip based statistics 2013-11-23 22:07:18 -08:00
subsurface-configure.pri qmake: use real tabs for all .pri files 2013-12-03 13:03:46 -08:00
subsurface-gen-version.pri qmake: use real tabs for all .pri files 2013-12-03 13:03:46 -08:00
subsurface-icon.bmp Rename subsurface.svg to subsurface-icon.svg 2013-02-02 21:27:15 +01:00
subsurface-icon.h Move about icon to include file 2013-02-02 21:27:19 +01:00
subsurface-icon.svg Rename subsurface.svg to subsurface-icon.svg 2013-02-02 21:27:15 +01:00
subsurface-install.pri Don't install the actual icon files 2013-12-12 08:00:41 +01:00
subsurface.1 Fix subsurface manpage - missing description and parsing problem 2012-05-07 10:49:20 -07:00
subsurface.desktop The Subsurface icon has been renamed, the .desktop must be adjusted. 2013-02-14 09:57:13 -08:00
subsurface.pro Remove unused file 2013-12-12 04:17:09 +01:00
subsurface.qrc Fix TableWidget ( equipment ones ) on dark scheme. 2013-12-12 03:26:39 +01:00
subsurfacestartup.c Added a configuration option to have gf_low apply at max depth instead of at deepest ceiling. 2013-11-21 08:11:40 -08:00
subsurfacestartup.h Refactoring of the configuration handling. 2013-11-21 08:11:40 -08:00
time.c First steps towards removing glib dependencies 2013-10-06 10:41:44 -07:00
uemis-downloader.c uiemis-downloader.c: fix preceding limit check 2013-12-11 16:29:58 +01:00
uemis.c Remove some constants and use helpers instead 2013-11-27 08:30:12 -08:00
uemis.h Don't include headers under extern "C" unless we have to. 2013-10-05 13:59:59 -07:00
webservice.h Hoocked up the buttons and the parsing of the XML. 2013-06-06 11:31:55 -03:00
windows.c windows.c: use the USERNAME enviroment variable 2013-10-09 07:21:04 -07:00

This is the README file for Subsurface 4.0.

After the release of Subsurface 3.1 we merged the Qt branch into
master and started developing the Qt port of Subsurface in the master
branch. At this stage the Qt version has by and large reached
functional parity with version 3.1; two notable features are missing:
the filter by event type and the dive planner. The user experience and
look and feel on the other hand far surpass what was available in 3.1

As always in a massive rewrite like this, there are still a small
handful of known bugs and issues - please check ReleaseNotes.tzt and
our bug tracker at trac.hohndel.org.

The latest public version is Subsurface 4.0, released in December of 2013.

License: GPLv2

Subsurface can be found at http://subsurface.hohndel.org

You can get the sources to the latest development version from the git
repository:

git clone git://subsurface.hohndel.org/subsurface.git .

You can also browse the sources via gitweb at git.hohndel.org

If you want the latest release (instead of the bleeding edge
development version) you can either get this via

git checkout v4.0  (or whatever the last release is)

if you have already cloned the git repository as shown above or you
can get a tar ball from

http://subsurface.hohndel.org/downloads/Subsurface-4.0.tgz


Basic Usage:
============

Install and start from the desktop (or you can run it locally from the
build directory).

./subsurface

You can give a data file as command line argument, or Subsurface picks a
default file for you when started from the desktop or without an argument.

If you have a dive computer supported by libdivecomputer, you can just
select "Import from Divecomputer" from the "Import" menu, select which
dive computer you have (and where it is connected if you need to), and
hit "OK".

The latest list of supported dive computers can be found in the file
SupportedDivecomputers.txt

Much more detailed end user instructions can be found from inside
Subsurface by selecting Help (typically F1). When building from source
this is also available as Documentation/user-manual.html


Contributing:
=============

There is a mailing list for developers: subsurface@hohndel.org
Go to http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
to subscribe.

If you want to contribute code, please either send signed-off patches or
a pull request with signed-off commits.  If you don't sign off on them,
we will not accept them. This means adding a line that says
"Signed-off-by: Name <email>" at the end of each commit, indicating that
you wrote the code and have the right to pass it on as an open source
patch.

See: http://gerrit.googlecode.com/svn/documentation/2.0/user-signedoffby.html

Also, please write good git commit messages.  A good commit message
looks like this:

	Header line: explaining the commit in one line

	Body of commit message is a few lines of text, explaining things
	in more detail, possibly giving some background about the issue
	being fixed, etc etc.

	The body of the commit message can be several paragraphs, and
	please do proper word-wrap and keep columns shorter than about
	74 characters or so. That way "git log" will show things
	nicely even when it's indented.

	Reported-by: whoever-reported-it
	Signed-off-by: Your Name <youremail@yourhost.com>

where that header line really should be meaningful, and really should be
just one line.  That header line is what is shown by tools like gitk and
shortlog, and should summarize the change in one readable line of text,
independently of the longer explanation.


A bit of Subsurface history:
============================

In fall of 2011, when a forced lull in kernel development gave him an
opportunity to start on a new endeavor, Linus Torvalds decided to tackle
his frustration with the lack of decent divelog software on Linux.

Subsurface is the result of the work of him and a team of developers since
then. It now supports Linux, Windows and MacOS and allows data import from
a large number of dive computers and several existing divelog programs. It
provides advanced visualization of the key information provided by a
modern dive computer and allows the user to track a wide variety of data
about their diving.

In fall of 2012 Dirk Hohndel took over as maintainer of Subsurface