Updated the web pages
[chessclock] / chessclockwindow.h
index 82bd63d..752f909 100644 (file)
 #include <QtGui/QMainWindow>
 
 class ClocksWidget;
+class StartWidget;
+class TimeControl;
+class QStackedWidget;
+class TurnInformation;
 
 class ChessClockWindow : public QMainWindow
 {
@@ -34,9 +38,30 @@ public:
     ChessClockWindow(QWidget *parent = 0);
     ~ChessClockWindow();
 
+public slots:
+    void startGame( TimeControl* timecontrol);
+    void pause();
+    void newGame();
+    /*! Visit ChessClock web page */
+    void visitWeb();
+    void about();
+    void aboutQt();
+    /*! Delete turn information to avoid memory leaks
+
+      @todo Save turn log and function to show it.
+    @since 1.1.2 */
+    void dontEatMemory(TurnInformation* turnInformation);
+
+
+protected:
+    void initTimeControls();
+    /*! Pauses the game if the application main window is not active e.g. the app is minimized*/
+    bool eventFilter(QObject *obj, QEvent *event);
 
 protected:
     ClocksWidget*   clocks_;
+    StartWidget* start_;
+    QStackedWidget* stack_;
 };
 
 #endif // CHESSCLOCKWINDOW_H