SolarSystem.hpp   SolarSystem.hpp 
skipping to change at line 125 skipping to change at line 125
//! @return a list of matching object name by order of relevance, or an empty list if nothing matches. //! @return a list of matching object name by order of relevance, or an empty list if nothing matches.
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 objects by translated name prefix. //! Find objects by translated name prefix.
//! Find and return the list of at most maxNbItem objects auto-compl eting //! Find and return the list of at most maxNbItem objects auto-compl eting
//! the passed object English name. //! 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 matches. //! @return a list of matching object name by order of relevance, or an empty list if nothing matches.
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;
virtual QStringList listAllObjects(bool inEnglish) const; virtual QStringList listAllObjects(bool inEnglish) const { Q_UNUSED(
inEnglish) return QStringList(); }
virtual QStringList listAllObjectsByType(const QString& objType, boo
l inEnglish) const;
virtual QString getName() const { return "Solar System"; } virtual QString getName() const { return "Solar System"; }
public slots: public slots:
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Method callable from script and GUI // Method callable from script and GUI
// Properties setters and getters // Properties setters and getters
//! Set flag which determines if planets are drawn or hidden. //! Set flag which determines if planets are drawn or hidden.
void setFlagPlanets(bool b); void setFlagPlanets(bool b);
//! Get the current value of the flag which determines if planet are drawn or hidden. //! Get the current value of the flag which determines if planet are drawn or hidden.
bool getFlagPlanets() const; bool getFlagPlanets() const;
skipping to change at line 236 skipping to change at line 237
//! Get the display scaling factor for Earth's oon. //! Get the display scaling factor for Earth's oon.
float getMoonScale(void) const {return moonScale;} float getMoonScale(void) const {return moonScale;}
//! Translate names. (public so that SolarSystemEditor can call it). //! Translate names. (public so that SolarSystemEditor can call it).
void updateI18n(); void updateI18n();
//! Get the V magnitude for Solar system bodies from scripts //! Get the V magnitude for Solar system bodies from scripts
//! @param planetName the case in-sensistive English planet name. //! @param planetName the case in-sensistive English planet name.
//! @param withExtinction the flag for use extinction effect for mag nitudes (default not use) //! @param withExtinction the flag for use extinction effect for mag nitudes (default not use)
//! @return a magnitude //! @return a magnitude
float getPlanetVMagnitude(QString planetName) const; float getPlanetVMagnitude(QString planetName, bool withExtinction=fa
lse) const;
//! Get type for Solar system bodies from scripts
//! @param planetName the case in-sensistive English planet name.
//! @return a type of planet (planet, moon, asteroid, comet, plutoid
)
QString getPlanetType(QString planetName) const;
//! Get distance to Solar system bodies from scripts //! Get distance to Solar system bodies from scripts
//! @param planetName the case in-sensistive English planet name. //! @param planetName the case in-sensistive English planet name.
//! @return a distance (in AU) //! @return a distance (in AU)
double getDistanceToPlanet(QString planetName) const; double getDistanceToPlanet(QString planetName) const;
//! Get elongation for Solar system bodies from scripts //! Get elongation for Solar system bodies from scripts
//! @param planetName the case in-sensistive English planet name. //! @param planetName the case in-sensistive English planet name.
//! @return a elongation (in radians) //! @return a elongation (in radians)
double getElongationForPlanet(QString planetName) const; double getElongationForPlanet(QString planetName) const;
 End of changes. 2 change blocks. 
2 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/