10 #include <Wt/WComboBox> 11 #include <Wt/WPushButton> 13 #include <boost/lexical_cast.hpp> 24 const int MaxGuesses = 9;
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));
57 WString title(tr(
"hangman.guessTheWord"));
86 WString status(tr(
"hangman.youHang"));
std::wstring RandomWord(Dictionary dictionary)