StarMgr.hpp   StarMgr.hpp 
skipping to change at line 125 skipping to change at line 125
//! catalog name (format can be HP1234 or HP 1234 or HIP 1234) or sc i name //! catalog name (format can be HP1234 or HP 1234 or HIP 1234) or sc i name
virtual StelObjectP searchByNameI18n(const QString& nameI18n) const; virtual StelObjectP searchByNameI18n(const QString& nameI18n) const;
//! Return the matching star if exists or NULL //! Return the matching star if exists or NULL
//! @param name The case in-sensistive standard program planet name //! @param name The case in-sensistive standard program planet name
virtual StelObjectP searchByName(const QString& name) const; virtual StelObjectP searchByName(const QString& name) const;
//! Find and return the list of at most maxNbItem objects auto-compl eting the passed object I18n name. //! Find and return the list of at most maxNbItem objects auto-compl eting the passed object I18n 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
//! @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) 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
//! @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) 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 // empty, as there's too much stars for displaying at once
virtual QStringList listAllObjects(bool inEnglish) const { Q_UNUSED( inEnglish) return QStringList(); } virtual QStringList listAllObjects(bool inEnglish) const { Q_UNUSED( inEnglish) return QStringList(); }
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.
void setLabelColor(const Vec3f& c) {labelColor = c;} void setLabelColor(const Vec3f& c) {labelColor = c;}
//! Get the current color used to label bright stars. //! Get the current color used to label bright stars.
skipping to change at line 192 skipping to change at line 194
//! Get the (translated) scientific name for a star with a specified //! Get the (translated) scientific name for a star with a specified
//! Hipparcos catalogue number. //! Hipparcos catalogue number.
static QString getSciName(int hip); static QString getSciName(int hip);
//! Get the (translated) additional scientific name for a star with a //! Get the (translated) additional scientific name for a star with a
//! specified Hipparcos catalogue number. //! specified Hipparcos catalogue number.
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.
static QString getGCVSName(int hip); static QString getGcvsName(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.
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.
static float getGCVSMaxMagnitude(int hip); static float getGcvsMaxMagnitude(int hip);
//! Get the magnitude flag code for a variable star with a specified //! Get the magnitude flag code for a variable star with a specified
//! Hipparcos catalogue number. //! Hipparcos catalogue number.
static int getGCVSMagnitudeFlag(int hip); static int getGcvsMagnitudeFlag(int hip);
//! Get the minimum magnitude or amplitude for a variable star with a specified //! Get the minimum magnitude or amplitude for a variable star with a specified
//! Hipparcos catalogue number. //! Hipparcos catalogue number.
static float getGCVSMinMagnitude(int hip, bool firstMinimumFlag=true ); static float getGcvsMinMagnitude(int hip, bool firstMinimumFlag=true );
//! Get the photometric system for a variable star with a specified //! Get the photometric system for a variable star with a specified
//! Hipparcos catalogue number. //! Hipparcos catalogue number.
static QString getGCVSPhotometricSystem(int hip); static QString getGcvsPhotometricSystem(int hip);
//! Get Epoch for maximum light for a variable star with a specified //! Get Epoch for maximum light for a variable star with a specified
//! Hipparcos catalogue number. //! Hipparcos catalogue number.
static double getGCVSEpoch(int hip); static double getGcvsEpoch(int hip);
//! Get the period for a variable star with a specified //! Get the period for a variable star with a specified
//! Hipparcos catalogue number. //! Hipparcos catalogue number.
static double getGCVSPeriod(int hip); static double getGcvsPeriod(int hip);
//! Get the rising time or duration of eclipse for a variable star w ith a //! Get the rising time or duration of eclipse for a variable star w ith a
//! specified Hipparcos catalogue number. //! specified Hipparcos catalogue number.
static int getGCVSMM(int hip); static int getGcvsMM(int hip);
static QString convertToSpectralType(int index); static QString convertToSpectralType(int index);
static QString convertToComponentIds(int index); static QString convertToComponentIds(int index);
QVariantList getCatalogsDescription() const {return catalogsDescript ion;} QVariantList getCatalogsDescription() const {return catalogsDescript ion;}
//! Try to load the given catalog, even if it is marched as unchecke d. //! Try to load the given catalog, even if it is marched as unchecke d.
//! Mark it as checked if checksum is correct. //! Mark it as checked if checksum is correct.
//! @return false in case of failure. //! @return false in case of failure.
bool checkAndLoadCatalog(QVariantMap m); bool checkAndLoadCatalog(QVariantMap m);
skipping to change at line 264 skipping to change at line 266
//! @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.
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);
//! 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(class StelRenderer* renderer, StelProjectorP projec tor, const StelCore* core); void drawPointer(class StelRenderer* renderer, StelProjectorP projec tor, const StelCore* core);
 End of changes. 14 change blocks. 
12 lines changed or deleted 14 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/