gwenhywfar  5.4.1
Macros | Functions | Variables
gui.c File Reference
#include "gui_p.h"
#include "dlg_input_l.h"
#include "dlg_message_l.h"
#include "dlg_progress_l.h"
#include "dlg_showbox_l.h"
#include "i18n_l.h"
#include <gwenhywfar/debug.h>
#include <gwenhywfar/dialog_be.h>
#include <gwenhywfar/mdigest.h>
#include <gwenhywfar/text.h>
#include <gwenhywfar/url.h>
#include <gwenhywfar/syncio_socket.h>
#include <gwenhywfar/syncio_buffered.h>
#include <gwenhywfar/syncio_tls.h>
#include <gwenhywfar/syncio_http.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
Include dependency graph for gui.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG
 
#define ICONV_CONST
 

Functions

static int GWEN_Gui__HashPair (const char *token, const char *pin, GWEN_BUFFER *buf)
 
void GWEN_Gui_AddFlags (GWEN_GUI *gui, uint32_t fl)
 
void GWEN_Gui_Attach (GWEN_GUI *gui)
 
int GWEN_Gui_CheckCert (const GWEN_SSLCERTDESCR *cd, GWEN_SYNCIO *sio, uint32_t guiid)
 
int GWENHYWFAR_CB GWEN_Gui_CheckCertBuiltIn (GWEN_UNUSED GWEN_GUI *gui, const GWEN_SSLCERTDESCR *cd, GWEN_UNUSED GWEN_SYNCIO *sio, uint32_t guiid)
 
int GWEN_Gui_CloseDialog (GWEN_DIALOG *dlg)
 
int GWEN_Gui_ConvertFromUtf8 (const GWEN_GUI *gui, const char *text, int len, GWEN_BUFFER *tbuf)
 
int GWEN_Gui_ConvertString (const char *text, size_t len, GWEN_BUFFER *tbuf, const char *fromCs, const char *toCs)
 
int GWEN_Gui_ExecDialog (GWEN_DIALOG *dlg, uint32_t guiid)
 
GWEN_SYNCIOGWEN_Gui_ExtendSyncIo (const char *url, const char *defaultProto, int defaultPort, GWEN_SYNCIO *baseSio)
 
void GWEN_Gui_free (GWEN_GUI *gui)
 
const char * GWEN_Gui_GetCharSet (const GWEN_GUI *gui)
 
int GWEN_Gui_GetFileName (const char *caption, GWEN_GUI_FILENAME_TYPE fnt, uint32_t flags, const char *patterns, GWEN_BUFFER *pathBuffer, uint32_t guiid)
 
uint32_t GWEN_Gui_GetFlags (const GWEN_GUI *gui)
 
GWEN_GUIGWEN_Gui_GetGui (void)
 
GWEN_LOGGER_LEVEL GWEN_Gui_GetMinProgressLogLevel (const GWEN_GUI *gui)
 
const char * GWEN_Gui_GetName (void)
 
GWEN_PASSWD_STOREGWEN_Gui_GetPasswdStore (const GWEN_GUI *gui)
 
int GWEN_Gui_GetPassword (uint32_t flags, const char *token, const char *title, const char *text, char *buffer, int minLen, int maxLen, GWEN_GUI_PASSWORD_METHOD methodId, GWEN_DB_NODE *methodParams, uint32_t guiid)
 
GWEN_DB_NODEGWEN_Gui_GetPasswordDb (const GWEN_GUI *gui)
 
void GWEN_Gui_GetRawText (GWEN_UNUSED const GWEN_GUI *gui, const char *text, GWEN_BUFFER *tbuf)
 
int GWEN_Gui_GetSyncIo (const char *url, const char *defaultProto, int defaultPort, GWEN_SYNCIO **pSio)
 
void GWEN_Gui_HideBox (uint32_t id)
 
int GWEN_Gui_InputBox (uint32_t flags, const char *title, const char *text, char *buffer, int minLen, int maxLen, uint32_t guiid)
 
