StelMainWindow.hpp   StelMainWindow.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 _STELMAINWINDOW_HPP_ #ifndef _STELMAINWINDOW_HPP_
#define _STELMAINWINDOW_HPP_ #define _STELMAINWINDOW_HPP_
#include <QMainWindow> #include <QMainWindow>
#include <QSettings> #include <QSettings>
#include "StelApp.hpp"
//! @class StelMainWindow //! @class StelMainWindow
//! Reimplement a QMainWindow for Stellarium. //! Reimplement a QMainWindow for Stellarium.
//! It is the class in charge of switching betwee fullscreen or windowed mo de. //! It is the class in charge of switching betwee fullscreen or windowed mo de.
class StelMainWindow : public QMainWindow class StelMainWindow : public QMainWindow
{ {
Q_OBJECT Q_OBJECT
public: public:
StelMainWindow(QWidget* parent); StelMainWindow();
//! Get the StelMainWindow singleton instance. //! Get the StelMainWindow singleton instance.
//! @return the StelMainWindow singleton instance //! @return the StelMainWindow singleton instance
static StelMainWindow& getInstance() {Q_ASSERT(singleton); return *s ingleton;} static StelMainWindow& getInstance() {Q_ASSERT(singleton); return *s ingleton;}
//! Performs various initialization incluing the init of the StelMai //! Performs various initialization including the init of the StelMa
nGraphicsView instance. inGraphicsView instance.
void init(); void init(QSettings* settings);
void deinit();
//! Set the application title for the current language. //! Set the application title for the current language.
//! This is useful for e.g. chinese. //! This is useful for e.g. chinese.
void initTitleI18n(); void initTitleI18n();
public slots: public slots:
//! Alternate fullscreen mode/windowed mode if possible //! Alternate fullscreen mode/windowed mode if possible
void toggleFullScreen(); void toggleFullScreen();
//! Get whether fullscreen is activated or not //! Get whether fullscreen is activated or not
bool getFullScreen() const; bool getFullScreen() const;
//! Set whether fullscreen is activated or not //! Set whether fullscreen is activated or not
void setFullScreen(bool); void setFullScreen(bool);
protected: protected:
//! Reimplemented to delete openGL textures before the GLContext dis appears //! Reimplemented to delete openGL textures before the GLContext dis appears
virtual void closeEvent(QCloseEvent* event); virtual void closeEvent(QCloseEvent* event);
virtual void resizeEvent(QResizeEvent* event);
private: private:
//! The StelMainWindow singleton //! The StelMainWindow singleton
static StelMainWindow* singleton; static StelMainWindow* singleton;
//! Used to prevent resize events saving to the config file until af class StelMainGraphicsView* mainGraphicsView;
ter main init is complete.
bool initComplete;
}; };
#endif // _STELMAINWINDOW_HPP_ #endif // _STELMAINWINDOW_HPP_
 End of changes. 6 change blocks. 
12 lines changed or deleted 8 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/