GSoC/GCI Archive
Google Code-in 2012 KDE

Marble: Render a copyright/license notice into the copied map

completed by: Illya Kovalevskyy

mentors: Torsten Rahn, René Küttner, Dennis Nienhüser

When pressing

Edit->Copy

inside Marble, a dialog should appear that tells the user:

 

This map has the following credits info: "(c) Open Street Map - Creative Commons by Shared Attribution 3.0". This requires proper crediting:

(o)  Let Marble put a proper notice onto the map

( )  I will attribute the map myself.

 

Create this dialog and invoke it inside QtMainWindow.cpp and KdeMainWindow.cpp in

void MainWindow::copyMap()

If the user picked the first choice then you need to create a QPainter and draw the short license/copyright info text onto the QPixmap. This should be done with white text (optional: black outline). For this task the license and shortLicense tags need to be implemented inside the DGML parser.