summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2012-01-01More AsciiDoc updatesGravatar Dirk Hohndel
Add missing internal links Work on better visual representation of structured data Start creating quoted text (instead of styled text) Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-01-01Update asciidoc headers and deal with internal linksGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-01-01First try at converting user-manual to AsciiDocGravatar Linus Torvalds
You can do "make doc" in the main directory to create the html version, and if you want to play around with it, do "make show" in the Documentation subdirectory to start firefox on the end result. It's by no means perfect, but it gives somewhat reasonable results, and this is enough initial work for people to play around with, I think. NOTE! You need "asciidoc" installed to do this: it's a python program, so it should be pretty easy even on non-Linux platforms. And on Linux, most distributions package it, so you just have to do something like yum install asciidoc to get it (replace with apt-get/zypper/whatever). Asciidoc can generate other output too (man-pages, LaTeX, etc), maybe people want to play with that part too. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-01-01Merge branch 'mac' of git://git.hohndel.org/subsurfaceGravatar Linus Torvalds
* 'mac' of git://git.hohndel.org/subsurface: Turn subsurface into a real Mac application
2012-01-01Turn subsurface into a real Mac applicationGravatar Dirk Hohndel
To do this a few things needed to move into the os specific files, but the overall change is fairly small and the difference on the Mac is amazing. Subsurface now becomes a Mac app with Mac toolbar and useful default fonts. Changed the CFBundleIdentifier to be the reverse DNS of the subsurface site (sadly, 'torvalds' is not yet a TLD). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-31Define O2 permille for air in one spotGravatar Henrik Brautaset Aronsen
Having the O2 permille defined once is more readable. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
2011-12-31Display OTU for dives using airGravatar Henrik Brautaset Aronsen
Zero o2 means 20.9% o2, which can be confusing... Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
2011-12-30Move the gasmix cleanups from XML parsing to the generic dive fixup stageGravatar Linus Torvalds
Right now we do certain cylinder info operations only when importing from an XML file, which is wrong. In particular, we do the "is the gasmix air" or "what is the standard cylinder name" only at XML read time, which means that if you import a dive directly from the dive computer, it won't have the air sanitization or the proper default cylinder names. Of course, most dive computers don't actually save enough cylinder information for us to do the cylinder name lookup anyway, but some do. And all Nitrox-capable dive computers do have that O2 percentage that needs cleanup too. Reported-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-12-28Make icon file name OS helper functionGravatar Dirk Hohndel
This way we can load the correct icon on the Mac without ugly hacks in the OS independent code. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-27Merge branches 'windows', 'docs' and 'forlinus' of ↵Gravatar Linus Torvalds
git://git.hohndel.org/subsurface * 'windows' of git://git.hohndel.org/subsurface: Fixes for the Windows installer * 'docs' of git://git.hohndel.org/subsurface: Version 0.0.7 of user manual * 'forlinus' of git://git.hohndel.org/subsurface: Remove unused return value
2011-12-26Remove unused return valueGravatar Dirk Hohndel
We never use the number of decimals that this function returns. So we might as well not return them to begin with. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-26Version 0.0.7 of user manualGravatar Jacco van Koll
Added chapter 14: The menu and sub-menus Signed-off-by: Jacco van Koll <jko@haringstad.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-26Fixes for the Windows installerGravatar Dirk Hohndel
Add missing files and update a library version number. The library version thing seems to indicate that this is much more fragile than I'd want it to be... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-26There's a difference between "it's" and "its"Gravatar Henrik Brautaset Aronsen
Just sayin' Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
2011-12-24Fix incorrect utf-8 in Documentation/user-manual.txtGravatar Cristian Ionescu-Idbohrn
Not sure, but us-ascii might have been intended. Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com> [ And even if you do want to use utf8, you should use it correctly, not with this "pick random character" approach - Linus ] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-12-23Merge branch 'docs' of git://git.hohndel.org/subsurfaceGravatar Linus Torvalds
* 'docs' of git://git.hohndel.org/subsurface: Version 0.0.6 of user manual
2011-12-23Version 0.0.6 of user manualGravatar Jacco van Koll
Corrected some typo's Modified chapter 12. Importing dives from JDivelogAdded chapter 13. Importing dives from Suunto Divemanager 3.* Added Appendix B: very tiny example script for importing Suunto Divemanager 3.* xml files Signed-off-by: Jacco van Koll <jacco.van.koll@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-18parse-xml: read the file into memory separatelyGravatar Linus Torvalds
Using xmlParseFile() was simple, but I'm planning on extending the file parsing past just XML, since we want to be able to import other formats too. And quite frankly, that means that we'll want to read the file into memory to look at it before we start parsing it. We could decide do it by file extensions too, and I'll look at that approach as well, but regardless of how we do things it's almost certainly a good idea to do the file access in one place. The XML parsing might as well happen from a memory buffer instead anyway. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-12-18Use an ellipsis for Nitrox O2% rangesGravatar Linus Torvalds
The plain dash may look a bit too much like a trimix specification. Is the ellipsis better? Maybe. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-12-18Multiple cylinder support for JDiveLog importGravatar Miika Turkia
Support for multiple cylinders and gas change events when Importing JDiveLog logs to Subsurface. This is tested with manually crafted data and not real data (originating from dive computer). NOTE: Subsurface does not handle importing multiple cylinders correctly but imports only the first cylinder. However, manually converting data to a file and opening that in Subsurface works correctly. (xsltproc jdivelog2subsurface.xslt jdivelog-gas.jlb > gas.xml) Some minor tweaking on importing JDiveLog specific fields to notes fields in Subsurface is also included. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-12-16Add more details to import chapter of user-manualGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-16Version 0.0.5 of user manualGravatar Jacco van Koll
Added chapter 12. Importing dives from JDivelog Adding some divecomputers to Appendix A Signed-off-by: Jacco van Koll <jacco.van.koll@gmail.com>
2011-12-14Merge branch 'forlinus' of git://git.hohndel.org/subsurfaceGravatar Linus Torvalds
* 'forlinus' of git://git.hohndel.org/subsurface: Return is not a function
2011-12-14Return is not a functionGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-14Merge branch 'forlinus' of git://git.hohndel.org/subsurfaceGravatar Linus Torvalds
* 'forlinus' of git://git.hohndel.org/subsurface: Improve Makefile for MacOS Add reasonable default device names for divecomputer import More intuitive label for "not saving" when exiting
2011-12-14Improve Makefile for MacOSGravatar Dirk Hohndel
Some macs appear to need "-framework CoreFoundation" added to the linking step, others (which appear to have the exact same OS and tools installed), don't. But as it doesn't appeart to hurt, I unconditionally add this. Switched to using pkgconfig to find libdivecomputer on the Mac. Tried to clean up the Makefile a bit Signed-off-by: Dirk Hohndel <dirk@hohndel.org> Acked-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
2011-12-13Add reasonable default device names for divecomputer importGravatar Dirk Hohndel
So far we hard coded /dev/ttyUSB0 - which is a good starting point in Linux but not so useful on Windows or MacOS. This was now moved into one of our OS helper functions with (somewhat) reasonable defaults. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-13Clarify documentation about connecting dive computersGravatar Dirk Hohndel
This works rather differently on the different OSs Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-13Version 0.0.4 of user manualGravatar Jacco van Koll
Cleanup of the layout Changed line-length to 74 Added chapter 11. How to find the Device Name Added Appendix A: Supported divecomputers Signed-off-by: Jacco van Koll <jacco.van.koll@gmail.com>
2011-12-13More intuitive label for "not saving" when exitingGravatar Dirk Hohndel
Right now the options are "Save" and "Cancel". I wrote that code and it always bugged me - "Cancel" could mean that I want to cancel the the whole operation, i.e. that I don't want to quit after all. Showing "Save" and "No" seems much more logical. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-12Fixing whitespace, line wrappingGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-12Version 0.0.3 of user manualGravatar Jacco van Koll
Added missing chapters. Now includes adding information.
2011-12-12Version 0.0.2 of user manualGravatar Jacco van Koll
Signed-off-by: Jacco van Koll <jacco.van.koll@gmail.com>
2011-12-12Reformat, reorganize and slightly modify user manualGravatar Dirk Hohndel
Getting started on better user documentation. Awesome. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-12First draft of user documentationGravatar Jacco van Koll
Signed-off-by: Jacco van Koll <jacco.van.koll@gmail.com>
2011-12-12Merge branch 'forlinus' of git://git.hohndel.org/subsurfaceGravatar Linus Torvalds
* 'forlinus' of git://git.hohndel.org/subsurface: Small improvement to plot info debugging code Add three more trimix test dives Make test dive 15 a bit more useful Two test dives I added a couple of months ago Add libxslt to Windows packaging file
2011-12-12Small improvement to plot info debugging codeGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-12Add three more trimix test divesGravatar Dirk Hohndel
This allows us to check what we display in the dive list and how we sort it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-12Make test dive 15 a bit more usefulGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-12Two test dives I added a couple of months agoGravatar Dirk Hohndel
...and never commited Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-12Add libxslt to Windows packaging fileGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-12Pack the star rating on a line of its ownGravatar Linus Torvalds
Packing it next to the divemaster/buddy information may work great on a big screen with lots of pixes, but it makes the minimum window size way wide for a small screen. So don't do it. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-12-12divelist: show/sort nitrox dive oxygen percentage as a rangeGravatar Linus Torvalds
If you are diving multiple nitrox cylinders, we now show them as a range instead of just the max. We'll still sort by max O2 (and for the same max, by min O2). So now with trimix dives, we'll show the bottom gas (we assume that "highest He percentage" is that bottom gas), for nitrox dives we'll show the range of Oxygen percentage, and for all-air dives we'll show just "air". For simple nitrox dives (only a single mix), we'll obviously show just that single percentage. This should hopefully conclude the whole "show multiple cylinders in dive list" mess. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-12-11Make the dive gas record the single highest mixGravatar Linus Torvalds
.. using the regular sorting rules: sort by Helium content first, Oxygen content second. Air always sorts last (even behind the theoretical hypoxic Nitrox that nobody sane would use). This is what Don Kinney implies would be the natural thing for a trimix diver. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-12-11Add trimix test diveGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-11Add capability of custom sorts to divelist columnsGravatar Linus Torvalds
.. and use this for the nitrox column, which can now be more complex than just a single number. The rule for the "nitrox" column is now: - we look up the highest Oxygen and Helium mix for the dive (Note: we look them up independently, so if you have a EAN50 deco bottle, and a 20% Helium low-oxygen bottle for the deep portion, then we'll consider the dive to be a "50% Oxygen, 20% Helium" dive, even though you obviously never used that combination at the same time) - we sort by Helium first, Oxygen second. So a dive with a 10% Helium mix is considered to be "stronger" than a 50% Nitrox mix. - If Helium is non-zero, we show "O2/He", otherwise we show just "O2" (or "air"). So "21/20" means "21% oxygen, 20% Helium", while "40" means "Ean 40". - I got rid of the decimals. We save them, and you can see them in the dive equipment details, but for the dive list we just use rounded percentages. Let's see how many bugs I introduced. I don't actually have any trimix dives, but I edited a few for (very limited) testing. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-12-11Make sure to update divelist O2 information after editingGravatar Linus Torvalds
The divelist airmix display is kind of broken: it only looks at the first cylinder, and it only looks at Oxygen content, not Helium. But at least we can make sure to update it when somebody edits the cylinder information, instead of leaving it extra broken. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-12-11Add the "Common European Cylinders" as per HenrikGravatar Linus Torvalds
This is Henrik's list of common metric sized cylinders, although my experience differs from this one. In Cyprus, I was diving double 12L cylinders, but they were 200 bar, not the 232 bar ones Henrik has on the list. Also, I really think we should just have a checkbox for "double" instead of naming them explicitly like this. Henrik does have the 12L 200 bar ones in his singles list. But as a stop-gap, I'm just taking the values from Henrik's patch, but converted to the new cleaned-up reference tank model setup. Based-on-patch-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-12-11Clean up reference tank information tableGravatar Linus Torvalds
This makes the reference tanks ("struct tank_info") use a saner format which specifies explicitly whether the size is in ml or cubic feet, and whether the pressure is in psi or bar. So instead of having magic rules ("size is in cuft if < 1000, otherwise mliter"), just set the size explicitly: { "11.1 l", .ml = 11100 }, { "AL80", .cuft = 80, .psi = 3000 }, and then the code can just convert to standard measurements without any odd rules, and the initialization table becomes self-explanatory too. This is in preparation for doing the metric tanks with pressure: Henrik Aronsen sent a really ugly patch using the previous setup, I just couldn't stand the additional hackery. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-12-11Make the cylinder table columns unsortableGravatar Linus Torvalds
They were never intended to be sortable, but using common code with the dive list picked up that "sort by index" thing by mistake. If we really want to be able to sort cylinders by O2 percentage (which really doesn't seem to make much sense, considering that you usually have just one or two cylinders) we will need to also handle the case of editing the (differently sorted) cylinder table. Which we don't do now. Reported-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>