void GWEN_Gui_Internal_CheckShow (GWEN_UNUSED GWEN_GUI *gui, GWEN_PROGRESS_DATA *pd)
 
static int GWENHYWFAR_CB GWEN_Gui_Internal_GetPassword (GWEN_GUI *gui, uint32_t flags, const char *token, const char *title, const char *text, char *buffer, int minLen, int maxLen, GWEN_UNUSED GWEN_GUI_PASSWORD_METHOD methodId, GWEN_UNUSED GWEN_DB_NODE *methodParams, uint32_t guiid)
 
int GWENHYWFAR_CB GWEN_Gui_Internal_GetSyncIo (GWEN_UNUSED GWEN_GUI *gui, const char *url, const char *defaultProto, int defaultPort, GWEN_SYNCIO **pSio)
 
void GWEN_Gui_Internal_HideBox (GWEN_GUI *gui, uint32_t id)
 
int GWEN_Gui_Internal_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 GWEN_Gui_Internal_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 GWEN_Gui_Internal_ProgressAdvance (GWEN_GUI *gui, uint32_t pid, uint64_t progress)
 
int GWEN_Gui_Internal_ProgressEnd (GWEN_GUI *gui, uint32_t pid)
 
int GWEN_Gui_Internal_ProgressLog (GWEN_GUI *gui, uint32_t pid, GWEN_LOGGER_LEVEL level, const char *text)
 
int GWEN_Gui_Internal_ProgressSetTotal (GWEN_GUI *gui, uint32_t pid, uint64_t total)
 
uint32_t GWEN_Gui_Internal_ProgressStart (GWEN_GUI *gui, uint32_t progressFlags, const char *title, const char *text, uint64_t total, uint32_t guiid)
 
static int GWENHYWFAR_CB GWEN_Gui_Internal_SetPasswordStatus (GWEN_GUI *gui, const char *token, const char *pin, GWEN_GUI_PASSWORD_STATUS status, GWEN_UNUSED uint32_t guiid)
 
uint32_t GWEN_Gui_Internal_ShowBox (GWEN_GUI *gui, uint32_t flags, const char *title, const char *text, uint32_t guiid)
 
int GWEN_Gui_KeyDataFromText_OpenSSL (const char *text, unsigned char *buffer, unsigned int bufLength)
 
int GWEN_Gui_LogHook (const char *logDomain, GWEN_LOGGER_LEVEL priority, const char *s)
 
int GWEN_Gui_MessageBox (uint32_t flags, const char *title, const char *text, const char *b1, const char *b2, const char *b3, uint32_t guiid)
 
GWEN_GUIGWEN_Gui_new (void)
 
int GWEN_Gui_OpenDialog (GWEN_DIALOG *dlg, uint32_t guiid)
 
int GWEN_Gui_Print (const char *docTitle, const char *docType, const char *descr, const char *text, uint32_t guiid)
 
int GWEN_Gui_ProgressAdvance (uint32_t id, uint32_t progress)
 
int GWEN_Gui_ProgressEnd (uint32_t id)
 
int GWEN_Gui_ProgressLog (uint32_t id, GWEN_LOGGER_LEVEL level, const char *text)
 
int GWEN_Gui_ProgressLog2 (uint32_t id, GWEN_LOGGER_LEVEL level, const char *fmt,...)
 
int GWEN_Gui_ProgressSetTotal (uint32_t id, uint64_t total)
 
uint32_t GWEN_Gui_ProgressStart (uint32_t progressFlags, const char *title, const char *text, uint64_t total, uint32_t guiid)
 
int GWEN_Gui_ReadDialogPrefs (const char *groupName, const char *altName, GWEN_DB_NODE **pDb)
 
int GWEN_Gui_ReadString (const char *text, GWEN_BUFFER *tbuf)
 
