Supernovae.hpp   Supernovae.hpp 
skipping to change at line 103 skipping to change at line 103
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// 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 satellites. //! @param limitFov the field of view around the position v in which to search for satellites.
//! @param core the StelCore to use for computations. //! @param core the StelCore to use for computations.
//! @return an list containing the satellites located inside the lim itFov circle around position v. //! @return an list containing the satellites 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;
//! Return the matching satellite object's pointer if exists or NULL . //! Return the matching satellite object's pointer if exists or Q_NU LLPTR.
//! @param nameI18n The case in-sensistive satellite name //! @param nameI18n The case in-sensistive satellite name
virtual StelObjectP searchByNameI18n(const QString& nameI18n) const; virtual StelObjectP searchByNameI18n(const QString& nameI18n) const;
//! Return the matching satellite if exists or NULL. //! Return the matching satellite if exists or Q_NULLPTR.
//! @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;
virtual StelObjectP searchByID(const QString &id) const
{
return qSharedPointerCast<StelObject>(getByID(id));
}
virtual QStringList listAllObjects(bool inEnglish) const; virtual QStringList listAllObjects(bool inEnglish) const;
virtual QString getName() const { return "Historical Supernovae"; } virtual QString getName() const { return "Historical Supernovae"; }
virtual QString getStelObjectType() const { return Supernova::SUPERN OVA_TYPE; }
//! get a supernova object by identifier //! get a supernova object by identifier
SupernovaP getByID(const QString& id); SupernovaP getByID(const QString& id) const;
//! 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 Pulsars section in the //! Set up the plugin with default values. This means clearing out the Pulsars 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 supernovae.json file from the resource embed ded in the plugin lib/dll file. //! creates the default supernovae.json file from the resource embed ded in the plugin lib/dll file.
void restoreDefaults(void); void restoreDefaults(void);
skipping to change at line 155 skipping to change at line 161
int getUpdateFrequencyDays(void) {return updateFrequencyDays;} int getUpdateFrequencyDays(void) {return updateFrequencyDays;}
void setUpdateFrequencyDays(int days) {updateFrequencyDays = days;} void setUpdateFrequencyDays(int days) {updateFrequencyDays = days;}
//! Get the number of seconds till the next update //! Get the number of seconds till the next update
int getSecondsToUpdate(void); int getSecondsToUpdate(void);
//! Get the current updateState //! Get the current updateState
UpdateState getUpdateState(void) {return updateState;} UpdateState getUpdateState(void) {return updateState;}
//! Get list of supernovae //! Get list of supernovae
QString getSupernovaeList(); QString getSupernovaeList() const;
//! Get lower limit of brightness for displayed supernovae //! Get lower limit of brightness for displayed supernovae
float getLowerLimitBrightness(); float getLowerLimitBrightness() const;
//! Get count of supernovae from catalog //! Get count of supernovae from catalog
int getCountSupernovae(void) {return SNCount;} int getCountSupernovae(void) const {return SNCount;}
signals: signals:
//! @param state the new update state. //! @param state the new update state.
void updateStateChanged(Supernovae::UpdateState state); void updateStateChanged(Supernovae::UpdateState state);
//! Emitted after a JSON update has run. //! Emitted after a JSON update has run.
void jsonUpdateComplete(void); void jsonUpdateComplete(void);
public slots: public slots:
// FIXME: Add functions for scripting support // FIXME: Add functions for scripting support
skipping to change at line 203 skipping to change at line 209
//! Read the JSON file and create list of supernovae. //! Read the JSON file and create list of supernovae.
void readJsonFile(void); void readJsonFile(void);
//! Creates a backup of the supernovae.json file called supernovae.j son.old //! Creates a backup of the supernovae.json file called supernovae.j son.old
//! @param deleteOriginal if true, the original file is removed, els e not //! @param deleteOriginal if true, the original file is removed, els e not
//! @return true on OK, false on failure //! @return true on OK, false on failure
bool backupJsonFile(bool deleteOriginal=false); bool backupJsonFile(bool deleteOriginal=false);
//! Get the version from the "version" value in the supernovas.json file //! Get the version from the "version" value in the supernovas.json file
//! @return version string, e.g. "1" //! @return version string, e.g. "1"
int getJsonFileVersion(void); int getJsonFileVersion(void) const;
//! Check format of the catalog of supernovae //! Check format of the catalog of supernovae
//! @return valid boolean, e.g. "true" //! @return valid boolean, e.g. "true"
bool checkJsonFileFormat(void); bool checkJsonFileFormat(void) const;
//! Parse JSON file and load supernovaes to map //! Parse JSON file and load supernovaes to map
QVariantMap loadSNeMap(QString path=QString()); QVariantMap loadSNeMap(QString path=QString());
//! Set items for list of struct from data map //! Set items for list of struct from data map
void setSNeMap(const QVariantMap& map); void setSNeMap(const QVariantMap& map);
QString sneJsonPath; QString sneJsonPath;
int SNCount; int SNCount;
skipping to change at line 261 skipping to change at line 267
//! This class is used by Qt to manage a plug-in interface //! This class is used by Qt to manage a plug-in interface
class SupernovaeStelPluginInterface : public QObject, public StelPluginInte rface class SupernovaeStelPluginInterface : public QObject, public StelPluginInte rface
{ {
Q_OBJECT Q_OBJECT
Q_PLUGIN_METADATA(IID StelPluginInterface_iid) Q_PLUGIN_METADATA(IID StelPluginInterface_iid)
Q_INTERFACES(StelPluginInterface) Q_INTERFACES(StelPluginInterface)
public: public:
virtual StelModule* getStelModule() const; virtual StelModule* getStelModule() const;
virtual StelPluginInfo getPluginInfo() const; virtual StelPluginInfo getPluginInfo() const;
virtual QObjectList getExtensionList() const { return QObjectList(); }
}; };
#endif /*_SUPERNOVAE_HPP_*/ #endif /*_SUPERNOVAE_HPP_*/
 End of changes. 11 change blocks. 
8 lines changed or deleted 15 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/