[Marble-devel] [Patch] Introspection/ Debug view for the GeoData

Patrick Spendrin ps_ml at gmx.de
Mon Aug 18 00:12:41 CEST 2008

Simon Schmeisser schrieb:
> Hi Guys,
> as already discussed briefly on the mailing list I have developed a small 
> feature that provides introspection for the GeoData. By GeoData I mean the 
> structure where the content of loaded KML files is stored (currently only 
> used by two plugins: geodata and placemarks).
> It works by creating a QAbstractTreeModel based model, that represents the 
> data structure of the main GeoDataDocument (or multiple GeoDataDocuments in 
> future maybe ). This Model is than displayed by a standard QTreeView.
> Necessary changes: - Every GeoDataObject based class needs to know about it's 
> parent node in the GeoData tree.
> 	- GeoDataObject derifed classes that have sup-structures need to 
> override "child( int pos )" and "childCount". This has been done for 
> GeoDataContainer.
> Future Improvements:
>  - Add a title ;)
>  - improve plugin system for things like this (doesn't render anything but 
> should maybe get an menu entry)
>  - implement GeoDataPlacemark::child and childCount to return the geometry it 
> contains.
> - display attributes like name, id, visibility, style as childs or table 
> columns
> - direct editing?
> Please review the attached diff and contact me to fix any outstanding issues. 
> I'll update the patch if necessary after the double -> qReal transition.

The Copy Ctors should not get another argument - the parent information 
has to be set from outside. This means as well that after a copy the 
parent informations are out of date and need to be resync'ed.
> cu Simon  
> ------------------------------------------------------------------------
> _______________________________________________
> Marble-devel mailing list
> Marble-devel at kde.org
> https://mail.kde.org/mailman/listinfo/marble-devel

web:                 http://windows.kde.org
mailing list:        kde-windows at kde.org
irc:                 #kde-windows (irc.freenode.net)

More information about the Marble-devel mailing list