int GWEN_Gui_RunDialog (GWEN_DIALOG *dlg, int untilEnd)
 
void GWEN_Gui_SetCharSet (GWEN_GUI *gui, const char *s)
 
GWEN_GUI_CHECKCERT_FN GWEN_Gui_SetCheckCertFn (GWEN_GUI *gui, GWEN_GUI_CHECKCERT_FN f)
 
GWEN_GUI_CLOSE_DIALOG_FN GWEN_Gui_SetCloseDialogFn (GWEN_GUI *gui, GWEN_GUI_CLOSE_DIALOG_FN f)
 
GWEN_GUI_EXEC_DIALOG_FN GWEN_Gui_SetExecDialogFn (GWEN_GUI *gui, GWEN_GUI_EXEC_DIALOG_FN f)
 
void GWEN_Gui_SetFlags (GWEN_GUI *gui, uint32_t fl)
 
GWEN_GUI_GET_FILENAME_FN GWEN_Gui_SetGetFileNameFn (GWEN_GUI *gui, GWEN_GUI_GET_FILENAME_FN f)
 
GWEN_GUI_GETPASSWORD_FN GWEN_Gui_SetGetPasswordFn (GWEN_GUI *gui, GWEN_GUI_GETPASSWORD_FN f)
 
GWEN_GUI_GETSYNCIO_FN GWEN_Gui_SetGetSyncIoFn (GWEN_GUI *gui, GWEN_GUI_GETSYNCIO_FN f)
 
void GWEN_Gui_SetGui (GWEN_GUI *gui)
 
GWEN_GUI_HIDEBOX_FN GWEN_Gui_SetHideBoxFn (GWEN_GUI *gui, GWEN_GUI_HIDEBOX_FN f)
 
GWEN_GUI_INPUTBOX_FN GWEN_Gui_SetInputBoxFn (GWEN_GUI *gui, GWEN_GUI_INPUTBOX_FN f)
 
GWEN_GUI_KEYDATAFROMTEXT_OPENSSL_FN GWEN_Gui_SetKeyDataFromTextOpenSslFn (GWEN_GUI *gui, GWEN_GUI_KEYDATAFROMTEXT_OPENSSL_FN f)
 
GWEN_GUI_LOG_HOOK_FN GWEN_Gui_SetLogHookFn (GWEN_GUI *gui, GWEN_GUI_LOG_HOOK_FN f)
 
GWEN_GUI_MESSAGEBOX_FN GWEN_Gui_SetMessageBoxFn (GWEN_GUI *gui, GWEN_GUI_MESSAGEBOX_FN f)
 
void GWEN_Gui_SetMinProgressLogLevel (GWEN_GUI *gui, GWEN_LOGGER_LEVEL ll)
 
void GWEN_Gui_SetName (GWEN_GUI *gui, const char *name)
 
GWEN_GUI_OPEN_DIALOG_FN GWEN_Gui_SetOpenDialogFn (GWEN_GUI *gui, GWEN_GUI_OPEN_DIALOG_FN f)
 
void GWEN_Gui_SetPasswdStore (GWEN_GUI *gui, GWEN_PASSWD_STORE *sto)
 
void GWEN_Gui_SetPasswordDb (GWEN_GUI *gui, GWEN_DB_NODE *dbPasswords, int persistent)
 
int GWEN_Gui_SetPasswordStatus (const char *token, const char *pin, GWEN_GUI_PASSWORD_STATUS status, uint32_t guiid)
 
GWEN_GUI_PRINT_FN GWEN_Gui_SetPrintFn (GWEN_GUI *gui, GWEN_GUI_PRINT_FN f)
 
GWEN_GUI_PROGRESS_ADVANCE_FN GWEN_Gui_SetProgressAdvanceFn (GWEN_GUI *gui, GWEN_GUI_PROGRESS_ADVANCE_FN f)
 
GWEN_GUI_PROGRESS_END_FN GWEN_Gui_SetProgressEndFn (GWEN_GUI *gui, GWEN_GUI_PROGRESS_END_FN f)
 
