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

Simon Schmeisser mail_to_wrt at gmx.de
Mon Aug 18 00:47:44 CEST 2008


On Monday 18 August 2008 00:12:41 Patrick Spendrin wrote:
> 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.
>
fixed, new patch is attached

> > cu Simon
>
> regards,
> Patrick
>
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Marble-devel mailing list
> > Marble-devel at kde.org
> > https://mail.kde.org/mailman/listinfo/marble-devel

I have also already commited the jakobsweg.kml sample file, thus reducing the 
patch quite a bit.

regards Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-GeoDataDebugModel_v2.diff
Type: text/x-diff
Size: 41943 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/marble-devel/attachments/20080818/4ac857c1/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/marble-devel/attachments/20080818/4ac857c1/attachment-0001.sig 


More information about the Marble-devel mailing list