summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2012-11-05Repair broken Add Dive menu itemGravatar Henrik Brautaset Aronsen
Lubomir's commit aec904b612cbee57f8bb5c3289a120b69c9ade24 broke the Add Dive menu item: The Edit Dive dialogue didn't show up after the initial dialogue. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-11-05Fix broken MacOSX buildGravatar Henrik Brautaset Aronsen
Dirk's commit 2de6f796354ad029e9e786027210fcf1b02868e2 had a typo. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-11-05Spanish translation fixes.Gravatar Pablo Garcia Castro
Signed-off-by: Pablo Garcia Castro <freixido@gmail.com Signed-Off-By: Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by: Jose Angel Tortosa Delfa <angeltordel@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-31Merge branch 'dc-device-selector'Gravatar Dirk Hohndel
Bring the device selector (when downloading from a dive computer) into master.
2012-10-31Show drive name after the drive letter on WindowsGravatar Dirk Hohndel
In the device selector when downloading from a divecomputer add the drive name that we have been looking for (so far that's only "UEMISSDA") to the drive letter - this should make it easier for people to figure out why there is a drive letter offered as an option. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-29windows.c: added device retrieval from subsurface_fill_device_list()Gravatar Lubomir I. Ivanov
subsurface_fill_device_list() now goes trough the list of registry entries in the SERIALCOMM key and adds all present values (such as COM1, COM2) to a GtkListStore. Once done the function compares all logic drive label to a static list of known DC labels, such a 'UEMISSDA', which is the only present one at the moment and adds any matching drive letters (e.g. C:\, H:\) to the list store as well. If no serial ports were added or no matching logical drives were found the function simply adds a default entry named "COM1". Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2012-10-29Fix merging of weight systemsGravatar Linus Torvalds
I just tried downloading some duplicate dives I had on my second dive computer, and it all "just worked" and subsurface merged them for me. Almost perfectly. I say "almost", because in merging them, it threw my old weightsystem data away, due to that not being merged. Also, it was a perfect merge only because the computers are so similar that they just line everything up - same water activation logic, same sample interval, same pretty much everything. So while I know the sample merging is not really the right thing to do (it was designed to get the "merge the exact same dive from the same computer" case right), it worked well enough for this particular case. I'll look at something better later. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-29Add depth scale to the dive profileGravatar Dirk Hohndel
This is intended to be unobtrusive, but add more information for people who aren't satisfied with the numeric value we put inside the plot to mark local peaks and troughs. See ticket #9 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-28Updates to the Dutch translationGravatar Reinout Hoornweg
Added missing translations. Reviewed and fixed strings marked fuzzy. Changed date-format to something resembling the usual Dutch notation. Changed names of months to lowercase. Changed translation of divemaster from diveinstructor to diveleader. Fixed some typos. Signed-off-by: Reinout Hoornweg <reinout@xs4all.nl> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-28Add support for visibility tracking and allow manual entry air tempGravatar Dirk Hohndel
Turns out we had a data field for visibility as a length unit - but never used it. I can never guess how much visibility we actually had on a dive - but I think most everyone can assign a rating between abysmal (zero stars, "I couldn't read my dive computer even right in front of my mask" - trust me, I had some of those dives) to amazing ("five stars, I could see farther than I though possible" - and I had one or two of those, too). So I changed this to an integer and am re-using the star infrastructure we have for the overall dive rating. When displaying this I was dismayed that we are running out of space in the "Dive Notes" notbook. So I moved this to the "Dive Info" notebook. This is not consistent and not logical. I think we need to revisit the notebooks and think about what we want to display where. While adding the infrastructure to manually enter the visibility I went ahead and added the ability to manually enter the air temperature as well (that was one of the things missing in the previous commit). Fixes #7 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-28Display air temperature in the info notebook pageGravatar Dirk Hohndel
So far we don't parse air temperature data via libdivecomputer. Nor are we set up to allow the user to manually enter it. We can parse it when downloading from a Uemis Zurich, though. This feature was suggested via trac.hohndel.org; this commit implements only part of what is requested there, so I simply reference the ticket here without closing it. References ticket #7 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-27Improve the dive computer device selectionGravatar Dirk Hohndel
We try to identify devices that are connected and their matching device names (and mount paths in the case of the Uemis Zurich). Those are presented as a drop down menu to choose from. The user can still override this by simply entering a different device / path name. On Windows this is not functional. How do I find out which drive letter corresponds to the USB device named "UEMISSDA"? Similarly we need code that finds serial ports that are present. For now we once again default to COM3 (so this isn't a step back, but of course it's far from what we want). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-27Correct handling of O2 values below 21%Gravatar Dirk Hohndel
We incorrectly "fixed" those to be 21%. Not useful when diving trimix. Fixes #4 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-27Updated French translation reviewed by Pierre-Yves ChibonGravatar Stéphane Raimbault
Signed-off-by: Stéphane Raimbault <stephane.raimbault@gmail.com>
2012-10-25Merge branch 'uemis-next'Gravatar Dirk Hohndel
No reason to keep this in a separate branch. If we decide to make a 2.1.1 release we'll simply cherry pick only the fixes.
2012-10-25Expand Uemis Zurich download supportGravatar Dirk Hohndel
With this commit we not only use the getDivelogs command but also the getDive command for each of the dives that was downloaded. Oddly, that makes quite a bit of redundant (and at times slightly contradictory) data available, but also many new things. We now get weight, suit and notes that were stored with a dive in the logbook on the divecomputer. There are a ton more data available that we don't use, yet. For example information about altitude, a decoindex, dive type and dive activity, other equipment information, etc. I still need to decide how much of this I want to make available in Subsurface (and how I want to present this - after all most of this is not available from other dive computers). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-25Allow debug output to go either to log file or to stderrGravatar Dirk Hohndel
This makes it easier to debug things in a debugger, but the infrastructure to send out debug builds where an end user can send in a useful logfile is still in place. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-25Missing white-space in Select Events titleGravatar Stéphane Raimbault
Signed-off-by: Stéphane Raimbault <stephane.raimbault@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-24Added confirmation dialog when deleting dives and tripsGravatar Lubomir I. Ivanov
divelist.c: Show a "Yes/No" confirmation dialog when performing delete/remove operations for dives and trips. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-24Removed the delete option by right clicking on "Dive Info"Gravatar Lubomir I. Ivanov
info.c - Removed the additional pop-up menu entry "Delete" - Removed the delete_dive_info() function, which created the yes/no dialog. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-24info.c: Make sure we only edit when there is dive selectionGravatar Lubomir I. Ivanov
1) info.c: always check for "amount_selected > 0" before calling edit_multi_dive_info(). 2) populate_popup_cb() should only add the "Edit" and "Delete" items if there are dives are selected 3) in info_menu_delete_cb() we clear the selection, therefore we need to set "amount_selected" to 0. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-23Updated Slovakian translationGravatar Ďoďo Ivanecký
Signed-Off-By: Jozef Ivanecký (dodo.sk@gmail.com) Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-22Bump version to 2.1v2.1Gravatar Dirk Hohndel
Getting ready for the release Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-22Update the README with better introduction to SubsurfaceGravatar Dirk Hohndel
This is similar to what we have on the website. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-22Add Uemis section to the user manualGravatar Dirk Hohndel
This gives some information on some of the oddities when downloading from a Uemis Zurich. Also run a spell checker against the user manual. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-22Add the Spanish translatorsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-22Updates to the Spanish translationGravatar Dirk Hohndel
This is the result of a joined effort of several people. Thanks to Pablo Garcia Castro <freixido@gmail.com> Matthias Kaehlcke <matthias@kaehlcke.net> Sergio Schvezov <sergiusens@ieee.org> Auni Somero <aunims@gmail.com> Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by: Sergio Schvezov <sergiusens@ieee.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-22Small re-wording in the Bulgarian translationGravatar Lubomir I. Ivanov
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-22Use the 'star_strings' buffer to set combo box entries for ratingGravatar Lubomir I. Ivanov
info.c: extended_dive_info_widget() was still using the precompiler macros instead of the 'star_strings' buffer, which may end up being modified if the unicode stars are not supported on a certain OS (UTF8_FONT_WITH_STARS). Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-22Norwegian translation update.Gravatar Henrik Brautaset Aronsen
With libdivecomputer events. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-22Update Slovak translationGravatar Jozef Ivanecký
Signed-Off-By: Jozef Ivanecký (dodo.sk@gmail.com) Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-22Added primary translator to fi_FI.poGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-22update de_CH translationGravatar Martin Gysel
use SAC everywhere, use 'O₂' instead of 'O2' since we have it in unicode add missing translations Signed-off-by: Martin Gysel <me@bearsh.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-22Updated Bulgarian TranslationGravatar Lubomir I. Ivanov
- Added libdivecomputer texts - More small typo fixes Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-22Improving Spanish translationGravatar Sergio Schvezov
The Spanish translation was previously automatically translated by Google Translate. This work is an intent on improving upong that translation and adding to the missing translations to the untranslated strings. The poedit tool was used to improve the translation, which reformated the es_ES.po somewhat. Signed-off-by: Sergio Schvezov <sergiusens@ieee.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-21Hopefully the last update to the po files before the releaseGravatar Dirk Hohndel
This one breaks with my preference to separate generated changes from content changes - I wanted to get the new comment next to the translator-credits text that I added to every .po file. This way the people who worked on these translations at least get shown in the About box. But a simple grep on the diff will show you that this is indeed the only set of changes that I made. git diff HEAD^ | grep ^+ | grep -v -e^+# -e^+++ -ePOT-Creation Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-21Map JDiveLog alarms to Subsurface eventsGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-21Merge branch 'master' of http://ambre.pingoured.fr/cgit/subsurfaceGravatar Dirk Hohndel
Get Pierre's latest French translation updates
2012-10-21Fix annoying whitespace damage that I just introducedGravatar Dirk Hohndel
Remember: don't push before doing a git log -p Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-21Small updates to the READMEGravatar Dirk Hohndel
Mention the specific libdivecomputer version needed (0.2). References to additional documentation. Remove distracting info from the flow of the text and add a Credits section at the end. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-21Add quick script to automate Mac dmg creationGravatar Dirk Hohndel
This basically automates what is documented in the README Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-21Update French translationGravatar Pierre-Yves Chibon
Harmonize the translations on the stats tab, let's be consistent on where we use abbreviations and which one we use. Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2012-10-21Fixed French translationGravatar Dirk Hohndel
One message had the wrong number of format strings. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-21Merge branch 'translation' of http://ambre.pingoured.fr/cgit/subsurface into ↵Gravatar Dirk Hohndel
translation
2012-10-21Updated Finnish translationGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-21Fix the way we handle translated event namesGravatar Dirk Hohndel
Here is what Linus reported: I think you have made a mistake in trying to translate some of libdivecomputer.c Translating some of those things based on locale is *wrong*, because they are saved in the XML file. That covers at least the warnings: they'll get translated when you import them, and then saved to the XML file as that translation, but now if you start subsurface in another locale, they will not get translated back. So translating XML file contents is fundamentally buggy. It just shouldn't be done. So all the "translations" for the event handling are buggy, and generate crap. Please don't do that. Leave them as English. And of course he is absolutely right. However, instead of not translating them at all, this commit fixes things a better way - we now mark the strings for translation but store the original English strings everywhere (in the in-memory data structure as well as in the XML file). Only when we actually display something on the screen (in a tooltip or in the filter dialog) do we actually translate the strings into the native language. This should address both Linus' issue and the desire to have localized event texts. Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-21Update french translationGravatar Pierre-Yves Chibon
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2012-10-21Bump version to 2.1-rc3Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-21Feeble attempt to deal with the last translation changeGravatar Dirk Hohndel
In all languages. Including the one I can't even read. It should be trivial, but the translators really should check. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-10-21Yet again, new .po files with no other changesGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>