summaryrefslogtreecommitdiff
path: root/src/gui/register.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-10-01 12:48:28 -0600
committerJared Adams <jaxad0127@gmail.com>2009-10-01 12:48:28 -0600
commitda61b7e9cb40e75ad0d74cc64853bf1b08d0a031 (patch)
treea1d5157ac530b42ce4ca2c316fcaa419cc23c01c /src/gui/register.h
parent83fd36204202b4b5cca7e6cdb37c025919f32f08 (diff)
downloadmana-client-da61b7e9cb40e75ad0d74cc64853bf1b08d0a031.tar.gz
mana-client-da61b7e9cb40e75ad0d74cc64853bf1b08d0a031.tar.bz2
mana-client-da61b7e9cb40e75ad0d74cc64853bf1b08d0a031.tar.xz
mana-client-da61b7e9cb40e75ad0d74cc64853bf1b08d0a031.zip
Finish merging registration dialog
Diffstat (limited to 'src/gui/register.h')
-rw-r--r--src/gui/register.h10
1 files changed, 8 insertions, 2 deletions
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
@@ -81,6 +81,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
* disables the feature.
@@ -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;
};