Wt examples 3.1.10
/build/buildd/witty-3.1.10/examples/hangman/HangmanGame.h
Go to the documentation of this file.
00001 /* this is a -*-C++-*- file
00002  * Copyright (C) 2005 Wim Dumon
00003  *
00004  * See the LICENSE file for terms of use.
00005  */
00006 
00007 #ifndef HANGMANGAME_H_
00008 #define HANGMANGAME_H_
00009 
00010 #include <Wt/WTable>
00011 
00012 namespace Wt {
00013   class WStackedWidget;
00014   class WText;
00015 }
00016 
00017 using namespace Wt;
00018 
00019 #include "Dictionary.h"
00020 
00021 class HangmanWidget;
00022 class HighScoresWidget;
00023 class LoginWidget;
00024 
00025 class HangmanGame : public WTable
00026 {
00027    public:
00028       HangmanGame(WContainerWidget *parent);
00029 
00030    private:
00031       WStackedWidget   *MainStack;
00032       LoginWidget      *Login;
00033       HangmanWidget    *Game;
00034       HighScoresWidget *Scores;
00035       WText            *BackToGameText;
00036       WText            *ScoresText;
00037 
00038       // Show the initial screen
00039       void doLogin();
00040 
00041       void play(std::wstring user, Dictionary dictionary);
00042       void showGame();
00043       void showHighScores();
00044 };
00045 
00046 #endif

Generated on Wed Jul 27 2011 for the C++ Web Toolkit (Wt) by doxygen 1.7.4