Add buttons to save and load routes as *.kml file from within the Routing Widget.
Review Request #102539 - Created Sept. 6, 2011 and submitted
I often use Marble's routing ability to plan somewhat longer routes with a lot of manually-tweaked waypoints (e.g. for cycling). I would like to be able not only to export the final gpx/kml file of the route, but also to save and reload it's "source" (the waypoints). Basically, this functionality is already built in. The recently edited route is automatically saved to ~/.local/share/marble/routing/route.kml and restored on startup. But if I just quickly want to plan another route inbetween, all the previous work on the "big" route is gone. Since I don't like to manually backup and restore the route.kml every time, I created this small patch to add save and load buttons to the RoutingWidget.
It worked for me...
Hi, I just tried your patch and I see the need for this functionality. Situation is a bit similar as with the route color patch though (I hope you don't hate me for that): On one hand there is a minor buglet: * If there is no route calculated the save button should be grayed out. On the other hand we always want to keep UI clutter low. This feature is certainly useful for power users, so it should be available somehow (I tried it and it works great!). Currently I think it's not in the optimal place: It should appear right next to the Search button (also because translations of Search sometimes will become long and will possibly move the buttons out of scope). I wonder whether we could move those two buttons below the listview or even put them into a context menu that appears if the user clicks with the right mouse button onto the result listview. This would take into account that this feature is rather a feature for power users. Any suggestions? :-)
Review request changed
The Load and Save buttons are now located at the very bottom of the widget, below the ListView and the alternative routes ComboBox. I don't think making them available as RMB actions on the ListView would be very intuitive. The ListView displays the driving directions, while the main feature of the buttons is to save the route request. Also, you can not right-click on the ListView itself if it is full, only on of the items it contains. (As a new user, I would be confused if I could save a route by right-clicking on "Turn left into Whatever Street"...)
Revision 2 (+54 -1)