Wt examples  3.3.1
HangmanWidget.h
Go to the documentation of this file.
1 // This may look like C code, but it's really -*- C++ -*-
2 /*
3  * Copyright (C) 2011 Emweb bvba, Heverlee, Belgium
4  *
5  * See the LICENSE file for terms of use.
6  */
7 
8 #ifndef HANGMAN_WIDGET_H_
9 #define HANGMAN_WIDGET_H_
10 
11 #include <vector>
12 
13 #include <Wt/WContainerWidget>
14 
15 #include "Dictionary.h"
16 
17 class Session;
18 class WordWidget;
19 class ImagesWidget;
20 class LettersWidget;
21 
23 {
24 public:
25  HangmanWidget(const std::string &name, Wt::WContainerWidget *parent = 0);
26 
28 
29 private:
31 
35 
39 
41 
42  std::string name_;
44 
46 
47  void registerGuess(char c);
48 
49  void newGame();
50 };
51 
52 #endif //HANGMAN_WIDGET_H_
Wt::Signal< int > scoreUpdated_
Definition: HangmanWidget.h:40
ImagesWidget * images_
Definition: HangmanWidget.h:33
HangmanWidget(const std::string &name, Wt::WContainerWidget *parent=0)
Definition: HangmanWidget.C:26
Wt::WComboBox * language_
Definition: HangmanWidget.h:37
WordWidget * word_
Definition: HangmanWidget.h:32
Wt::WPushButton * newGameButton_
Definition: HangmanWidget.h:38
Dictionary
Definition: Dictionary.h:13
LettersWidget * letters_
Definition: HangmanWidget.h:34
std::string name_
Definition: HangmanWidget.h:42
Wt::WText * statusText_
Definition: HangmanWidget.h:36
Wt::WText * title_
Definition: HangmanWidget.h:30
Wt::Signal< int > & scoreUpdated()
Definition: HangmanWidget.h:27
Dictionary dictionary_
Definition: HangmanWidget.h:43
void registerGuess(char c)
Definition: HangmanWidget.C:73

Generated on Wed Jun 11 2014 for the C++ Web Toolkit (Wt) by doxygen 1.8.7