SatellitesDialog.hpp   SatellitesDialog.hpp 
/* /*
* Stellarium Satellites Plug-in GUI * Stellarium Satellites Plug-in GUI
* *
* Copyright (C) 2009 Matthew Gates * Copyright (C) 2010 Matthew Gates
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA.
*/ */
#ifndef _SATELLITESDIALOG_HPP_ #ifndef _SATELLITESDIALOG_HPP_
#define _SATELLITESDIALOG_HPP_ #define _SATELLITESDIALOG_HPP_
#include <QObject> #include <QObject>
#include "StelDialogPlugin.hpp" #include "StelDialog.hpp"
#include "Satellites.hpp" #include "Satellites.hpp"
class Ui_satellitesDialog; class Ui_satellitesDialog;
class QTimer; class QTimer;
class SatellitesDialog : public StelDialogPlugin class SatellitesDialog : public StelDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
SatellitesDialog(); SatellitesDialog();
virtual ~SatellitesDialog(); ~SatellitesDialog();
virtual void languageChanged(); void languageChanged();
void updateStyle();
protected: protected:
//! Initialize the dialog widgets and connect the signals/slots //! Initialize the dialog widgets and connect the signals/slots
virtual void createDialogContent(); void createDialogContent();
Ui_satellitesDialog* ui;
public slots: public slots:
void refreshUpdateValues(void); void refreshUpdateValues(void);
void close(void);
private slots: private slots:
void groupFilterChanged(int index); void groupFilterChanged(int index);
void selectedSatelliteChanged(const QString& id); void selectedSatelliteChanged(const QString& id);
void saveSatellite(const QString& id); void saveSatellites(void);
void setUpdateValues(int hours); void setUpdateValues(int hours);
void setUpdatesEnabled(bool b); void setUpdatesEnabled(int checkState);
void updateStateReceiver(Satellites::UpdateState state); void updateStateReceiver(Satellites::UpdateState state);
void updateCompleteReceiver(int numUpdated); 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 showSelectedSatellites(void);
void hideSelectedSatellites(void);
void visibleCheckChanged(int state); void visibleCheckChanged(int state);
void orbitCheckChanged(int state);
void satelliteDoubleClick(QListWidgetItem* item); void satelliteDoubleClick(QListWidgetItem* item);
void setOrbitParams(void);
void updateTLEs(void);
private: private:
void connectSatelliteGuiForm(void);
void disconnectSatelliteGuiForm(void);
Ui_satellitesDialog* ui;
bool satelliteModified; bool satelliteModified;
void setAboutHtml(void); void setAboutHtml(void);
void updateGuiFromSettings(void); void updateGuiFromSettings(void);
QTimer* updateTimer; QTimer* updateTimer;
}; };
#endif // _SATELLITESDIALOG_HPP_ #endif // _SATELLITESDIALOG_HPP_
 End of changes. 13 change blocks. 
14 lines changed or deleted 16 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/