X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=chessclockwindow.h;h=752f90922850325c894d50c4eb2b844bdad4208d;hb=e617caac6375b8f8ca22b2377da70eb2868228e2;hp=82bd63d0d419d2ce119a3b5ec4232891f8fa8641;hpb=ca6853daf22068621981987588b9d670f03a5264;p=chessclock diff --git a/chessclockwindow.h b/chessclockwindow.h index 82bd63d..752f909 100644 --- a/chessclockwindow.h +++ b/chessclockwindow.h @@ -25,6 +25,10 @@ #include 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