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

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

Manage the list of available location. More...

#include <StelLocationMgr.hpp>

Public Member Functions

 StelLocationMgr ()
 Default constructor. More...
 
 ~StelLocationMgr ()
 Destructor. More...
 
QStringListModel * getModelAll ()
 Return the model containing all the city. More...
 
QList< StelLocationgetAll () const
 Return the list of all loaded locations. More...
 
const StelLocation locationForString (const QString &s, bool *ok=NULL) const
 Return the StelLocation for a given string Can match location name, or coordinates. More...
 
const StelLocation locationForSmallString (const QString &s, bool *ok=NULL) const
 Return the StelLocation for the given row (match modelAllLocation index row) More...
 
const StelLocationgetLastResortLocation () const
 Return a valid location when no valid one was found. More...
 
bool canSaveUserLocation (const StelLocation &loc) const
 Get whether a location can be permanently added to the list of user locations The main constraint is that the small string must be unique. More...
 
bool saveUserLocation (const StelLocation &loc)
 Add permanently a location to the list of user locations It is later identified by its small string. More...
 
bool canDeleteUserLocation (const QString &id) const
 Get whether a location can be deleted from the list of user locations If the location comes from the base read only list, it cannot be deleted. More...
 
bool deleteUserLocation (const QString &id)
 Delete permanently the given location from the list of user locations If the location comes from the base read only list, it cannot be deleted and false is returned. More...
 

Detailed Description

Manage the list of available location.

Definition at line 32 of file StelLocationMgr.hpp.

Constructor & Destructor Documentation

StelLocationMgr::StelLocationMgr ( )

Default constructor.

StelLocationMgr::~StelLocationMgr ( )

Destructor.

Member Function Documentation

bool StelLocationMgr::canDeleteUserLocation ( const QString &  id) const

Get whether a location can be deleted from the list of user locations If the location comes from the base read only list, it cannot be deleted.

Parameters
idthe location ID
bool StelLocationMgr::canSaveUserLocation ( const StelLocation loc) const

Get whether a location can be permanently added to the list of user locations The main constraint is that the small string must be unique.

bool StelLocationMgr::deleteUserLocation ( const QString &  id)

Delete permanently the given location from the list of user locations If the location comes from the base read only list, it cannot be deleted and false is returned.

Parameters
idthe location ID
QList<StelLocation> StelLocationMgr::getAll ( ) const
inline

Return the list of all loaded locations.

Definition at line 46 of file StelLocationMgr.hpp.

const StelLocation& StelLocationMgr::getLastResortLocation ( ) const
inline

Return a valid location when no valid one was found.

Definition at line 56 of file StelLocationMgr.hpp.

QStringListModel* StelLocationMgr::getModelAll ( )
inline

Return the model containing all the city.

Definition at line 43 of file StelLocationMgr.hpp.

const StelLocation StelLocationMgr::locationForSmallString ( const QString &  s,
bool *  ok = NULL 
) const

Return the StelLocation for the given row (match modelAllLocation index row)

const StelLocation StelLocationMgr::locationForString ( const QString &  s,
bool *  ok = NULL 
) const

Return the StelLocation for a given string Can match location name, or coordinates.

bool StelLocationMgr::saveUserLocation ( const StelLocation loc)

Add permanently a location to the list of user locations It is later identified by its small string.


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