TheChess
|
00001 /* 00002 * thechess, chess game web application written in C++ and based on Wt 00003 * Copyright (C) 2010 Boris Nagaev 00004 * 00005 * thechess is licensed under the GNU GPL Version 2. 00006 * Other versions of the GPL do not apply. 00007 * See the LICENSE file for terms of use. 00008 */ 00009 00010 #ifndef THECHESS_WIDGETS_LOGINWIDGET_H_ 00011 #define THECHESS_WIDGETS_LOGINWIDGET_H_ 00012 00013 #include <Wt/WContainerWidget> 00014 00015 namespace Wt { 00016 class WPushButton; 00017 class WLineEdit; 00018 class WTable; 00019 } 00020 00021 namespace thechess { 00022 namespace widgets { 00023 00024 class LoginWidget : public Wt::WContainerWidget { 00025 public: 00026 LoginWidget(Wt::WContainerWidget *parent=0); 00027 00028 private: 00029 Wt::WTable* table_; 00030 Wt::WPushButton* button_; 00031 Wt::WLineEdit* username_; 00032 Wt::WLineEdit* password_; 00033 Wt::WText* error_; 00034 00035 void try_(); 00036 }; 00037 00038 } 00039 } 00040 00041 #endif