Bug 163132

Summary: Marble GPX file handling
Product: [Applications] marble Reporter: Petri Damstén <damu>
Component: generalAssignee: marble-bugs
Status: RESOLVED FIXED    
Severity: wishlist CC: acb, nienhueser, shentey, tgridel
Priority: NOR    
Version: unspecified   
Target Milestone: some future version   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Bug Depends on: 323673, 323676    
Bug Blocks:    

Description Petri Damstén 2008-06-03 15:09:31 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

- Open gpx file from command line (or from dolphin)
- Zoom to gpx file after opening it
- Option to show lines between dots
- Support opening multiple gpx files in open file dialog
Comment 1 Dennis Nienhüser 2010-04-23 22:17:45 UTC
SVN commit 1118077 by nienhueser:

Support opening multiple files at once.
CCBUG: 163132

 M  +1 -2      QtMainWindow.cpp  
 M  +2 -3      marble_part.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1118077
Comment 2 Thibaut Gridel 2010-10-26 20:18:18 UTC
Mostly done!

Only remaining todo wish is:
- Zoom to gpx file after opening it

Question: do we want it?
The fileview already centers on placemarks/geometries/documents when clicking on the item...
Comment 3 Dennis Nienhüser 2010-10-26 22:21:12 UTC
(In reply to comment #2)
> Mostly done!
> 
> Only remaining todo wish is:
> - Zoom to gpx file after opening it
> 
> Question: do we want it?
> The fileview already centers on placemarks/geometries/documents when clicking
> on the item...

I'd say yes: Given the sheer number of items in the placemark list and the fact that the average user won't see the fileview, the loading of a kml/gpx file currently seems to have no effect. Therefore it'd be a good way to give some feedback.

It should be limited to the situation where the user opens exactly one file though to avoid irritating behavior when opening multiple files or when calling the method from a lib / via dbus. This will be a bit tricky to implement though as the Qt/KDE application needs feedback from the file manager, I guess...
Comment 4 Thibaut Gridel 2011-09-22 21:16:33 UTC
Git commit 954406a835ab07d61cd09a8f895f3afeb09226ec by Thibaut Gridel.
Committed on 20/09/2011 at 22:11.
Pushed by tgridel into branch 'master'.

FileLoader: Recenter on file bbox when single user file

BUG: 163132

M  +10   -2    src/lib/FileLoader.cpp
M  +1    -0    src/lib/FileLoader.h
M  +10   -1    src/lib/FileManager.cpp
M  +3    -1    src/lib/FileManager.h
M  +6    -1    src/lib/MarbleModel.cpp
M  +2    -0    src/lib/MarbleModel.h
M  +5    -0    src/lib/MarbleWidget.cpp

http://commits.kde.org/marble/954406a835ab07d61cd09a8f895f3afeb09226ec