GWEN_GUI_PROGRESS_LOG_FN GWEN_Gui_SetProgressLogFn (GWEN_GUI *gui, GWEN_GUI_PROGRESS_LOG_FN f)
 
GWEN_GUI_PROGRESS_SETTOTAL_FN GWEN_Gui_SetProgressSetTotalFn (GWEN_GUI *gui, GWEN_GUI_PROGRESS_SETTOTAL_FN f)
 
GWEN_GUI_PROGRESS_START_FN GWEN_Gui_SetProgressStartFn (GWEN_GUI *gui, GWEN_GUI_PROGRESS_START_FN f)
 
GWEN_GUI_READ_DIALOG_PREFS_FN GWEN_Gui_SetReadDialogPrefsFn (GWEN_GUI *gui, GWEN_GUI_READ_DIALOG_PREFS_FN f)
 
GWEN_GUI_RUN_DIALOG_FN GWEN_Gui_SetRunDialogFn (GWEN_GUI *gui, GWEN_GUI_RUN_DIALOG_FN f)
 
GWEN_GUI_SETPASSWORDSTATUS_FN GWEN_Gui_SetSetPasswordStatusFn (GWEN_GUI *gui, GWEN_GUI_SETPASSWORDSTATUS_FN f)
 
GWEN_GUI_SHOWBOX_FN GWEN_Gui_SetShowBoxFn (GWEN_GUI *gui, GWEN_GUI_SHOWBOX_FN f)
 
GWEN_GUI_WAITFORSOCKETS_FN GWEN_Gui_SetWaitForSocketsFn (GWEN_GUI *gui, GWEN_GUI_WAITFORSOCKETS_FN f)
 
GWEN_GUI_WRITE_DIALOG_PREFS_FN GWEN_Gui_SetWriteDialogPrefsFn (GWEN_GUI *gui, GWEN_GUI_WRITE_DIALOG_PREFS_FN f)
 
uint32_t GWEN_Gui_ShowBox (uint32_t flags, const char *title, const char *text, uint32_t guiid)
 
void GWEN_Gui_ShowError (const char *title, const char *fmt,...)
 
int GWEN_Gui_ShowProgress (GWEN_PROGRESS_DATA *pd)
 
int GWEN_Gui_StdPrintf (const GWEN_GUI *gui, FILE *stream, const char *fmt,...)
 
void GWEN_Gui_SubFlags (GWEN_GUI *gui, uint32_t fl)
 
void GWEN_Gui_UseDialogs (GWEN_GUI *gui)
 
int GWEN_Gui_WaitForSockets (GWEN_SOCKET_LIST2 *readSockets, GWEN_SOCKET_LIST2 *writeSockets, uint32_t guiid, int msecs)
 
int GWEN_Gui_WriteDialogPrefs (const char *groupName, GWEN_DB_NODE *db)
 

Variables

static GWEN_GUIgwenhywfar_gui =NULL
 

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 30 of file gui.c.

◆ ICONV_CONST

#define ICONV_CONST

Definition at line 34 of file gui.c.

Referenced by GWEN_Gui_ConvertString().

Function Documentation

◆ GWEN_Gui__HashPair()

static int GWEN_Gui__HashPair ( const char *  token,
const char *  pin,
GWEN_BUFFER buf 
)
static

◆ GWEN_Gui_CheckCertBuiltIn()

int GWENHYWFAR_CB GWEN_Gui_CheckCertBuiltIn ( GWEN_UNUSED GWEN_GUI gui,
const GWEN_SSLCERTDESCR cd,
GWEN_UNUSED GWEN_SYNCIO sio,
uint32_t  guiid 
)

◆ GWEN_Gui_ConvertFromUtf8()

int GWEN_Gui_ConvertFromUtf8 ( const GWEN_GUI gui,
const char *  text,
int  len,
GWEN_BUFFER tbuf 
)

