Wt examples
3.3.0
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
build
buildd
witty-3.3.0
examples
hangman
LettersWidget.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 LETTERS_WIDGET_H_
9
#define LETTERS_WIDGET_H_
10
11
#include <Wt/WCompositeWidget>
12
13
namespace
Wt {
14
class
WContainerWidget;
15
class
WPushButton;
16
class
WTable;
17
}
18
19
class
LettersWidget
:
public
Wt::WCompositeWidget
20
{
21
public
:
22
LettersWidget
(
Wt::WContainerWidget
*parent = 0);
23
24
void
reset
();
25
26
Wt::Signal<char>
&
letterPushed
() {
return
letterPushed_
; }
27
28
private
:
29
Wt::WTable
*
impl_
;
30
std::vector<Wt::WPushButton *>
letterButtons_
;
31
32
Wt::Signal<char>
letterPushed_
;
33
34
void
processButton
(
Wt::WPushButton
*b);
35
};
36
37
#endif //LETTERS_WIDGET_H_
Generated on Fri May 31 2013 for
the C++ Web Toolkit (Wt)
by
1.8.3.1