StelObjectMgr.hpp   StelObjectMgr.hpp 
skipping to change at line 45 skipping to change at line 45
class StelObjectMgr : public StelModule class StelObjectMgr : public StelModule
{ {
Q_OBJECT Q_OBJECT
public: public:
StelObjectMgr(); StelObjectMgr();
virtual ~StelObjectMgr(); virtual ~StelObjectMgr();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods defined in the StelModule class // Methods defined in the StelModule class
virtual void init() {;} virtual void init() {;}
virtual void draw(StelCore*) {;} virtual void draw(StelCore*, class StelRenderer*) {;}
virtual void update(double) {;} virtual void update(double) {;}
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
//! Add a new StelObject manager into the list of supported modules. //! Add a new StelObject manager into the list of supported modules.
//! Registered modules can have selected objects //! Registered modules can have selected objects
void registerStelObjectMgr(StelObjectModule* mgr); void registerStelObjectMgr(StelObjectModule* mgr);
//! Find and select an object near given equatorial J2000 position. //! Find and select an object near given equatorial J2000 position.
//! @param core the StelCore instance to use for computations //! @param core the StelCore instance to use for computations
//! @param pos the direction vector around which to search in equato rial J2000 //! @param pos the direction vector around which to search in equato rial J2000
skipping to change at line 86 skipping to change at line 86
//! @param name the case sensitive object translated name //! @param name the case sensitive object translated name
//! @return true if a object with the passed name was found //! @return true if a object with the passed name was found
bool findAndSelect(const QString &name, StelModule::StelModuleSelect Action action=StelModule::ReplaceSelection); bool findAndSelect(const QString &name, StelModule::StelModuleSelect Action action=StelModule::ReplaceSelection);
//! 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.
//! @return a list of matching object names by order of relevance, o r an empty list if nothing match //! @return a list of matching object names by order of relevance, o r an empty list if nothing match
QStringList listMatchingObjectsI18n(const QString& objPrefix, unsign ed int maxNbItem=5) const; QStringList listMatchingObjectsI18n(const QString& objPrefix, unsign ed int maxNbItem=5) const;
QStringList listAllModuleObjects(const QString& moduleId, bool inEng
lish) const;
QMap<QString, QString> objectModulesMap() const;
//! Return whether an object was selected during last selection rela ted event. //! Return whether an object was selected during last selection rela ted event.
bool getWasSelected(void) const {return !lastSelectedObjects.empty() ;} bool getWasSelected(void) const {return !lastSelectedObjects.empty() ;}
//! Notify that we want to unselect any object. //! Notify that we want to unselect any object.
void unSelect(void); void unSelect(void);
//! Notify that we want to select the given object. //! Notify that we want to select the given object.
//! @param obj the StelObject to select //! @param obj the StelObject to select
//! @param action action define whether to add to, replace, or remov e from the existing selection //! @param action action define whether to add to, replace, or remov e from the existing selection
//! @return true if at least 1 object was sucessfully selected //! @return true if at least 1 object was sucessfully selected
skipping to change at line 132 skipping to change at line 135
//! Set the radius in pixel in which objects will be searched when c licking on a point in sky. //! Set the radius in pixel in which objects will be searched when c licking on a point in sky.
void setObjectSearchRadius(float radius) {searchRadiusPixel=radius;} void setObjectSearchRadius(float radius) {searchRadiusPixel=radius;}
//! Set the weight of the distance factor when choosing the best obj ect to select. //! Set the weight of the distance factor when choosing the best obj ect to select.
//! Default to 1. //! Default to 1.
void setDistanceWeight(float newDistanceWeight) {distanceWeight=newD istanceWeight;} void setDistanceWeight(float newDistanceWeight) {distanceWeight=newD istanceWeight;}
signals: signals:
//! Indicate that the selected StelObjects has changed. //! Indicate that the selected StelObjects has changed.
//! @param action define if the user requested that the objects are added to the selection or just replace it //! @param action define if the user requested that the objects are added to the selection or just replace it
void selectedObjectChanged(StelModule::StelModuleSelectAction); void selectedObjectChanged(StelModule::StelModuleSelectAction action );
private: private:
// The list of StelObjectModule that are referenced in Stellarium // The list of StelObjectModule that are referenced in Stellarium
QList<StelObjectModule*> objectsModule; QList<StelObjectModule*> objectsModule;
// The last selected object in stellarium // The last selected object in stellarium
QList<StelObjectP> lastSelectedObjects; QList<StelObjectP> lastSelectedObjects;
// Should selected object pointer be drawn // Should selected object pointer be drawn
bool objectPointerVisibility; bool objectPointerVisibility;
//! Find in a "clever" way an object from its equatorial position. //! Find in a "clever" way an object from its equatorial position.
 End of changes. 3 change blocks. 
2 lines changed or deleted 6 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/