Wt examples  3.2.1
/home/koen/project/wt/public-git/wt/examples/hangman/LettersWidget.h
Go to the documentation of this file.
00001 // This may look like C code, but it's really -*- C++ -*-
00002 /* 
00003  * Copyright (C) 2011 Emweb bvba, Heverlee, Belgium
00004  *
00005  * See the LICENSE file for terms of use.
00006  */
00007 
00008 #ifndef LETTERS_WIDGET_H_
00009 #define LETTERS_WIDGET_H_
00010 
00011 #include <Wt/WCompositeWidget>
00012 
00013 namespace Wt {
00014   class WContainerWidget;
00015   class WPushButton;
00016   class WTable;
00017 }
00018 
00019 class LettersWidget : public Wt::WCompositeWidget
00020 {
00021 public:
00022   LettersWidget(Wt::WContainerWidget *parent = 0);
00023 
00024   void reset();
00025 
00026   Wt::Signal<char>& letterPushed() { return letterPushed_; } 
00027 
00028 private:
00029   Wt::WTable                     *impl_;
00030   std::vector<Wt::WPushButton *>  letterButtons_;
00031 
00032   Wt::Signal<char>                letterPushed_;
00033 
00034   void processButton(Wt::WPushButton *b);
00035 };
00036 
00037 #endif //LETTERS_WIDGET_H_

Generated on Fri Mar 30 2012 for the C++ Web Toolkit (Wt) by doxygen 1.7.5.1