14#include <gwenhywfar/gwenhywfar.h>
15#include <gwenhywfar/gui.h>
16#include <gwenhywfar/dialog.h>
17#include <gwenhywfar/debug.h>
18#include <gwenhywfar/pathmanager.h>
32 "Received event %d from widget [%s]\n", t, sender);
36 fprintf(stderr,
"Init\n");
40 "Click this button to close",
57 fprintf(stderr,
"Fini\n");
60 fprintf(stderr,
"ValueChanged\n");
61 if (strcasecmp(sender,
"listbox1")==0) {
62 fprintf(stderr,
"Selected list entry %d\n",
68 fprintf(stderr,
"Activated\n");
69 if (strcasecmp(sender,
"button1")==0)
73 fprintf(stderr,
"Enabled\n");
76 fprintf(stderr,
"Disabled\n");
79 fprintf(stderr,
"Close\n");
82 fprintf(stderr,
"Last, ignored\n");
86 fprintf(stderr,
"Key events ignored\n");
102 s=getenv(
"DIALOG_DIR");
GWEN_BUFFER * GWEN_Buffer_new(char *buffer, uint32_t size, uint32_t used, int take)
void GWEN_Buffer_free(GWEN_BUFFER *bf)
int GWEN_Buffer_AppendString(GWEN_BUFFER *bf, const char *buffer)
char * GWEN_Buffer_GetStart(const GWEN_BUFFER *bf)
#define DBG_INFO(dbg_logger, format,...)
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)
void GWEN_Dialog_AddMediaPath(GWEN_DIALOG *dlg, const char *s)
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)
struct GWEN_DIALOG GWEN_DIALOG
@ GWEN_DialogProperty_Title
@ GWEN_DialogProperty_Height
@ GWEN_DialogProperty_Value
@ 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
@ GWEN_DialogEvent_ResultHandled
@ GWEN_DialogEvent_ResultAccept
@ GWEN_DialogEvent_ResultNotHandled
GWEN_DIALOG * Dlg_Test2_new()
static int GWENHYWFAR_CB _gwenGuiSignalHandler(GWEN_DIALOG *dlg, GWEN_DIALOG_EVENTTYPE t, const char *sender)
static int GWENHYWFAR_CB _gwenGuiSignalHandler(GWEN_DIALOG *dlg, GWEN_DIALOG_EVENTTYPE t, const char *sender)
struct GWEN_BUFFER GWEN_BUFFER
A dynamically resizeable text buffer.
#define GWEN_DIR_SEPARATOR_S