This function converts the given text from UTF-8 to the character set selected by GWEN_Gui_SetCharSet before writing it to the given buffer.

Definition at line 244 of file gui.c.

References DBG_INFO, GWEN_Gui_ConvertString(), and GWEN_LOGDOMAIN.

Here is the call graph for this function:

◆ GWEN_Gui_GetRawText()

void GWEN_Gui_GetRawText ( GWEN_UNUSED const GWEN_GUI gui,
const char *  text,
GWEN_BUFFER tbuf 
)

Definition at line 353 of file gui.c.

References GWEN_Buffer_AppendBytes().

Referenced by GWEN_Gui_CGui_InputBox(), GWEN_Gui_CGui_MessageBox(), GWEN_Gui_CGui_ShowBox(), and GWEN_Gui_CProgress_Log().

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

◆ GWEN_Gui_Internal_CheckShow()

void GWEN_Gui_Internal_CheckShow ( GWEN_UNUSED GWEN_GUI gui,
GWEN_PROGRESS_DATA pd 
)

◆ GWEN_Gui_Internal_GetPassword()

static int GWENHYWFAR_CB GWEN_Gui_Internal_GetPassword ( GWEN_GUI gui,
uint32_t  flags,
const char *  token,
const char *  title,
const char *  text,
char *  buffer,
int  minLen,
int  maxLen,
GWEN_UNUSED GWEN_GUI_PASSWORD_METHOD  methodId,
GWEN_UNUSED GWEN_DB_NODE methodParams,
uint32_t  guiid 
)
static

◆ GWEN_Gui_Internal_GetSyncIo()

int GWENHYWFAR_CB GWEN_Gui_Internal_GetSyncIo ( GWEN_UNUSED GWEN_GUI gui,
const char *  url,
const char *  defaultProto,
int  defaultPort,
GWEN_SYNCIO **  pSio 
)

◆ GWEN_Gui_Internal_HideBox()

void GWEN_Gui_Internal_HideBox ( GWEN_GUI gui,
uint32_t  id 
)

Definition at line 2103 of file gui.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_Internal_InputBox()

int GWEN_Gui_Internal_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 2001 of file gui.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_Internal_MessageBox()

int GWEN_Gui_Internal_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 2043 of file gui.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_Internal_ProgressAdvance()

int GWEN_Gui_Internal_ProgressAdvance ( GWEN_GUI gui,
uint32_t  pid,
uint64_t  progress 
)

◆ GWEN_Gui_Internal_ProgressEnd()

int GWEN_Gui_Internal_ProgressEnd ( GWEN_GUI gui,
uint32_t  pid 
)

◆ GWEN_Gui_Internal_ProgressLog()

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

◆ GWEN_Gui_Internal_ProgressSetTotal()

int GWEN_Gui_Internal_ProgressSetTotal ( GWEN_GUI gui,
uint32_t  pid,
uint64_t  total 
)

◆ GWEN_Gui_Internal_ProgressStart()

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

Definition at line 1681 of file gui.c.

References DBG_DEBUG, DBG_WARN, GWEN_Gui_Internal_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_Internal_SetPasswordStatus()

static int GWENHYWFAR_CB GWEN_Gui_Internal_SetPasswordStatus ( GWEN_GUI gui,
const char *  token,
const char *  pin,
GWEN_GUI_PASSWORD_STATUS  status,
GWEN_UNUSED uint32_t  guiid 
)
static

◆ GWEN_Gui_Internal_ShowBox()

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

Definition at line 2069 of file gui.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_ReadDialogPrefs()

int GWEN_Gui_ReadDialogPrefs ( const char *  groupName,
const char *  altName,
GWEN_DB_NODE **  pDb 
)

Let the application read a GWEN_DB. This function is used by the platform-independent dialogs to read GUI settings (e.g. width, height etc).

