Satellites.hpp   Satellites.hpp 
skipping to change at line 210 skipping to change at line 210
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// 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 the satellite with the given catalog number. //! Return the satellite with the given catalog number.
//! Used as a helper function by searchByName() and //! Used as a helper function by searchByName() and
//! searchByNameI18n(). //! searchByNameI18n().
//! @param noradNumber search string in the format "NORAD XXXX". //! @param noradNumber search string in the format "NORAD XXXX".
//! @returns a null pointer if no such satellite is found. //! @returns a null pointer if no such satellite is found.
StelObjectP searchByNoradNumber(const QString& noradNumber) const; StelObjectP searchByNoradNumber(const QString& noradNumber) const;
//! Find and return the list of at most maxNbItem objects auto-compl eting the passed object name. //! Find and return the list of at most maxNbItem objects auto-compl eting the passed object 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
//! @param useStartOfWords the autofill mode for returned objects na mes //! @param useStartOfWords the autofill mode for returned objects na mes
//! @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 listMatchingObjects(const QString& objPrefix, in t maxNbItem=5, bool useStartOfWords=false, bool inEnglish=false) const; virtual QStringList listMatchingObjects(const QString& objPrefix, in t maxNbItem=5, bool useStartOfWords=false, bool inEnglish=false) const;
virtual QStringList listAllObjects(bool inEnglish) const; virtual QStringList listAllObjects(bool inEnglish) const;
virtual QString getName() const { return "Satellites"; } virtual QString getName() const { return "Satellites"; }
virtual QString getStelObjectType() const { return Satellite::SATELL ITE_TYPE; }
//! Implment this to tell the main Stellarium GUi that there is a GU I element to configure this //! Implment this to tell the main Stellarium GUi that there is a GU I 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 Satellites section in the //! Set up the plugin with default values. This means clearing out the Satellites 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 satellites.json file from the resource embed ded in the plugin lib/dll file. //! creates the default satellites.json file from the resource embed ded in the plugin lib/dll file.
void restoreDefaults(void); void restoreDefaults(void);
skipping to change at line 264 skipping to change at line 267
//! See @ref groups for details. Use getGroupIdList() if you need a list. //! See @ref groups for details. Use getGroupIdList() if you need a list.
QSet<QString> getGroups() const; QSet<QString> getGroups() const;
//! Get a sorted list of group names. //! Get a sorted list of group names.
//! See @ref groups for details. Use getGroups() if you don't need a list. //! See @ref groups for details. Use getGroups() if you don't need a list.
QStringList getGroupIdList() const; QStringList getGroupIdList() const;
//! Add this group to the global list. //! Add this group to the global list.
void addGroup(const QString& groupId); void addGroup(const QString& groupId);
//! get satellite objects filtered by group. If an empty string is used for the //! get satellite objects filtered by group. If an empty string is used for the
//! group name, return all satallites //! group name, return all satallites
QHash<QString,QString> getSatellites(const QString& group=QString(), Status vis=Both); QHash<QString,QString> getSatellites(const QString& group=QString(), Status vis=Both) const;
//! Get a model representing the list of satellites. //! Get a model representing the list of satellites.
SatellitesListModel* getSatellitesListModel(); SatellitesListModel* getSatellitesListModel();
//! Get a satellite object by its identifier (i.e. NORAD number). //! Get a satellite object by its identifier (i.e. NORAD number).
SatelliteP getById(const QString& id); SatelliteP getById(const QString& id) const;
//! Returns a list of all satellite IDs. //! Returns a list of all satellite IDs.
QStringList listAllIds(); QStringList listAllIds() const;
//! Add to the current collection the satellites described by the da ta list. //! Add to the current collection the satellites described by the da ta list.
//! The changes are not saved to file. //! The changes are not saved to file.
//! Calls add(TleData). //! Calls add(TleData).
void add(const TleDataList& newSatellites); void add(const TleDataList& newSatellites);
//! Remove the selected satellites. //! Remove the selected satellites.
//! The changes are not saved to file. //! The changes are not saved to file.
void remove(const QStringList& idList); void remove(const QStringList& idList);
//! 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) const {return updatesEnabled;}
//! 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) const {return lastUpdate;}
//! get the update frequency in hours //! get the update frequency in hours
int getUpdateFrequencyHours(void) {return updateFrequencyHours;} int getUpdateFrequencyHours(void) const {return updateFrequencyHours ;}
//! 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 update frequency in hours //! get the update frequency in hours
//void setUpdateFrequencyHours(int hours); //void setUpdateFrequencyHours(int hours);
//! Get the current updateState //! Get the current updateState
UpdateState getUpdateState(void) {return updateState;} UpdateState getUpdateState(void) const {return updateState;}
//! Get a list of URLs which are sources of TLE data. //! Get a list of URLs which are sources of TLE data.
//! @returns a list of URL strings, some with prefixes - see #update Urls //! @returns a list of URL strings, some with prefixes - see #update Urls
//! for details. //! for details.
QStringList getTleSources(void) {return updateUrls;} QStringList getTleSources(void) const {return updateUrls;}
//! Set the list of URLs which are sources of TLE data. //! Set the list of URLs which are sources of TLE data.
//! In addition to replacing the current list of sources, it also //! In addition to replacing the current list of sources, it also
//! saves them to the configuration file. Allows marking sources for //! saves them to the configuration file. Allows marking sources for
//! auto-addition by adding a prefix to the URL string. //! auto-addition by adding a prefix to the URL string.
//! @see updateUrls //! @see updateUrls
//! @param tleSources a list of valid URLs (http://, ftp://, file:// ), //! @param tleSources a list of valid URLs (http://, ftp://, file:// ),
//! allowed prefixes are "0,", "1," or no prefix. //! allowed prefixes are "0,", "1," or no prefix.
void setTleSources(QStringList tleSources); void setTleSources(QStringList tleSources);
skipping to change at line 361 skipping to change at line 364
static void parseTleFile(QFile& openFile, static void parseTleFile(QFile& openFile,
TleDataHash& tleList, TleDataHash& tleList,
bool addFlagValue = false); bool addFlagValue = false);
//! Reads qs.mag file and its parsing for getting id and standard ma gnitude //! Reads qs.mag file and its parsing for getting id and standard ma gnitude
//! for satellites. //! for satellites.
//! @note We are having permissions for use this file from Mike McCa nts. //! @note We are having permissions for use this file from Mike McCa nts.
//! @param name of file //! @param name of file
void parseQSMagFile(QString qsMagFile); void parseQSMagFile(QString qsMagFile);
bool getFlagHints() {return hintFader;} bool getFlagHints() const {return hintFader;}
//! get the label font size. //! get the label font size.
//! @return the pixel size of the font //! @return the pixel size of the font
int getLabelFontSize() {return labelFont.pixelSize();} int getLabelFontSize() const {return labelFont.pixelSize();}
bool getFlagLabels(); bool getFlagLabels() const;
bool getFlagRealisticMode(); bool getFlagRealisticMode() const;
//! Get the current status of the orbit line rendering flag. //! Get the current status of the orbit line rendering flag.
bool getOrbitLinesFlag(); bool getOrbitLinesFlag() const;
bool isAutoAddEnabled() const { return autoAddEnabled; } bool isAutoAddEnabled() const { return autoAddEnabled; }
bool isAutoRemoveEnabled() const { return autoRemoveEnabled; } bool isAutoRemoveEnabled() const { return autoRemoveEnabled; }
//! Get depth of prediction for Iridium flares //! Get depth of prediction for Iridium flares
int getIridiumFlaresPredictionDepth(void) { return iridiumFlaresPred ictionDepth; } int getIridiumFlaresPredictionDepth(void) const { return iridiumFlar esPredictionDepth; }
IridiumFlaresPredictionList getIridiumFlaresPrediction(); IridiumFlaresPredictionList getIridiumFlaresPrediction();
signals: signals:
void hintsVisibleChanged(bool b); void hintsVisibleChanged(bool b);
void labelsVisibleChanged(bool b); void labelsVisibleChanged(bool b);
//! Emitted when some of the plugin settings have been changed. //! Emitted when some of the plugin settings have been changed.
//! Used to communicate with the configuration window. //! Used to communicate with the configuration window.
void settingsChanged(); void settingsChanged();
skipping to change at line 501 skipping to change at line 504
//! @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 backupCatalog(bool deleteOriginal=false); bool backupCatalog(bool deleteOriginal=false);
//! Read the version number from the "creator" value in the catalog file. //! Read the version number from the "creator" value in the catalog file.
//! @return version string, e.g. "0.6.1" //! @return version string, e.g. "0.6.1"
const QString readCatalogVersion(); const QString readCatalogVersion();
//! Replace the qs.mag file with the default one. //! Replace the qs.mag file with the default one.
void restoreDefaultQSMagFile(); void restoreDefaultQSMagFile();
//! Checks valid range dates of life of satellites //! Checks valid range dates of life of satellites
bool isValidRangeDates() const; bool isValidRangeDates(const StelCore* core) const;
//! Save a structure representing a satellite catalog to a JSON file . //! Save a structure representing a satellite catalog to a JSON file .
//! If no path is specified, catalogPath is used. //! If no path is specified, catalogPath is used.
//! @see createDataMap() //! @see createDataMap()
bool saveDataMap(const QVariantMap& map, QString path=QString()); bool saveDataMap(const QVariantMap& map, QString path=QString());
//! Load a structure representing a satellite catalog from a JSON fi le. //! Load a structure representing a satellite catalog from a JSON fi le.
//! If no path is specified, catalogPath is used. //! If no path is specified, catalogPath is used.
QVariantMap loadDataMap(QString path=QString()); QVariantMap loadDataMap(QString path=QString());
//! Parse a satellite catalog structure into internal satellite data . //! Parse a satellite catalog structure into internal satellite data .
void setDataMap(const QVariantMap& map); void setDataMap(const QVariantMap& map);
skipping to change at line 636 skipping to change at line 639
//! 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 SatellitesStelPluginInterface : public QObject, public StelPluginInte rface class SatellitesStelPluginInterface : 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 /*_SATELLITES_HPP_*/ #endif /*_SATELLITES_HPP_*/
 End of changes. 18 change blocks. 
17 lines changed or deleted 21 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/