StelObjectMgr.hpp   StelObjectMgr.hpp 
skipping to change at line 34 skipping to change at line 34
#include <QString> #include <QString>
#include "VecMath.hpp" #include "VecMath.hpp"
#include "StelModule.hpp" #include "StelModule.hpp"
#include "StelObject.hpp" #include "StelObject.hpp"
class StelObjectModule; class StelObjectModule;
class StelCore; class StelCore;
//! @class StelObjectMgr //! @class StelObjectMgr
//! Manage the selection and queries on one or more StelObjects. //! Manage the selection and queries on one or more StelObjects.
//! When the user requests selection of an object, the selectedObjectChange
CallBack method
//! of all the StelModule which are registered is called.
//! Each module is then free to manage object selection as it wants. //! Each module is then free to manage object selection as it wants.
class StelObjectMgr : public StelModule class StelObjectMgr : public StelModule
{ {
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*) {;}
virtual void update(double) {;} virtual void update(double) {;}
skipping to change at line 130 skipping to change at line 129
//! Find any kind of object by its standard program name. //! Find any kind of object by its standard program name.
StelObjectP searchByName(const QString &name) const; StelObjectP searchByName(const QString &name) const;
//! 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:
//! 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
void selectedObjectChanged(StelModule::StelModuleSelectAction);
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.
StelObjectP cleverFind(const StelCore* core, const Vec3d& pos) const ; StelObjectP cleverFind(const StelCore* core, const Vec3d& pos) const ;
 End of changes. 3 change blocks. 
3 lines changed or deleted 7 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/