From da61b7e9cb40e75ad0d74cc64853bf1b08d0a031 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Thu, 1 Oct 2009 12:48:28 -0600 Subject: Finish merging registration dialog --- src/gui/register.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/gui/register.h') diff --git a/src/gui/register.h b/src/gui/register.h index 729b21c3..8fe3d9fb 100644 --- a/src/gui/register.h +++ b/src/gui/register.h @@ -80,6 +80,13 @@ class RegisterDialog : public Window, public gcn::ActionListener, */ void keyPressed(gcn::KeyEvent &keyEvent); + /** + * Tell the dialog to show an email field. Value stored in the passed + * string pointer. Default email from pointer. Passing NULL disables + * the feature. + */ + static void setEmail(std::string *email); + /** * Tell the dialog to show a gender selection. Value stored in the * passed Gender pointer. Default Gender from pointer. Passing NULL @@ -97,9 +104,7 @@ class RegisterDialog : public Window, public gcn::ActionListener, gcn::TextField *mUserField; gcn::TextField *mPasswordField; gcn::TextField *mConfirmField; -#ifdef TMWSERV_SUPPORT gcn::TextField *mEmailField; -#endif gcn::Button *mRegisterButton; gcn::Button *mCancelButton; @@ -110,6 +115,7 @@ class RegisterDialog : public Window, public gcn::ActionListener, LoginData *mLoginData; + static std::string *useEmail; static Gender *useGender; }; -- cgit v1.2.3-70-g09d2