Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

loader.h File Reference

#include <gwenhywfar/misc.h>
#include <gwenhywfar/inherit.h>
#include <gwenhywfar/ui/widget.h>
#include <gwenhywfar/db.h>
#include <gwenhywfar/xml.h>
#include <gwenhywfar/buffer.h>

Go to the source code of this file.

Functions

int GWEN_UILoader_ExecDialog (GWEN_WIDGET *w, GWEN_XMLNODE *n, GWEN_DB_NODE *dbData)


Function Documentation

int GWEN_UILoader_ExecDialog GWEN_WIDGET w,
GWEN_XMLNODE n,
GWEN_DB_NODE dbData
 

This function loads a dialog from the given XML node using the given GWEN_DB as source and as target for the user data. The XML nodew contains information about which widget uses which GWEN_DB entry.

For this to work the dialog must at least include one button with the command code "1". This is assumed to be the OK button. If a button with the command "2" is found it is assumed to be the ABORT button. A button with the command "3" may later be used to restore default values (but is currently not implemented).

Returns:
-1 on error, 1 if the user pressed [OK], 2 if the user aborted


Generated on Fri Oct 21 04:52:18 2005 for gwenhywfar by  doxygen 1.4.1