save game query on exit if game is incomplete
[impuzzle] / src / mainwindow.h
index f42c97b..2ce4607 100644 (file)
 
 class QAction;
 class QMenu;
+class SettingsDialog;
 
 class MainWindow : public QMainWindow
 {
     Q_OBJECT
 
 public:
-    MainWindow(QWidget *parent = 0);
+    static MainWindow *instance();
 
 public slots:
     void newGameClicked();
+
+private slots:
     void importClicked();
+    void aboutClicked();
+    void gameEnded();
+    void enableSaving();
+
+protected:
+    void closeEvent(QCloseEvent *event);
 
 private:
+    MainWindow(QWidget *parent = 0);
     void createActions();
     void createMenu();
 
+    static MainWindow *instance_;
     QAction *newGameAction_;
     QAction *importAction_;
+    QAction *aboutAction_;
+    QAction *saveAction_;
 
     QMenu *menu_;
+    QMenu *helpMenu_;
+
+    SettingsDialog *settingsDialog_;
 };
 #endif