22 #ifndef _SATELLITESDIALOG_HPP_ 23 #define _SATELLITESDIALOG_HPP_ 26 #include <QModelIndex> 27 #include <QTreeWidget> 28 #include <QTreeWidgetItem> 29 #include "StelDialog.hpp" 30 #include "Satellites.hpp" 32 class Ui_satellitesDialog;
34 class QListWidgetItem;
35 class QSortFilterProxyModel;
36 class QStandardItemModel;
72 void jumpToSourcesTab();
74 void updateCountdown();
77 void filterListByGroup(
int index);
83 void updateSatelliteData();
84 void saveSatellites(
void);
86 void showUpdateCompleted(
int updated,
int total,
int added,
int missing);
90 void saveEditedSource();
91 void saveSourceList(
void);
92 void deleteSourceRow(
void);
93 void addSourceRow(
void);
96 void toggleCheckableSources();
99 void restoreDefaults(
void);
100 void saveSettings(
void);
101 void addSatellites(
const TleDataList& newSatellites);
102 void removeSatellites();
106 void handleGroupChanges(QListWidgetItem* item);
108 void trackSatellite(
const QModelIndex & index);
109 void setOrbitParams(
void);
110 void updateTLEs(
void);
112 void predictIridiumFlares();
113 void selectCurrentIridiumFlare(
const QModelIndex &modelIndex);
117 void enableSatelliteDataForm(
bool enabled);
118 void populateAboutPage();
121 void updateSettingsPage();
124 void populateFilterMenu();
126 void populateSourcesList();
132 void addSpecialGroupItem();
137 void setIridiumFlaresHeaderNames();
140 void initListIridiumFlares();
142 Ui_satellitesDialog* ui;
143 bool satelliteModified;
152 Qt::ItemDataRole checkStateRole;
160 : QTreeWidgetItem(parent)
165 bool operator < (
const QTreeWidgetItem &other)
const 167 int column = treeWidget()->sortColumn();
171 return text(column).toFloat() < other.text(column).toFloat();
175 return text(column).toLower() < other.text(column).toLower();
180 #endif // _SATELLITESDIALOG_HPP_ Main configuration window of the Satellites plugin.
void createDialogContent()
Initialize the dialog widgets and connect the signals/slots.
Base class for all the GUI windows in Stellarium.
UpdateState
Used for keeping track of the download/update status.
Custom proxy model allowing filtering by satellite group and flag.
date and time of Iridium flare
IridiumFlaresColumns
Defines the number and the order of the columns in the Iridium Flares table.