Index: Plug.tmpasm =================================================================== --- Plug.tmpasm (revision 32197) +++ Plug.tmpasm (revision 32198) @@ -1,4 +1,6 @@ put /local/pcb/mod {io_hyp} +put /local/pcb/mod/MENUFILE {hyp-menu.lht} +put /local/pcb/mod/MENUVAR {hyp_menu} append /local/pcb/mod/OBJS [@ $(PLUGDIR)/io_hyp/io_hyp.o Index: hyp-menu.lht =================================================================== --- hyp-menu.lht (nonexistent) +++ hyp-menu.lht (revision 32198) @@ -0,0 +1,9 @@ +ha:rnd-menu-v1 { + li:anchored { + ha:@import_geo { + li:submenu { + ha:Load Hyperlynx .hyp file = { action=LoadHypFrom() } + } + } + } +} \ No newline at end of file Index: io_hyp.c =================================================================== --- io_hyp.c (revision 32197) +++ io_hyp.c (revision 32198) @@ -37,6 +37,7 @@ #include #include #include +#include #include #include "event.h" #include "plug_io.h" @@ -45,6 +46,8 @@ #include "write.h" #include "obj_rat.h" +#include "menu_internal.c" + static const char *hyp_cookie = "hyp importer"; @@ -162,7 +165,7 @@ { rnd_remove_actions_by_cookie(hyp_cookie); RND_HOOK_UNREGISTER(pcb_plug_io_t, pcb_plug_io_chain, &io_hyp); - + rnd_hid_menu_unload(rnd_gui, hyp_cookie); } int pplg_init_io_hyp(void) @@ -191,7 +194,10 @@ RND_REGISTER_ACTIONS(hyp_action_list, hyp_cookie) - return 0; + + rnd_hid_menu_load(rnd_gui, NULL, hyp_cookie, 130, NULL, 0, hyp_menu, "plugin: io_hyp"); + + return 0; } /* not truncated */