#include <HangmanWidget.h>
Definition at line 20 of file HangmanWidget.h.
§ HangmanWidget()
HangmanWidget::HangmanWidget |
( |
const std::string & |
name, |
|
|
Wt::WContainerWidget * |
parent = 0 |
|
) |
| |
Definition at line 27 of file HangmanWidget.C.
28 : WContainerWidget(parent),
32 setContentAlignment(AlignCenter);
34 title_ =
new WText(tr(
"hangman.readyToPlay"),
this);
44 language_->addItem(tr(
"hangman.englishWords").arg(18957));
45 language_->addItem(tr(
"hangman.dutchWords").arg(1688));
§ newGame()
void HangmanWidget::newGame |
( |
| ) |
|
|
private |
Definition at line 55 of file HangmanWidget.C.
57 WString title(tr(
"hangman.guessTheWord"));
std::wstring RandomWord(Dictionary dictionary)
§ registerGuess()
void HangmanWidget::registerGuess |
( |
char |
c | ) |
|
|
private |
Definition at line 74 of file HangmanWidget.C.
86 WString status(tr(
"hangman.youHang"));
§ scoreUpdated()
Wt::Signal<int>& HangmanWidget::scoreUpdated |
( |
| ) |
|
|
inline |
§ badGuesses_
int HangmanWidget::badGuesses_ |
|
private |
§ images_
§ language_
Wt::WComboBox* HangmanWidget::language_ |
|
private |
§ letters_
§ name_
std::string HangmanWidget::name_ |
|
private |
§ newGameButton_
Wt::WPushButton* HangmanWidget::newGameButton_ |
|
private |
§ scoreUpdated_
Wt::Signal<int> HangmanWidget::scoreUpdated_ |
|
private |
§ statusText_
Wt::WText* HangmanWidget::statusText_ |
|
private |
§ title_
Wt::WText* HangmanWidget::title_ |
|
private |
§ word_
The documentation for this class was generated from the following files: