Minetest  5.4.0
GUIConfirmRegistration Class Reference

#include <guiConfirmRegistration.h>

+ Inheritance diagram for GUIConfirmRegistration:
+ Collaboration diagram for GUIConfirmRegistration:

Public Member Functions

 GUIConfirmRegistration (gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, IMenuManager *menumgr, Client *client, const std::string &playername, const std::string &password, bool *aborted, ISimpleTextureSource *tsrc)
 
 ~GUIConfirmRegistration ()
 
void removeChildren ()
 
void regenerateGui (v2u32 screensize)
 
void drawMenu ()
 
void closeMenu (bool goNext)
 
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 ()
 
void removeChildren ()
 
virtual bool preprocessEvent (const SEvent &event)
 
virtual bool pausesGame ()
 

Private Member Functions

std::wstring getLabelByID (s32 id)
 
std::string getNameByID (s32 id)
 

Private Attributes

Clientm_client = nullptr
 
const std::string & m_playername
 
const std::string & m_password
 
bool * m_aborted = nullptr
 
std::wstring m_pass_confirm = L""
 
ISimpleTextureSourcem_tsrc
 

Additional Inherited Members

- Protected Member Functions inherited from GUIModalMenu
bool DoubleClickDetection (const SEvent &event)
 check if event is part of a double click More...
 
- Protected Attributes inherited from GUIModalMenu
v2s32 m_pointer
 
v2s32 m_old_pointer
 
v2u32 m_screensize_old
 
float m_gui_scale
 

Constructor & Destructor Documentation

◆ GUIConfirmRegistration()

GUIConfirmRegistration::GUIConfirmRegistration ( gui::IGUIEnvironment *  env,
gui::IGUIElement *  parent,
s32  id,
IMenuManager menumgr,
Client client,
const std::string &  playername,
const std::string &  password,
bool *  aborted,
ISimpleTextureSource tsrc 
)

◆ ~GUIConfirmRegistration()

GUIConfirmRegistration::~GUIConfirmRegistration ( )

References removeChildren().

+ Here is the call graph for this function:

Member Function Documentation

◆ acceptInput()

void GUIConfirmRegistration::acceptInput ( )

References ID_confirmPassword, and m_pass_confirm.

Referenced by OnEvent(), and regenerateGui().

+ Here is the caller graph for this function:

◆ closeMenu()

void GUIConfirmRegistration::closeMenu ( bool  goNext)

References Client::confirmRegistration(), infostream, m_aborted, m_client, and GUIModalMenu::quitMenu().

Referenced by OnEvent().

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

◆ drawMenu()

void GUIConfirmRegistration::drawMenu ( )
virtual

Implements GUIModalMenu.

◆ getLabelByID()

std::wstring GUIConfirmRegistration::getLabelByID ( s32  id)
inlineprivatevirtual

Implements GUIModalMenu.

◆ getNameByID()

std::string GUIConfirmRegistration::getNameByID ( s32  id)
inlineprivatevirtual

Implements GUIModalMenu.

◆ OnEvent()

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

Reimplemented from GUIModalMenu.

References acceptInput(), GUIModalMenu::canTakeFocus(), closeMenu(), ID_cancel, ID_confirm, ID_confirmPassword, infostream, and processInput().

+ Here is the call graph for this function:

◆ processInput()

bool GUIConfirmRegistration::processInput ( )

References ID_message, m_pass_confirm, m_password, and utf8_to_wide().

Referenced by OnEvent().

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

◆ regenerateGui()

void GUIConfirmRegistration::regenerateGui ( v2u32  screensize)
virtual

Implements GUIModalMenu.

References acceptInput(), GUIButton::addButton(), porting::getDisplayDensity(), ID_cancel, ID_confirm, ID_confirmPassword, ID_intotext, ID_message, GUIModalMenu::m_gui_scale, m_pass_confirm, m_playername, m_tsrc, porting::mt_snprintf(), removeChildren(), strgettext(), utf8_to_wide_c(), and wgettext().

+ Here is the call graph for this function:

◆ removeChildren()

void GUIConfirmRegistration::removeChildren ( )

Referenced by ~GUIConfirmRegistration(), and regenerateGui().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_aborted

bool* GUIConfirmRegistration::m_aborted = nullptr
private

Referenced by closeMenu().

◆ m_client

Client* GUIConfirmRegistration::m_client = nullptr
private

Referenced by closeMenu().

◆ m_pass_confirm

std::wstring GUIConfirmRegistration::m_pass_confirm = L""
private

◆ m_password

const std::string& GUIConfirmRegistration::m_password
private

Referenced by processInput().

◆ m_playername

const std::string& GUIConfirmRegistration::m_playername
private

Referenced by regenerateGui().

◆ m_tsrc

ISimpleTextureSource* GUIConfirmRegistration::m_tsrc
private

Referenced by regenerateGui().


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