gwenhywfar 5.10.1
Macros | Functions
dlg_progress.c File Reference
#include "dlg_progress_p.h"
#include <gwenhywfar/gwenhywfar.h>
#include <gwenhywfar/pathmanager.h>
#include <gwenhywfar/debug.h>
#include <gwenhywfar/text.h>
Include dependency graph for dlg_progress.c:

Go to the source code of this file.

Macros

#define DIALOG_MINHEIGHT   400
 
#define DIALOG_MINHEIGHT_NOLOG   100
 
#define DIALOG_MINWIDTH   520
 
#define DISABLE_DEBUGLOG
 

Functions

void GWEN_DlgProgress_AddLogText (GWEN_DIALOG *dlg, GWEN_LOGGER_LEVEL level, const char *s)
 
void GWEN_DlgProgress_Advanced (GWEN_DIALOG *dlg, GWEN_PROGRESS_DATA *pd)
 
void GWEN_DlgProgress_Fini (GWEN_DIALOG *dlg)
 
void GWENHYWFAR_CB GWEN_DlgProgress_FreeData (GWEN_UNUSED void *bp, void *p)
 
GWEN_PROGRESS_DATAGWEN_DlgProgress_GetFirstProgress (const GWEN_DIALOG *dlg)
 
GWEN_PROGRESS_DATAGWEN_DlgProgress_GetSecondProgress (const GWEN_DIALOG *dlg)
 
int GWEN_DlgProgress_GetStayOpen (const GWEN_DIALOG *dlg)
 
int GWEN_DlgProgress_HandleActivated (GWEN_DIALOG *dlg, const char *sender)
 
void GWEN_DlgProgress_Init (GWEN_DIALOG *dlg)
 
GWEN_DIALOGGWEN_DlgProgress_new (void)
 
void GWEN_DlgProgress_SetAllowClose (GWEN_DIALOG *dlg, int b)
 
void GWEN_DlgProgress_SetFirstProgress (GWEN_DIALOG *dlg, GWEN_PROGRESS_DATA *pd)
 
void GWEN_DlgProgress_SetSecondProgress (GWEN_DIALOG *dlg, GWEN_PROGRESS_DATA *pd)
 
void GWEN_DlgProgress_SetShowLog (GWEN_DIALOG *dlg, int b)
 
void GWEN_DlgProgress_SetStayOpen (GWEN_DIALOG *dlg, int b)
 
int GWENHYWFAR_CB GWEN_DlgProgress_SignalHandler (GWEN_DIALOG *dlg, GWEN_DIALOG_EVENTTYPE t, const char *sender)
 
void GWEN_DlgProgress_TotalChanged (GWEN_DIALOG *dlg, GWEN_PROGRESS_DATA *pd)
 

Macro Definition Documentation

◆ DIALOG_MINHEIGHT

#define DIALOG_MINHEIGHT   400

Definition at line 28 of file dlg_progress.c.

◆ DIALOG_MINHEIGHT_NOLOG

#define DIALOG_MINHEIGHT_NOLOG   100

Definition at line 29 of file dlg_progress.c.

◆ DIALOG_MINWIDTH

#define DIALOG_MINWIDTH   520

Definition at line 27 of file dlg_progress.c.

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 15 of file dlg_progress.c.

Function Documentation

◆ GWEN_DlgProgress_AddLogText()

void GWEN_DlgProgress_AddLogText ( GWEN_DIALOG dlg,
GWEN_LOGGER_LEVEL  level,
const char *  s 
)

◆ GWEN_DlgProgress_Advanced()

void GWEN_DlgProgress_Advanced ( GWEN_DIALOG dlg,
GWEN_PROGRESS_DATA pd 
)

Definition at line 326 of file dlg_progress.c.

References DBG_ERROR, GWEN_Dialog_SetIntProperty(), GWEN_DialogProperty_Value, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, GWEN_ProgressData_GetCurrent(), and GWEN_ProgressData_GetId().

Referenced by GWEN_Gui_DialogBased_ProgressAdvance(), and GWEN_Gui_DialogBased_ProgressEnd().

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

◆ GWEN_DlgProgress_Fini()

void GWEN_DlgProgress_Fini ( GWEN_DIALOG dlg)

Definition at line 455 of file dlg_progress.c.

References GWEN_DB_FLAGS_OVERWRITE_VARS, GWEN_DB_SetIntValue(), GWEN_Dialog_GetIntProperty(), GWEN_Dialog_GetPreferences(), GWEN_DialogProperty_Height, GWEN_DialogProperty_Width, and GWEN_INHERIT_GETDATA.

