Marble/ModelView
ModelView framework in Marble
Marble uses Qt's Model/View framework as a way to signal updates in a model to interested parts. In that respect, a Model class can wrap any possible data.
Here is the list of Model classes, and a description of how they are used.
QAbstractItemModel
- Expression error: Unrecognized word "x".
It represents the tree of Expression error: Unrecognized word "x". elements corresponding to a Expression error: Unrecognized word "x"..
It is used by the Expression error: Unrecognized word "x". debug plugin (and is broken atm).
- Expression error: Unrecognized word "x".
It represents a list of gpx data files represented as Expression error: Unrecognized word "x".
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 the FileViewModel.
The model is used as a member in the GpsLayer to hold the list of gpx files 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
- Expression error: Unrecognized word "x".
It represents the GeoDataGeometry and the Expression error: Unrecognized word "x". items of the last opened Expression error: Unrecognized word "x"..
It is used by the Expression error: Unrecognized word "x". to access the list of vector data and draw it.
QAbstractListModel
- Expression error: Unrecognized word "x".
It represents the list of opened files. The Expression error: Unrecognized word "x". signals it about the documents it opens or closes.
It is used by the Expression error: Unrecognized word "x". and by a List widget in the Expression error: Unrecognized word "x"..
- Expression error: Unrecognized word "x".
It represents a list of Expression error: Unrecognized word "x".. Only the Expression error: Unrecognized word "x". uses it.
It is used by no other code.
- Expression error: Unrecognized word "x".
It represents a list of Placemarks.
The Expression error: Unrecognized word "x". appends all the placemarks contained in the Expression error: Unrecognized word "x". it knows about in its instance.
The Expression error: Unrecognized word "x". appends the list of placemarks that the Runners found in its instance.
It is used by the Expression error: Unrecognized word "x". to provide a list of placemarks (either from the PlacemarkManager or from the MarbleRunnerManager).
It is also used by the Expression error: Unrecognized word "x". to determine layouting on the map.