mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Allow images to be added via the web
This adds a new divelist context menu entry which asks for a URL. The file is retrieved and if it is an image it is added to the cache and the url is associated to dives as with local files. NB this currently only works with URLs pointing directly to images. But it should not be too hard to add the possibility to add a direction via an html file and its image tags. To test: open dives/test43.xml and delete the image and then add the URL http://euve10195.vserver.de/~robert/wreck.jpg Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
98ae7b1f86
commit
757c4aab20
9 changed files with 219 additions and 26 deletions
2
dive.h
2
dive.h
|
|
@ -383,7 +383,7 @@ struct picture {
|
|||
for (struct picture *picture = (_divestruct).picture_list; picture; picture = picture->next)
|
||||
|
||||
extern struct picture *alloc_picture();
|
||||
extern bool dive_check_picture_time(struct dive *d, char *filename, int shift_time, timestamp_t timestamp);
|
||||
extern bool dive_check_picture_time(struct dive *d, int shift_time, timestamp_t timestamp);
|
||||
extern void dive_create_picture(struct dive *d, char *filename, int shift_time);
|
||||
extern void dive_add_picture(struct dive *d, struct picture *newpic);
|
||||
extern void dive_remove_picture(char *filename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue