dialog_be.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     begin       : Wed Jan 20 2010
00003     copyright   : (C) 2010 by Martin Preuss
00004     email       : martin@libchipcard.de
00005 
00006  ***************************************************************************
00007  *                                                                         *
00008  *   This library is free software; you can redistribute it and/or         *
00009  *   modify it under the terms of the GNU Lesser General Public            *
00010  *   License as published by the Free Software Foundation; either          *
00011  *   version 2.1 of the License, or (at your option) any later version.    *
00012  *                                                                         *
00013  *   This library is distributed in the hope that it will be useful,       *
00014  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00015  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00016  *   Lesser General Public License for more details.                       *
00017  *                                                                         *
00018  *   You should have received a copy of the GNU Lesser General Public      *
00019  *   License along with this library; if not, write to the Free Software   *
00020  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston,                 *
00021  *   MA  02111-1307  USA                                                   *
00022  *                                                                         *
00023  ***************************************************************************/
00024 
00025 
00026 #ifndef GWENHYWFAR_GUI_DIALOG_BE_H
00027 #define GWENHYWFAR_GUI_DIALOG_BE_H
00028 
00029 
00030 #include <gwenhywfar/dialog.h>
00031 #include <gwenhywfar/widget_be.h>
00032 #include <gwenhywfar/stringlist.h>
00033 
00034 #include <stdio.h>
00035 
00036 
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif
00040 
00041 
00042 typedef int GWENHYWFAR_CB (*GWEN_DIALOG_SETINTPROPERTY_FN)(GWEN_DIALOG *dlg,
00043                                                            GWEN_WIDGET *w,
00044                                                            GWEN_DIALOG_PROPERTY prop,
00045                                                            int index,
00046                                                            int value,
00047                                                            int doSignal);
00048 
00049 typedef int GWENHYWFAR_CB (*GWEN_DIALOG_GETINTPROPERTY_FN)(GWEN_DIALOG *dlg,
00050                                                            GWEN_WIDGET *w,
00051                                                            GWEN_DIALOG_PROPERTY prop,
00052                                                            int index,
00053                                                            int defaultValue);
00054 
00055 typedef int GWENHYWFAR_CB (*GWEN_DIALOG_SETCHARPROPERTY_FN)(GWEN_DIALOG *dlg,
00056                                                             GWEN_WIDGET *w,
00057                                                             GWEN_DIALOG_PROPERTY prop,
00058                                                             int index,
00059                                                             const char *value,
00060                                                             int doSignal);
00061 
00062 typedef const char* GWENHYWFAR_CB (*GWEN_DIALOG_GETCHARPROPERTY_FN)(GWEN_DIALOG *dlg,
00063                                                                     GWEN_WIDGET *w,
00064                                                                     GWEN_DIALOG_PROPERTY prop,
00065                                                                     int index,
00066                                                                     const char *defaultValue);
00067 
00068 
00069 GWENHYWFAR_API
00070 GWEN_DIALOG_SETINTPROPERTY_FN GWEN_Dialog_SetSetIntPropertyFn(GWEN_DIALOG *dlg,
00071                                                               GWEN_DIALOG_SETINTPROPERTY_FN fn);
00072 
00073 GWENHYWFAR_API
00074 GWEN_DIALOG_GETINTPROPERTY_FN GWEN_Dialog_SetGetIntPropertyFn(GWEN_DIALOG *dlg,
00075                                                               GWEN_DIALOG_GETINTPROPERTY_FN fn);
00076 
00077 GWENHYWFAR_API
00078 GWEN_DIALOG_SETCHARPROPERTY_FN GWEN_Dialog_SetSetCharPropertyFn(GWEN_DIALOG *dlg,
00079                                                                 GWEN_DIALOG_SETCHARPROPERTY_FN fn);
00080 
00081 GWENHYWFAR_API
00082 GWEN_DIALOG_GETCHARPROPERTY_FN GWEN_Dialog_SetGetCharPropertyFn(GWEN_DIALOG *dlg,
00083                                                                 GWEN_DIALOG_GETCHARPROPERTY_FN fn);
00084 
00085 
00086 GWENHYWFAR_API
00087 GWEN_WIDGET_TREE *GWEN_Dialog_GetWidgets(const GWEN_DIALOG *dlg);
00088 
00089 GWENHYWFAR_API
00090 GWEN_WIDGET *GWEN_Dialog_FindWidgetByName(const GWEN_DIALOG *dlg, const char *name);
00091 
00092 GWENHYWFAR_API
00093 GWEN_WIDGET *GWEN_Dialog_FindWidgetByImplData(const GWEN_DIALOG *dlg, int index, const void *ptr);
00094 
00095 
00096 GWENHYWFAR_API
00097 void GWEN_Dialog_SetGuiId(GWEN_DIALOG *dlg, uint32_t guiid);
00098 
00099 
00103 GWENHYWFAR_API
00104 GWEN_STRINGLIST *GWEN_Dialog_GetMediaPaths(const GWEN_DIALOG *dlg);
00105 
00106 
00111 GWENHYWFAR_API
00112 int GWEN_Dialog_EmitSignal(GWEN_DIALOG *dlg,
00113                            GWEN_DIALOG_EVENTTYPE t,
00114                            const char *sender);
00115 
00120 GWENHYWFAR_API
00121 int GWEN_Dialog_EmitSignalToAll(GWEN_DIALOG *dlg,
00122                                 GWEN_DIALOG_EVENTTYPE t,
00123                                 const char *sender);
00124 
00125 
00126 GWENHYWFAR_API
00127 GWEN_DIALOG *GWEN_Dialog_GetParentDialog(const GWEN_DIALOG *dlg);
00128 
00129 
00130 GWENHYWFAR_API
00131 void GWEN_Dialog_Dump(const GWEN_DIALOG *dlg, FILE *f, unsigned int indent);
00132 
00133 #ifdef __cplusplus
00134 }
00135 #endif
00136 
00137 
00138 
00139 
00140 #endif