StelLocaleMgr.hpp   StelLocaleMgr.hpp 
skipping to change at line 46 skipping to change at line 46
//! - Setting the time and date formats //! - Setting the time and date formats
//! - Setting up the time zone //! - Setting up the time zone
void init(); void init();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// MESSAGES TRANSLATIONS // MESSAGES TRANSLATIONS
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
//! Get the application language currently used for GUI etc. //! Get the application language currently used for GUI etc.
//! This function has no permanent effect on the global locale. //! This function has no permanent effect on the global locale.
//! @return the abbreviated name of the language (e.g "fr"). //! @return the abbreviated name of the language (e.g "fr").
QString getAppLanguage() const { return StelTranslator::globalTransl ator.getTrueLocaleName(); } QString getAppLanguage() const { return StelTranslator::globalTransl ator->getTrueLocaleName(); }
//! Set the application language. //! Set the application language.
//! This applies to GUI etc. This function has no permanent effect o n the global locale. //! This applies to GUI etc. This function has no permanent effect o n the global locale.
//! @param newAppLangName the abbreviated name of the language (e.g fr). //! @param newAppLangName the abbreviated name of the language (e.g fr).
void setAppLanguage(const QString& newAppLangName); void setAppLanguage(const QString& newAppLangName, bool refreshAll=t rue);
//! Get the StelTranslator object currently used for global applicat ion. //! Get the StelTranslator object currently used for global applicat ion.
StelTranslator& getAppStelTranslator() const; const StelTranslator& getAppStelTranslator() const;
//! Get the language currently used for sky objects. //! Get the language currently used for sky objects.
//! This function has no permanent effect on the global locale. //! This function has no permanent effect on the global locale.
//! @return the name of the language (e.g fr). //! @return the name of the language (e.g fr).
QString getSkyLanguage() const; QString getSkyLanguage() const;
//! Set the sky language and reload the sky object names with the ne w //! Set the sky language and reload the sky object names with the ne w
//! translation. This function has no permanent effect on the globa l locale. //! translation. This function has no permanent effect on the globa l locale.
//! @param newSkyLangName The abbreviated name of the locale (e.g fr ) to use //! @param newSkyLangName The abbreviated name of the locale (e.g fr ) to use
//! for sky object labels. //! for sky object labels.
void setSkyLanguage(const QString& newSkyLangName); void setSkyLanguage(const QString& newSkyLangName, bool refreshAll=t rue);
//! Get a reference to the StelTranslator object currently used for sky objects. //! Get a reference to the StelTranslator object currently used for sky objects.
StelTranslator& getSkyTranslator(); const StelTranslator &getSkyTranslator() const;
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// DATE & TIME LOCALIZATION // DATE & TIME LOCALIZATION
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
//! Get the format string which describes the current time format. //! Get the format string which describes the current time format.
//! Valid values are: //! Valid values are:
//! - "system_default" //! - "system_default"
//! - "24h" //! - "24h"
//! - "12h" //! - "12h"
//! //!
skipping to change at line 170 skipping to change at line 170
double getJdFromISO8601TimeLocal(const QString& str, bool* ok) const ; double getJdFromISO8601TimeLocal(const QString& str, bool* ok) const ;
//! Convert a 2 letter country code to string //! Convert a 2 letter country code to string
static QString countryCodeToString(const QString& countryCode); static QString countryCodeToString(const QString& countryCode);
//! Return an alphabetically ordered list of all the known country n ames //! Return an alphabetically ordered list of all the known country n ames
static QStringList getAllCountryNames(); static QStringList getAllCountryNames();
private: private:
// The translator used for astronomical object naming // The translator used for astronomical object naming
StelTranslator skyTranslator; StelTranslator* skyTranslator;
// Date and time variables // Date and time variables
STimeFormat timeFormat; STimeFormat timeFormat;
SDateFormat dateFormat; SDateFormat dateFormat;
STzFormat timeZoneMode; // Can be the system default or a us er defined value STzFormat timeZoneMode; // Can be the system default or a us er defined value
QString customTzName; // Something like "Europe/Pa ris" QString customTzName; // Something like "Europe/Pa ris"
float GMTShift; // Time shift between GMT ti me and local time in hour. (positive for Est of GMT) float GMTShift; // Time shift between GMT ti me and local time in hour. (positive for Est of GMT)
// Convert the time format enum to its associated string and reverse // Convert the time format enum to its associated string and reverse
 End of changes. 6 change blocks. 
6 lines changed or deleted 6 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/