21 #ifndef _STELOBJECTMODULE_HPP_ 22 #define _STELOBJECTMODULE_HPP_ 24 #include "StelModule.hpp" 26 #include "VecMath.hpp" 30 #include <QStringList> 67 virtual QStringList
listMatchingObjects(
const QString& objPrefix,
int maxNbItem=5,
bool useStartOfWords=
false,
bool inEnglish=
false)
const;
80 virtual QString getName()
const = 0;
87 bool matchObjectName(
const QString& objName,
const QString& objPrefix,
bool useStartOfWords)
const;
90 #endif // _STELOBJECTMODULE_HPP_ virtual QStringList listAllObjectsByType(const QString &objType, bool inEnglish) const
List all StelObjects by type.
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...
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.