15#define DISABLE_DEBUGLOG
18#include "dlg_showbox_p.h"
20#include <gwenhywfar/gwenhywfar.h>
21#include <gwenhywfar/pathmanager.h>
22#include <gwenhywfar/gui.h>
23#include <gwenhywfar/debug.h>
27#define DIALOG_MINWIDTH 200
28#define DIALOG_MINHEIGHT 50
43 GWEN_DLGSHOWBOX *xdlg;
58 "gwenhywfar/dialogs/dlg_showbox.dlg",
79 xdlg->title=strdup(title);
81 xdlg->text=strdup(text);
90 GWEN_DLGSHOWBOX *xdlg;
92 xdlg=(GWEN_DLGSHOWBOX *) p;
104 GWEN_DLGSHOWBOX *xdlg;
140 GWEN_DLGSHOWBOX *xdlg;
177 GWEN_DLGSHOWBOX *xdlg;
GWEN_BUFFER * GWEN_Buffer_new(char *buffer, uint32_t size, uint32_t used, int take)
void GWEN_Buffer_free(GWEN_BUFFER *bf)
char * GWEN_Buffer_GetStart(const GWEN_BUFFER *bf)
int GWEN_DB_SetIntValue(GWEN_DB_NODE *n, uint32_t flags, const char *path, int val)
int GWEN_DB_GetIntValue(GWEN_DB_NODE *n, const char *path, int idx, int defVal)
#define GWEN_DB_FLAGS_OVERWRITE_VARS
struct GWEN_DB_NODE GWEN_DB_NODE
#define DBG_INFO(dbg_logger, format, args...)
int GWEN_Dialog_SetIntProperty(GWEN_DIALOG *dlg, const char *name, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
GWEN_DIALOG_SIGNALHANDLER GWEN_Dialog_SetSignalHandler(GWEN_DIALOG *dlg, GWEN_DIALOG_SIGNALHANDLER fn)
int GWEN_Dialog_SetCharProperty(GWEN_DIALOG *dlg, const char *name, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
GWEN_DB_NODE * GWEN_Dialog_GetPreferences(const GWEN_DIALOG *dlg)
void GWEN_Dialog_free(GWEN_DIALOG *dlg)
GWEN_DIALOG * GWEN_Dialog_new(const char *dialogId)
int GWEN_Dialog_GetIntProperty(GWEN_DIALOG *dlg, const char *name, GWEN_DIALOG_PROPERTY prop, int index, int defaultProperty)
int GWEN_Dialog_ReadXmlFile(GWEN_DIALOG *dlg, const char *fname)
@ GWEN_DialogEvent_ResultHandled
@ GWEN_DialogEvent_ResultAccept
@ GWEN_DialogEvent_ResultNotHandled
struct GWEN_DIALOG GWEN_DIALOG
@ GWEN_DialogProperty_Title
@ GWEN_DialogProperty_Height
@ GWEN_DialogProperty_Width
@ GWEN_DialogEvent_TypeKeyPressed
@ GWEN_DialogEvent_TypeValueChanged
@ GWEN_DialogEvent_TypeInit
@ GWEN_DialogEvent_TypeFini
@ GWEN_DialogEvent_TypeClose
@ GWEN_DialogEvent_TypeKeyReleased
@ GWEN_DialogEvent_TypeActivated
@ GWEN_DialogEvent_TypeEnabled
@ GWEN_DialogEvent_TypeDisabled
@ GWEN_DialogEvent_TypeLast
int GWENHYWFAR_CB GWEN_DlgShowBox_SignalHandler(GWEN_DIALOG *dlg, GWEN_DIALOG_EVENTTYPE t, GWEN_UNUSED const char *sender)
void GWEN_DlgShowBox_Init(GWEN_DIALOG *dlg)
GWEN_DIALOG * GWEN_DlgShowBox_new(uint32_t flags, const char *title, const char *text)
void GWENHYWFAR_CB GWEN_DlgShowBox_FreeData(GWEN_UNUSED void *bp, void *p)
void GWEN_DlgShowBox_Fini(GWEN_DIALOG *dlg)
struct GWEN_BUFFER GWEN_BUFFER
A dynamically resizeable text buffer.
#define GWEN_PM_SYSDATADIR
#define GWEN_INHERIT_SETDATA(bt, t, element, data, fn)
#define GWEN_INHERIT(bt, t)
#define GWEN_INHERIT_GETDATA(bt, t, element)
#define GWEN_FREE_OBJECT(varname)
#define GWEN_NEW_OBJECT(typ, varname)
int GWEN_PathManager_FindFile(const char *destLib, const char *pathName, const char *fileName, GWEN_BUFFER *fbuf)