gwenhywfar
4.8.0beta
|
#include "dlg_progress_p.h"
#include <gwenhywfar/gwenhywfar.h>
#include <gwenhywfar/pathmanager.h>
#include <gwenhywfar/debug.h>
#include <gwenhywfar/text.h>
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 |
#define DIALOG_MINHEIGHT 400 |
Definition at line 28 of file dlg_progress.c.
Referenced by GWEN_DlgInput_Fini(), GWEN_DlgInput_Init(), GWEN_DlgMessage_Fini(), GWEN_DlgMessage_Init(), GWEN_DlgProgress_Init(), and GWEN_DlgProgress_SetShowLog().
#define DIALOG_MINHEIGHT_NOLOG 100 |
Definition at line 29 of file dlg_progress.c.
Referenced by GWEN_DlgProgress_Init().
#define DIALOG_MINWIDTH 520 |
Definition at line 27 of file dlg_progress.c.
Referenced by GWEN_DlgInput_Fini(), GWEN_DlgInput_Init(), GWEN_DlgMessage_Fini(), GWEN_DlgMessage_Init(), GWEN_DlgProgress_Init(), and GWEN_DlgProgress_SetShowLog().
#define DISABLE_DEBUGLOG |
Definition at line 15 of file dlg_progress.c.
void GWEN_DlgProgress_AddLogText | ( | GWEN_DIALOG * | dlg, |
GWEN_LOGGER_LEVEL | level, | ||
const char * | s | ||
) |
Definition at line 254 of file dlg_progress.c.
References GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_GetUsedBytes(), GWEN_Buffer_new(), GWEN_CurrentTime(), GWEN_Dialog_SetCharProperty(), GWEN_DialogProperty_Value, GWEN_ERROR_GENERIC, GWEN_INHERIT_GETDATA, GWEN_LoggerLevel_Error, GWEN_LoggerLevel_Info, GWEN_LoggerLevel_Warning, GWEN_Text_EscapeXmlToBuffer(), GWEN_Time_toString(), and NULL.
Referenced by GWEN_Gui_Internal_ProgressEnd(), and GWEN_Gui_Internal_ProgressLog().
void GWEN_DlgProgress_Advanced | ( | GWEN_DIALOG * | dlg, |
GWEN_PROGRESS_DATA * | pd | ||
) |
Definition at line 330 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_Internal_ProgressAdvance(), and GWEN_Gui_Internal_ProgressEnd().
void GWEN_DlgProgress_Fini | ( | GWEN_DIALOG * | dlg | ) |
Definition at line 456 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().
void GWENHYWFAR_CB GWEN_DlgProgress_FreeData | ( | void * | bp, |
void * | p | ||
) |
Definition at line 83 of file dlg_progress.c.
References GWEN_Buffer_free(), and GWEN_FREE_OBJECT.
Referenced by GWEN_DlgProgress_new().
GWEN_PROGRESS_DATA* GWEN_DlgProgress_GetFirstProgress | ( | const GWEN_DIALOG * | dlg | ) |
Definition at line 167 of file dlg_progress.c.
References GWEN_INHERIT_GETDATA.
Referenced by GWEN_Gui_Internal_ProgressEnd().
GWEN_PROGRESS_DATA* GWEN_DlgProgress_GetSecondProgress | ( | const GWEN_DIALOG * | dlg | ) |
Definition at line 216 of file dlg_progress.c.
References GWEN_INHERIT_GETDATA.
Referenced by GWEN_Gui_Internal_ProgressEnd().
int GWEN_DlgProgress_GetStayOpen | ( | const GWEN_DIALOG * | dlg | ) |
Definition at line 124 of file dlg_progress.c.
References GWEN_INHERIT_GETDATA.
Referenced by GWEN_Gui_Internal_ProgressEnd().
int GWEN_DlgProgress_HandleActivated | ( | GWEN_DIALOG * | dlg, |
const char * | sender | ||
) |
Definition at line 502 of file dlg_progress.c.
References GWEN_Dialog_SetIntProperty(), GWEN_DialogEvent_ResultAccept, GWEN_DialogEvent_ResultHandled, GWEN_DialogEvent_ResultNotHandled, GWEN_DialogProperty_Enabled, GWEN_INHERIT_GETDATA, and GWEN_ProgressData_SetAborted().
Referenced by GWEN_DlgProgress_SignalHandler().
void GWEN_DlgProgress_Init | ( | GWEN_DIALOG * | dlg | ) |
Definition at line 382 of file dlg_progress.c.
References DIALOG_MINHEIGHT, DIALOG_MINHEIGHT_NOLOG, DIALOG_MINWIDTH, GWEN_DB_GetIntValue(), GWEN_Dialog_GetPreferences(), GWEN_Dialog_SetCharProperty(), GWEN_Dialog_SetIntProperty(), GWEN_DialogProperty_Enabled, GWEN_DialogProperty_Height, GWEN_DialogProperty_MaxValue, GWEN_DialogProperty_Title, GWEN_DialogProperty_Value, GWEN_DialogProperty_Visibility, GWEN_DialogProperty_Width, GWEN_INHERIT_GETDATA, GWEN_ProgressData_GetCurrent(), GWEN_ProgressData_GetText(), GWEN_ProgressData_GetTitle(), and GWEN_ProgressData_GetTotal().
Referenced by GWEN_DlgProgress_SignalHandler().
GWEN_DIALOG* GWEN_DlgProgress_new | ( | void | ) |
Definition at line 39 of file dlg_progress.c.
References DBG_INFO, GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_Dialog_free(), GWEN_Dialog_new(), GWEN_Dialog_ReadXmlFile(), GWEN_Dialog_SetSignalHandler(), GWEN_DlgProgress_FreeData(), GWEN_DlgProgress_SignalHandler(), GWEN_INHERIT_SETDATA, GWEN_LOGDOMAIN, GWEN_NEW_OBJECT, GWEN_PathManager_FindFile(), GWEN_PM_LIBNAME, GWEN_PM_SYSDATADIR, and NULL.
Referenced by GWEN_Gui_ShowProgress().
void GWEN_DlgProgress_SetAllowClose | ( | GWEN_DIALOG * | dlg, |
int | b | ||
) |
Definition at line 96 of file dlg_progress.c.
References GWEN_Dialog_SetIntProperty(), GWEN_DialogProperty_Enabled, and GWEN_INHERIT_GETDATA.
Referenced by GWEN_Gui_Internal_ProgressEnd().
void GWEN_DlgProgress_SetFirstProgress | ( | GWEN_DIALOG * | dlg, |
GWEN_PROGRESS_DATA * | pd | ||
) |
Definition at line 179 of file dlg_progress.c.
References GWEN_Dialog_SetCharProperty(), GWEN_Dialog_SetIntProperty(), GWEN_DialogProperty_Enabled, GWEN_DialogProperty_MaxValue, GWEN_DialogProperty_Title, GWEN_DialogProperty_Value, GWEN_INHERIT_GETDATA, GWEN_ProgressData_GetCurrent(), GWEN_ProgressData_GetText(), GWEN_ProgressData_GetTitle(), and GWEN_ProgressData_GetTotal().
Referenced by GWEN_Gui_ShowProgress().
void GWEN_DlgProgress_SetSecondProgress | ( | GWEN_DIALOG * | dlg, |
GWEN_PROGRESS_DATA * | pd | ||
) |
Definition at line 228 of file dlg_progress.c.
References GWEN_Dialog_SetIntProperty(), GWEN_DialogProperty_Enabled, GWEN_DialogProperty_MaxValue, GWEN_DialogProperty_Value, GWEN_INHERIT_GETDATA, GWEN_ProgressData_GetCurrent(), and GWEN_ProgressData_GetTotal().
Referenced by GWEN_Gui_Internal_ProgressEnd(), and GWEN_Gui_ShowProgress().
void GWEN_DlgProgress_SetShowLog | ( | GWEN_DIALOG * | dlg, |
int | b | ||
) |
Definition at line 136 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_Internal_ProgressLog(), and GWEN_Gui_ShowProgress().
void GWEN_DlgProgress_SetStayOpen | ( | GWEN_DIALOG * | dlg, |
int | b | ||
) |
Definition at line 112 of file dlg_progress.c.
References GWEN_INHERIT_GETDATA.
Referenced by GWEN_Gui_Internal_ProgressLog(), and GWEN_Gui_ShowProgress().
int GWENHYWFAR_CB GWEN_DlgProgress_SignalHandler | ( | GWEN_DIALOG * | dlg, |
GWEN_DIALOG_EVENTTYPE | t, | ||
const char * | sender | ||
) |
Definition at line 531 of file dlg_progress.c.
References GWEN_DialogEvent_ResultAccept, GWEN_DialogEvent_ResultHandled, GWEN_DialogEvent_ResultNotHandled, GWEN_DialogEvent_ResultReject, GWEN_DialogEvent_TypeActivated, GWEN_DialogEvent_TypeClose, GWEN_DialogEvent_TypeDisabled, GWEN_DialogEvent_TypeEnabled, GWEN_DialogEvent_TypeFini, GWEN_DialogEvent_TypeInit, GWEN_DialogEvent_TypeLast, GWEN_DialogEvent_TypeValueChanged, GWEN_DlgProgress_Fini(), GWEN_DlgProgress_HandleActivated(), GWEN_DlgProgress_Init(), and GWEN_INHERIT_GETDATA.
Referenced by GWEN_DlgProgress_new().
void GWEN_DlgProgress_TotalChanged | ( | GWEN_DIALOG * | dlg, |
GWEN_PROGRESS_DATA * | pd | ||
) |
Definition at line 356 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_Internal_ProgressSetTotal().