51 gcn::Label *passwordLabel =
new Label(
_(
"Password:"));
56 const int width = 210;
57 const int height = 80;
60 userLabel->setPosition(5, 5);
61 userLabel->setWidth(width - 5);
63 68, userLabel->getY() + userLabel->getHeight() + 7);
94 if (event.getId() ==
"cancel")
98 else if (event.getId() ==
"unregister")
101 Log::info(
"UnregisterDialog::unregistered, Username is %s",
111 if (password.length() < min)
115 "characters long."), min);
118 else if (password.length() > max - 1)
122 "%d characters long."), max);
static void setState(State state)
virtual unsigned int getMaxPasswordLength() const
virtual unsigned int getMinPasswordLength() const
UnRegisterDialog(LoginData *loginData)
gcn::Button * mUnRegisterButton
WrongDataNoticeListener * mWrongDataNoticeListener
gcn::Button * mCancelButton
~UnRegisterDialog() override
void action(const gcn::ActionEvent &event) override
Called when receiving actions from the widgets.
gcn::TextField * mPasswordField
void center()
Positions the window in the center of it's parent.
virtual void setVisible(bool visible)
Overloads window setVisible by Guichan to allow sticky window handling.
void setContentSize(int width, int height)
Sets the size of this window.
Listener used while dealing with wrong data.
void setTarget(gcn::TextField *textField)
@ STATE_UNREGISTER_ATTEMPT
void info(const char *log_text,...) LOG_PRINTF_ATTR
LoginHandler * getLoginHandler()
std::string strprintf(char const *format,...)
A safe version of sprintf that returns a std::string of the result.