Stellarium 0.15.2
|
A model encapsulating a satellite list. More...
#include <SatellitesListModel.hpp>
Public Slots | |
void | beginSatellitesChange () |
Tell the model that its internal data structure is about to be modified. More... | |
void | endSatellitesChange () |
Tell the model that its internal data has been modified. More... | |
void | enableColoredNames (bool enable=true) |
Public Member Functions | |
SatellitesListModel (QList< SatelliteP > *satellites, QObject *parent=0) | |
void | setSatelliteList (QList< SatelliteP > *satellites) |
A model encapsulating a satellite list.
Used for GUI presentation purposes.
It can show satellite names in their hint colors. This behavior can be toggled with enableColoredNames(), e.g. to honor night mode.
Definition at line 43 of file SatellitesListModel.hpp.
|
slot |
Tell the model that its internal data structure is about to be modified.
This should be called every time when the underlying data structure is about to be modified outside the model! (That is, when satellites are about to be added or removed.) Otherwise views that use this model won't work correctly.
|
slot |
Tell the model that its internal data has been modified.
Don't call this without calling beginSatellitesChange() first! This should be called every time when the underlying data structure has been modified outside the model! (That is, when satellites have been added or removed.) Otherwise views that use this model won't work correctly.