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>
31 "Received event %d from widget [%s]\n", t, sender);
35 fprintf(stderr,
"Init\n");
39 "Erster Text in Combo1",
44 "Zweiter Text in Combo1",
56 "Erster Text in Combo2",
61 "Zweiter Text in Combo2",
72 "Column1\tColumn2\tColumn3",
78 "Zeile 1 Spalte 1\tZeile 1 Spalte 2\tZeile 1 Spalte 3",
83 "Zeile 2 Spalte 1\tZeile 2 Spalte 2\tZeile 2 Spalte 3",
99 "<html>This label contains text which should also contain an image:"
100 "<img src=\"chipcard.png\">"
101 "<p>And here the text should continue, followed by another image:"
102 "<img src=\"disk.png\"></p>"
103 "And again, this should be on the following line.</html>"
104 "This label would contain an image if it were able to use "
112 "<p>This is <b>bold</b> text, while this one is <i>italic</i>.</p>"
115 "<li>first item</li>"
116 "<li>second item</li>"
117 "<li>third item</li>"
118 "<li>fourth item</li>"
120 "<p>This paragraph should follow the list.</p>"
122 "This is BOLD text, while this one is would be i t a l i c.\n"
128 "This paragraph should follow the list.",
157 fprintf(stderr,
"Fini\n");
160 fprintf(stderr,
"ValueChanged\n");
161 if (strcasecmp(sender,
"listbox1")==0) {
162 fprintf(stderr,
"Selected list entry %d\n",
165 else if (strcasecmp(sender,
"editPass1")==0) {
176 fprintf(stderr,
"Activated\n");
177 if (strcasecmp(sender,
"listbox1")==0) {
181 fprintf(stderr,
"Selected list entry %d\n", idx);
187 fprintf(stderr,
"Text of selected list entry %d: [%s]\n", idx, s);
191 else if (strcasecmp(sender,
"combo1")==0) {
195 fprintf(stderr,
"Selected list entry %d\n", idx);
201 fprintf(stderr,
"Text of selected list entry %d: [%s]\n", idx, s);
206 else if (strcasecmp(sender,
"okButton")==0)
208 else if (strcasecmp(sender,
"abortButton")==0)
210 else if (strcasecmp(sender,
"progressMinus")==0) {
218 else if (strcasecmp(sender,
"progressPlus")==0) {
226 else if (strcasecmp(sender,
"prevPageButton")==0) {
234 else if (strcasecmp(sender,
"nextPageButton")==0) {
245 fprintf(stderr,
"Enabled\n");
248 fprintf(stderr,
"Disabled\n");
251 fprintf(stderr,
"Close\n");
254 fprintf(stderr,
"Last, ignored\n");
269 s=getenv(
"DIALOG_DIR");
char * GWEN_Buffer_GetStart(const GWEN_BUFFER *bf)
#define GWEN_DIR_SEPARATOR_S
GWEN_DIALOG_SIGNALHANDLER GWEN_Dialog_SetSignalHandler(GWEN_DIALOG *dlg, GWEN_DIALOG_SIGNALHANDLER fn)
GWEN_BUFFER * GWEN_Buffer_new(char *buffer, uint32_t size, uint32_t used, int take)
struct GWEN_DIALOG GWEN_DIALOG
int GWEN_Dialog_GetIntProperty(GWEN_DIALOG *dlg, const char *name, GWEN_DIALOG_PROPERTY prop, int index, int defaultProperty)
static int GWENHYWFAR_CB _gwenGuiSignalHandler(GWEN_DIALOG *dlg, GWEN_DIALOG_EVENTTYPE t, const char *sender)
void GWEN_Buffer_free(GWEN_BUFFER *bf)
struct GWEN_BUFFER GWEN_BUFFER
A dynamically resizeable text buffer.
const char * GWEN_Dialog_GetCharProperty(GWEN_DIALOG *dlg, const char *name, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultProperty)
int GWEN_Dialog_SetIntProperty(GWEN_DIALOG *dlg, const char *name, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
GWEN_DIALOG * GWEN_Dialog_new(const char *dialogId)
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)
#define DBG_INFO(dbg_logger, format, args...)
void GWEN_Dialog_free(GWEN_DIALOG *dlg)
int GWEN_Dialog_ReadXmlFile(GWEN_DIALOG *dlg, const char *fname)
GWEN_DIALOG * Dlg_Test1_new()
int GWEN_Buffer_AppendString(GWEN_BUFFER *bf, const char *buffer)