StarMgr.hpp   StarMgr.hpp 
skipping to change at line 145 skipping to change at line 145
//! @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;
//! @note Loading stars with the common names only. //! @note Loading stars with the common names only.
virtual QStringList listAllObjects(bool inEnglish) const; virtual QStringList listAllObjects(bool inEnglish) const;
virtual QStringList listAllObjectsByType(const QString& objType, boo l inEnglish) const { Q_UNUSED(objType) Q_UNUSED(inEnglish) return QStringLi st(); } virtual QStringList listAllObjectsByType(const QString& objType, boo l inEnglish) const;
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 225 skipping to change at line 225
//! @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 //! Get the (English) common name for a 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 common name of star (from skyculture @file star_names.fa b) //! @return common name of star (from skyculture @file star_names.fa b)
static QString getCommonEnglishName(int hip); static QString getCommonEnglishName(int hip);
//! Get the cross-index designations for a star with a specified
//! Hipparcos catalogue number.
//! @param hip The Hipparcos number of star
//! @return cross-index data
static QString getCrossIndexDesignations(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 319 skipping to change at line 325
//! 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);
//! Loads cross-index data from a file.
//! @param the path to a file containing the cross-index data.
void loadCrossIndex(const QString& crossIndexFile);
//! Gets the maximum search level. //! Gets the maximum search level.
// TODO: add a non-lame description - what is the purpose of the max search level? // TODO: add a non-lame description - what is the purpose of the max search level?
int getMaxSearchLevel() const; int getMaxSearchLevel() const;
//! Load all the stars from the files. //! Load all the stars from the files.
void loadData(QVariantMap starsConfigFile); void loadData(QVariantMap starsConfigFile);
//! Draw a nice animated pointer around the object. //! Draw a nice animated pointer around the object.
void drawPointer(StelPainter& sPainter, const StelCore* core); void drawPointer(StelPainter& sPainter, const StelCore* core);
skipping to change at line 371 skipping to change at line 381
static QHash<int, QString> sciNamesMapI18n; static QHash<int, QString> sciNamesMapI18n;
static QMap<QString, int> sciNamesIndexI18n; static QMap<QString, int> sciNamesIndexI18n;
static QHash<int, QString> sciAdditionalNamesMapI18n; static QHash<int, QString> sciAdditionalNamesMapI18n;
static QMap<QString, int> sciAdditionalNamesIndexI18n; static QMap<QString, int> sciAdditionalNamesIndexI18n;
static QHash<int, varstar> varStarsMapI18n; static QHash<int, varstar> varStarsMapI18n;
static QMap<QString, int> varStarsIndexI18n; static QMap<QString, int> varStarsIndexI18n;
static QHash<int, int> saoStarsMap;
static QMap<int, int> saoStarsIndex;
static QHash<int, int> hdStarsMap;
static QMap<int, int> hdStarsIndex;
QFont starFont; QFont starFont;
static bool flagSciNames; static bool flagSciNames;
Vec3f labelColor; Vec3f labelColor;
StelTextureSP texPointer; // The selection pointer tex ture StelTextureSP texPointer; // The selection pointer tex ture
class StelObjectMgr* objectMgr; class StelObjectMgr* objectMgr;
QString starConfigFileFullPath; QString starConfigFileFullPath;
QVariantMap starSettings; QVariantMap starSettings;
 End of changes. 4 change blocks. 
1 lines changed or deleted 16 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/