|
|
(9 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
| == ModelView framework in Marble ==
| | {{ Moved To Community }} |
| | |
| 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 ===
| |
| * {{class|GeoDataDebugModel|kdeedu}}
| |
| It represents a data file, parsed into a {{class|GeoDataDocument|kdeedu}} tree structure.
| |
| | |
| It is used by the {{class|DataViewPlugin|kdeedu}} debug plugin (and is broken atm)
| |
| | |
| * {{class|GpxFileModel|kdeedu}}
| |
| It represents a list of gpx data file represented as {{class|GpxFile|kdeedu}}
| |
| | |
| 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)
| |
| | |
| * {{class|MarbleGeometryModel|kdeedu}}
| |
| It represents the {{class|GeoDataGeometry|kdeedu}} and the {{class|GeoDataFeature|kdeedu}} items of the {{class|GeoDataDocument|kdeedu}} which contains all Placemarks.
| |
| | |
| It is used by the {{class|GeoRenderPlugin|kdeedu}} to access the list of placemarks.
| |
| | |
| === QAbstractListModel ===
| |
| * {{class|FileViewModel|kdeedu}}
| |
| It represents the list of files opened. The {{class|PlacemarkManager|kdeedu}} appends the documents it opens, and the {{class|MarbleWidget|kdeedu}} appends the gpx files it opens.
| |
| | |
| It is used by the {{class|FileViewFloatItem|kdeedu}} and manipulated by the {{class|PlaceMarkManager|kdeedu}} and the {{class|MarbleModel|kdeedu}}.
| |
| | |
| * {{class|MarbleGeoDataModel|kdeedu}}
| |
| It represents a list of {{class|GeoDataDocuments|kdeedu}}. Only the {{class|PlacemarksPlugin|kdeedu}} uses it
| |
| | |
| It is used by no other code.
| |
| | |
| * {{class|MarblePlacemarkModel|kdeedu}}
| |
| It represents
| |
| | |
| It is used by
| |