This is implemented by AB_Gui, an extension of the GWEN_GUI in AqBanking using AqBanking's shared configuration module to load/save dialog settings.

Returns
0 on success, error code on error
Parameters
groupNamename of the db to load
altNamealternative name in case there is no group of the name groupName
pDbpointer to receive the GWEN_DB read

Definition at line 1547 of file gui.c.

References GWEN_ERROR_NOT_IMPLEMENTED, and gwenhywfar_gui.

Referenced by GWEN_Dialog_new().

Here is the caller graph for this function:

◆ GWEN_Gui_ReadString()

int GWEN_Gui_ReadString ( const char *  text,
GWEN_BUFFER tbuf 
)

Definition at line 329 of file gui.c.

References GWEN_Buffer_AppendString(), GWEN_Gui_ConvertString(), and gwenhywfar_gui.

Referenced by GWEN_Args_Check().

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

◆ GWEN_Gui_SetCheckCertFn()

GWEN_GUI_CHECKCERT_FN GWEN_Gui_SetCheckCertFn ( GWEN_GUI gui,
GWEN_GUI_CHECKCERT_FN  f 
)

Definition at line 568 of file gui.c.

Referenced by CppGui::CppGui().

Here is the caller graph for this function:

◆ GWEN_Gui_SetCloseDialogFn()

GWEN_GUI_CLOSE_DIALOG_FN GWEN_Gui_SetCloseDialogFn ( GWEN_GUI gui,
GWEN_GUI_CLOSE_DIALOG_FN  f 
)

Definition at line 607 of file gui.c.

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

Here is the caller graph for this function:

◆ GWEN_Gui_SetExecDialogFn()

GWEN_GUI_EXEC_DIALOG_FN GWEN_Gui_SetExecDialogFn ( GWEN_GUI gui,
GWEN_GUI_EXEC_DIALOG_FN  f 
)

Definition at line 581 of file gui.c.

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

Here is the caller graph for this function:

◆ GWEN_Gui_SetGetFileNameFn()

GWEN_GUI_GET_FILENAME_FN GWEN_Gui_SetGetFileNameFn ( GWEN_GUI gui,
GWEN_GUI_GET_FILENAME_FN  f 
)

Definition at line 659 of file gui.c.

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

Here is the caller graph for this function:

◆ GWEN_Gui_SetGetPasswordFn()

GWEN_GUI_GETPASSWORD_FN GWEN_Gui_SetGetPasswordFn ( GWEN_GUI gui,
GWEN_GUI_GETPASSWORD_FN  f 
)

Definition at line 514 of file gui.c.

Referenced by CppGui::CppGui().

Here is the caller graph for this function:

◆ GWEN_Gui_SetGetSyncIoFn()

GWEN_GUI_GETSYNCIO_FN GWEN_Gui_SetGetSyncIoFn ( GWEN_GUI gui,
GWEN_GUI_GETSYNCIO_FN  f 
)

Definition at line 672 of file gui.c.

◆ GWEN_Gui_SetHideBoxFn()

GWEN_GUI_HIDEBOX_FN GWEN_Gui_SetHideBoxFn ( GWEN_GUI gui,
GWEN_GUI_HIDEBOX_FN  f 
)

Definition at line 428 of file gui.c.

Referenced by GWEN_Gui_CGui_new().

Here is the caller graph for this function:

◆ GWEN_Gui_SetInputBoxFn()

GWEN_GUI_INPUTBOX_FN GWEN_Gui_SetInputBoxFn ( GWEN_GUI gui,
GWEN_GUI_INPUTBOX_FN  f 
)

Definition at line 402 of file gui.c.

Referenced by GWEN_Gui_CGui_new().

Here is the caller graph for this function:

◆ GWEN_Gui_SetKeyDataFromTextOpenSslFn()

GWEN_GUI_KEYDATAFROMTEXT_OPENSSL_FN GWEN_Gui_SetKeyDataFromTextOpenSslFn ( GWEN_GUI gui,
GWEN_GUI_KEYDATAFROMTEXT_OPENSSL_FN  f 
)

