gwenhywfar 5.10.1
Functions
gui_dialogs.c File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void GWEN_Gui_DialogBased_CheckShow (GWEN_UNUSED GWEN_GUI *gui, GWEN_PROGRESS_DATA *pd)
 
void GWENHYWFAR_CB GWEN_Gui_DialogBased_HideBox (GWEN_GUI *gui, uint32_t id)
 
int GWENHYWFAR_CB GWEN_Gui_DialogBased_InputBox (GWEN_UNUSED GWEN_GUI *gui, uint32_t flags, const char *title, const char *text, char *buffer, int minLen, int maxLen, GWEN_UNUSED uint32_t guiid)
 
int GWENHYWFAR_CB GWEN_Gui_DialogBased_MessageBox (GWEN_UNUSED GWEN_GUI *gui, uint32_t flags, const char *title, const char *text, const char *b1, const char *b2, const char *b3, GWEN_UNUSED uint32_t guiid)
 
int GWENHYWFAR_CB GWEN_Gui_DialogBased_ProgressAdvance (GWEN_GUI *gui, uint32_t pid, uint64_t progress)
 
int GWENHYWFAR_CB GWEN_Gui_DialogBased_ProgressEnd (GWEN_GUI *gui, uint32_t pid)
 
int GWENHYWFAR_CB GWEN_Gui_DialogBased_ProgressLog (GWEN_GUI *gui, uint32_t pid, GWEN_LOGGER_LEVEL level, const char *text)
 
int GWENHYWFAR_CB GWEN_Gui_DialogBased_ProgressSetTotal (GWEN_GUI *gui, uint32_t pid, uint64_t total)
 
uint32_t GWENHYWFAR_CB GWEN_Gui_DialogBased_ProgressStart (GWEN_GUI *gui, uint32_t progressFlags, const char *title, const char *text, uint64_t total, uint32_t guiid)
 
uint32_t GWENHYWFAR_CB GWEN_Gui_DialogBased_ShowBox (GWEN_GUI *gui, uint32_t flags, const char *title, const char *text, uint32_t guiid)
 
int GWENHYWFAR_CB GWEN_Gui_ShowProgress (GWEN_PROGRESS_DATA *pd)
 
void GWEN_Gui_UseDialogs (GWEN_GUI *gui)
 

Function Documentation

◆ GWEN_Gui_DialogBased_CheckShow()

void GWEN_Gui_DialogBased_CheckShow ( GWEN_UNUSED GWEN_GUI gui,
GWEN_PROGRESS_DATA pd 
)

◆ GWEN_Gui_DialogBased_HideBox()

void GWENHYWFAR_CB GWEN_Gui_DialogBased_HideBox ( GWEN_GUI gui,
uint32_t  id 
)

Definition at line 557 of file gui_dialogs.c.

References DBG_INFO, GWEN_Dialog_free(), GWEN_Dialog_GetGuiId(), GWEN_Dialog_List_Del(), GWEN_Dialog_List_First(), GWEN_Dialog_List_Last(), GWEN_Dialog_List_Next(), GWEN_Gui_CloseDialog(), and GWEN_LOGDOMAIN.

Referenced by GWEN_Gui_UseDialogs().

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

◆ GWEN_Gui_DialogBased_InputBox()

int GWENHYWFAR_CB GWEN_Gui_DialogBased_InputBox ( GWEN_UNUSED GWEN_GUI gui,
uint32_t  flags,
const char *  title,
const char *  text,
char *  buffer,
int  minLen,
int  maxLen,
GWEN_UNUSED uint32_t  guiid 
)

Definition at line 455 of file gui_dialogs.c.

References DBG_ERROR, DBG_INFO, GWEN_Dialog_free(), GWEN_DlgInput_CopyInput(), GWEN_DlgInput_GetFlagAllowStore(), GWEN_DlgInput_new(), GWEN_ERROR_INTERNAL, GWEN_ERROR_USER_ABORTED, GWEN_Gui_ExecDialog(), GWEN_LOGDOMAIN, and NULL.

Referenced by GWEN_Gui_UseDialogs().

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

◆ GWEN_Gui_DialogBased_MessageBox()

int GWENHYWFAR_CB GWEN_Gui_DialogBased_MessageBox ( GWEN_UNUSED GWEN_GUI gui,
uint32_t  flags,
const char *  title,
const char *  text,
const char *  b1,
const char *  b2,
const char *  b3,
GWEN_UNUSED uint32_t  guiid 
)

