00001
00054 #ifndef INC_MI32_UNITMENU_H
00055 #define INC_MI32_UNITMENU_H
00056
00057 #ifndef INC_MI32_UNITCONV_H
00058 #include <mi32/unitconv.h>
00059 #endif
00060
00061 #ifdef X_NATIVE
00062 #ifndef INC_MI32_XDEFNS_H
00063 #include <mi32/xdefns.h>
00064 #endif
00065 #endif
00066
00067
00068 #define UNITMENU_UseSymbol 0x0001
00069 #define UNITMENU_OneOfMany 0x0002
00070 #define UNITMENU_NameSingular 0x0004
00071 #define UNITMENU_AddNone 0x1000
00072
00076
00077 #if defined(__cplusplus)
00078 extern "C" {
00079 #endif
00080
00081 #ifdef X_NATIVE
00095 MENUITEM * MxCreateUnitMenuItems (
00096 int type,
00097 int dft,
00098 XtCallbackProc cbfunc,
00099 UINT32 flags = 0
00100 );
00101
00112 Widget MxCreateUnitOptionMenu (
00113 Widget pwidget,
00114 const char *label,
00115 int type,
00116 int dft,
00117 XtCallbackProc cbfunc,
00118 void *udata,
00119 UINT32 flags = 0,
00120 const Arg *arglist = 0,
00121 int argcount = 0
00122 );
00123
00126 inline Widget MxCreateUnitOptionMenuExt (
00127 Widget pwidget,
00128 const char *label,
00129 int type,
00130 int dft,
00131 XtCallbackProc cbfunc,
00132 void *udata,
00133 UINT32 flags,
00134 const Arg *arglist,
00135 int argcount
00136 ) {
00137 return (MxCreateUnitOptionMenu(pwidget,label,type,dft,cbfunc,udata,flags,arglist,argcount));
00138 }
00139
00142 inline Widget MxCreateUnitOptionMenuF (
00143 Widget pwidget,
00144 const char *label,
00145 int type,
00146 int dft,
00147 XtCallbackProc cbfunc,
00148 void *udata,
00149 UINT32 flags
00150 ) {
00151 return (MxCreateUnitOptionMenu(pwidget,label,type,dft,cbfunc,udata,flags,NULL,0));
00152 }
00153 #endif
00154
00155 #if defined(__cplusplus)
00156 }
00157 #endif
00158
00160
00161 #endif