gwenhywfar  4.15.3
Macros | Typedefs | Enumerations | Functions
dialog.h File Reference
#include <gwenhywfar/inherit.h>
#include <gwenhywfar/list1.h>
#include <gwenhywfar/list2.h>
#include <gwenhywfar/xml.h>
#include <gwenhywfar/db.h>

Go to the source code of this file.

Macros

#define GWEN_WIDGET_FLAGS_DECOR_CLOSE   0x00400000L
 
#define GWEN_WIDGET_FLAGS_DECOR_MAXIMIZE   0x00800000L
 
#define GWEN_WIDGET_FLAGS_DECOR_MENU   0x00200000L
 
#define GWEN_WIDGET_FLAGS_DECOR_MINIMIZE   0x01000000L
 
#define GWEN_WIDGET_FLAGS_DECOR_SHRINKABLE   0x04000000L
 
#define GWEN_WIDGET_FLAGS_DECOR_STRETCHABLE   0x02000000L
 
#define GWEN_WIDGET_FLAGS_DEFAULT_WIDGET   0x08000000L
 
#define GWEN_WIDGET_FLAGS_EQUAL_HEIGHT   0x00020000L
 
#define GWEN_WIDGET_FLAGS_EQUAL_WIDTH   0x00040000L
 
#define GWEN_WIDGET_FLAGS_FILLX   0x80000000L
 
#define GWEN_WIDGET_FLAGS_FILLY   0x40000000L
 
#define GWEN_WIDGET_FLAGS_FIXED_HEIGHT   0x00080000L
 
#define GWEN_WIDGET_FLAGS_FIXED_WIDTH   0x00100000L
 
#define GWEN_WIDGET_FLAGS_JUSTIFY_BOTTOM   0x00002000L
 
#define GWEN_WIDGET_FLAGS_JUSTIFY_CENTERX   0x00001000L
 
#define GWEN_WIDGET_FLAGS_JUSTIFY_CENTERY   0x00000800L
 
#define GWEN_WIDGET_FLAGS_JUSTIFY_LEFT   0x00010000L
 
#define GWEN_WIDGET_FLAGS_JUSTIFY_RIGHT   0x00008000L
 
#define GWEN_WIDGET_FLAGS_JUSTIFY_TOP   0x00004000L
 
#define GWEN_WIDGET_FLAGS_NO_WORDWRAP   0x00000400L
 
#define GWEN_WIDGET_FLAGS_NONE   0x00000000L
 
#define GWEN_WIDGET_FLAGS_PASSWORD   0x10000000L
 
#define GWEN_WIDGET_FLAGS_READONLY   0x20000000L
 

Typedefs

typedef struct GWEN_DIALOG GWEN_DIALOG
 
typedef int GWENHYWFAR_CB(* GWEN_DIALOG_SIGNALHANDLER) (GWEN_DIALOG *dlg, GWEN_DIALOG_EVENTTYPE t, const char *sender)
 

Enumerations

enum  { GWEN_DialogEvent_ResultHandled =0, GWEN_DialogEvent_ResultNotHandled, GWEN_DialogEvent_ResultAccept, GWEN_DialogEvent_ResultReject }
 
enum  GWEN_DIALOG_EVENTTYPE {
  GWEN_DialogEvent_TypeInit =0, GWEN_DialogEvent_TypeFini, GWEN_DialogEvent_TypeValueChanged, GWEN_DialogEvent_TypeActivated,
  GWEN_DialogEvent_TypeEnabled, GWEN_DialogEvent_TypeDisabled, GWEN_DialogEvent_TypeClose, GWEN_DialogEvent_TypeLast
}
 
enum  GWEN_DIALOG_PROPERTY {
  GWEN_DialogProperty_None =0, GWEN_DialogProperty_Title, GWEN_DialogProperty_Value, GWEN_DialogProperty_MinValue,
  GWEN_DialogProperty_MaxValue, GWEN_DialogProperty_Enabled, GWEN_DialogProperty_AddValue, GWEN_DialogProperty_ClearValues,
  GWEN_DialogProperty_ValueCount, GWEN_DialogProperty_ColumnWidth, GWEN_DialogProperty_Width, GWEN_DialogProperty_Height,
  GWEN_DialogProperty_SelectionMode, GWEN_DialogProperty_SelectionState, GWEN_DialogProperty_Focus, GWEN_DialogProperty_SortDirection,
  GWEN_DialogProperty_Sort, GWEN_DialogProperty_Visibility, GWEN_DialogProperty_ToolTip, GWEN_DialogProperty_Unknown =-1
}
 
enum  GWEN_DIALOG_SELECTION_MODE { GWEN_Dialog_SelectionMode_None =0, GWEN_Dialog_SelectionMode_Single, GWEN_Dialog_SelectionMode_Multi }
 
