|
gwenhywfar 5.14.1
|
#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(), GWEN_DlgProgress_SetShowLog(), GWEN_DlgShowBox_Fini(), and GWEN_DlgShowBox_Init().
| #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(), GWEN_DlgProgress_SetShowLog(), GWEN_DlgShowBox_Fini(), and GWEN_DlgShowBox_Init().
| #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 246 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_free(), GWEN_Time_toString(), and NULL.
Referenced by GWEN_Gui_DialogBased_ProgressEnd(), and GWEN_Gui_DialogBased_ProgressLog().


| 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().


| 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().


| 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(), GWEN_FREE_OBJECT, GWEN_UNUSED, and GWENHYWFAR_CB.
Referenced by GWEN_DlgProgress_new().


| 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().

| 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().

| 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().

| 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 380 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_new(), GWEN_Dialog_CreateAndLoadWithPath(), GWEN_Dialog_SetSignalHandler(), GWEN_DlgProgress_FreeData(), GWEN_DlgProgress_new(), GWEN_DlgProgress_SignalHandler(), GWEN_INHERIT_SETDATA, GWEN_LOGDOMAIN, GWEN_NEW_OBJECT, GWEN_PM_LIBNAME, GWEN_PM_SYSDATADIR, and NULL.
Referenced by GWEN_DlgProgress_new(), and GWEN_Gui_ShowProgress().


| 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().


| void GWEN_DlgProgress_SetFirstProgress | ( | GWEN_DIALOG * | dlg, |
| GWEN_PROGRESS_DATA * | pd ) |
Definition at line 168 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 219 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_DialogBased_ProgressEnd(), and GWEN_Gui_ShowProgress().


| 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().


| 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().

| int GWENHYWFAR_CB GWEN_DlgProgress_SignalHandler | ( | GWEN_DIALOG * | dlg, |
| GWEN_DIALOG_EVENTTYPE | t, | ||
| const char * | sender ) |
Definition at line 532 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_TypeKeyPressed, GWEN_DialogEvent_TypeKeyReleased, GWEN_DialogEvent_TypeLast, GWEN_DialogEvent_TypeValueChanged, GWEN_DlgProgress_Fini(), GWEN_DlgProgress_HandleActivated(), GWEN_DlgProgress_Init(), GWEN_INHERIT_GETDATA, and GWENHYWFAR_CB.
Referenced by GWEN_DlgProgress_new().


| 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().

