5 #include "settingsdialog.h"
6 #include "newgamedialog.h"
7 #include "highscoresdialog.h"
8 #include "puzzleboard.h"
16 class MainWindow : public QMainWindow
21 SettingsDialog *settings;
22 NewGameDialog *newgame;
23 HighScoresDialog *highscores;
25 QPointer<QGraphicsTextItem> intro;
31 qreal _currentScaleRatio;
32 void fixCurrentOrientation();
33 void unfixCurrentOrientation();
34 void applyViewportSettings();
37 bool event(QEvent *event);
38 void resizeEvent(QResizeEvent *event);
39 void closeEvent(QCloseEvent *event);
42 explicit MainWindow(QWidget *parent = 0);
46 void showHighScores();
51 void toggleFullscreen();
58 void updateElapsedTimeLabel();
59 void initializeGame();
64 #endif // MAINWINDOW_H