00001
00002
00003
00004
00005
00006
00007
00008
00009 #define MODULE_MENUHELP 1
00010
00011 #include "animate.h"
00012
00013 typedef struct tagMENUHELPDATA{
00014 int iCode,sCode;
00015 char *str;
00016 } MENUHELPDATA;
00017
00018 static MENUHELPDATA MenuHelpData[NMENUHELPDATA]={
00019 0xFFFF, 0xFFFF, NULL,
00020 IDM_FILE_LOAD_ANIMATION, IDH_FILE_LOAD_ANIMATION, NULL,
00021 IDM_FILE_LOAD_TEMPLATE, IDH_FILE_LOAD_TEMPLATE, NULL,
00022 IDM_FILE_LOAD_NEW, IDH_FILE_LOAD_NEW, NULL,
00023 IDM_FILE_SAVEOLD, IDH_FILE_SAVEOLD, NULL,
00024 IDM_FILE_SAVE, IDH_FILE_SAVE, NULL,
00025
00026 IDM_FILE_PACK, IDH_FILE_PACK, NULL,
00027 IDM_FILE_UNPACK, IDH_FILE_UNPACK, NULL,
00028
00029 IDM_FILE_EXP_ASCRIPT, IDH_FILE_EXP_ASCRIPT, NULL,
00030 IDM_FILE_EXP_FSCRIPT, IDH_FILE_EXP_FSCRIPT, NULL,
00031 IDM_FILE_EXP_AMSCRIPT, IDH_FILE_EXP_AMSCRIPT, NULL,
00032 IDM_FILE_EXP_FMSCRIPT, IDH_FILE_EXP_FMSCRIPT, NULL,
00033 IDM_FILE_EXP_VIRTOOLS, IDH_FILE_EXP_VIRTOOLS, NULL,
00034 IDM_FILE_EXP_VRML, IDH_FILE_EXP_VRML, NULL,
00035 IDM_FILE_MODELER, IDH_FILE_MODELER, NULL,
00036 IDM_FILE_KEYFRAMER, IDH_FILE_KEYFRAMER, NULL,
00037 IDM_FILE_KEYFRAMERDOCK, IDH_FILE_KEYFRAMERDOCK, NULL,
00038 IDM_FILE_VIEWER, IDH_FILE_VIEWER, NULL,
00039 IDM_FILE_PLAYER, IDH_FILE_PLAYER, NULL,
00040 IDM_FILE_PLAYAVI, IDH_FILE_PLAYAVI, NULL,
00041 IDM_FILE_FLI2AVI, IDH_FILE_FLI2AVI, NULL,
00042 IDM_FILE_FLI2GIF, IDH_FILE_FLI2GIF, NULL,
00043 IDM_FILE_ANIM, IDH_FILE_ANIM, NULL,
00044 IDM_FILE_AUDIO, IDH_FILE_AUDIO, NULL,
00045 IDM_FILE_AVI2MPG, IDH_FILE_AVI2MPG, NULL,
00046 IDM_FILE_PLAYDD, IDH_FILE_PLAYDD, NULL,
00047 IDM_FILE_PLAYGG, IDH_FILE_PLAYGG, NULL,
00048 IDM_FILE_SHOWSTV, IDH_FILE_SHOWSTV, NULL,
00049 IDM_FILE_GIF2AVI, IDH_FILE_GIF2AVI, NULL,
00050 IDM_FILE_PRINT, IDH_FILE_PRINT, NULL,
00051 IDM_FILE_PRINTSETUP, IDH_FILE_PRINTSETUP, NULL,
00052 IDM_FILE_PREFERENCES, IDH_FILE_PREFERENCES, NULL,
00053 IDM_FILE_EXIT, IDH_FILE_EXIT, NULL,
00054
00055 IDM_ACTOR_ADD_A, IDH_ACTOR_ADD_A, NULL,
00056 IDM_ACTOR_ADD_C, IDH_ACTOR_ADD_C, NULL,
00057 IDM_ACTOR_ADD_E, IDH_ACTOR_ADD_E, NULL,
00058 IDM_ACTOR_ADD_X, IDH_ACTOR_ADD_X, NULL,
00059 IDM_ACTOR_DEL_A, IDH_ACTOR_DEL_A, NULL,
00060 IDM_ACTOR_DEL_C, IDH_ACTOR_DEL_C, NULL,
00061 IDM_ACTOR_DEL_E, IDH_ACTOR_DEL_E, NULL,
00062 IDM_ACTOR_SELECT, IDH_ACTOR_SELECT, NULL,
00063 IDM_ACTOR_INFO, IDH_ACTOR_INFO, NULL,
00064 IDM_ACTOR_AXIS_PLACE, IDH_ACTOR_AXIS_PLACE, NULL,
00065 IDM_ACTOR_TOOL_GRAB, IDH_ACTOR_TOOL_GRAB, NULL,
00066 IDM_ACTOR_TOOL_ROTATE, IDH_ACTOR_TOOL_ROTATE, NULL,
00067 IDM_ACTOR_TOOL_SIZE, IDH_ACTOR_TOOL_SIZE, NULL,
00068 IDM_ACTOR_TOOL_POSE, IDH_ACTOR_TOOL_POSE, NULL,
00069 IDM_ACTOR_TOOL_PLOTPOS, IDH_ACTOR_TOOL_PLOTPOS, NULL,
00070 IDM_ACTOR_TOOL_PLOTROT, IDH_ACTOR_TOOL_PLOTROT, NULL,
00071 IDM_ACTOR_TOOL_UNDO, IDH_ACTOR_TOOL_UNDO, NULL,
00072 IDM_ACTOR_ACTCAMERA, IDH_ACTOR_ACTCAMERA, NULL,
00073 IDM_ACTOR_USEDIRECTOR, IDH_ACTOR_USEDIRECTOR, NULL,
00074 IDM_ACTOR_SWAP, IDH_ACTOR_SWAP, NULL,
00075 IDM_ACTOR_SWAP_ALL, IDH_ACTOR_SWAP_ALL, NULL,
00076 IDM_ACTOR_RENAME, IDH_ACTOR_RENAME, NULL,
00077 IDM_ACTOR_TOOL_GRABABS, IDH_ACTOR_TOOL_GRABABS, NULL,
00078 IDM_ACTOR_TOOL_ROTATEABS, IDH_ACTOR_TOOL_ROTATEABS, NULL,
00079 IDM_ACTOR_TOOL_SIZEABS, IDH_ACTOR_TOOL_SIZEABS, NULL,
00080 IDM_EDIT_MODEL, IDH_EDIT_MODEL, NULL,
00081 IDM_EDIT_XIMAGE, IDH_EDIT_XIMAGE, NULL,
00082
00083 IDM_ACTOR_AXIS_SH, IDH_ACTOR_AXIS_SH, NULL,
00084 IDM_ACTOR_AXIS_SNAP, IDH_ACTOR_AXIS_SNAP, NULL,
00085 IDM_EDIT_SPLINETWEEN, IDH_EDIT_SPLINETWEEN, NULL,
00086
00087 IDM_PATH_EDIT, IDH_PATH_EDIT, NULL,
00088 IDM_PATH_SUBDIVIDE, IDH_PATH_SUBDIVIDE, NULL,
00089 IDM_PATH_DELETE, IDH_PATH_DELETE, NULL,
00090 IDM_PATH_PICK_NEXT, IDH_PATH_PICKNEXT, NULL,
00091 IDM_PATH_PICK_PREVIOUS, IDH_PATH_PICKPREVIOUS, NULL,
00092 IDM_PATH_PICK_FIRST, IDH_PATH_PICKFIRST, NULL,
00093 IDM_PATH_CURSORTO_START, IDH_PATH_CURSORTO_START, NULL,
00094 IDM_PATH_CURSORTO_END, IDH_PATH_CURSORTO_END, NULL,
00095 IDM_PATH_CURSORTO_POINT, IDH_PATH_CURSORTO_POINT, NULL,
00096 IDM_PATH_GRAPH_POSITION, IDH_PATH_GRAPH_POSITION, NULL,
00097 IDM_PATH_REVERSE, IDH_PATH_REVERSE, NULL,
00098 IDM_PATH_GRAPH_POSITION, IDH_PATH_GRAPH_VELOCITY, NULL,
00099
00100 IDM_TIMELINE_LINE_ADDP, IDH_TIMELINE_LINE_ADDP, NULL,
00101 IDM_TIMELINE_LINE_ADDR, IDH_TIMELINE_LINE_ADDR, NULL,
00102 IDM_TIMELINE_LINE_ADDX, IDH_TIMELINE_LINE_ADDX, NULL,
00103 IDM_TIMELINE_KEY_ADDP, IDH_TIMELINE_KEY_ADDP, NULL,
00104 IDM_TIMELINE_KEY_ADDR, IDH_TIMELINE_KEY_ADDR, NULL,
00105 IDM_TIMELINE_KEY_ADDX, IDH_TIMELINE_KEY_ADDX, NULL,
00106 IDM_TIMELINE_KEY_RESETP, IDH_TIMELINE_KEY_RESETP, NULL,
00107 IDM_TIMELINE_KEY_RESETR, IDH_TIMELINE_KEY_RESETR, NULL,
00108 IDM_TIMELINE_KEY_RESETX, IDH_TIMELINE_KEY_RESETX, NULL,
00109 IDM_TIMELINE_KEY_SHIFT, IDH_TIMELINE_KEY_SHIFT, NULL,
00110 IDM_TIMELINE_SHIFT_ACTOR, IDH_TIMELINE_SHIFT_ACTOR, NULL,
00111 IDM_TIMELINE_MOVE_ALLA, IDH_TIMELINE_MOVE_ALLA, NULL,
00112
00113 IDM_FRAME_GO_FIRST, IDH_FRAME_GO_FIRST, NULL,
00114 IDM_FRAME_GO_PREVIOUS, IDH_FRAME_GO_PREVIOUS, NULL,
00115 IDM_FRAME_GO_NEXT, IDH_FRAME_GO_NEXT, NULL,
00116 IDM_FRAME_GO_LAST, IDH_FRAME_GO_LAST, NULL,
00117 IDM_FRAME_GO_FRAME, IDH_FRAME_GO_FRAME, NULL,
00118 IDM_FRAME_PLAY_WIRE, IDH_FRAME_PLAY_WIRE, NULL,
00119 IDM_FRAME_PLAY_QUICK, IDH_FRAME_PLAY_QUICK, NULL,
00120 IDM_FRAME_PLAY_FULL, IDH_FRAME_PLAY_FULL, NULL,
00121 IDM_FRAME_QUICKRENDER, IDH_FRAME_QUICKRENDER, NULL,
00122 IDM_FRAME_RENDER, IDH_FRAME_RENDER, NULL,
00123 IDM_FRAME_SHOW, IDH_FRAME_SHOW, NULL,
00124 IDM_FRAME_PREVIEW_MAKE, IDH_FRAME_PREVIEW_MAKE, NULL,
00125 IDM_FRAME_PREVIEW_SHOW, IDH_FRAME_PREVIEW_SHOW, NULL,
00126 IDM_FRAME_PREVIEW_FREE, IDH_FRAME_PREVIEW_FREE, NULL,
00127 IDM_FRAME_SETNUMBER, IDH_FRAME_SETNUMBER, NULL,
00128 IDM_FRAME_INSERT, IDH_FRAME_INSERT, NULL,
00129
00130 IDM_VIEW_DRAW_BOUNDED, IDH_VIEW_DRAW_BOUNDED, NULL,
00131 IDM_VIEW_DRAW_SELECTED, IDH_VIEW_DRAW_SELECTED, NULL,
00132 IDM_VIEW_DRAW_DESELECTED, IDH_VIEW_DRAW_DESELECTED, NULL,
00133 IDM_VIEW_DRAW_ALL, IDH_VIEW_DRAW_ALL, NULL,
00134 IDM_VIEW_LOCKBOUNDED, IDH_VIEW_LOCKBOUNDED, NULL,
00135 IDM_VIEW_GLOBALQUICKDRAW, IDH_VIEW_GLOBALQUICKDRAW, NULL,
00136 IDM_VIEW_GRID, IDH_VIEW_GRID, NULL,
00137 IDM_VIEW_DRAW_GRID, IDH_VIEW_DRAW_GRID, NULL,
00138 IDM_VIEW_DEFINEGRID, IDH_VIEW_DEFINEGRID, NULL,
00139 IDM_ZOOM_IN, IDH_ZOOM_IN, NULL,
00140 IDM_ZOOM_OUT, IDH_ZOOM_OUT, NULL,
00141 IDM_ZOOM_CENTRE, IDH_ZOOM_CENTRE, NULL,
00142 IDM_VIEW_RESTORE, IDH_VIEW_RESTORE, NULL,
00143 IDM_VIEW_FULL, IDH_VIEW_FULL, NULL,
00144 IDM_VIEW_SCREENCOLOURS, IDH_VIEW_SCREENCOLOURS, NULL,
00145 IDM_VIEW_FEEDBACK_CAMERA, IDH_VIEW_FEEDBACK_CAMERA, NULL,
00146 IDM_VIEW_FEEDBACK_LIGHT, IDH_VIEW_FEEDBACK_LIGHT, NULL,
00147 IDM_VIEW_FEEDBACK_CURSOR, IDH_VIEW_FEEDBACK_CURSOR, NULL,
00148
00149 IDM_WINDOW_SWITCHWINDOWS, IDH_WINDOW_SWITCH, NULL,
00150 IDM_VIEW_SWAPVIEWPOINT, IDH_VIEW_SWAPVIEWPOINT, NULL,
00151 IDM_WINDOW_RESET, IDH_WINDOW_RESET, NULL,
00152 IDM_WINDOW_TOOLLEFT, IDH_WINDOW_TOOLLEFT, NULL,
00153 IDM_WINDOW_BIGCAMERA, IDH_WINDOW_BIGCAMERA, NULL,
00154 IDM_WINDOW_COORDS, IDH_WINDOW_COORDS, NULL,
00155 IDM_WINDOW_COORD_DEF, IDH_WINDOW_COORD_DEF, NULL,
00156 IDM_WINDOW_COORD_LAST, IDH_WINDOW_COORD_LAST, NULL,
00157 IDM_WINDOW_CLOSE, IDH_WINDOW_CLOSE, NULL,
00158 IDM_WINDOW_HIDETOOLS, IDH_WINDOW_HIDETOOLS, NULL,
00159 IDM_WINDOW_SELECT, IDH_WINDOW_SELECT, NULL,
00160 IDM_FILE_EXP_OPENGL, IDH_FILE_EXP_OPENGL, NULL,
00161 IDM_WINDOW_SHOWOPENGL, IDH_WINDOW_SHOWOPENGL, NULL,
00162
00163 IDM_STOP, IDH_STOP, NULL,
00164 IDM_HELP, IDH_EVIHELP, NULL,
00165 IDM_HELP_GENERAL, IDH_HELP_GENERAL, NULL,
00166 IDM_HELP_HOME, IDH_HELP_HOME, NULL,
00167 IDM_HELP_SUPPORT, IDH_HELP_SUPPORT, NULL,
00168 IDM_HELP_HELP, IDH_HELP_HELP, NULL,
00169 IDM_HELP_ABOUT, IDH_HELP_ABOUT, NULL
00170 };
00171
00172 void LoadMenuHelpTable(HWND hwnd){
00173 char *p;
00174 int i,cch;
00175 MenuHelpData[0].str=(char *)X__Malloc(32);
00176 strcpy(MenuHelpData[0].str," ");
00177 for(i=1;i<NMENUHELPDATA;i++){
00178 if((p = (char *)X__Malloc(CCHTEXTMAX)) == NULL)return;
00179 if((cch = LoadString(ghinst_main,MenuHelpData[i].sCode,p,CCHTEXTMAX)) == 0){
00180 X__Free(p);
00181 return;
00182 }
00183 p = (char *)X__Realloc(p,cch+1);
00184 if(p == NULL)return;
00185 MenuHelpData[i].str=p;
00186 }
00187 }
00188
00189 UINT CheckMenuHelpData(UINT uItem){
00190 UINT i,id=0;
00191 for(i=0;i<NMENUHELPDATA;i++){
00192 if(uItem == MenuHelpData[i].iCode){id=i; break;}
00193 }
00194 return id;
00195 }
00196
00197 void DisplayMenuHelpData(HWND hwnd,UINT id){
00198 SendMessage(hwnd,SB_SETTEXT,(WPARAM)1,
00199 (LPARAM)MenuHelpData[id].str);
00200 return;
00201 }
00202
00203 void FreeMenuHelpData(void){
00204 long i;
00205 for(i=0;i<NMENUHELPDATA;i++)
00206 if(MenuHelpData[i].str != NULL)X__Free(MenuHelpData[i].str);
00207 return;
00208 }