summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2014-12-31Fix typo in INSTALL fileGravatar Dirk Hohndel
Thanks Benjamin for catching this. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-31Treat duration as minutes if dive would be shortGravatar Miika Turkia
This will read duration from CSV in minutes if the dive would be less than 10 minutes when treating the duration as seconds. In practice, this means that free-divers cannot import dive duration properly from CSV, but this should be sensible for scuba divers. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-31Support importing quoted multi-line notes fieldGravatar Miika Turkia
This adds support for importing multi-line notes field on CSV import. Naturally the notes filed must be quoted with " in this case. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Make the moving mean depth line workGravatar Tomaz Canabrava
It's a bit jumpy, but works. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Add a new signal to send the current time/depth of the mouse posGravatar Tomaz Canabrava
As the explanation says. :) Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Add the instantMeanDepth on SceneGravatar Tomaz Canabrava
But nothing is hoocked yet. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Move stuff to protected on DepthLineGravatar Tomaz Canabrava
I wanna use some of it on the InstantMeanDepthLine Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Set data model for the MeanDepth lineGravatar Tomaz Canabrava
This way we can poke around data for the mean depth line. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Add skeleton for the instant mean depth lineGravatar Tomaz Canabrava
This class will hold the visible line of the mean depth for the time 'now' Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Add the runnimg_sum data to the data model to be displayed on the profileGravatar Tomaz Canabrava
Without this nothing would be displayed. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Add the gradient factor on the tableGravatar Tomaz Canabrava
It was impossible to guess what this column was just by looking at it. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Add text for the heart beat data on the tableGravatar Tomaz Canabrava
This was missing on the UI and it was really hard to guess what it was. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Clear DC information when closing log fileGravatar Miika Turkia
Fixes #799 Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Prevent holes in cylinder list when copying used onesGravatar Robert C. Helling
This ensures that the list of configured cylinders is consecutive. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Guess imperial cylinder sizes on CSV importGravatar Miika Turkia
This patch uses pre-defined working pressures on cylinders to roughly calculate the size in liters. Imperial selection is ignored here as we can use the prefix to detect if the value seems like imperial unit (and the type of cylinder varies based on location, not divers preference in unit). Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Record the cylinder idx on DLF gaschangeGravatar Anton Lundin
Use the new and fancy cylinder idx to record which cylinder we change to on the DLF import. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Remove unused variableGravatar Anton Lundin
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Connect the UserSurvey to its qt-parrentGravatar Anton Lundin
This makes sure the UserSurvey object is removed correctly by the qt object tracking system. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Correct capitalisationGravatar Anton Lundin
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Remove NO_USERSURVEYGravatar Anton Lundin
Back in 71dbcdc0d625 ("Added the option of opening User Survey form explicitly") a define for not adding the user-survey was created. This is quite unnecessary and this removes that option. Based-on-patch-by: Nikhil Bharadwaj Gosala <nikhil.gosala@gmail.com> Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Cleanup OSTC settings debug codeGravatar Anton Lundin
The old OSTC settings debug code was a bit ugly. This cleans that up and contains all the ugly-ness behind the DEBUG_OSTC ifdef. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Allow unit selection on known CSV importGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-30Update INSTALL file to be more specific about libdivecomputer branchesGravatar Dirk Hohndel
Current master doesn't build with the Subsurface-4.3 branch of libdivecomputer. You do need the Subsurface-testing branch. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Add Facebook logo to preferences as wellGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29User survey: these options aren't mutually exclusiveGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Remove duplicate tool-tip settingGravatar Anton Lundin
We set the real tool-tips with setBtnToolTip from maintab.cpp, so this is just duplicate and miss-leading. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Remove debug codeGravatar Anton Lundin
This debug code was accidentally added in b2f4896f ("Whitespace cleanup") Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Remove unused variableGravatar Anton Lundin
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Clear stale pointers after freeGravatar Anton Lundin
This is so that we can re-use the same device_data_t in other calls that doesn't allocate a context for example. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Only check for update after successfull downloadGravatar Anton Lundin
We check that the logbook download didn't error out before checking if we should remind the user to upgrade the firmware. Otherwise we will check if whatever the current firmware version is, is greater than zero and always remind the user to upgrade the fw. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Add reminder for OSTC Sport to re-enable bluetoothGravatar Anton Lundin
The OSTC Sport exits bluetooth mode after the loogbook download. To update the firmware in the OSTC Sport, we need it enabled again, so we gently remind the user about doing that before continuing. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Initialize members in the declared orderGravatar Anton Lundin
This closes a compiler warning. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Parse more DLF event typesGravatar Anton Lundin
These event types and names where found by sending different data to the wetnotes.com web page. I couldn't find where the setpoint settings where stored for the SP-events, but when looking at the web page, it was clearly stating that it saw a setpoint of 0.0 bar somewhere in there. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Document a DLF-event type more.Gravatar Anton Lundin
This event type is found in the DLF file Robert got sent. The wetnotes application can't display files containing this event type. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Use GASCHANGE2 constant for DLF GASCHANGEGravatar Anton Lundin
And this encodes helium part to in the gaschange. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Restructure DLF sample parsingGravatar Anton Lundin
There are more event types than 1, so parse that as a unsigned char and not as a bool. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Facebook integration: Album name is requiredGravatar Dirk Hohndel
The upload would fail with an empty album, so disable the OK button onless an album name is set. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Facebook integration: improve dialog layoutGravatar Dirk Hohndel
I'm not very good with these layouts, but this seems much more informative and easier to use. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Facebook integration: improve the confirmation UI experienceGravatar Dirk Hohndel
Date and time needs to be a string, not a time_t. Duration should be called that (and not time) and wasn't hooked up. Also added a helper to get the duration string. Finally reordered the components of the text that is shown to make it more natural (or I should say, more in line with the order we use elsewhere). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Highlight that this CSV export is about dive profile.Gravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Description of CSV detail exportGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Verify the file header magic before importing DLFGravatar Anton Lundin
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Remove uneeded Facebook album settingGravatar Tomaz Canabrava
This now is chosen directly from the popup box that appears when you try to send a picture to facebook. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Facebook integration: Add an interface to select the stuff that's sentGravatar Tomaz Canabrava
Generate the stub message that will go on the Facebook picture upload. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Facebook integration: Add the SocialnetworkDialog.uiGravatar Tomaz Canabrava
This dialog is used to choose what goes into the message of the profile. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Facebook integration: Always ask for a folder before sending the photoGravatar Tomaz Canabrava
This way we are sure that the upload was made in the correct folder. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Move the Facebook send profile buttonGravatar Tomaz Canabrava
Move from the Dive List context menu to the Dive Info tab, it will only appear when connected to Facebook. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-29Another whitespace updateGravatar Dirk Hohndel
grmbl. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-28Move Constructor next to rest of the classGravatar Anton Lundin
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-28Lift code out to write_ostc_settingsGravatar Anton Lundin
This lifts the writing of settings out of the run() method and introduces better error handling when libdivecomputer returns a error. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>