From 5c1abde2a5217cc8217cb25c4a81515d0fda0253 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Mon, 27 Jan 2014 14:44:26 +0100 Subject: Include images in profile This adds an entry to the dive list context menu to load images. The user can select image files and set a time offset to align camera and dive computer clocks. Using the exif time stamp the images are tried to match to the times of the selected dives (with a grace period of an hour before and after the dive). Upon success an event of type 123 is created per image with the string value being the path to the image. Those images are displayed as thumbnails in the profile. If the matching dive does not yet have a geo location specified but the image provides one it is copied to the dive (making the camera a poor man's companion app). This patch includes easyexif https://code.google.com/p/easyexif/ which is originally under a New BSD License to parse the image meta data. This commit includes a new test dive dives/test31.xml with a matching image wreck.jpg to try out the functionallity. Obvious to do's: Have images on the map Have the images clickable Have a proper picture viewer Give visual reference for image time shifting. Use the new profile Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- subsurface.pro | 3 +++ 1 file changed, 3 insertions(+) (limited to 'subsurface.pro') diff --git a/subsurface.pro b/subsurface.pro index ea5dd3488..148b40047 100644 --- a/subsurface.pro +++ b/subsurface.pro @@ -54,6 +54,7 @@ HEADERS = \ qt-ui/starwidget.h \ qt-ui/subsurfacewebservices.h \ qt-ui/tableview.h \ + qt-ui/exif.h \ sha1.h \ statistics.h \ subsurface-icon.h \ @@ -114,6 +115,7 @@ SOURCES = \ qt-ui/starwidget.cpp \ qt-ui/subsurfacewebservices.cpp \ qt-ui/tableview.cpp \ + qt-ui/exif.cpp \ save-xml.c \ sha1.c \ statistics.c \ @@ -153,6 +155,7 @@ FORMS = \ qt-ui/printoptions.ui \ qt-ui/renumber.ui \ qt-ui/shifttimes.ui \ + qt-ui/shiftimagetimes.ui \ qt-ui/webservices.ui \ qt-ui/tableview.ui \ qt-ui/divelogimportdialog.ui \ -- cgit v1.2.3-70-g09d2