00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _STELMAINWINDOW_HPP_
00021 #define _STELMAINWINDOW_HPP_
00022
00023 #include <QMainWindow>
00024
00025 #include <QSettings>
00026 #include "StelApp.hpp"
00027
00031 class StelMainWindow : public QMainWindow
00032 {
00033 Q_OBJECT
00034 public:
00035 StelMainWindow(QWidget* parent);
00036
00039 static StelMainWindow& getInstance() {Q_ASSERT(singleton); return *singleton;}
00040
00042 void init();
00043
00046 void initTitleI18n();
00047
00048 public slots:
00050 void toggleFullScreen();
00051
00053 bool getFullScreen() const;
00055 void setFullScreen(bool);
00056
00057 protected:
00059 virtual void closeEvent(QCloseEvent* event);
00060
00061 virtual void resizeEvent(QResizeEvent* event);
00062
00063 private:
00065 static StelMainWindow* singleton;
00066
00068 bool initComplete;
00069 };
00070
00071 #endif // _STELMAINWINDOW_HPP_