enum  GWEN_DIALOG_SORT_DIRECTION { GWEN_DialogSortDirection_None =0, GWEN_DialogSortDirection_Up, GWEN_DialogSortDirection_Down }
 

Functions

GWENHYWFAR_API void GWEN_Dialog_AddMediaPath (GWEN_DIALOG *dlg, const char *s)
 
GWENHYWFAR_API void GWEN_Dialog_AddMediaPathsFromPathManager (GWEN_DIALOG *dlg, const char *destlib, const char *pathName, const char *relPath)
 
GWENHYWFAR_API int GWEN_Dialog_AddSubDialog (GWEN_DIALOG *dlg, const char *parentWidgetName, GWEN_DIALOG *subdlg)
 
GWENHYWFAR_API void GWEN_Dialog_free (GWEN_DIALOG *dlg)
 
GWENHYWFAR_API uint32_t GWEN_Dialog_GetGuiId (const GWEN_DIALOG *dlg)
 
GWENHYWFAR_API const char * GWEN_Dialog_GetId (const GWEN_DIALOG *dlg)
 
GWENHYWFAR_API GWEN_DIALOGGWEN_Dialog_new (const char *dialogId)
 
GWENHYWFAR_API int GWEN_Dialog_ReadXml (GWEN_DIALOG *dlg, GWEN_XMLNODE *node)
 
GWENHYWFAR_API int GWEN_Dialog_ReadXmlFile (GWEN_DIALOG *dlg, const char *fname)
 
GWENHYWFAR_API int GWEN_Dialog_RemoveWidget (GWEN_DIALOG *dlg, const char *name)
 
GWENHYWFAR_API GWEN_DIALOG_SIGNALHANDLER GWEN_Dialog_SetSignalHandler (GWEN_DIALOG *dlg, GWEN_DIALOG_SIGNALHANDLER fn)
 
Functions Available After Init Event

Functions in this group can only be called while in a GWEN_Gui_ExecDialog loop or between calls to GWEN_Gui_OpenDialog() and GWEN_Gui_CloseDialog() because these functions directly manipulate GUI widgets which are only valid in the intervals mentioned above.

GWENHYWFAR_API int GWEN_Dialog_SetIntProperty (GWEN_DIALOG *dlg, const char *name, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
 
GWENHYWFAR_API int GWEN_Dialog_GetIntProperty (GWEN_DIALOG *dlg, const char *name, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
 
GWENHYWFAR_API int GWEN_Dialog_SetCharProperty (GWEN_DIALOG *dlg, const char *name, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
 
GWENHYWFAR_API const char * GWEN_Dialog_GetCharProperty (GWEN_DIALOG *dlg, const char *name, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
 
Functions Available After Construction

These functions manipulate the descriptions of dialogs and widgets, the don't operate on the GUI widgets. That's why they are immediately available after construction.

GWENHYWFAR_API uint32_t GWEN_Dialog_GetWidgetFlags (const GWEN_DIALOG *dlg, const char *name)
 
GWENHYWFAR_API void GWEN_Dialog_SetWidgetFlags (GWEN_DIALOG *dlg, const char *name, uint32_t fl)
 
GWENHYWFAR_API void GWEN_Dialog_AddWidgetFlags (GWEN_DIALOG *dlg, const char *name, uint32_t fl)
 
GWENHYWFAR_API void GWEN_Dialog_SubWidgetFlags (GWEN_DIALOG *dlg, const char *name, uint32_t fl)
 
GWENHYWFAR_API int GWEN_Dialog_GetWidgetColumns (const GWEN_DIALOG *dlg, const char *name)
 
GWENHYWFAR_API void GWEN_Dialog_SetWidgetColumns (GWEN_DIALOG *dlg, const char *name, int i)
 
GWENHYWFAR_API int GWEN_Dialog_GetWidgetRows (const GWEN_DIALOG *dlg, const char *name)
 
GWENHYWFAR_API void GWEN_Dialog_SetWidgetRows (GWEN_DIALOG *dlg, const char *name, int i)
 
GWENHYWFAR_API const char * GWEN_Dialog_GetWidgetText (const GWEN_DIALOG *dlg, const char *name)
 
GWENHYWFAR_API void GWEN_Dialog_SetWidgetText (GWEN_DIALOG *dlg, const char *name, const char *t)
 
GWENHYWFAR_API GWEN_DB_NODEGWEN_Dialog_GetPreferences (const GWEN_DIALOG *dlg)
 
Localisation
GWENHYWFAR_API void GWEN_Dialog_SetI18nDomain (GWEN_DIALOG *dlg, const char *s)
 
GWENHYWFAR_API const char * GWEN_Dialog_GetI18nDomain (const GWEN_DIALOG *dlg)
 
GWENHYWFAR_API const char * GWEN_Dialog_TranslateString (const GWEN_DIALOG *dlg, const char *s)