Marble/ModelView: Difference between revisions

From KDE Community Wiki
(Created page with '== ModelView framework in Marble == Marble uses Qt's Model/View framework as a way to signal updates to a model to interested parts. In that respect, a Model class can wrap any ...')
 
*>Mansona
(Filling in the status on the GpxFileModel)
Line 11: Line 11:
It is used by the {{class|DataViewPlugin|kdeedu}} debug plugin (and is broken atm)
It is used by the {{class|DataViewPlugin|kdeedu}} debug plugin (and is broken atm)


* {{class|GpxFileModel|kdeedu}}
* {{class|GpxFileModel|kdeedu|4.x}}
It represents a list of gpx data file represented as {{class|GpxFile|kdeedu}}
It represents a list of gpx data file represented as {{class|GpxFile|kdeedu|4.x}}


It is used by the {{class|GpxLayer|kdeedu}} to load files and access them (and it doesn't look like it needs the Model-specific methods)
This was originally intended to but used as the model for the File List View ( which is accessible by running marble with --enableFileView ) but has since been replaced by another, more centralised, File Model. This new File Model is located in {{class|PlacemarkManager|kdeedu|4.x}}.
The model that is in the GpsLayer is currently only being used as a collection class and is deprecated. This, along with the whole current GPX implementation, needs to be removed and updated to the current concepts in Marble. See [[Projects/Marble/GPXStatus|Gpx Status]]


* {{class|MarbleGeometryModel|kdeedu}}
* {{class|MarbleGeometryModel|kdeedu}}

Revision as of 09:20, 28 July 2009

ModelView framework in Marble

Marble uses Qt's Model/View framework as a way to signal updates to a model to interested parts. In that respect, a Model class can wrap any possible data.

Here is the list of Model class, and a description of how they are used.

QAbstractItemModel

It represents a data file, parsed into a GeoDataDocument tree structure.

It is used by the DataViewPlugin debug plugin (and is broken atm)

It represents a list of gpx data file represented as GpxFile

This was originally intended to but used as the model for the File List View ( which is accessible by running marble with --enableFileView ) but has since been replaced by another, more centralised, File Model. This new File Model is located in PlacemarkManager. The model that is in the GpsLayer is currently only being used as a collection class and is deprecated. This, along with the whole current GPX implementation, needs to be removed and updated to the current concepts in Marble. See Gpx Status

It represents the GeoDataGeometry and the GeoDataFeature items of the GeoDataDocument which contains all Placemarks.

It is used by the GeoRenderPlugin to access the list of placemarks.

QAbstractListModel

It represents the list of files opened. The PlacemarkManager appends the documents it opens, and the MarbleWidget appends the gpx files it opens.

It is used by the FileViewFloatItem and manipulated by the PlaceMarkManager and the MarbleModel.

It represents a list of GeoDataDocuments. Only the PlacemarksPlugin uses it

It is used by no other code.

It represents

It is used by