Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
GUIPasswordChange Class Reference

#include <guiPasswordChange.h>

+ Inheritance diagram for GUIPasswordChange:
+ Collaboration diagram for GUIPasswordChange:

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

Clientm_client
 
std::wstring m_oldpass = L""
 
std::wstring m_newpass = L""
 
std::wstring m_newpass_confirm = L""
 
ISimpleTextureSourcem_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
 

Constructor & Destructor Documentation

◆ GUIPasswordChange()

GUIPasswordChange::GUIPasswordChange ( gui::IGUIEnvironment * env,
gui::IGUIElement * parent,
s32 id,
IMenuManager * menumgr,
Client * client,
ISimpleTextureSource * tsrc )

Member Function Documentation

◆ acceptInput()

void GUIPasswordChange::acceptInput ( )

References ID_newPassword1, ID_newPassword2, ID_oldPassword, m_newpass, m_newpass_confirm, and m_oldpass.

Referenced by OnEvent(), and regenerateGui().

+ Here is the caller graph for this function:

◆ drawMenu()

void GUIPasswordChange::drawMenu ( )
virtual

Implements GUIModalMenu.

◆ getLabelByID()

std::wstring GUIPasswordChange::getLabelByID ( s32 id)
inlineprotectedvirtual

Implements GUIModalMenu.

◆ getNameByID()

std::string GUIPasswordChange::getNameByID ( s32 id)
protectedvirtual

◆ OnEvent()

bool GUIPasswordChange::OnEvent ( const SEvent & event)
virtual

Reimplemented from GUIModalMenu.

References acceptInput(), GUIModalMenu::canTakeFocus(), ID_cancel, ID_change, ID_newPassword1, ID_newPassword2, ID_oldPassword, infostream, processInput(), and GUIModalMenu::quitMenu().

+ Here is the call graph for this function:

◆ processInput()

bool GUIPasswordChange::processInput ( )

References ID_message, m_client, m_newpass, m_newpass_confirm, m_oldpass, Client::sendChangePassword(), and wide_to_utf8().

Referenced by OnEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ regenerateGui()

void GUIPasswordChange::regenerateGui ( v2u32 screensize)
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().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_client

Client* GUIPasswordChange::m_client
private

Referenced by processInput().

◆ m_newpass

std::wstring GUIPasswordChange::m_newpass = L""
private

◆ m_newpass_confirm

std::wstring GUIPasswordChange::m_newpass_confirm = L""
private

◆ m_oldpass

std::wstring GUIPasswordChange::m_oldpass = L""
private

◆ m_tsrc

ISimpleTextureSource* GUIPasswordChange::m_tsrc
private

Referenced by regenerateGui().


The documentation for this class was generated from the following files: