Exoplanets.hpp   Exoplanets.hpp 
skipping to change at line 25 skipping to change at line 25
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#ifndef _EXOPLANETS_HPP_ #ifndef _EXOPLANETS_HPP_
#define _EXOPLANETS_HPP_ #define _EXOPLANETS_HPP_
#include "StelObjectModule.hpp" #include "StelObjectModule.hpp"
#include "StelObject.hpp" #include "StelObject.hpp"
#include "StelFader.hpp" #include "StelFader.hpp"
#include "StelTextureTypes.hpp"
#include "StelPainter.hpp"
#include "Exoplanet.hpp" #include "Exoplanet.hpp"
#include <QFont> #include <QFont>
#include <QVariantMap> #include <QVariantMap>
#include <QDateTime> #include <QDateTime>
#include <QList> #include <QList>
#include <QSharedPointer> #include <QSharedPointer>
class QNetworkAccessManager; class QNetworkAccessManager;
class QNetworkReply; class QNetworkReply;
class QProgressBar; class QProgressBar;
class QSettings; class QSettings;
class QTimer; class QTimer;
class ExoplanetsDialog; class ExoplanetsDialog;
class StelPainter;
class QPixmap; class QPixmap;
class StelButton; class StelButton;
typedef QSharedPointer<Exoplanet> ExoplanetP; typedef QSharedPointer<Exoplanet> ExoplanetP;
//! This is an example of a plug-in which can be dynamically loaded into st ellarium //! This is an example of a plug-in which can be dynamically loaded into st ellarium
class Exoplanets : public StelObjectModule class Exoplanets : public StelObjectModule
{ {
Q_OBJECT Q_OBJECT
public: public:
skipping to change at line 69 skipping to change at line 66
}; };
Exoplanets(); Exoplanets();
virtual ~Exoplanets(); virtual ~Exoplanets();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods defined in the StelModule class // Methods defined in the StelModule class
virtual void init(); virtual void init();
virtual void deinit(); virtual void deinit();
virtual void update(double deltaTime); virtual void update(double deltaTime);
virtual void draw(StelCore* core); virtual void draw(StelCore* core, class StelRenderer* renderer);
virtual void drawPointer(StelCore* core, StelPainter& painter); virtual void drawPointer(StelCore* core, class StelRenderer* rendere
r,
StelProjectorP projector);
virtual double getCallOrder(StelModuleActionName actionName) const; virtual double getCallOrder(StelModuleActionName actionName) const;
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods defined in StelObjectManager class // Methods defined in StelObjectManager class
//! Used to get a list of objects which are near to some position. //! Used to get a list of objects which are near to some position.
//! @param v a vector representing the position in th sky around whi ch to search for nebulae. //! @param v a vector representing the position in th sky around whi ch to search for nebulae.
//! @param limitFov the field of view around the position v in which to search for exoplanets. //! @param limitFov the field of view around the position v in which to search for exoplanets.
//! @param core the StelCore to use for computations. //! @param core the StelCore to use for computations.
//! @return an list containing the exoplanets located inside the lim itFov circle around position v. //! @return an list containing the exoplanets located inside the lim itFov circle around position v.
virtual QList<StelObjectP> searchAround(const Vec3d& v, double limit Fov, const StelCore* core) const; virtual QList<StelObjectP> searchAround(const Vec3d& v, double limit Fov, const StelCore* core) const;
skipping to change at line 96 skipping to change at line 94
//! Return the matching satellite if exists or NULL. //! Return the matching satellite if exists or NULL.
//! @param name The case in-sensistive standard program name //! @param name The case in-sensistive standard program name
virtual StelObjectP searchByName(const QString& name) const; virtual StelObjectP searchByName(const QString& name) const;
//! 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 name by order of relevance, or an empty list if nothing match //! @return a list of matching object name by order of relevance, or an empty list if nothing match
virtual QStringList listMatchingObjectsI18n(const QString& objPrefix , int maxNbItem=5) const; virtual QStringList listMatchingObjectsI18n(const QString& objPrefix , int maxNbItem=5) const;
virtual QStringList listAllObjects(bool inEnglish) const;
virtual QString getName() const { return "Exoplanets"; }
//! get a exoplanet object by identifier //! get a exoplanet object by identifier
ExoplanetP getByID(const QString& id); ExoplanetP getByID(const QString& id);
//! Implement this to tell the main Stellarium GUI that there is a G UI element to configure this //! Implement this to tell the main Stellarium GUI that there is a G UI element to configure this
//! plugin. //! plugin.
virtual bool configureGui(bool show=true); virtual bool configureGui(bool show=true);
//! Set up the plugin with default values. This means clearing out the Exoplanets section in the //! Set up the plugin with default values. This means clearing out the Exoplanets section in the
//! main config.ini (if one already exists), and populating it with default values. It also //! main config.ini (if one already exists), and populating it with default values. It also
//! creates the default exoplanets.json file from the resource embed ded in the plugin lib/dll file. //! creates the default exoplanets.json file from the resource embed ded in the plugin lib/dll file.
skipping to change at line 122 skipping to change at line 124
//! Save the settings to the main configuration file. //! Save the settings to the main configuration file.
void saveSettingsToConfig(void); void saveSettingsToConfig(void);
//! get whether or not the plugin will try to update TLE data from t he internet //! get whether or not the plugin will try to update TLE data from t he internet
//! @return true if updates are set to be done, false otherwise //! @return true if updates are set to be done, false otherwise
bool getUpdatesEnabled(void) {return updatesEnabled;} bool getUpdatesEnabled(void) {return updatesEnabled;}
//! set whether or not the plugin will try to update TLE data from t he internet //! set whether or not the plugin will try to update TLE data from t he internet
//! @param b if true, updates will be enabled, else they will be dis abled //! @param b if true, updates will be enabled, else they will be dis abled
void setUpdatesEnabled(bool b) {updatesEnabled=b;} void setUpdatesEnabled(bool b) {updatesEnabled=b;}
bool getDisplayMode(void) {return distributionEnabled;}
void setDisplayMode(bool b) {distributionEnabled=b;}
bool getTimelineMode(void) {return timelineEnabled;}
void setTimelineMode(bool b) {timelineEnabled=b;}
//! get the date and time the TLE elements were updated //! get the date and time the TLE elements were updated
QDateTime getLastUpdate(void) {return lastUpdate;} QDateTime getLastUpdate(void) {return lastUpdate;}
//! get the update frequency in hours //! get the update frequency in hours
int getUpdateFrequencyHours(void) {return updateFrequencyHours;} int getUpdateFrequencyHours(void) {return updateFrequencyHours;}
void setUpdateFrequencyHours(int hours) {updateFrequencyHours = hour s;} void setUpdateFrequencyHours(int hours) {updateFrequencyHours = hour s;}
//! get the number of seconds till the next update //! get the number of seconds till the next update
int getSecondsToUpdate(void); int getSecondsToUpdate(void);
skipping to change at line 184 skipping to change at line 191
int getJsonFileVersion(void); int getJsonFileVersion(void);
//! parse JSON file and load exoplanets to map //! parse JSON file and load exoplanets to map
QVariantMap loadEPMap(QString path=QString()); QVariantMap loadEPMap(QString path=QString());
//! set items for list of struct from data map //! set items for list of struct from data map
void setEPMap(const QVariantMap& map); void setEPMap(const QVariantMap& map);
QString jsonCatalogPath; QString jsonCatalogPath;
StelTextureSP texPointer; StelTextureNew* texPointer;
StelTextureNew* markerTexture;
QList<ExoplanetP> ep; QList<ExoplanetP> ep;
// variables and functions for the updater // variables and functions for the updater
UpdateState updateState; UpdateState updateState;
QNetworkAccessManager* downloadMgr; QNetworkAccessManager* downloadMgr;
QString updateUrl; QString updateUrl;
QString updateFile; QString updateFile;
QTimer* updateTimer; QTimer* updateTimer;
QTimer* messageTimer; QTimer* messageTimer;
QList<int> messageIDs; QList<int> messageIDs;
bool updatesEnabled; bool updatesEnabled;
QDateTime lastUpdate; QDateTime lastUpdate;
int updateFrequencyHours; int updateFrequencyHours;
bool distributionEnabled;
bool timelineEnabled;
QSettings* conf; QSettings* conf;
// GUI // GUI
ExoplanetsDialog* exoplanetsConfigDialog; ExoplanetsDialog* exoplanetsConfigDialog;
bool flagShowExoplanets; bool flagShowExoplanets;
QPixmap* OnIcon; QPixmap* OnIcon;
QPixmap* OffIcon; QPixmap* OffIcon;
QPixmap* GlowIcon; QPixmap* GlowIcon;
StelButton* toolbarButton; StelButton* toolbarButton;
 End of changes. 7 change blocks. 
6 lines changed or deleted 17 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/