diff options
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(); |