Definition at line 497 of file gui_dialogs.c.

References DBG_ERROR, GWEN_Dialog_free(), GWEN_DlgMessage_GetResponse(), GWEN_DlgMessage_new(), GWEN_ERROR_INTERNAL, GWEN_Gui_ExecDialog(), GWEN_LOGDOMAIN, and NULL.

Referenced by GWEN_Gui_UseDialogs().

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

◆ GWEN_Gui_DialogBased_ProgressAdvance()

int GWENHYWFAR_CB GWEN_Gui_DialogBased_ProgressAdvance ( GWEN_GUI gui,
uint32_t  pid,
uint64_t  progress 
)

◆ GWEN_Gui_DialogBased_ProgressEnd()

int GWENHYWFAR_CB GWEN_Gui_DialogBased_ProgressEnd ( GWEN_GUI gui,
uint32_t  pid 
)

◆ GWEN_Gui_DialogBased_ProgressLog()

int GWENHYWFAR_CB GWEN_Gui_DialogBased_ProgressLog ( GWEN_GUI gui,
uint32_t  pid,
GWEN_LOGGER_LEVEL  level,
const char *  text 
)

◆ GWEN_Gui_DialogBased_ProgressSetTotal()

int GWENHYWFAR_CB GWEN_Gui_DialogBased_ProgressSetTotal ( GWEN_GUI gui,
uint32_t  pid,
uint64_t  total 
)

◆ GWEN_Gui_DialogBased_ProgressStart()

uint32_t GWENHYWFAR_CB GWEN_Gui_DialogBased_ProgressStart ( GWEN_GUI gui,
uint32_t  progressFlags,
const char *  title,
const char *  text,
uint64_t  total,
uint32_t  guiid 
)

Definition at line 135 of file gui_dialogs.c.

References DBG_DEBUG, DBG_WARN, GWEN_Gui_DialogBased_CheckShow(), GWEN_LOGDOMAIN, GWEN_ProgressData_new(), GWEN_ProgressData_SetPreviousId(), GWEN_ProgressData_Tree_FindProgressById(), and NULL.

Referenced by GWEN_Gui_UseDialogs().

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

◆ GWEN_Gui_DialogBased_ShowBox()

uint32_t GWENHYWFAR_CB GWEN_Gui_DialogBased_ShowBox ( GWEN_GUI gui,
uint32_t  flags,
const char *  title,
const char *  text,
uint32_t  guiid 
)

Definition at line 523 of file gui_dialogs.c.

References DBG_ERROR, DBG_INFO, GWEN_Dialog_free(), GWEN_Dialog_List_Add(), GWEN_Dialog_SetGuiId(), GWEN_DlgShowBox_new(), GWEN_Gui_OpenDialog(), GWEN_LOGDOMAIN, and NULL.

Referenced by GWEN_Gui_UseDialogs().

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

◆ GWEN_Gui_ShowProgress()

int GWENHYWFAR_CB GWEN_Gui_ShowProgress ( GWEN_PROGRESS_DATA pd)

◆ GWEN_Gui_UseDialogs()

void GWEN_Gui_UseDialogs ( GWEN_GUI gui)

The implementation should call this function if it implements the dialog framework. It sets the obsoleted callbacks to use the GWEN_DIALOG framework.

Definition at line 29 of file gui_dialogs.c.

References DBG_INFO, GWEN_Gui_DialogBased_HideBox(), GWEN_Gui_DialogBased_InputBox(), GWEN_Gui_DialogBased_MessageBox(), GWEN_Gui_DialogBased_ProgressAdvance(), GWEN_Gui_DialogBased_ProgressEnd(), GWEN_Gui_DialogBased_ProgressLog(), GWEN_Gui_DialogBased_ProgressSetTotal(), GWEN_Gui_DialogBased_ProgressStart(), GWEN_Gui_DialogBased_ShowBox(), and GWEN_LOGDOMAIN.

Referenced by Cocoa_Gui_new(), CppGui::CppGui(), FOX16_Gui::FOX16_Gui(), Gtk2_Gui_new(), Gtk3_Gui_new(), QT4_Gui::QT4_Gui(), and QT5_Gui::QT5_Gui().

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