Definition at line 685 of file gui.c.

Referenced by main().

Here is the caller graph for this function:

◆ GWEN_Gui_SetLogHookFn()

GWEN_GUI_LOG_HOOK_FN GWEN_Gui_SetLogHookFn ( GWEN_GUI gui,
GWEN_GUI_LOG_HOOK_FN  f 
)

Definition at line 540 of file gui.c.

Referenced by CppGui::CppGui(), TestGui_Extend(), and TestGui_Unextend().

Here is the caller graph for this function:

◆ GWEN_Gui_SetMessageBoxFn()

GWEN_GUI_MESSAGEBOX_FN GWEN_Gui_SetMessageBoxFn ( GWEN_GUI gui,
GWEN_GUI_MESSAGEBOX_FN  f 
)

Definition at line 389 of file gui.c.

Referenced by GWEN_Gui_CGui_new().

Here is the caller graph for this function:

◆ GWEN_Gui_SetName()

void GWEN_Gui_SetName ( GWEN_GUI gui,
const char *  name 
)

Definition at line 732 of file gui.c.

References NULL.

Referenced by FOX16_Gui::FOX16_Gui(), QT4_Gui::QT4_Gui(), and QT5_Gui::QT5_Gui().

Here is the caller graph for this function:

◆ GWEN_Gui_SetOpenDialogFn()

GWEN_GUI_OPEN_DIALOG_FN GWEN_Gui_SetOpenDialogFn ( GWEN_GUI gui,
GWEN_GUI_OPEN_DIALOG_FN  f 
)

Definition at line 594 of file gui.c.

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

Here is the caller graph for this function:

◆ GWEN_Gui_SetPrintFn()

GWEN_GUI_PRINT_FN GWEN_Gui_SetPrintFn ( GWEN_GUI gui,
GWEN_GUI_PRINT_FN  f 
)

Definition at line 501 of file gui.c.

Referenced by CppGui::CppGui().

Here is the caller graph for this function:

◆ GWEN_Gui_SetProgressAdvanceFn()

GWEN_GUI_PROGRESS_ADVANCE_FN GWEN_Gui_SetProgressAdvanceFn ( GWEN_GUI gui,
GWEN_GUI_PROGRESS_ADVANCE_FN  f 
)

Definition at line 453 of file gui.c.

Referenced by GWEN_Gui_CGui_new().

Here is the caller graph for this function:

◆ GWEN_Gui_SetProgressEndFn()

GWEN_GUI_PROGRESS_END_FN GWEN_Gui_SetProgressEndFn ( GWEN_GUI gui,
GWEN_GUI_PROGRESS_END_FN  f 
)

Definition at line 489 of file gui.c.

Referenced by GWEN_Gui_CGui_new().

Here is the caller graph for this function:

◆ GWEN_Gui_SetProgressLogFn()

GWEN_GUI_PROGRESS_LOG_FN GWEN_Gui_SetProgressLogFn ( GWEN_GUI gui,
GWEN_GUI_PROGRESS_LOG_FN  f 
)

Definition at line 477 of file gui.c.

Referenced by GWEN_Gui_CGui_new().

Here is the caller graph for this function:

◆ GWEN_Gui_SetProgressSetTotalFn()

GWEN_GUI_PROGRESS_SETTOTAL_FN GWEN_Gui_SetProgressSetTotalFn ( GWEN_GUI gui,
GWEN_GUI_PROGRESS_SETTOTAL_FN  f 
)

Definition at line 465 of file gui.c.

Referenced by GWEN_Gui_CGui_new().

Here is the caller graph for this function:

◆ GWEN_Gui_SetProgressStartFn()

GWEN_GUI_PROGRESS_START_FN GWEN_Gui_SetProgressStartFn ( GWEN_GUI gui,
GWEN_GUI_PROGRESS_START_FN  f 
)

