20 #ifndef _STELSKYCULTUREMGR_HPP_ 21 #define _STELSKYCULTUREMGR_HPP_ 26 #include <QStringList> 52 Q_PROPERTY(QString currentSkyCultureID
53 READ getCurrentSkyCultureID
54 WRITE setCurrentSkyCultureID
55 NOTIFY currentSkyCultureChanged)
71 QString getCurrentSkyCultureEnglishName()
const;
73 QString getCurrentSkyCultureNameI18()
const;
76 bool setCurrentSkyCultureNameI18(
const QString& cultureName);
83 bool setCurrentSkyCultureID(
const QString&
id);
91 int getCurrentSkyCultureBoundariesIdx()
const;
95 QString getCurrentSkyCultureHtmlDescription()
const;
102 bool setDefaultSkyCultureID(
const QString&
id);
106 QString getSkyCultureListEnglish(
void);
110 QStringList getSkyCultureListI18(
void);
113 QStringList getSkyCultureListIDs(
void);
121 void defaultSkyCultureChanged(
const QString&
id);
124 void currentSkyCultureChanged(
const QString&
id);
130 QString directoryToSkyCultureEnglish(
const QString& directory);
136 QString directoryToSkyCultureI18(
const QString& directory)
const;
141 QString skyCultureI18ToDirectory(
const QString& cultureName)
const;
143 QMap<QString, StelSkyCulture> dirToNameEnglish;
146 QString currentSkyCultureDir;
149 QString defaultSkyCultureID;
152 #endif // _STELSKYCULTUREMGR_HPP_ QString getCurrentSkyCultureID() const
Get the current sky culture ID.
QString englishName
English name.
StelSkyCulture getSkyCulture() const
Get the current sky culture.
int boundariesIdx
Type of the boundaries (-1=none;0=generic;1=own)
Manage sky cultures for stellarium.
Store basic info about a sky culture for stellarium.
QMap< QString, StelSkyCulture > getDirToNameMap() const
Returns a map from sky culture IDs/folders to sky culture names.
QString getDefaultSkyCultureID()
Get the default sky culture ID.
QString author
Name of the author.