summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2013-05-17Merge branch 'Qt'Gravatar Dirk Hohndel
After the 3.1 release it is time to shift the focus on the Qt effort - and the best way to do this is to merge the changes in the Qt branch into master. Linus was extremely nice and did a merge for me. I decided to do my own merge instead (which by accident actually based on a different version of the Qt branch) and then used his merge to double check what I was doing. I resolved a few things differently but overall what we did was very much the same (and I say this with pride since Linus is a professional git merger) Here's his merge commit message: This is a rough and tumble merge of the Qt branch into 'master', trying to sort out the conflicts as best as I could. There were two major kinds of conflicts: - the Makefile changes, in particular the split of the single Makefile into Rules.mk and Configure.mk, along with the obvious Qt build changes themselves. Those changes conflicted with some of the updates done in mainline wrt "release" targets and some helper macros ($(NAME) etc). Resolved by largely taking the Qt branch versions, and then editing in the most obvious parts of the Makefile updates from mainline. NOTE! The script/get_version shell script was made to just fail silently on not finding a git repository, which avoided having to take some particularly ugly Makefile changes. - Various random updates in mainline to support things like dive tags. The conflicts were mainly to the gtk GUI parts, which obviously looked different afterwards. I fixed things up to look like the newer code, but since the gtk files themselves are actually dead in the Qt branch, this is largely irrelevant. NOTE! This does *NOT* introduce the equivalent Qt functionality. The fields are there in the code now, but there's no Qt UI for the whole dive tag stuff etc. This seems to compile for me (although I have to force "QMAKE=qmake-qt4" on f19), and results in a Linux binary that seems to work, but it is otherwise largely untested. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-17Added the possibility to change the coordinates of a dive.Gravatar Tomaz Canabrava
Added the possibility to change the coordinates of a dive. it's too intrusive in the moment, but it was a proof of concept. so I'll commit as is and try to find a better way to warn the user what's going on in the future, using something less terrible than a popup exploding in his face. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-05-17Documentation: improve instructions for upload to divelogs.dev3.1Gravatar Dirk Hohndel
Suggested-by: Peter Konings <peter.l.e.konings@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-17Adds rotation while selecting a dive.Gravatar Tomaz Canabrava
This adds rotation, a very, very shinny feature. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-05-17removed whitespace.Gravatar Tomaz Canabrava
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-05-17Added real support for the marble widgetGravatar Tomaz Canabrava
The marble widget now shows the dive locations and also will center on the dive that the user clicked in the dive list. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-05-17Fix yet another selection issueGravatar Dirk Hohndel
If we manually deselect dives without changing Gtk's notion of what is selected and then want to simply recreate the dive list, Gtk re-selects the unselected dives in the process of clearing out the dive list. How very strange. Also, after making changes to the selection we need to make sure that we update the stats. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-17Fix "Select tags" dialog behaviorGravatar Sergey Starosek
* Apply filter only when OK button pressed * Restore tags selection from dive mask when Cancel button pressed * Fix selection logic when selected or all dives are filtered out (hide profile, tooltips, etc.) Not sure whether call to repaint_dive() is required. Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-17Do not add unnecessary / at end of location on divelogs importGravatar Miika Turkia
The check if both location and site exist was flawed causing an extra slash on location name when the SITE was empty. Thus resulting in multiple location candidates when exporting to divelogs.de and re-importing to Subsurface. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-17Adds preliminary support for Marble WidgetGravatar Tomaz Canabrava
Adds preliminary support for marble widget, alongside with the dive list. my idea is to let the view stay there at the left of the dive list since we got a lot of unused space and a globe is something nice to have - so you can look around where did you dived, the dives near the one that's currectly selected, and so on. I'm not using OpenStreetMaps right now, but a good thing about marble is that it is skinnable - so for instance, a dive school could present a dive lesson using subsurface with a globe from the 1600, to make it feel like 'history'. This version will only compile to Qt4. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-05-16Documentation: update divelogs.de export explanationGravatar Dirk Hohndel
Thanks to commit 347019272a57 ("Hide user password in Upload to divelogs.de dialog") we no longer show the password on screen. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-16Fix loading a dive via command line.Gravatar Tomaz Canabrava
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-05-16Don't deleteLater a null pointerGravatar Thiago Macieira
When the application launches, the oldModel is null. Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-16Get the name of moc,uic,rcc from the .pc files in Qt 4Gravatar Thiago Macieira
Just in case some crazy distributions also rename the binaries. Renaming the binaries is not supported in Qt 5 and should never be done. Besides, the binary names are missing from Qt 5.0. Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-16Search both qmake and qmake-qt4Gravatar Thiago Macieira
Some Linux distributions do not ship a "qmake" binary, despite recommendations from the Qt Project. We need to cope with that, so we search for qmake-qt4 if qmake fails. We use "qmake -query QT_VERSION" instead of qmake -v because that is known to produce an error for Qt 3's qmake. Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-16Fix loading a second dive, after the first file was loaded.Gravatar Tomaz Canabrava
This patch fixes loading a second dive-file after the first one had been loaded. it simply clears some information and makes sure that the current selected dive is invalid when the file closes. I also did a bit of code cleanup on this one to make things simpler in the future. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-16Fixed the loading of some mapsGravatar Tomaz Canabrava
On some maps, the lack of setting up the dc before plotting the dive-computer nick caused a division by zero, breaking the correct visualization of the dive. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-05-16Correctly set the unselected dive.Gravatar Tomaz Canabrava
The selected dive was being set to zero when the program started, but zero is actually the first dive. There were workarounds on the gtk code for that probably Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-05-16Initialize / reset selected_dive to -1Gravatar Dirk Hohndel
The value of 0 that we used is actually a valid value and could cause confusion. Suggested-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-16Hide user password in Upload to divelogs.de dialogGravatar Sergey Starosek
Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-16"Enter" button activates default OK response.Gravatar Sergey Starosek
Implemented for the following dialogs: Preferences, Select Tags, Select Events, Renumber, Upload to divelogs.de Not shure whether this is appropriare for Print and Planner dialogs. Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-15Documentation: more tweaks/additions to "Viewing and Completing Your Logs"Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-15Add missing widget title for manual dive entry / editGravatar Dirk Hohndel
Buffer was used uninitialized instead. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-15Avoid reading an uninitialized variable when adding new cylindersGravatar Dirk Hohndel
If mbar = 0 then *p would not be set, but the variable was then used in the calling function. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-15Documentation: describe trips in the dive listGravatar Dirk Hohndel
Both autogroup and manual creation of trips is explained. Once the user looks at manual creation, the other trip manipulation options should be fairly self-explanatory. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-15Documentation: multiple small corrections and improvementsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-16Adjust test dives to comply with the current trip syntaxGravatar Dirk Hohndel
Otherwise the tests fail - we no longer support the old format. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-15Documentation: add explanation on editing events in the dive profileGravatar Dirk Hohndel
Context menu to remove events or add bookmarks or gas change events. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-15Update Swiss-German and Dutch translationsGravatar Dirk Hohndel
Swiss German is now fully translated. The Dutch translation had one message string containing a few "\\n" symbols - those happen when translators explicitly enter "\n" in the Transifex web interface (instead of just hitting return). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-15Windows installer: append the package version to registryGravatar Lubomir I. Ivanov
On installation, set the "DisplayVersion" registry value to ${SUBSURFACE_VERSION}, so that a version is displayed when browsing the list of installed programs. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-15Disable OK button in download dialog when downloadingGravatar Henrik Brautaset Aronsen
The button was active while downloading, and that was confusing. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-15Addition / change to the user manualGravatar Thomas Maisl
- give an introduction to the dive list and explain some behaviour of dive list to new users - a small clarification regarding the used Buhlmann-algorithm Signed-off-by: Thomas Maisl <exp-122004@maisl.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-15Edit depth/duration dialog incorrectly always used metricGravatar Dirk Hohndel
The label changed, but when the value was pre-set, it was always set as metric (but then "correctly" interpreted as ft when reading it back - i.e. it was incorrectly devided by 3.3). Reported-by: Thomas Maisl <tom@maisl.net> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-15Update for Russian and Bulgarian translationsGravatar Dirk Hohndel
Translations of the "deco" tag. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-15Fix DM4 dive timeGravatar Miika Turkia
DM4 stores the divetime in local time. The conversion from seconds since year 1 was 2 hours off. (So there is no timezones involved, which is good for us!) Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-15Documentation: update reference to 6m stop in dive plannerGravatar Dirk Hohndel
Thanks to Miika we have an updated screenshot Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-15New dive planning screenshot with 6m stop in itGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-14Add translations for 'deco' tagGravatar Dirk Hohndel
These were done by me through the advanced linguistic process known as "pattern matching". I doubt that this is right in all the languages... For some reason two new Swiss-German translations snuck in as well. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-14Add tag for deco divesGravatar Dirk Hohndel
Fixes #85 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-14Suunto DM4 import should fill the divecomputer fieldsGravatar Dirk Hohndel
Writing to the dive fields for maxdepth, surface pressure, airtemp and watertemp is not correct. In the case of duration the longer time should go into the dive, the shorter time into the divecomputer. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-14When editing a manually entered dive, make sure divelist is updatedGravatar Dirk Hohndel
Editing a manually entered dive allows the user to edit duration, max depth and mean depth. These values are stored in the first (and only) divecomputer and the duration, maxdepth and meandepth fields of the dive are populated in fixup_dive() after the dive was initially parsed. In order for this to work we need to clear out the existing fields (so that values can get smaller) and rerun fixup_dive(). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-14Consistently end the list of map providers with Yahoo streetmapsGravatar Dirk Hohndel
The other map providers don't appear to work at all, regardless from where I connect to the network. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-14Update the German translationGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-14Documentation: update regarding dive computer device drop down listGravatar Dirk Hohndel
This reflects the change made in commit bf34940bc5e4 ("Conditionally enable the device combo box."). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-14Conditionally enable the device combo box.Gravatar Jef Driesen
The device combo box is only necessary for the Uemis Zurich, and dive computers using serial communication. For dive computers using IrDA or USB communication, this combo box causes only confusion for the users. Starting with libdivecomputer version 0.4, there is an api to query the transport type, which can be used to enable/disable the device combo box based on the selected model. Signed-off-by: Jef Driesen <jefdriesen@telenet.be> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-14Windows installer: add an "Add/Remove Programs" entryGravatar Lubomir I. Ivanov
The NSIS script on installation will write a key to the registry that will be shown to the user as a "Subsurface" entry (with icon) in the list of installed programs that can be uninstalled (e.g. in the Control Panel). On uninstall, said registry key will be removed. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-14Disable https connection for cross builds using mingw32Gravatar Dirk Hohndel
Not my preferred solution, but better than disabling divelogs.de uploads for people using the Windows binary. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-14Arrange tags in a table for dive edit dialogGravatar Dirk Hohndel
This makes things look nicer and also reduces vertical size of the edit dialog - which should now fit on a 600px display again. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-14Don't add half a kilo/pound when adding weightsGravatar Henrik Brautaset Aronsen
The weight management widget added 500 grams / 0.5 lbs when a new entry was added. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-14Fix the focus issues, load a profile when load a file.Gravatar Tomaz Canabrava
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>