Definition at line 441 of file gui.c.

Referenced by GWEN_Gui_CGui_new().

Here is the caller graph for this function:

◆ GWEN_Gui_SetReadDialogPrefsFn()

GWEN_GUI_READ_DIALOG_PREFS_FN GWEN_Gui_SetReadDialogPrefsFn ( GWEN_GUI gui,
GWEN_GUI_READ_DIALOG_PREFS_FN  f 
)

Definition at line 633 of file gui.c.

◆ GWEN_Gui_SetRunDialogFn()

GWEN_GUI_RUN_DIALOG_FN GWEN_Gui_SetRunDialogFn ( GWEN_GUI gui,
GWEN_GUI_RUN_DIALOG_FN  f 
)

Definition at line 620 of file gui.c.

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

Here is the caller graph for this function:

◆ GWEN_Gui_SetSetPasswordStatusFn()

GWEN_GUI_SETPASSWORDSTATUS_FN GWEN_Gui_SetSetPasswordStatusFn ( GWEN_GUI gui,
GWEN_GUI_SETPASSWORDSTATUS_FN  f 
)

Definition at line 527 of file gui.c.

Referenced by CppGui::CppGui().

Here is the caller graph for this function:

◆ GWEN_Gui_SetShowBoxFn()

GWEN_GUI_SHOWBOX_FN GWEN_Gui_SetShowBoxFn ( GWEN_GUI gui,
GWEN_GUI_SHOWBOX_FN  f 
)

Definition at line 415 of file gui.c.

Referenced by GWEN_Gui_CGui_new().

Here is the caller graph for this function:

◆ GWEN_Gui_SetWaitForSocketsFn()

GWEN_GUI_WAITFORSOCKETS_FN GWEN_Gui_SetWaitForSocketsFn ( GWEN_GUI gui,
GWEN_GUI_WAITFORSOCKETS_FN  f 
)

Definition at line 554 of file gui.c.

◆ GWEN_Gui_SetWriteDialogPrefsFn()

GWEN_GUI_WRITE_DIALOG_PREFS_FN GWEN_Gui_SetWriteDialogPrefsFn ( GWEN_GUI gui,
GWEN_GUI_WRITE_DIALOG_PREFS_FN  f 
)

Definition at line 646 of file gui.c.

◆ GWEN_Gui_ShowProgress()

int GWEN_Gui_ShowProgress ( GWEN_PROGRESS_DATA pd)

◆ GWEN_Gui_StdPrintf()

int GWEN_Gui_StdPrintf ( const GWEN_GUI gui,
FILE *  stream,
const char *  fmt,
  ... 
)

◆ 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 130 of file gui.c.

References DBG_INFO, GWEN_Gui_Internal_HideBox(), GWEN_Gui_Internal_InputBox(), GWEN_Gui_Internal_MessageBox(), GWEN_Gui_Internal_ProgressAdvance(), GWEN_Gui_Internal_ProgressEnd(), GWEN_Gui_Internal_ProgressLog(), GWEN_Gui_Internal_ProgressSetTotal(), GWEN_Gui_Internal_ProgressStart(), GWEN_Gui_Internal_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:

◆ GWEN_Gui_WriteDialogPrefs()

int GWEN_Gui_WriteDialogPrefs ( const char *  groupName,
GWEN_DB_NODE db 
)

Let the application write a GWEN_DB. This function is used by the platform-independent dialogs to write GUI settings (e.g. width, height etc).

Returns
0 on success, error code on error
Parameters
groupNamename of the db to save
pDbpointer to receive the GWEN_DB read

Definition at line 1558 of file gui.c.

References GWEN_ERROR_NOT_IMPLEMENTED, and gwenhywfar_gui.

Referenced by GWEN_Dialog_free().

Here is the caller graph for this function:

Variable Documentation

◆ gwenhywfar_gui

GWEN_GUI* gwenhywfar_gui =NULL
static