Minetest  5.4.0
GUIFileSelectMenu Class Reference

#include <guiPathSelectMenu.h>

+ Inheritance diagram for GUIFileSelectMenu:
+ Collaboration diagram for GUIFileSelectMenu:

Public Member Functions

 GUIFileSelectMenu (gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, IMenuManager *menumgr, const std::string &title, const std::string &formid, bool is_file_select)
 
 ~GUIFileSelectMenu ()
 
void regenerateGui (v2u32 screensize)
 
void drawMenu ()
 
bool OnEvent (const SEvent &event)
 
void setTextDest (TextDest *dest)
 
- 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 ()
 

Protected Member Functions

std::wstring getLabelByID (s32 id)
 
std::string getNameByID (s32 id)
 
- Protected Member Functions inherited from GUIModalMenu
bool DoubleClickDetection (const SEvent &event)
 check if event is part of a double click More...
 

Private Member Functions

void acceptInput ()
 

Private Attributes

std::wstring m_title
 
bool m_accepted = false
 
gui::IGUIFileOpenDialog * m_fileOpenDialog = nullptr
 
TextDestm_text_dst = nullptr
 
std::string m_formname
 
bool m_file_select_dialog
 

Additional Inherited Members

- Protected Attributes inherited from GUIModalMenu
v2s32 m_pointer
 
v2s32 m_old_pointer
 
v2u32 m_screensize_old
 
float m_gui_scale
 

Constructor & Destructor Documentation

◆ GUIFileSelectMenu()

GUIFileSelectMenu::GUIFileSelectMenu ( gui::IGUIEnvironment *  env,
gui::IGUIElement *  parent,
s32  id,
IMenuManager menumgr,
const std::string &  title,
const std::string &  formid,
bool  is_file_select 
)

◆ ~GUIFileSelectMenu()

GUIFileSelectMenu::~GUIFileSelectMenu ( )

References GUIModalMenu::removeChildren().

+ Here is the call graph for this function:

Member Function Documentation

◆ acceptInput()

void GUIFileSelectMenu::acceptInput ( )
private

References TextDest::gotText(), m_accepted, m_file_select_dialog, m_fileOpenDialog, m_formname, m_text_dst, GUIModalMenu::quitMenu(), and wide_to_utf8().

Referenced by OnEvent().

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

◆ drawMenu()

void GUIFileSelectMenu::drawMenu ( )
virtual

Implements GUIModalMenu.

◆ getLabelByID()

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

Implements GUIModalMenu.

◆ getNameByID()

std::string GUIFileSelectMenu::getNameByID ( s32  id)
inlineprotectedvirtual

Implements GUIModalMenu.

◆ OnEvent()

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

Reimplemented from GUIModalMenu.

References acceptInput(), m_accepted, and m_file_select_dialog.

+ Here is the call graph for this function:

◆ regenerateGui()

void GUIFileSelectMenu::regenerateGui ( v2u32  screensize)
virtual

Implements GUIModalMenu.

References m_fileOpenDialog, GUIModalMenu::m_gui_scale, m_title, and GUIModalMenu::removeChildren().

+ Here is the call graph for this function:

◆ setTextDest()

void GUIFileSelectMenu::setTextDest ( TextDest dest)
inline

References m_text_dst.

Referenced by ModApiMainMenu::l_show_path_select_dialog().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_accepted

bool GUIFileSelectMenu::m_accepted = false
private

Referenced by acceptInput(), and OnEvent().

◆ m_file_select_dialog

bool GUIFileSelectMenu::m_file_select_dialog
private

Referenced by acceptInput(), and OnEvent().

◆ m_fileOpenDialog

gui::IGUIFileOpenDialog* GUIFileSelectMenu::m_fileOpenDialog = nullptr
private

Referenced by acceptInput(), and regenerateGui().

◆ m_formname

std::string GUIFileSelectMenu::m_formname
private

Referenced by acceptInput().

◆ m_text_dst

TextDest* GUIFileSelectMenu::m_text_dst = nullptr
private

Referenced by acceptInput(), and setTextDest().

◆ m_title

std::wstring GUIFileSelectMenu::m_title
private

Referenced by regenerateGui().


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