SatellitesDialog.hpp   SatellitesDialog.hpp 
skipping to change at line 25 skipping to change at line 25
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* 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 _SATELLITESDIALOG_HPP_ #ifndef _SATELLITESDIALOG_HPP_
#define _SATELLITESDIALOG_HPP_ #define _SATELLITESDIALOG_HPP_
#include <QObject> #include <QObject>
#include <QModelIndex>
#include "StelDialog.hpp" #include "StelDialog.hpp"
#include "Satellites.hpp" #include "Satellites.hpp"
class Ui_satellitesDialog; class Ui_satellitesDialog;
class QListWidgetItem;
class QSortFilterProxyModel;
class QStandardItemModel;
class QTimer; class QTimer;
class SatellitesImportDialog; class SatellitesImportDialog;
class SatellitesDialog : public StelDialog class SatellitesDialog : public StelDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
SatellitesDialog(); SatellitesDialog();
~SatellitesDialog(); ~SatellitesDialog();
protected: protected:
//! Initialize the dialog widgets and connect the signals/slots //! Initialize the dialog widgets and connect the signals/slots
void createDialogContent(); void createDialogContent();
public slots: public slots:
void retranslate(); void retranslate();
void refreshUpdateValues(void); void refreshUpdateValues(void);
private slots: private slots:
//! Populates the satellites list, filtering it according to group.
//! @param index selection index of the groups drop-down list.
//! @todo Rework to use a proper model and filtering via a proxy mod
el?
void listSatelliteGroup(int index); void listSatelliteGroup(int index);
//! Reloads the satellites list with the currently selected group. //! Populates the satellites list with the currently selected group.
void reloadSatellitesList(); void reloadSatellitesList();
void updateSelectedSatelliteInfo(QListWidgetItem* cur, QListWidgetIt em* prev); void updateSelectedInfo(const QModelIndex& cur, const QModelIndex& p rev);
void saveSatellites(void); void saveSatellites(void);
void setUpdateValues(int hours); void setUpdateValues(int hours);
void setUpdatesEnabled(int checkState); void setUpdatesEnabled(int checkState);
void updateStateReceiver(Satellites::UpdateState state); void updateStateReceiver(Satellites::UpdateState state);
void updateCompleteReceiver(int numUpdated, int total, int missing); void updateCompleteReceiver(int numUpdated, int total, int missing);
void sourceEditingDone(void); void sourceEditingDone(void);
void saveSourceList(void); void saveSourceList(void);
void deleteSourceRow(void); void deleteSourceRow(void);
void addSourceRow(void); void addSourceRow(void);
void restoreDefaults(void); void restoreDefaults(void);
void saveSettings(void); void saveSettings(void);
void addSatellites(const TleDataList& newSatellites); void addSatellites(const TleDataList& newSatellites);
void removeSatellites(); void removeSatellites();
void setDisplayFlag(bool display); void setDisplayFlag(bool display);
void setOrbitFlag(bool display); void setOrbitFlag(bool display);
void satelliteDoubleClick(QListWidgetItem* item); void handleDoubleClick(const QModelIndex & index);
void setOrbitParams(void); void setOrbitParams(void);
void updateTLEs(void); void updateTLEs(void);
private: private:
void connectSatelliteGuiForm(void); void connectSatelliteGuiForm(void);
void disconnectSatelliteGuiForm(void); void disconnectSatelliteGuiForm(void);
Ui_satellitesDialog* ui; Ui_satellitesDialog* ui;
bool satelliteModified; bool satelliteModified;
void setAboutHtml(void); void setAboutHtml(void);
void updateGuiFromSettings(void); void updateGuiFromSettings(void);
void populateGroupsList(); void populateGroupsList();
QTimer* updateTimer; QTimer* updateTimer;
SatellitesImportDialog* importWindow; SatellitesImportDialog* importWindow;
QStandardItemModel* satellitesModel;
QSortFilterProxyModel* filterProxyModel;
}; };
#endif // _SATELLITESDIALOG_HPP_ #endif // _SATELLITESDIALOG_HPP_
 End of changes. 7 change blocks. 
3 lines changed or deleted 14 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/