This is the official upstream of the Subsurface divelog program
Find a file
Linus Torvalds 90dddeb4cc Rename old 'xml' file as 'bak' file when saving
If you use the standard naming convention and end your subsurface
filename in ".xml", we will now save away any previous xml file as a
"bak" file before writing a new one.

This can be useful for:

- recovering from mistakes that deleted old dives

- seeing what changed (ie you can do things like "diff -u xyz.bak
  xyz.xml") after doing some operation and saving the result.

However, this does only a single level of backups - if you save twice,
you will obviously have lost the original. I'd strongly encourage some
external backup system in addition to this very simplistic backup.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-02-16 15:58:02 -08:00
.tx Add simple glossary 2013-12-29 10:34:12 -08:00
appdata Make the appdata file validate 2014-01-24 07:36:25 -08:00
dives Include images in profile 2014-02-06 11:29:23 -08:00
Documentation Updated user manual html file 2014-02-13 22:41:36 -08:00
icons Fix the 'Empty' profile state that was broken for ages. 2014-02-08 07:18:40 -08:00
marbledata Globe: improve the flag placement and size 2013-12-11 16:30:40 +01:00
packaging Enable https for Windows binaries 2013-12-28 21:04:07 -08:00
po Fix a mistake naming for the da_dk alias localisation 2013-05-29 19:22:46 +09:00
qt-ui New profile: some more slight rearrangements 2014-02-16 14:16:39 -08:00
scripts Fine tuning of the whitespace / coding style post processing 2014-02-13 22:10:21 -08:00
translations Update translations 2014-01-09 16:09:43 +08:00
xslt Add unit support for CSV import 2014-02-15 06:33:33 -08:00
.clang-format Add a simplistic tool to clean up whitespace 2014-02-12 22:33:01 -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
CodingStyle Add info to the CodingStyle for C++ constructors 2014-01-22 08:28:43 -08:00
color.h Put include guard to every header 2014-02-11 12:37:01 -08:00
deco.c Stop doing the (very expensive) pow() calculation pointlessly 2014-01-19 13:36:55 -08:00
deco.h Put include guard to every header 2014-02-11 12:37:01 -08:00
descriptor3.tsv Add structured file with list of supported dive computers 2013-12-13 16:26:01 -08:00
device.c Whitespace and coding style updates 2014-01-16 11:50:56 +07:00
device.h Put include guard to every header 2014-02-11 12:37:01 -08:00
display.h Put include guard to every header 2014-02-11 12:37:01 -08:00
dive.c Fix missed "+0.5" rounding - use rint() instead 2014-02-16 13:19:16 -08:00
dive.h Rename old 'xml' file as 'bak' file when saving 2014-02-16 15:58:02 -08:00
divelist.c Use "rint()" instead of rounding manually with "+ 0.5" 2014-02-12 17:41:49 -08:00
divelist.h Put include guard to every header 2014-02-11 12:37:01 -08:00
equipment.c Convert the C code to using stdbool and true/false 2014-01-16 09:34:50 +07:00
file.c Add unit support for CSV import 2014-02-15 06:33:33 -08:00
file.h Put include guard to every header 2014-02-11 12:37:01 -08:00
flag.h Put include guard to every header 2014-02-11 12:37:01 -08: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 Put include guard to every header 2014-02-11 12:37:01 -08:00
INSTALL Minor tweaks to INSTALL file 2013-12-15 08:15:45 -08:00
libdivecomputer.c Use "rint()" instead of rounding manually with "+ 0.5" 2014-02-12 17:41:49 -08:00
libdivecomputer.h Put include guard to every header 2014-02-11 12:37:01 -08:00
linux.c Rename old 'xml' file as 'bak' file when saving 2014-02-16 15:58:02 -08:00
macos.c Rename old 'xml' file as 'bak' file when saving 2014-02-16 15:58:02 -08:00
main.cpp Replace mainWindow() with MainWindow::instance() 2014-02-12 11:42:59 -08:00
membuffer.c Clean up membuffer internal structure names, add strip function 2014-02-10 07:03:25 -08:00
membuffer.h Clean up membuffer internal structure names, add strip function 2014-02-10 07:03:25 -08:00
parse-xml.c Remove some unused variables 2014-02-15 17:45:22 -08:00
planner.c Convert the C code to using stdbool and true/false 2014-01-16 09:34:50 +07:00
planner.h Remove external declaration of non-existant global variable 2014-02-12 05:35:30 -08:00
pref.h Put include guard to every header 2014-02-11 12:37:01 -08:00
profile.c Use "rint()" instead of rounding manually with "+ 0.5" 2014-02-12 17:41:49 -08:00
profile.h Put include guard to every header 2014-02-11 12:37:01 -08:00
qt-gui.cpp Add recent files to main menu. 2014-02-13 22:05:05 -08:00
qt-gui.h Put include guard to every header 2014-02-11 12:37:01 -08:00
qthelper.cpp Replace mainWindow() with MainWindow::instance() 2014-02-12 11:42:59 -08:00
qthelper.h Improve GPS string handling 2013-12-23 14:59:38 -08:00
README Prepare for Subsurface 4.0.2 release 2014-01-09 09:43:31 +08:00
ReleaseNotes.txt Prepare for Subsurface 4.0.2 release 2014-01-09 09:43:31 +08:00
satellite.svg Satellite icon diet 2013-01-22 22:25:03 -08:00
save-xml.c Rename old 'xml' file as 'bak' file when saving 2014-02-16 15:58:02 -08:00
sha1.c Fix sha1 build for Windows 2013-02-15 19:53:07 -08:00
sha1.h Put include guard to every header 2014-02-11 12:37:01 -08:00
statistics.c Convert the C code to using stdbool and true/false 2014-01-16 09:34:50 +07:00
statistics.h Put include guard to every header 2014-02-11 12:37:01 -08:00
strtod.c micro-optimisation: avoid division in main strtod() loop 2014-02-16 13:17:57 -08:00
subsurface-configure.pri Search pkg-config before {xml2,xslt}-config 2014-02-02 07:07:33 -08:00
subsurface-gen-version.pri Fix building in git shallow clones 2014-01-21 11:35:31 -08:00
subsurface-icon.bmp Rename subsurface.svg to subsurface-icon.svg 2013-02-02 21:27:15 +01:00
subsurface-icon.h Put include guard to every header 2014-02-11 12:37:01 -08:00
subsurface-icon.svg Rename subsurface.svg to subsurface-icon.svg 2013-02-02 21:27:15 +01:00
subsurface-install.pri Remove the hack to create most Makefile variables on Unix 2014-01-28 15:39:15 -08:00
subsurface.1 Tweaking man page to better reflect current status 2013-12-14 20:19:58 -08:00
subsurface.desktop The Subsurface icon has been renamed, the .desktop must be adjusted. 2013-02-14 09:57:13 -08:00
subsurface.pro Enable the dive planning under a compile flag 2014-02-10 08:08:20 -08:00
subsurface.qrc Fix the 'Empty' profile state that was broken for ages. 2014-02-08 07:18:40 -08:00
subsurfacestartup.c Convert the C code to using stdbool and true/false 2014-01-16 09:34:50 +07:00
subsurfacestartup.h Put include guard to every header 2014-02-11 12:37:01 -08:00
SupportedDivecomputers.html Make the SupportedDivecomputers.html match web site 2013-12-15 08:16:06 -08:00
SupportedDivecomputers.txt Convert structure list of supported dive computers to txt / html 2013-12-13 16:44:51 -08:00
terms Fixed typo 2013-12-29 10:55:48 -08:00
time.c First steps towards removing glib dependencies 2013-10-06 10:41:44 -07:00
uemis-downloader.c Use "rint()" instead of rounding manually with "+ 0.5" 2014-02-12 17:41:49 -08:00
uemis.c Use "rint()" instead of rounding manually with "+ 0.5" 2014-02-12 17:41:49 -08:00
uemis.h Put include guard to every header 2014-02-11 12:37:01 -08:00
webservice.h Put include guard to every header 2014-02-11 12:37:01 -08:00
windows.c Rename old 'xml' file as 'bak' file when saving 2014-02-16 15:58:02 -08:00
wreck.jpg Include images in profile 2014-02-06 11:29:23 -08:00

This is the README file for Subsurface 4.0.2

After the release of Subsurface 3.1 the Subsurface developer team
decided to make a major change in the development direction of the
project. We switched to Qt as our UI toolkit and slowly, step by step
replaced all the Gtk with corresponding Qt code.

This caused lots of changes, from adding C++ to the list of
programming languages used, to switching build systems to qmake, to
refactoring the tightly interwoven UI and logic code that we had up
until 3.1. The vast majority of this work was done by just a handful
of people with Tomaz Canabrava carrying the biggest part of the
load. As we had hoped, the switch to Qt brought us many new active
developers and the Qt community has been extremely helpful supporting
us when we ran into trouble.

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.txt and
our bug tracker at trac.hohndel.org.

The latest public version is Subsurface 4.0.2, released in January of 2014.

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.2  (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.2.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 (once you have
set this up in the Preferences) 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