Index: trunk/scconfig/Rev.h =================================================================== --- trunk/scconfig/Rev.h (revision 32206) +++ trunk/scconfig/Rev.h (revision 32207) @@ -1 +1 @@ -static const int myrev = 32206; +static const int myrev = 32207; Index: trunk/scconfig/Rev.tab =================================================================== --- trunk/scconfig/Rev.tab (revision 32206) +++ trunk/scconfig/Rev.tab (revision 32207) @@ -1,4 +1,4 @@ -32206 configure cleanup: eahc plugin shall register its own menus +32207 configure cleanup: eahc plugin shall register its own menus 32187 configure librnd: infra for menu patching 32169 configure hid_lesstif is part of the hidlib 32120 configure removing the old drc in favor of drc_query Index: trunk/src/Makefile.dep =================================================================== --- trunk/src/Makefile.dep (revision 32206) +++ trunk/src/Makefile.dep (revision 32207) @@ -4812,6 +4812,7 @@ ../src_plugins/lib_compat_help/subc_help.h obj_subc.h layer.h \ ../src_plugins/lib_compat_help/pstk_help.h ../src_plugins/io_tedax/io_tedax.o: ../src_plugins/io_tedax/io_tedax.c \ + ../src_plugins/io_tedax/menu_internal.c \ ../config.h librnd/config.h ../src_plugins/io_tedax/footprint.h data.h \ globalconst.h librnd/core/globalconst.h librnd/core/global_typedefs.h \ librnd/core/rnd_bool.h layer.h librnd/core/color.h \ Index: trunk/src/pcb-menu-default.lht =================================================================== --- trunk/src/pcb-menu-default.lht (revision 32206) +++ trunk/src/pcb-menu-default.lht (revision 32207) @@ -66,7 +66,7 @@ li:submenu { ha:Import schematics... = { action=ImportSch() } ha:Configure import schematics... = { action=ImportSch(dialog) } - ha:Import tEDAx schematics = { action=LoadTedaxFrom(netlist) } + @import_top - ha:Load subcircuit data to paste-buffer = { li:action={PasteBuffer(Clear); Load(ElementTobuffer)} } ha:Load layout data to paste-buffer = { li:action={PasteBuffer(Clear); Load(LayoutTobuffer)} } Index: trunk/src_plugins/io_tedax/Plug.tmpasm =================================================================== --- trunk/src_plugins/io_tedax/Plug.tmpasm (revision 32206) +++ trunk/src_plugins/io_tedax/Plug.tmpasm (revision 32207) @@ -12,6 +12,8 @@ $(PLUGDIR)/io_tedax/tetest.o $(PLUGDIR)/io_tedax/parse.o @] +put /local/pcb/mod/MENUFILE {tedax-menu.lht} +put /local/pcb/mod/MENUVAR {tedax_menu} put /local/pcb/mod/SPHASH {$(PLUGDIR)/io_tedax/tdrc_keys.sphash} put /local/pcb/mod/SPHASH_ARGS {--multi} Index: trunk/src_plugins/io_tedax/io_tedax.c =================================================================== --- trunk/src_plugins/io_tedax/io_tedax.c (revision 32206) +++ trunk/src_plugins/io_tedax/io_tedax.c (revision 32207) @@ -42,6 +42,7 @@ #include #include #include +#include #include "plug_io.h" #include "stackup.h" #include "tlayer.h" @@ -51,6 +52,8 @@ #include "tetest.h" #include "tnetlist.h" +#include "menu_internal.c" + static const char *tedax_cookie = "tEDAx IO"; static pcb_plug_io_t io_tedax; @@ -298,6 +301,7 @@ tedax_etest_uninit(); RND_HOOK_UNREGISTER(pcb_plug_io_t, pcb_plug_io_chain, &io_tedax); pcb_tedax_net_uninit(); + rnd_hid_menu_unload(rnd_gui, tedax_cookie); } int pplg_init_io_tedax(void) @@ -330,6 +334,6 @@ RND_REGISTER_ACTIONS(tedax_action_list, tedax_cookie) pcb_tedax_net_init(); - + rnd_hid_menu_load(rnd_gui, NULL, tedax_cookie, 195, NULL, 0, tedax_menu, "plugin: io_tedax"); return 0; } Index: trunk/src_plugins/io_tedax/tedax-menu.lht =================================================================== --- trunk/src_plugins/io_tedax/tedax-menu.lht (nonexistent) +++ trunk/src_plugins/io_tedax/tedax-menu.lht (revision 32207) @@ -0,0 +1,9 @@ +ha:rnd-menu-v1 { + li:anchored { + ha:@import_top { + li:submenu { + ha:Import tEDAx schematics = { action=LoadTedaxFrom(netlist) } + } + } + } +} \ No newline at end of file