ConfigurationDialog.hpp   ConfigurationDialog.hpp 
skipping to change at line 24 skipping to change at line 24
* *
* 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 _CONFIGURATIONDIALOG_HPP_ #ifndef _CONFIGURATIONDIALOG_HPP_
#define _CONFIGURATIONDIALOG_HPP_ #define _CONFIGURATIONDIALOG_HPP_
#include <QObject> #include <QObject>
#include <QProgressBar>
#include <QNetworkReply>
#include <QFile>
#include "StelDialog.hpp" #include "StelDialog.hpp"
#include "StelApp.hpp"
#include "StelMainGraphicsView.hpp"
class Ui_configurationDialogForm; class Ui_configurationDialogForm;
class QSettings;
class QDataStream;
class QNetworkAccessManager;
class StelDownloadMgr;
class ConfigurationDialog : public StelDialog class ConfigurationDialog : public StelDialog
{ {
Q_OBJECT; Q_OBJECT
public: public:
ConfigurationDialog(); ConfigurationDialog();
virtual ~ConfigurationDialog(); virtual ~ConfigurationDialog();
void languageChanged(); void languageChanged();
//! Notify that the application style changed //! Notify that the application style changed
void styleChanged(); void styleChanged();
protected: protected:
enum UpdatesState { ShowAvailable, Checking, NoUpdates, Downloading,
Finished, Verifying, UpdatesError, MoveError,
DownloadError, ChecksumError };
//! Initialize the dialog widgets and connect the signals/slots //! Initialize the dialog widgets and connect the signals/slots
virtual void createDialogContent(); virtual void createDialogContent();
//! Set the content of the "Star catalog updates" box
void setUpdatesState(ConfigurationDialog::UpdatesState);
void checkUpdates(void);
Ui_configurationDialogForm* ui; Ui_configurationDialogForm* ui;
QSettings* starSettings;
QSettings* updatesData;
StelDownloadMgr* downloadMgr;
QString downloadName;
QString updatesFileName;
QStringList newCatalogs;
QString starsDir;
int downloaded;
private slots: private slots:
void setNoSelectedInfo(void); void setNoSelectedInfo(void);
void setAllSelectedInfo(void); void setAllSelectedInfo(void);
void setBriefSelectedInfo(void); void setBriefSelectedInfo(void);
void languageChanged(const QString& languageCode); void languageChanged(const QString& languageCode);
void setStartupTimeMode(void); void setStartupTimeMode(void);
void setDiskViewport(bool); void setDiskViewport(bool);
void setSphericMirror(bool); void setSphericMirror(bool);
void cursorTimeOutChanged(); void cursorTimeOutChanged();
void cursorTimeOutChanged(double d) {cursorTimeOutChanged();} void cursorTimeOutChanged(double d) {cursorTimeOutChanged();}
void downloadStars(void);
void cancelDownload(void);
void retryDownload(void);
void badChecksum(void);
void downloadFinished(void);
void downloadVerifying(void);
void downloadError(QNetworkReply::NetworkError, QString);
void updatesDownloadFinished(void);
void updatesDownloadError(QNetworkReply::NetworkError, QString);
//! Update the labels displaying the current default state //! Update the labels displaying the current default state
void updateConfigLabels(); void updateConfigLabels();
//! open a file dialog to browse for a directory to save screenshots
to
//! if a directory is selected (i.e. dialog not cancelled), current
//! value will be changed, but not saved to config file.
void browseForScreenshotDir();
void selectScreenshotDir(const QString& dir);
//! Save the current viewing option including landscape, location an d sky culture //! Save the current viewing option including landscape, location an d sky culture
//! This doesn't include the current viewing direction, time and FOV //! This doesn't include the current viewing direction, time and FOV
since those have specific controls since those
//! have specific controls
void saveCurrentViewOptions(); void saveCurrentViewOptions();
//! Reset all stellarium options. //! Reset all stellarium options.
//! This basically replaces the config.ini by the default one //! This basically replaces the config.ini by the default one
void resetAllOptions(); void setDefaultViewOptions();
//! The selection of script in the script list has changed
//! Updates the script information panel
void scriptSelectionChanged(const QString& s);
//! Run the currently selected script from the script list.
void runScriptClicked(void);
//! Stop the currently running script.
void stopScriptClicked(void);
void aScriptIsRunning(void);
void aScriptHasStopped(void);
void populateScriptsList(void);
void setFixedDateTimeToCurrent(void);
}; };
#endif // _CONFIGURATIONDIALOG_HPP_ #endif // _CONFIGURATIONDIALOG_HPP_
 End of changes. 11 change blocks. 
4 lines changed or deleted 62 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/