ConfigurationDialog.hpp   ConfigurationDialog.hpp 
skipping to change at line 28 skipping to change at line 28
*/ */
#ifndef _CONFIGURATIONDIALOG_HPP_ #ifndef _CONFIGURATIONDIALOG_HPP_
#define _CONFIGURATIONDIALOG_HPP_ #define _CONFIGURATIONDIALOG_HPP_
#include <QObject> #include <QObject>
#include <QProgressBar> #include <QProgressBar>
#include <QNetworkReply> #include <QNetworkReply>
#include <QFile> #include <QFile>
#include "StelDialog.hpp" #include "StelDialog.hpp"
#include "StelApp.hpp"
#include "StelMainGraphicsView.hpp"
class Ui_configurationDialogForm; class Ui_configurationDialogForm;
class QSettings; class QSettings;
class QDataStream; class QDataStream;
class QNetworkAccessManager; class QNetworkAccessManager;
class StelDownloadMgr; class QListWidgetItem;
class StelGui;
class ConfigurationDialog : public StelDialog class ConfigurationDialog : public StelDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
ConfigurationDialog(); ConfigurationDialog(StelGui* agui);
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();
Ui_configurationDialogForm* ui;
private:
//! Contains the parsed content of the starsConfig.json file
QVariantMap nextStarCatalogToDownload;
//! Set the content of the "Star catalog updates" box //! Set the content of the "Star catalog updates" box
void setUpdatesState(ConfigurationDialog::UpdatesState); void refreshStarCatalogButton();
void checkUpdates(void); QNetworkReply* starCatalogDownloadReply;
QFile* currentDownloadFile;
Ui_configurationDialogForm* ui; QProgressBar* progressBar;
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 newStarCatalogData();
void cancelDownload(void); void downloadStars();
void retryDownload(void); void cancelDownload();
void badChecksum(void); void downloadFinished();
void downloadFinished(void); void downloadError(QNetworkReply::NetworkError);
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 //! open a file dialog to browse for a directory to save screenshots to
//! if a directory is selected (i.e. dialog not cancelled), current //! if a directory is selected (i.e. dialog not cancelled), current
//! value will be changed, but not saved to config file. //! value will be changed, but not saved to config file.
void browseForScreenshotDir(); void browseForScreenshotDir();
void selectScreenshotDir(const QString& dir); 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 since those //! This doesn't include the current viewing direction, time and FOV since those
//! have specific controls //! 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 setDefaultViewOptions(); void setDefaultViewOptions();
void populatePluginsList(void);
void pluginsSelectionChanged(const QString&);
void pluginConfigureCurrentSelection(void);
void loadAtStartupChanged(int);
//! The selection of script in the script list has changed //! The selection of script in the script list has changed
//! Updates the script information panel //! Updates the script information panel
void scriptSelectionChanged(const QString& s); void scriptSelectionChanged(const QString& s);
//! Run the currently selected script from the script list. //! Run the currently selected script from the script list.
void runScriptClicked(void); void runScriptClicked(void);
//! Stop the currently running script. //! Stop the currently running script.
void stopScriptClicked(void); void stopScriptClicked(void);
void aScriptIsRunning(void); void aScriptIsRunning(void);
void aScriptHasStopped(void); void aScriptHasStopped(void);
void populateScriptsList(void); void populateScriptsList(void);
void setFixedDateTimeToCurrent(void); void setFixedDateTimeToCurrent(void);
void changePage(QListWidgetItem *current, QListWidgetItem *previous)
;
private:
StelGui* gui;
int savedProjectionType;
}; };
#endif // _CONFIGURATIONDIALOG_HPP_ #endif // _CONFIGURATIONDIALOG_HPP_
 End of changes. 11 change blocks. 
29 lines changed or deleted 29 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/