/* * Copyright (c) 1994, Riley Rainey, riley@netcon.com * * Permission to use, copy, modify and distribute (without charge) this * software, documentation, images, etc. is granted, provided that this * comment and the author's name is retained. * * This software is provided by the author as is, and without any expressed * or implied warranties, including, but not limited to, the implied * warranties of merchantability and fitness for a particular purpose. In no * event shall the author be liable for any direct, indirect, incidental, or * consequential damages arising in any way out of the use of this software. */ #include #include #include #include "gedit.h" #include #include char *markers[] = { "Pilot's Head Location", "Nose/Tail Gear Ground Contact Point", "Main Gear Ground Contact Point", "Tail Ground Contact Point", NULL }; extern void MenuCB(); void CreateMarkerList(parent) Widget parent; { register char **p; register int count = 0, i, n; XmString string; Widget item, menu, cascade; Arg args[4]; char s[32]; for (p=markers; *p; ++p) { ++count; } marker_count = count; n = 0; menu = XmCreatePulldownMenu (parent, "marker_menu", args, n); marker_list = (marker_t *) XtMalloc (count * sizeof(marker_t)); for (i=0; i