Документ взят из кэша поисковой машины. Адрес оригинального документа : http://astro.uni-altai.ru/~aw/stellarium/api/classSatellitesListModel.html
Дата изменения: Unknown
Дата индексирования: Fri Feb 28 07:44:19 2014
Кодировка:

Поисковые слова: п п п п п п п п п п п п п п п п
Stellarium: SatellitesListModel Class Reference
Stellarium 0.12.3
List of all members | Public Slots | Public Member Functions
SatellitesListModel Class Reference

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)
 
Reimplemented model handling methods.
Qt::ItemFlags flags (const QModelIndex &index) const
 
QVariant data (const QModelIndex &index, int role) const
 
bool setData (const QModelIndex &index, const QVariant &value, int role)
 
int rowCount (const QModelIndex &parent) const
 
int columnCount (const QModelIndex &parent) const
 

Detailed Description

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.

Warning
The model keeps a pointer to the satellite list, not a copy, so every time that list is modified outside the model (i.e. satellites are added or removed), you need to call beginSatellitesChange() and endSatellitesChange().

Definition at line 42 of file SatellitesListModel.hpp.

Member Function Documentation

void SatellitesListModel::beginSatellitesChange ( )
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.

void SatellitesListModel::endSatellitesChange ( )
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.


The documentation for this class was generated from the following file: