21 #ifndef _STELOBJECTMODULE_HPP_ 22 #define _STELOBJECTMODULE_HPP_ 24 #include "StelModule.hpp" 26 #include "VecMath.hpp" 30 #include <QStringList> 71 virtual QStringList
listMatchingObjects(
const QString& objPrefix,
int maxNbItem=5,
bool useStartOfWords=
false,
bool inEnglish=
false)
const;
85 virtual QString
getName()
const = 0;
94 bool matchObjectName(
const QString& objName,
const QString& objPrefix,
bool useStartOfWords)
const;
97 #endif // _STELOBJECTMODULE_HPP_ virtual QString getName() const =0
Gets a user-displayable name of the object category.
virtual QStringList listAllObjectsByType(const QString &objType, bool inEnglish) const
List all StelObjects by type.
virtual QString getStelObjectType() const =0
Returns the name that will be returned by StelObject::getType() for the objects this module manages...
Main class for Stellarium core processing.
Specialization of StelModule which manages a collection of StelObject.
bool matchObjectName(const QString &objName, const QString &objPrefix, bool useStartOfWords) const
Auxiliary method of listMatchingObjects()
virtual StelObjectP searchByName(const QString &name) const =0
Return the matching StelObject if exists or the empty StelObject if not found.
virtual QStringList listMatchingObjects(const QString &objPrefix, int maxNbItem=5, bool useStartOfWords=false, bool inEnglish=false) const
Find and return the list of at most maxNbItem objects auto-completing passed object name...
virtual StelObjectP searchByID(const QString &id) const =0
Return the StelObject with the given ID if exists or the empty StelObject if not found.
Define the StelObjectP type.
virtual StelObjectP searchByNameI18n(const QString &nameI18n) const =0
Find a StelObject by name.
virtual QStringList listAllObjects(bool inEnglish) const =0
List all StelObjects.
virtual QList< StelObjectP > searchAround(const Vec3d &v, double limitFov, const StelCore *core) const =0
Search for StelObject in an area around a specifid point.
This is the common base class for all the main components of stellarium.