19 #ifndef _SATELLITES_HPP_
20 #define _SATELLITES_HPP_ 1
22 #include "StelObjectModule.hpp"
23 #include "Satellite.hpp"
24 #include "StelFader.hpp"
25 #include "StelGui.hpp"
26 #include "StelDialog.hpp"
27 #include "StelLocation.hpp"
33 #include <QVariantMap>
37 class QNetworkAccessManager;
61 typedef QList<TleData> TleDataList;
62 typedef QHash<QString, TleData> TleDataHash ;
77 typedef QList<TleSource> TleSourceList;
128 READ isAutoAddEnabled
132 READ isAutoRemoveEnabled
165 virtual void update(
double deltaTime);
206 virtual QStringList listAllObjects(
bool inEnglish)
const;
208 virtual QString getName()
const {
return "Satellites"; }
234 void addGroup(
const QString& groupId);
243 SatelliteP
getById(
const QString&
id);
251 void add(
const TleDataList& newSatellites);
255 void remove(
const QStringList& idList);
331 TleDataHash& tleList,
332 bool addFlagValue =
false);
334 bool getFlagHints() {
return hintFader;}
338 bool getFlagLabels();
418 void recalculateOrbitLines(
void);
422 void displayMessage(
const QString& message,
const QString hexColor=
"#999999");
430 void setStelStyle(
const QString& section);
441 void restoreDefaultSettings();
443 void restoreDefaultCatalog();
451 bool backupCatalog(
bool deleteOriginal=
false);
454 const QString readCatalogVersion();
459 bool saveDataMap(
const QVariantMap& map, QString path=QString());
462 QVariantMap loadDataMap(QString path=QString());
464 void setDataMap(
const QVariantMap& map);
467 QVariantMap createDataMap();
470 void markLastUpdate();
476 static void translations();
486 QList<SatelliteP> satellites;
493 QSet<QString> groups;
502 QPixmap* pxmapOnIcon;
503 QPixmap* pxmapOffIcon;
507 QSharedPointer<Planet> earth;
508 Vec3f defaultHintColor;
509 Vec3f defaultOrbitColor;
515 QNetworkAccessManager* downloadMgr;
524 QStringList updateUrls;
530 TleSourceList updateSources;
531 QProgressBar* progressBar;
532 int numberDownloadsComplete;
541 QDateTime lastUpdate;
542 int updateFrequencyHours;
547 QTimer* messageTimer;
548 QList<int> messageIDs;
553 QByteArray normalStyleSheet;
554 QByteArray nightStyleSheet;
560 void checkForUpdate(
void);
569 void saveDownloadedUpdate(QNetworkReply* reply);
577 #include "StelPluginInterface.hpp"