Referenced by GWEN_DlgProgress_SignalHandler().

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

◆ GWEN_DlgProgress_FreeData()

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

Definition at line 66 of file dlg_progress.c.

References GWEN_Buffer_free(), and GWEN_FREE_OBJECT.

Referenced by GWEN_DlgProgress_new().

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

◆ GWEN_DlgProgress_GetFirstProgress()

GWEN_PROGRESS_DATA * GWEN_DlgProgress_GetFirstProgress ( const GWEN_DIALOG dlg)

Definition at line 155 of file dlg_progress.c.

References GWEN_INHERIT_GETDATA.

Referenced by GWEN_Gui_DialogBased_ProgressEnd().

Here is the caller graph for this function:

◆ GWEN_DlgProgress_GetSecondProgress()

GWEN_PROGRESS_DATA * GWEN_DlgProgress_GetSecondProgress ( const GWEN_DIALOG dlg)

Definition at line 206 of file dlg_progress.c.

References GWEN_INHERIT_GETDATA.

Referenced by GWEN_Gui_DialogBased_ProgressEnd().

Here is the caller graph for this function:

◆ GWEN_DlgProgress_GetStayOpen()

int GWEN_DlgProgress_GetStayOpen ( const GWEN_DIALOG dlg)

Definition at line 110 of file dlg_progress.c.

References GWEN_INHERIT_GETDATA.

Referenced by GWEN_Gui_DialogBased_ProgressEnd().

Here is the caller graph for this function:

◆ GWEN_DlgProgress_HandleActivated()

int GWEN_DlgProgress_HandleActivated ( GWEN_DIALOG dlg,
const char *  sender 
)

◆ GWEN_DlgProgress_Init()

void GWEN_DlgProgress_Init ( GWEN_DIALOG dlg)

◆ GWEN_DlgProgress_new()

GWEN_DIALOG * GWEN_DlgProgress_new ( void  )

◆ GWEN_DlgProgress_SetAllowClose()

void GWEN_DlgProgress_SetAllowClose ( GWEN_DIALOG dlg,
int  b 
)

Definition at line 80 of file dlg_progress.c.

References GWEN_Dialog_SetIntProperty(), GWEN_DialogProperty_Enabled, and GWEN_INHERIT_GETDATA.

Referenced by GWEN_Gui_DialogBased_ProgressEnd().

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

◆ GWEN_DlgProgress_SetFirstProgress()

void GWEN_DlgProgress_SetFirstProgress ( GWEN_DIALOG dlg,
GWEN_PROGRESS_DATA pd 
)

◆ GWEN_DlgProgress_SetSecondProgress()

void GWEN_DlgProgress_SetSecondProgress ( GWEN_DIALOG dlg,
GWEN_PROGRESS_DATA pd 
)

◆ GWEN_DlgProgress_SetShowLog()

void GWEN_DlgProgress_SetShowLog ( GWEN_DIALOG dlg,
int  b 
)

Definition at line 123 of file dlg_progress.c.

References DIALOG_MINHEIGHT, DIALOG_MINWIDTH, GWEN_Dialog_SetIntProperty(), GWEN_DialogProperty_Height, GWEN_DialogProperty_Visibility, GWEN_DialogProperty_Width, and GWEN_INHERIT_GETDATA.

Referenced by GWEN_Gui_DialogBased_ProgressLog(), and GWEN_Gui_ShowProgress().

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

◆ GWEN_DlgProgress_SetStayOpen()

void GWEN_DlgProgress_SetStayOpen ( GWEN_DIALOG dlg,
int  b 
)

Definition at line 97 of file dlg_progress.c.

References GWEN_INHERIT_GETDATA.

Referenced by GWEN_Gui_DialogBased_ProgressLog(), and GWEN_Gui_ShowProgress().

Here is the caller graph for this function:

◆ GWEN_DlgProgress_SignalHandler()

int GWENHYWFAR_CB GWEN_DlgProgress_SignalHandler ( GWEN_DIALOG dlg,
GWEN_DIALOG_EVENTTYPE  t,
const char *  sender 
)

◆ GWEN_DlgProgress_TotalChanged()

void GWEN_DlgProgress_TotalChanged ( GWEN_DIALOG dlg,
GWEN_PROGRESS_DATA pd 
)

Definition at line 353 of file dlg_progress.c.

References DBG_ERROR, GWEN_Dialog_SetIntProperty(), GWEN_DialogProperty_MaxValue, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, GWEN_ProgressData_GetId(), and GWEN_ProgressData_GetTotal().

Referenced by GWEN_Gui_DialogBased_ProgressSetTotal().

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