|
|
const StelLocation | locationForString (const QString &s) const |
| | Return the StelLocation for a given string Can match location name, or coordinates.
|
| |
|
void | locationFromIP () |
| | Find location via online lookup of IP address.
|
| |
|
QStringList | getAllTimezoneNames () const |
| | return a QStringList of valid timezone names in Stellarium's location database.
|
| |
|
QColor | getColorForCoordinates (const double lng, const double lat) const |
| | Retrieve a color from coordinate lookup into the current planet texture (or specialized earth map)
|
| |
| static QString | sanitizeTimezoneStringForLocationDB (QString tzString) |
| | Check timezone string and return either the same or one that we use in the Stellarium location database. More...
|
| |
| static QString | sanitizeTimezoneStringFromLocationDB (QString dbString) |
| | Attempt to translate a timezone name from those used in Stellarium's location database to a name which is known to Qt at runtime as result of QTimeZone::availableTimeZoneIds(). More...
|
| |
|
|
| StelLocationMgr () |
| | Default constructor which loads the list of locations from the base and user location files.
|
| |
|
| StelLocationMgr (const LocationList &locations) |
| | Construct a StelLocationMgr which uses the locations given instead of loading them from the files.
|
| |
|
void | setLocations (const LocationList &locations) |
| | Replaces the loaded location list.
|
| |
|
LocationList | getAll () const |
| | Return the list of all loaded locations.
|
| |
|
LocationMap | getAllMap () const |
| | Returns a map of all loaded locations. The key is the location ID, suitable for a list view.
|
| |
|
const StelLocation | locationFromCLI () const |
| | Return the StelLocation from a CLI.
|
| |
|
const StelLocation & | getLastResortLocation () |
| | Return a valid location when no valid one was found.
|
| |
|
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.
|
| |
|
bool | saveUserLocation (const StelLocation &loc) |
| | Add permanently a location to the list of user locations It is later identified by its small string.
|
| |
| 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...
|
| |
| LocationMap | pickLocationsNearby (const QString &planetName, const float longitude, const float latitude, const float radiusDegrees) |
| | Find list of locations within. More...
|
| |
|
LocationMap | pickLocationsInRegion (const QString ®ion) |
| | Find list of locations in a particular region only.
|
| |
|
QStringList | getRegionNames (const QString &planet="") const |
| | return a QStringList of region names by planet (return all list of regions if planet name is empty)
|
| |
Manage the list of available location.
- Note
- You can finetune the amount of GPS-related messages in the logfile by configuring the logging category stel.GPS. Likewise, for IP-based location lookup, we use the logging category stel.LocIP. If your GPS device seems not to work, try to get more log otput by setting environment variable QT_LOGGING_RULES="*.debug=false;stel.GPS.debug=true;stel.LocIP.info=false;". This will also silence most output of IP-related location queries. By default, only Info and more severe messages are displayed.