[Marble-devel] Review Request 110226: Download New Maps - GHNS dialog in Marble Qt

Bernhard Beschow bbeschow at cs.tu-berlin.de
Sun Apr 28 20:06:46 UTC 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/110226/#review31709
-----------------------------------------------------------


Very nice! I'm all for reusing this dialog in the KDE version (my home folder is .kde4, so some map themes weren't recognized).

The Install/Remove buttons in the delegate don't have any icons, is this intended?

- Bernhard Beschow


On April 27, 2013, 10:17 p.m., Dennis Nienhüser wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/110226/
> -----------------------------------------------------------
> 
> (Updated April 27, 2013, 10:17 p.m.)
> 
> 
> Review request for Marble.
> 
> 
> Description
> -------
> 
> Uses our existing NewstuffModel to replace the "Download Maps" action in the Marble Qt action (which opens a browser) with an in-app map theme installation dialog. The patch is based on Bernhard's work in https://github.com/shentok/marble/tree/MapThemeDownloadDialog. I'll commit as a git patch series retaining ownership.
> 
> The dialog resembles the KDE GHNS "Download Maps" dialog (see screenshot). Differences between the two are mainly
> - Qt version does not have the side bar to toggle list / detail mode, search, and sort by download count etc. The latter does not work anyway in the KDE version. Imho the sidebar in the KDE version is useless.
> - Qt version displays map themes installed locally that were later removed on the server, so these don't become orphane and can still be uninstalled
> - Detailed installation progress report next to each item in the Qt version. The KDE version only displays a global spinner anymore (see https://bugs.kde.org/show_bug.cgi?id=314210 )
> - Details directly next to the item in the Qt version, no additional details dialog
> 
> It would be possible to extend this dialog to incorporate map themes uploaded to opendesktop.org by Marble users. Another possibility would be to open just installed themes automatically in Marble.
> 
> Currently the dialog shares the GHNS registry file (which saves which map themes are installed etc) with the KDE version, so (un)installing in one or the other application is reflected correctly in the other. This is great, but has the drawback of a somewhat hard-coded call
> setRegistryFile( QDir::homePath() + "/.kde/share/apps/knewstuff3/marble.knsregistry", Marble::NewstuffModel::NameTag )
> which will likely fail on some Linux distribution or Windows/Mac. Any thoughts how to do that cleanly? Sharing the registry between the KDE and the Qt version is important imho. One possibility would be to replace the KDE GHNS dialog with this one as well and move the registry file to the local Marble dir (could be an automated migration even). This would require proper testing of course to avoid regressions in the KDE version.
> 
> 
> This addresses bug 315839.
>     http://bugs.kde.org/show_bug.cgi?id=315839
> 
> 
> Diffs
> -----
> 
>   src/QtMainWindow.h 225d68d 
>   src/QtMainWindow.cpp fa45d75 
>   src/icons/16x16/dialog-ok.png PRE-CREATION 
>   src/icons/16x16/edit-delete.png PRE-CREATION 
>   src/icons/16x16/system-software-update.png PRE-CREATION 
>   src/lib/CMakeLists.txt 534a7a9 
>   src/lib/MapThemeDownloadDialog.h PRE-CREATION 
>   src/lib/MapThemeDownloadDialog.cpp PRE-CREATION 
>   src/lib/MapThemeDownloadDialog.ui PRE-CREATION 
>   src/lib/NewstuffModel.h cc2e369 
>   src/lib/NewstuffModel.cpp e8d4b2f 
>   src/lib/libmarble.qrc 0aa5c6b 
> 
> Diff: http://git.reviewboard.kde.org/r/110226/diff/
> 
> 
> Testing
> -------
> 
> Linux only so far.
> 
> 
> File Attachments
> ----------------
> 
> Screenshot
>   http://git.reviewboard.kde.org/media/uploaded/files/2013/04/27/marble-qt-newstuff.png
> 
> 
> Thanks,
> 
> Dennis Nienhüser
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20130428/d6d30551/attachment-0001.html>


More information about the Marble-devel mailing list