00001 #ifndef _VAPIGTK_OPTION_H_ 00002 #define _VAPIGTK_OPTION_H_ 00003 #include "vapiGtkInterface.h" 00004 #include "vapiOptions.h" 00005 00006 typedef int (*vGtkOptionsCustomCreate) (vOptions * Options, 00007 vOptionsSettings * OptionsSettings, 00008 GList ** OptionsList[3], 00009 GList ** tempList[3], int i, 00010 int widgetsWidth, 00011 GCallback EventFunc, 00012 vpointer EventData); 00013 00014 typedef int (*vGtkOptionsCustomGet) (vOptions * options, 00015 vOptionsSettings * OptionsSettings, 00016 GList ** OptionsData); 00017 00018 typedef int (*vGtkOptionsCustomPopulate) (vOptions * Options, 00019 vOptionsSettings * OptionsSettings, 00020 GList ** OptionsList[3], int i); 00021 00022 void vapiGtkOptionsCreate (GtkWidget * ParentContainer, 00023 GtkWidget ** Container, 00024 GList ** OptionsList[3], vOptions * Options, 00025 vOptionsSettings * OptionsSettings, 00026 vGtkOptionsCustomCreate CustomFunc, 00027 GCallback EventFunc, vpointer EventData); 00028 00029 void vapiGtkOptionsFree (GtkWidget ** Container, GList ** OptionsList[3]); 00030 00031 int vapiGtkOptionsCreateDefault (vOptions * Options, 00032 vOptionsSettings * OptionsSettings, 00033 GList ** OptionsList[3], 00034 GList ** tempList[3], int i, 00035 int widgetsWidth, 00036 GCallback EventFunc, vpointer EventData); 00037 00038 GtkWidget *vapiGtkOptionsCreateByInterfaceType (vInterfaceType 00039 interfaceType, 00040 double min, double max, 00041 double scale, 00042 double defaultValue); 00043 00044 void vapiGtkOptionsPopulate (vOptions * Options, 00045 vOptionsSettings * OptionsSettings, 00046 GList ** OptionsList[3], 00047 vGtkOptionsCustomPopulate CustomFunc); 00048 00049 void vapiGtkOptionsBlockEvents (GList ** OptionsEvents); 00050 00051 void vapiGtkOptionsUnBlockEvents (GList ** OptionsEvents); 00052 00053 GtkWidget *vapiGtkOptionsGetAssociatedWidget (const char *requiredOption, 00054 vOptionsSettings * 00055 OptionsSettings, 00056 GList ** OptionsData); 00057 00058 void vapiGtkOptionsSetOptionByInterfaceType (GtkWidget * Range, double Value, 00059 vInterfaceType interfaceType, 00060 vBoolean ISint); 00061 00062 vTempFloat *vapiGtkOptionsGetOptionByInterfaceType (GtkWidget * Range, 00063 vInterfaceType 00064 interfaceType, 00065 vBoolean ISint); 00066 void 00067 vapiGtkOptionsGetOptions (vOptions * options, 00068 vOptionsSettings * OptionsSettings, 00069 vGtkOptionsCustomGet CustomGet, 00070 GList ** OptionsData); 00071 00072 #endif