StarMgr.hpp   StarMgr.hpp 
skipping to change at line 143 skipping to change at line 143
//! @param maxNbItem the maximum number of returned object names //! @param maxNbItem the maximum number of returned object names
//! @param useStartOfWords the autofill mode for returned objects na mes //! @param useStartOfWords the autofill mode for returned objects na mes
//! @return a list of matching object name by order of relevance, or an empty list if nothing match //! @return a list of matching object name by order of relevance, or an empty list if nothing match
virtual QStringList listMatchingObjectsI18n(const QString& objPrefix , int maxNbItem=5, bool useStartOfWords=false) const; virtual QStringList listMatchingObjectsI18n(const QString& objPrefix , int maxNbItem=5, bool useStartOfWords=false) const;
//! Find and return the list of at most maxNbItem objects auto-compl eting the passed object English name. //! Find and return the list of at most maxNbItem objects auto-compl eting the passed object English name.
//! @param objPrefix the case insensitive first letters of the searc hed object //! @param objPrefix the case insensitive first letters of the searc hed object
//! @param maxNbItem the maximum number of returned object names //! @param maxNbItem the maximum number of returned object names
//! @param useStartOfWords the autofill mode for returned objects na mes //! @param useStartOfWords the autofill mode for returned objects na mes
//! @return a list of matching object name by order of relevance, or an empty list if nothing match //! @return a list of matching object name by order of relevance, or an empty list if nothing match
virtual QStringList listMatchingObjects(const QString& objPrefix, in t maxNbItem=5, bool useStartOfWords=false) const; virtual QStringList listMatchingObjects(const QString& objPrefix, in t maxNbItem=5, bool useStartOfWords=false) const;
// empty, as there's too much stars for displaying at once //! @note Loading stars with the common names only.
virtual QStringList listAllObjects(bool inEnglish) const { Q_UNUSED( virtual QStringList listAllObjects(bool inEnglish) const;
inEnglish) return QStringList(); } virtual QStringList listAllObjectsByType(const QString& objType, boo
l inEnglish) const { Q_UNUSED(objType) Q_UNUSED(inEnglish) return QStringLi
st(); }
virtual QString getName() const { return "Stars"; } virtual QString getName() const { return "Stars"; }
public slots: public slots:
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods callable from script and GUI // Methods callable from script and GUI
//! Set the color used to label bright stars. //! Set the color used to label bright stars.
//! @param c The color of the bright stars labels //! @param c The color of the bright stars labels
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! StarMgr.setLabelColor(Vec3f(1.0,0.0,0.0)); //! StarMgr.setLabelColor(Vec3f(1.0,0.0,0.0));
skipping to change at line 218 skipping to change at line 219
//! @param hip The Hipparcos number of star //! @param hip The Hipparcos number of star
//! @return translated additional scientific name of star //! @return translated additional scientific name of star
static QString getSciAdditionalName(int hip); static QString getSciAdditionalName(int hip);
//! Get the (translated) scientific name for a variable star with a specified //! Get the (translated) scientific name for a variable star with a specified
//! Hipparcos catalogue number. //! Hipparcos catalogue number.
//! @param hip The Hipparcos number of star //! @param hip The Hipparcos number of star
//! @return translated scientific name of variable star //! @return translated scientific name of variable star
static QString getGcvsName(int hip); static QString getGcvsName(int hip);
//! Get the (English) common name for a star with a specified
//! Hipparcos catalogue number.
//! @param hip The Hipparcos number of star
//! @return translated common name of star
static QString getCommonEnglishName(int hip);
//! Get the type of variability for a variable star with a specified //! Get the type of variability for a variable star with a specified
//! Hipparcos catalogue number. //! Hipparcos catalogue number.
//! @param hip The Hipparcos number of star //! @param hip The Hipparcos number of star
//! @return type of variability //! @return type of variability
static QString getGcvsVariabilityType(int hip); static QString getGcvsVariabilityType(int hip);
//! Get the magnitude at maximum brightness for a variable star with a specified //! Get the magnitude at maximum brightness for a variable star with a specified
//! Hipparcos catalogue number. //! Hipparcos catalogue number.
//! @param hip The Hipparcos number of star //! @param hip The Hipparcos number of star
//! @return the magnitude at maximum brightness for a variable star //! @return the magnitude at maximum brightness for a variable star
skipping to change at line 300 skipping to change at line 307
private: private:
void setCheckFlag(const QString& catalogId, bool b); void setCheckFlag(const QString& catalogId, bool b);
void copyDefaultConfigFile(); void copyDefaultConfigFile();
//! Loads common names for stars from a file. //! Loads common names for stars from a file.
//! Called when the SkyCulture is updated. //! Called when the SkyCulture is updated.
//! @param the path to a file containing the common names for bright stars. //! @param the path to a file containing the common names for bright stars.
//! @note Stellarium doesn't support sky cultures made prior version 0.10.6 now!
int loadCommonNames(const QString& commonNameFile); int loadCommonNames(const QString& commonNameFile);
//! Loads scientific names for stars from a file. //! Loads scientific names for stars from a file.
//! Called when the SkyCulture is updated. //! Called when the SkyCulture is updated.
//! @param the path to a file containing the scientific names for br ight stars. //! @param the path to a file containing the scientific names for br ight stars.
void loadSciNames(const QString& sciNameFile); void loadSciNames(const QString& sciNameFile);
//! Loads GCVS from a file. //! Loads GCVS from a file.
//! @param the path to a file containing the GCVS. //! @param the path to a file containing the GCVS.
void loadGcvs(const QString& GcvsFile); void loadGcvs(const QString& GcvsFile);
 End of changes. 3 change blocks. 
3 lines changed or deleted 12 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/