summaryrefslogtreecommitdiff
path: root/src/gui/registerdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/registerdialog.cpp')
-rw-r--r--src/gui/registerdialog.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/gui/registerdialog.cpp b/src/gui/registerdialog.cpp
index 8710ad9c6..7beec0abc 100644
--- a/src/gui/registerdialog.cpp
+++ b/src/gui/registerdialog.cpp
@@ -45,6 +45,7 @@
#include "debug.h"
WrongDataNoticeListener::WrongDataNoticeListener():
+ ActionListener(),
mTarget(nullptr)
{
}
@@ -62,23 +63,25 @@ void WrongDataNoticeListener::action(const gcn::ActionEvent &event)
RegisterDialog::RegisterDialog(LoginData *const data):
Window(_("Register"), false, nullptr, "register.xml"),
+ ActionListener(),
+ KeyListener(),
+ mLoginData(data),
+ mUserField(new TextField(mLoginData->username)),
+ mPasswordField(new PasswordField(mLoginData->password)),
+ mConfirmField(new PasswordField),
mEmailField(nullptr),
+ mRegisterButton(new Button(_("Register"), "register", this)),
+ mCancelButton(new Button(_("Cancel"), "cancel", this)),
mMaleButton(nullptr),
mFemaleButton(nullptr),
mOtherButton(nullptr),
- mWrongDataNoticeListener(new WrongDataNoticeListener),
- mLoginData(data)
+ mWrongDataNoticeListener(new WrongDataNoticeListener)
{
int optionalActions = Net::getLoginHandler()->supportedOptionalActions();
gcn::Label *const userLabel = new Label(_("Name:"));
gcn::Label *const passwordLabel = new Label(_("Password:"));
gcn::Label *const confirmLabel = new Label(_("Confirm:"));
- mUserField = new TextField(mLoginData->username);
- mPasswordField = new PasswordField(mLoginData->password);
- mConfirmField = new PasswordField;
- mRegisterButton = new Button(_("Register"), "register", this);
- mCancelButton = new Button(_("Cancel"), "cancel", this);
ContainerPlacer placer;
placer = getPlacer(0, 0);