diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-18 13:40:58 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-18 13:40:58 +0000 |
commit | 55372882029946d8193ca4414091b65abd64a6ae (patch) | |
tree | 61395d66a6de7a308979acde1551447a85b17025 /src/gui/login.h | |
parent | 6f44dd9fd801bf279034f5cebb5dc83c8a504799 (diff) | |
download | mana-55372882029946d8193ca4414091b65abd64a6ae.tar.gz mana-55372882029946d8193ca4414091b65abd64a6ae.tar.bz2 mana-55372882029946d8193ca4414091b65abd64a6ae.tar.xz mana-55372882029946d8193ca4414091b65abd64a6ae.zip |
Made login dialog and server select dialog into classes.
Diffstat (limited to 'src/gui/login.h')
-rw-r--r-- | src/gui/login.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/src/gui/login.h b/src/gui/login.h index 7cafb47f..725e578c 100644 --- a/src/gui/login.h +++ b/src/gui/login.h @@ -30,19 +30,40 @@ #include "../log.h" #include "../net/network.h" #include "gui.h" +#include "window.h" #include <allegro.h> #ifdef WIN32 #include <winalleg.h> #endif /** - * The action listener for the login dialog. + * The login dialog. * * \ingroup GUI */ -class LoginActionListener : public gcn::ActionListener { +class LoginDialog : public Window, public gcn::ActionListener { public: + LoginDialog(); + ~LoginDialog(); + + /** + * Initializes the dialog. Should be called after adding it to the GUI. + */ + void init(); + + /** + * Called when receiving actions from the widgets. + */ void action(const std::string& eventId); + + private: + gcn::Label *userLabel; + gcn::Label *passLabel; + gcn::TextField *userField; + gcn::TextField *passField; + gcn::CheckBox *keepCheck; + gcn::Button *okButton; + gcn::Button *cancelButton; }; void login(); |