diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-24 20:19:19 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-24 20:19:19 (GMT) |
| commit | 97b35bc47059315d4138c8e0827842d2c03de152 (patch) | |
| tree | feaf7a8c018982ba9d7ca1b8e6e15294abfdfc84 /src/login/LoginView.h | |
| parent | 04488081d3fa0cd3dfb2939e5d902bc894df150d (diff) | |
| download | powder-97b35bc47059315d4138c8e0827842d2c03de152.zip powder-97b35bc47059315d4138c8e0827842d2c03de152.tar.gz | |
Various
Diffstat (limited to 'src/login/LoginView.h')
| -rw-r--r-- | src/login/LoginView.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/login/LoginView.h b/src/login/LoginView.h new file mode 100644 index 0000000..2646e99 --- /dev/null +++ b/src/login/LoginView.h @@ -0,0 +1,37 @@ +/* + * LoginView.h + * + * Created on: Jan 24, 2012 + * Author: Simon + */ + +#ifndef LOGINVIEW_H_ +#define LOGINVIEW_H_ + +#include "interface/Button.h" +#include "interface/Window.h" +#include "interface/Label.h" +#include "interface/Textbox.h" +#include "LoginController.h" +#include "LoginModel.h" + +class LoginController; +class LoginMode; +class LoginView: public ui::Window { + LoginController * c; + ui::Button * loginButton; + ui::Button * cancelButton; + ui::Label * titleLabel; + ui::Label * infoLabel; + ui::Textbox * usernameField; + ui::Textbox * passwordField; +public: + class LoginAction; + LoginView(); + void AttachController(LoginController * c_) { c = c_; } + void NotifyStatusChanged(LoginModel * sender); + virtual void OnDraw(); + virtual ~LoginView(); +}; + +#endif /* LOGINVIEW_H_ */ |
