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 "Erster Text in Combo1",
45 "Zweiter Text in Combo1",
57 "Erster Text in Combo2",
62 "Zweiter Text in Combo2",
73 "Column1\tColumn2\tColumn3",
79 "Zeile 1 Spalte 1\tZeile 1 Spalte 2\tZeile 1 Spalte 3",
84 "Zeile 2 Spalte 1\tZeile 2 Spalte 2\tZeile 2 Spalte 3",
100 "<html>This label contains text which should also contain an image:"
101 "<img src=\"chipcard.png\">"
102 "<p>And here the text should continue, followed by another image:"
103 "<img src=\"disk.png\"></p>"
104 "And again, this should be on the following line.</html>"
105 "This label would contain an image if it were able to use "
113 "<p>This is <b>bold</b> text, while this one is <i>italic</i>.</p>"
116 "<li>first item</li>"
117 "<li>second item</li>"
118 "<li>third item</li>"
119 "<li>fourth item</li>"
121 "<p>This paragraph should follow the list.</p>"
123 "This is BOLD text, while this one is would be i t a l i c.\n"
129 "This paragraph should follow the list.",
158 fprintf(stderr,
"Fini\n");
161 fprintf(stderr,
"ValueChanged\n");
162 if (strcasecmp(sender,
"listbox1")==0) {
163 fprintf(stderr,
"Selected list entry %d\n",
166 else if (strcasecmp(sender,
"editPass1")==0) {
177 fprintf(stderr,
"Activated\n");
178 if (strcasecmp(sender,
"listbox1")==0) {
182 fprintf(stderr,
"Selected list entry %d\n", idx);
188 fprintf(stderr,
"Text of selected list entry %d: [%s]\n", idx, s);
192 else if (strcasecmp(sender,
"combo1")==0) {
196 fprintf(stderr,
"Selected list entry %d\n", idx);
202 fprintf(stderr,
"Text of selected list entry %d: [%s]\n", idx, s);
207 else if (strcasecmp(sender,
"okButton")==0)
209 else if (strcasecmp(sender,
"abortButton")==0)
211 else if (strcasecmp(sender,
"progressMinus")==0) {
219 else if (strcasecmp(sender,
"progressPlus")==0) {
227 else if (strcasecmp(sender,
"prevPageButton")==0) {
235 else if (strcasecmp(sender,
"nextPageButton")==0) {
246 fprintf(stderr,
"Enabled\n");
249 fprintf(stderr,
"Disabled\n");
252 fprintf(stderr,
"Close\n");
255 fprintf(stderr,
"Last, ignored\n");
260 fprintf(stderr,
"Key events ignored\n");
277 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)
const char * GWEN_Dialog_GetCharProperty(GWEN_DIALOG *dlg, const char *name, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultProperty)
struct GWEN_DIALOG GWEN_DIALOG
@ GWEN_DialogProperty_AddValue
@ GWEN_DialogProperty_MinValue
@ GWEN_DialogProperty_ColumnWidth
@ GWEN_DialogProperty_MaxValue
@ 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_DialogEvent_ResultReject
GWEN_DIALOG * Dlg_Test1_new()
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