/home/koen/project/wt/cvs/wt/examples/hangman/LoginWidget.h

Go to the documentation of this file.
00001 /* this is a -*-C++-*- file
00002  * Copyright (C) 2005 Wim Dumon
00003  *
00004  * See the LICENSE file for terms of use.
00005  */
00006 
00007 #ifndef LOGINWIDGET_H_
00008 #define LOGINWIDGET_H_
00009 
00010 #include <WContainerWidget>
00011 
00012 #include "Dictionary.h"
00013 
00014 namespace Wt {
00015   class WLineEdit;
00016   class WText;
00017   class WComboBox;
00018 }
00019 
00020 using namespace Wt;
00021 
00022 class LoginWidget : public WContainerWidget
00023 {
00024    public:
00025       LoginWidget(WContainerWidget *parent = 0);
00026 
00027       Wt::Signal<std::wstring, Dictionary> loginSuccessful;
00028 
00029    private slots:
00030       void checkCredentials();
00031       void startPlaying();
00032 
00033    private:
00034       WText     *IntroText;
00035       WLineEdit *Username;
00036       WLineEdit *Password;
00037       WComboBox *Language;
00038 
00039       std::wstring User;
00040       Dictionary   Dict;
00041 
00042       void confirmLogin(const std::wstring text);
00043 };
00044 
00045 #endif

Generated on Mon Apr 14 15:15:04 2008 for Wt by doxygen 1.5.3