X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=www%2Fhtml%2Fclockswidget_8h_source.html;fp=www%2Fhtml%2Fclockswidget_8h_source.html;h=9e3a5b7ebdc0dd22adbe93fee11ab7822c768822;hb=152fa893f072373a21c125340ce9072a73503a54;hp=516b51dd809439b8bf4d4d567232235b50da062c;hpb=8e60d556e00dbb7e86f2425605cf1b0a688a69e9;p=chessclock diff --git a/www/html/clockswidget_8h_source.html b/www/html/clockswidget_8h_source.html index 516b51d..9e3a5b7 100644 --- a/www/html/clockswidget_8h_source.html +++ b/www/html/clockswidget_8h_source.html @@ -73,51 +73,59 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); 00029 class QVBoxLayout; 00030 class QLabel; 00031 class TurnInformation; -00032 -00033 class ChessClock; +00032 class QToolButton; +00033 class ScreenLitKeeper; 00034 -00045 class ClocksWidget : public QWidget -00046 { -00047 Q_OBJECT -00048 public: -00049 ClocksWidget(ChessClock* white, ChessClock* black, QWidget *parent = 0); -00050 ~ClocksWidget(); -00051 bool isPlayStarted() { return (status_!=Welcome); } -00052 -00053 protected: -00054 void mouseReleaseEvent(QMouseEvent *event); -00055 -00056 -00057 signals: -00058 void TurnFinished(TurnInformation* turnInfo); -00059 void ClickedWhenStopped(); -00060 -00061 public slots: -00063 void pause(); -00065 void stopPlay(); -00066 -00067 protected: -00068 ChessClock* white_; -00069 ChessClock* black_; -00070 -00071 QLabel* pauseLabel_; -00072 QLabel* welcomeLabel_; +00035 class ChessClock; +00036 +00047 class ClocksWidget : public QWidget +00048 { +00049 Q_OBJECT +00050 public: +00051 ClocksWidget(ChessClock* white, ChessClock* black, QWidget *parent = 0); +00052 ~ClocksWidget(); +00053 bool isPlayStarted() { return (status_!=Welcome); } +00054 +00055 protected: +00056 void mouseReleaseEvent(QMouseEvent *event); +00057 bool eventFilter(QObject *obj, QEvent *event); +00058 +00059 +00060 signals: +00061 void TurnFinished(TurnInformation* turnInfo); +00062 void ClickedWhenStopped(); +00063 +00064 public slots: +00066 void pause(); +00068 void stopPlay(); +00069 +00070 protected: +00071 ChessClock* white_; +00072 ChessClock* black_; 00073 -00074 enum GameStatus { -00075 Stopped , -00076 WhiteTurn, -00077 BlackTurn, -00078 WhitePause, -00079 BlackPause, -00080 Welcome -00081 }; -00082 -00083 GameStatus status_; -00084 QTime delayTimer_; -00086 static int const CLICKDELAY = 500 ; -00090 }; -00091 -00092 #endif // CLOCKSWIDGET_H +00074 QLabel* pauseLabel_; +00075 QLabel* welcomeLabel_; +00076 QToolButton* pauseButton_; +00077 ScreenLitKeeper* keeper_; +00078 +00079 enum GameStatus { +00080 Stopped , +00081 WhiteTurn, +00082 BlackTurn, +00083 WhitePause, +00084 BlackPause, +00085 Welcome +00086 }; +00087 +00088 GameStatus status_; +00089 QTime delayTimer_; +00091 int recentX; +00092 int recentY; +00093 +00094 static int const CLICKDELAY = 1500 ; +00098 }; +00099 +00100 #endif // CLOCKSWIDGET_H
-
Generated on Thu Aug 19 21:04:20 2010 for Chess Clock by  +
Generated on Mon Sep 27 18:30:33 2010 for Chess Clock by  doxygen 1.6.3