gwenhywfar 5.14.1
cgui.c File Reference
#include "cgui_p.h"
#include "i18n_l.h"
#include <gwenhywfar/gui_be.h>
#include <gwenhywfar/inherit.h>
#include <gwenhywfar/debug.h>
#include <gwenhywfar/misc.h>
#include <gwenhywfar/db.h>
#include <gwenhywfar/gwentime.h>
#include <gwenhywfar/mdigest.h>
#include <gwenhywfar/text.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
Include dependency graph for cgui.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG
#define ICONV_CONST

Functions

GWEN_GUI_CPROGRESSGWEN_Gui_CGui__findProgress (GWEN_GUI *gui, uint32_t id)
int GWEN_Gui_CGui__input (GWEN_UNUSED GWEN_GUI *gui, uint32_t flags, char *buffer, int minLen, int maxLen, uint32_t guiid)
char GWEN_Gui_CGui__readCharFromStdin (int waitFor)
void GWENHYWFAR_CB GWEN_Gui_CGui_FreeData (GWEN_UNUSED void *bp, void *p)
void GWENHYWFAR_CB GWEN_Gui_CGui_HideBox (GWEN_GUI *gui, GWEN_UNUSED uint32_t id)
int GWENHYWFAR_CB GWEN_Gui_CGui_InputBox (GWEN_GUI *gui, uint32_t flags, const char *title, const char *text, char *buffer, int minLen, int maxLen, uint32_t guiid)
int GWENHYWFAR_CB GWEN_Gui_CGui_MessageBox (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)
GWEN_GUIGWEN_Gui_CGui_new (void)
int GWENHYWFAR_CB GWEN_Gui_CGui_ProgressAdvance (GWEN_GUI *gui, uint32_t id, uint64_t progress)
int GWENHYWFAR_CB GWEN_Gui_CGui_ProgressEnd (GWEN_GUI *gui, uint32_t id)
int GWENHYWFAR_CB GWEN_Gui_CGui_ProgressLog (GWEN_GUI *gui, uint32_t id, GWEN_LOGGER_LEVEL level, const char *text)
int GWENHYWFAR_CB GWEN_Gui_CGui_ProgressSetTotal (GWEN_GUI *gui, uint32_t id, uint64_t total)
uint32_t GWENHYWFAR_CB GWEN_Gui_CGui_ProgressStart (GWEN_GUI *gui, uint32_t progressFlags, const char *title, const char *text, uint64_t total, GWEN_UNUSED uint32_t guiid)
uint32_t GWENHYWFAR_CB GWEN_Gui_CGui_ShowBox (GWEN_GUI *gui, GWEN_UNUSED uint32_t flags, const char *title, const char *text, GWEN_UNUSED uint32_t guiid)

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 30 of file cgui.c.

◆ ICONV_CONST

#define ICONV_CONST

Definition at line 67 of file cgui.c.

Referenced by GWEN_Gui_CGui__input(), GWEN_Gui_ConvertString(), and GWEN_Text_ConvertCharset().

Function Documentation

◆ GWEN_Gui_CGui__findProgress()

GWEN_GUI_CPROGRESS * GWEN_Gui_CGui__findProgress ( GWEN_GUI * gui,
uint32_t id )

Definition at line 673 of file cgui.c.

References GWEN_Gui_CProgress_GetId(), and GWEN_INHERIT_GETDATA.

Referenced by GWEN_Gui_CGui_ProgressAdvance(), GWEN_Gui_CGui_ProgressEnd(), GWEN_Gui_CGui_ProgressLog(), and GWEN_Gui_CGui_ProgressSetTotal().

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

◆ GWEN_Gui_CGui__input()

int GWEN_Gui_CGui__input ( GWEN_UNUSED GWEN_GUI * gui,
uint32_t flags,
char * buffer,
int minLen,
int maxLen,
uint32_t guiid )

◆ GWEN_Gui_CGui__readCharFromStdin()

char GWEN_Gui_CGui__readCharFromStdin ( int waitFor)

Definition at line 114 of file cgui.c.

