StelMainView.hpp   StelMainView.hpp 
skipping to change at line 54 skipping to change at line 54
class QSettings; class QSettings;
//! @class StelMainView //! @class StelMainView
//! Reimplement a QGraphicsView for Stellarium. //! Reimplement a QGraphicsView for Stellarium.
//! It is the class creating the singleton GL Widget, the main StelApp inst ance as well as the main GUI. //! It is the class creating the singleton GL Widget, the main StelApp inst ance as well as the main GUI.
class StelMainView : public QGraphicsView class StelMainView : public QGraphicsView
{ {
friend class StelGuiItem; friend class StelGuiItem;
friend class StelSkyItem; friend class StelSkyItem;
Q_OBJECT Q_OBJECT
Q_PROPERTY(bool fullScreen READ isFullScreen WRITE setFullScreen) Q_PROPERTY(bool fullScreen READ isFullScreen WRITE setFullScreen NOT IFY fullScreenChanged)
public: public:
StelMainView(QWidget* parent = NULL); StelMainView(QWidget* parent = NULL);
virtual ~StelMainView(); virtual ~StelMainView();
//! Start the main initialization of Stellarium //! Start the main initialization of Stellarium
void init(class QSettings* conf); void init(class QSettings* conf);
void deinit(); void deinit();
//! Set the application title for the current language. //! Set the application title for the current language.
skipping to change at line 82 skipping to change at line 82
void deinitGL(); void deinitGL();
//! Return focus to the sky item. To be used when we close a dialog . //! Return focus to the sky item. To be used when we close a dialog .
void focusSky(); void focusSky();
//! Return the parent gui widget, this should be used as parent to a ll //! Return the parent gui widget, this should be used as parent to a ll
//! the StelDialog instances. //! the StelDialog instances.
QGraphicsWidget* getGuiWidget() const {return guiItem;} QGraphicsWidget* getGuiWidget() const {return guiItem;}
//! Return mouse position coordinates //! Return mouse position coordinates
QPoint getMousePos(); QPoint getMousePos();
public slots: public slots:
//! Set whether fullscreen is activated or not //! Set whether fullscreen is activated or not
void setFullScreen(bool); void setFullScreen(bool);
//! Set focus on the sky
void setFocusOnSky();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Specific methods // Specific methods
//! Save a screen shot. //! Save a screen shot.
//! The format of the file, and hence the filename extension //! The format of the file, and hence the filename extension
//! depends on the architecture and build type. //! depends on the architecture and build type.
//! @arg filePrefix changes the beginning of the file name //! @arg filePrefix changes the beginning of the file name
//! @arg saveDir changes the directory where the screenshot is saved //! @arg saveDir changes the directory where the screenshot is saved
//! If saveDir is "" then StelFileMgr::getScreenshotDir() will be us ed //! If saveDir is "" then StelFileMgr::getScreenshotDir() will be us ed
//! @arg overwrite if true, @arg filePrefix is used as filename, and existing file will be overwritten. //! @arg overwrite if true, @arg filePrefix is used as filename, and existing file will be overwritten.
void saveScreenShot(const QString& filePrefix="stellarium-", const Q String& saveDir="", const bool overwrite=false); void saveScreenShot(const QString& filePrefix="stellarium-", const Q String& saveDir="", const bool overwrite=false);
skipping to change at line 156 skipping to change at line 159
//! Update the mouse pointer state and schedule next redraw. //! Update the mouse pointer state and schedule next redraw.
//! This method is called automatically by Qt. //! This method is called automatically by Qt.
virtual void drawBackground(QPainter* painter, const QRectF &rect); virtual void drawBackground(QPainter* painter, const QRectF &rect);
signals: signals:
//! emitted when saveScreenShot is requested with saveScreenShot(). //! emitted when saveScreenShot is requested with saveScreenShot().
//! doScreenshot() does the actual work (it has to do it in the main //! doScreenshot() does the actual work (it has to do it in the main
//! thread, where as saveScreenShot() might get called from another one. //! thread, where as saveScreenShot() might get called from another one.
void screenshotRequested(void); void screenshotRequested(void);
void fullScreenChanged(bool b);
private slots: private slots:
// Do the actual screenshot generation in the main thread with this method. // Do the actual screenshot generation in the main thread with this method.
void doScreenshot(void); void doScreenshot(void);
void minFpsChanged(); void minFpsChanged();
void updateNightModeProperty(); void updateNightModeProperty();
private: private:
//! Start the display loop //! Start the display loop
void startMainLoop(); void startMainLoop();
 End of changes. 4 change blocks. 
2 lines changed or deleted 6 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/