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

Dennis Nienhüser earthwings at gentoo.org
Sun May 5 08:14:18 UTC 2013



> On May 2, 2013, 2:51 p.m., Bernhard Beschow wrote:
> > src/lib/MapThemeDownloadDialog.cpp, line 176
> > <http://git.reviewboard.kde.org/r/110226/diff/2/?file=141573#file141573line176>
> >
> >     The doc.size() calculation doesn't terminate in my case for the osmarender map theme. The reason is that the umlaut in your surname is completely messed up. This makes the ghns registry file grow to 4MB!
> >     
> >     Anyway, I think that all items in the list should have the same size and that all buttons should have fixed positions within a list element. This is currently not the case, as can be seen by jumping buttons when scrolling the list. So perhaps the size calculation could depend on the available space minus the size of the preview icon + buttons.

Please give the new patch a try for the button layout.

I tried to reproduce the encoding issue. The osmarender theme is gone from both maps.xml and maps-4.5.xml, so I restored the last version (revision 1309106) from SVN containing the theme to http://nienhueser.de/marble/maps.xml and http://nienhueser.de/marble/maps-4.5.xml and set them as provider in the dialog. I couldn't reproduce the issue however no matter which provider .xml file I used and whether I installed or removed the theme locally. It always displays fine here and is saved correctly to the registry file. There's no forced UTF8 conversion or similar in the code as well. So I'm a bit lost where exactly the problem is.


- Dennis


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


On May 5, 2013, 8:09 a.m., Dennis Nienhüser wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/110226/
> -----------------------------------------------------------
> 
> (Updated May 5, 2013, 8:09 a.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 c523866 
>   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 
>   src/marble_part.h 0a56bad 
>   src/marble_part.cpp 7302fc3 
> 
> 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/20130505/69b7c32a/attachment.html>


More information about the Marble-devel mailing list