X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=classes%2Fclockswidget.h;h=88f41a65ffec41f5af974acee17fc375b7d506c3;hb=89725f528257bb5c943d3df8bf3ca7fa0de91bc4;hp=72dd641da040ae9aa9ef3a7d62dfa9f282c703b5;hpb=ca6853daf22068621981987588b9d670f03a5264;p=chessclock diff --git a/classes/clockswidget.h b/classes/clockswidget.h index 72dd641..88f41a6 100644 --- a/classes/clockswidget.h +++ b/classes/clockswidget.h @@ -28,7 +28,7 @@ class QHBoxLayout; class QVBoxLayout; class QLabel; -class WelcomeScreenWidget; +class TurnInformation; class ChessClock; @@ -37,40 +37,34 @@ class ChessClock; @author Arto Hyvättinen @date 2010-08-14 - Central widget of Chess Clock + Central widget of Chess Clock. + Needed to create new ClocksWidget to + every new game. */ class ClocksWidget : public QWidget { Q_OBJECT public: - ClocksWidget(QWidget *parent = 0); - - /*! Set clocks and paint them. - - */ - void setClocks(ChessClock* white, ChessClock* black); + ClocksWidget(ChessClock* white, ChessClock* black, QWidget *parent = 0); protected: -// void mouseReleaseEvent(QMouseEvent *event); + void mouseReleaseEvent(QMouseEvent *event); - void initEmptyScreen(); signals: - void setupTouch(); + void TurnFinished(TurnInformation* turnInfo); public slots: + void pause(); protected: ChessClock* white_; ChessClock* black_; - QHBoxLayout* clockLayout_; - QLabel* pauseLabel_; QLabel* welcomeLabel_; - WelcomeScreenWidget* welcomeScreen_; enum GameStatus { Stopped /*! Not running */, @@ -78,7 +72,6 @@ protected: BlackTurn, WhitePause, BlackPause, - NoClocks, /*! Clocks not set ! */ Welcome };