StelObjectModule.hpp   StelObjectModule.hpp 
skipping to change at line 61 skipping to change at line 61
//! Find a StelObject by name. //! Find a StelObject by name.
//! @param nameI18n The translated name for the current sky locale. //! @param nameI18n The translated name for the current sky locale.
//! @return The matching StelObject if exists or the empty StelObjec t if not found. //! @return The matching StelObject if exists or the empty StelObjec t if not found.
virtual StelObjectP searchByNameI18n(const QString& nameI18n) const = 0; virtual StelObjectP searchByNameI18n(const QString& nameI18n) const = 0;
//! Return the matching StelObject if exists or the empty StelObject if not found //! Return the matching StelObject if exists or the empty StelObject if not found
//! @param name the english object name //! @param name the english object name
virtual StelObjectP searchByName(const QString& name) const = 0; virtual StelObjectP searchByName(const QString& name) const = 0;
//! Return the StelObject with the given ID if exists or the empty S
telObject if not found
//! @param name the english object name
virtual StelObjectP searchByID(const QString& id) const = 0;
//! Find and return the list of at most maxNbItem objects auto-compl eting passed object name //! Find and return the list of at most maxNbItem objects auto-compl eting passed object name
//! @param objPrefix the first letters of the searched object //! @param objPrefix the first letters of the searched object
//! @param maxNbItem the maximum number of returned object names //! @param maxNbItem the maximum number of returned object names
//! @param useStartOfWords decide if start of word is searched //! @param useStartOfWords decide if start of word is searched
//! @param inEnglish list translated names (false) or in English (tr ue) //! @param inEnglish list translated names (false) or in English (tr ue)
//! @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, bool inEnglish=false) const; virtual QStringList listMatchingObjects(const QString& objPrefix, in t maxNbItem=5, bool useStartOfWords=false, bool inEnglish=false) const;
//! List all StelObjects. //! List all StelObjects.
//! @param inEnglish list names in English (true) or translated (fal se) //! @param inEnglish list names in English (true) or translated (fal se)
//! @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 listAllObjects(bool inEnglish) const = 0; virtual QStringList listAllObjects(bool inEnglish) const = 0;
//! List all StelObjects by type. //! List all StelObjects by type.
//! @param objType object type //! @param objType object type
//! @param inEnglish list translated names (false) or in English (tr ue) //! @param inEnglish list translated names (false) or in English (tr ue)
//! @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 listAllObjectsByType(const QString& objType, boo l inEnglish) const; virtual QStringList listAllObjectsByType(const QString& objType, boo l inEnglish) const;
//! Gets a user-displayable name of the object category
virtual QString getName() const = 0; virtual QString getName() const = 0;
//! Returns the name that will be returned by StelObject::getType()
for the objects this module manages
virtual QString getStelObjectType() const = 0;
//! Auxiliary method of listMatchingObjects() //! Auxiliary method of listMatchingObjects()
//! @param objName object name //! @param objName object name
//! @param objPrefix the first letters of the searched object //! @param objPrefix the first letters of the searched object
//! @param useStartOfWords decide if start of word is searched //! @param useStartOfWords decide if start of word is searched
//! @return true if it matches //! @return true if it matches
bool matchObjectName(const QString& objName, const QString& objPrefi x, bool useStartOfWords) const; bool matchObjectName(const QString& objName, const QString& objPrefi x, bool useStartOfWords) const;
}; };
#endif // _STELOBJECTMODULE_HPP_ #endif // _STELOBJECTMODULE_HPP_
 End of changes. 3 change blocks. 
0 lines changed or deleted 9 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/