#include <guiPasswordChange.h>
Public Member Functions | |
GUIPasswordChange (gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, IMenuManager *menumgr, Client *client, ISimpleTextureSource *tsrc) | |
void | regenerateGui (v2u32 screensize) |
void | drawMenu () |
void | acceptInput () |
bool | processInput () |
bool | OnEvent (const SEvent &event) |
Public Member Functions inherited from GUIModalMenu | |
GUIModalMenu (gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, IMenuManager *menumgr, bool remap_dbl_click=true) | |
virtual | ~GUIModalMenu () |
void | allowFocusRemoval (bool allow) |
bool | canTakeFocus (gui::IGUIElement *e) |
void | draw () |
void | quitMenu () |
virtual bool | preprocessEvent (const SEvent &event) |
virtual bool | pausesGame () |
Protected Member Functions | |
std::wstring | getLabelByID (s32 id) |
std::string | getNameByID (s32 id) |
Protected Member Functions inherited from GUIModalMenu | |
ScalingInfo | getScalingInfo (v2u32 screensize, v2u32 base_size) |
Private Attributes | |
Client * | m_client |
std::wstring | m_oldpass = L"" |
std::wstring | m_newpass = L"" |
std::wstring | m_newpass_confirm = L"" |
ISimpleTextureSource * | m_tsrc |
Additional Inherited Members | |
Protected Attributes inherited from GUIModalMenu | |
v2s32 | m_pointer |
v2s32 | m_old_pointer |
v2u32 | m_screensize_old |
float | m_gui_scale |
bool | m_second_touch = false |
GUIPasswordChange::GUIPasswordChange | ( | gui::IGUIEnvironment * | env, |
gui::IGUIElement * | parent, | ||
s32 | id, | ||
IMenuManager * | menumgr, | ||
Client * | client, | ||
ISimpleTextureSource * | tsrc ) |
void GUIPasswordChange::acceptInput | ( | ) |
References ID_newPassword1, ID_newPassword2, ID_oldPassword, m_newpass, m_newpass_confirm, and m_oldpass.
Referenced by OnEvent(), and regenerateGui().
|
virtual |
Implements GUIModalMenu.
|
inlineprotectedvirtual |
Implements GUIModalMenu.
|
protectedvirtual |
Implements GUIModalMenu.
References ID_newPassword1, ID_newPassword2, and ID_oldPassword.
|
virtual |
Reimplemented from GUIModalMenu.
References acceptInput(), GUIModalMenu::canTakeFocus(), ID_cancel, ID_change, ID_newPassword1, ID_newPassword2, ID_oldPassword, infostream, processInput(), and GUIModalMenu::quitMenu().
bool GUIPasswordChange::processInput | ( | ) |
References ID_message, m_client, m_newpass, m_newpass_confirm, m_oldpass, Client::sendChangePassword(), and wide_to_utf8().
Referenced by OnEvent().
|
virtual |
Implements GUIModalMenu.
References acceptInput(), irr::gui::StaticText::add(), GUIButton::addButton(), GUIModalMenu::getScalingInfo(), ID_cancel, ID_change, ID_message, ID_newPassword1, ID_newPassword2, ID_oldPassword, m_newpass, m_newpass_confirm, m_oldpass, m_tsrc, GUIModalMenu::ScalingInfo::rect, GUIModalMenu::ScalingInfo::scale, and wstrgettext().
|
private |
Referenced by processInput().
|
private |
Referenced by acceptInput(), processInput(), and regenerateGui().
|
private |
Referenced by acceptInput(), processInput(), and regenerateGui().
|
private |
Referenced by acceptInput(), processInput(), and regenerateGui().
|
private |
Referenced by regenerateGui().