gwenhywfar 5.10.1
Macros | Functions
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 64 of file cgui.c.

Function Documentation

◆ GWEN_Gui_CGui__findProgress()

GWEN_GUI_CPROGRESS * GWEN_Gui_CGui__findProgress ( GWEN_GUI gui,
uint32_t  id 
)

Definition at line 602 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 111 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 100 of file cgui.c.

References GWEN_FREE_OBJECT.

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 563 of file cgui.c.

References GWEN_INHERIT_GETDATA.

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 * GWEN_Gui_CGui_new ( void  )

◆ GWEN_Gui_CGui_ProgressAdvance()

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

Definition at line 625 of file cgui.c.

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

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 692 of file cgui.c.

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

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 668 of file cgui.c.

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

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 648 of file cgui.c.

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

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 576 of file cgui.c.

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

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 537 of file cgui.c.

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

Referenced by GWEN_Gui_CGui_new().

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