Index: Plug.tmpasm =================================================================== --- Plug.tmpasm (revision 32200) +++ Plug.tmpasm (revision 32201) @@ -4,6 +4,8 @@ $(PLUGDIR)/import_mentor_sch/mentor_sch.o @] put /local/pcb/mod/CONF {$(PLUGDIR)/import_mentor_sch/mentor_sch_conf.h} +put /local/pcb/mod/MENUFILE {mentor-menu.lht} +put /local/pcb/mod/MENUVAR {mentor_menu} switch /local/pcb/import_mentor_sch/controls Index: mentor-menu.lht =================================================================== --- mentor-menu.lht (nonexistent) +++ mentor-menu.lht (revision 32201) @@ -0,0 +1,9 @@ +ha:rnd-menu-v1 { + li:anchored { + ha:@import_sch { + li:submenu { + ha:Import mentor graphics schematics = { action=LoadMentorFrom() } + } + } + } +} \ No newline at end of file Index: mentor_sch.c =================================================================== --- mentor_sch.c (revision 32200) +++ mentor_sch.c (revision 32201) @@ -39,7 +39,7 @@ #include #include #include - +#include #include #include #include @@ -49,6 +49,8 @@ #include "netlist_helper.h" +#include "menu_internal.c" + conf_mentor_sch_t conf_mentor; @@ -311,6 +313,7 @@ rnd_remove_actions_by_cookie(mentor_sch_cookie); rnd_conf_unreg_fields("plugins/import_mentor_sch/"); RND_HOOK_UNREGISTER(pcb_plug_import_t, pcb_plug_import_chain, &import_mentor_sch); + rnd_hid_menu_unload(rnd_gui, mentor_sch_cookie); } int pplg_init_import_mentor_sch(void) @@ -336,5 +339,6 @@ RND_HOOK_REGISTER(pcb_plug_import_t, pcb_plug_import_chain, &import_mentor_sch); RND_REGISTER_ACTIONS(mentor_sch_action_list, mentor_sch_cookie) + rnd_hid_menu_load(rnd_gui, NULL, mentor_sch_cookie, 185, NULL, 0, mentor_menu, "plugin: mentor_sch"); return 0; }