Referenced by GWEN_Gui_CGui_MessageBox().

Here is the caller graph for this function:

◆ GWEN_Gui_CGui_FreeData()

void GWENHYWFAR_CB GWEN_Gui_CGui_FreeData ( GWEN_UNUSED void * bp,
void * p )

Definition at line 103 of file cgui.c.

References GWEN_FREE_OBJECT, GWEN_UNUSED, and GWENHYWFAR_CB.

Referenced by GWEN_Gui_CGui_new().

Here is the caller graph for this function:

◆ GWEN_Gui_CGui_HideBox()

void GWENHYWFAR_CB GWEN_Gui_CGui_HideBox ( GWEN_GUI * gui,
GWEN_UNUSED uint32_t id )

Definition at line 634 of file cgui.c.

References GWEN_INHERIT_GETDATA, GWEN_UNUSED, and GWENHYWFAR_CB.

Referenced by GWEN_Gui_CGui_new().

Here is the caller graph for this function:

◆ GWEN_Gui_CGui_InputBox()

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

◆ GWEN_Gui_CGui_MessageBox()

int GWENHYWFAR_CB GWEN_Gui_CGui_MessageBox ( 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 )

◆ GWEN_Gui_CGui_new()

◆ GWEN_Gui_CGui_ProgressAdvance()

int GWENHYWFAR_CB GWEN_Gui_CGui_ProgressAdvance ( GWEN_GUI * gui,
uint32_t id,
uint64_t progress )

Definition at line 696 of file cgui.c.

References DBG_DEBUG, GWEN_Gui_CGui__findProgress(), GWEN_Gui_CProgress_Advance(), GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, and GWENHYWFAR_CB.

Referenced by GWEN_Gui_CGui_new().

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

◆ GWEN_Gui_CGui_ProgressEnd()

int GWENHYWFAR_CB GWEN_Gui_CGui_ProgressEnd ( GWEN_GUI * gui,
uint32_t id )

Definition at line 763 of file cgui.c.

References DBG_DEBUG, GWEN_Gui_CGui__findProgress(), GWEN_Gui_CProgress_End(), GWEN_Gui_CProgress_free(), GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, and GWENHYWFAR_CB.

Referenced by GWEN_Gui_CGui_new().

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

◆ GWEN_Gui_CGui_ProgressLog()

int GWENHYWFAR_CB GWEN_Gui_CGui_ProgressLog ( GWEN_GUI * gui,
uint32_t id,
GWEN_LOGGER_LEVEL level,
const char * text )

Definition at line 739 of file cgui.c.

References DBG_DEBUG, GWEN_Gui_CGui__findProgress(), GWEN_Gui_CProgress_Log(), GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, and GWENHYWFAR_CB.

Referenced by GWEN_Gui_CGui_new().

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

◆ GWEN_Gui_CGui_ProgressSetTotal()

int GWENHYWFAR_CB GWEN_Gui_CGui_ProgressSetTotal ( GWEN_GUI * gui,
uint32_t id,
uint64_t total )

Definition at line 719 of file cgui.c.

References DBG_DEBUG, GWEN_Gui_CGui__findProgress(), GWEN_Gui_CProgress_SetTotal(), GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, and GWENHYWFAR_CB.

Referenced by GWEN_Gui_CGui_new().

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

◆ GWEN_Gui_CGui_ProgressStart()

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

Definition at line 647 of file cgui.c.

References GWEN_Gui_CProgress_GetId(), GWEN_Gui_CProgress_new(), GWEN_INHERIT_GETDATA, GWEN_UNUSED, and GWENHYWFAR_CB.

Referenced by GWEN_Gui_CGui_new().

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

◆ GWEN_Gui_CGui_ShowBox()

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

Definition at line 608 of file cgui.c.

References GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_Gui_GetRawText(), GWEN_Gui_StdPrintf(), GWEN_INHERIT_GETDATA, GWEN_UNUSED, and GWENHYWFAR_CB.

Referenced by GWEN_Gui_CGui_new().

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