Index: Plug.tmpasm =================================================================== --- Plug.tmpasm (revision 32192) +++ Plug.tmpasm (revision 32193) @@ -1,5 +1,7 @@ put /local/pcb/mod {import_dsn} put /local/pcb/mod/OBJS [@ $(PLUGDIR)/import_dsn/dsn.o @] +put /local/pcb/mod/MENUFILE {dsn-menu.lht} +put /local/pcb/mod/MENUVAR {dsn_menu} switch /local/pcb/import_dsn/controls case {buildin} include /local/pcb/tmpasm/buildin; end; Index: dsn-menu.lht =================================================================== --- dsn-menu.lht (nonexistent) +++ dsn-menu.lht (revision 32193) @@ -0,0 +1,9 @@ +ha:rnd-menu-v1 { + li:anchored { + ha:@import_geo { + li:submenu { + ha:Load routed dsn or ses file = { action=LoadDsnFrom() } + } + } + } +} \ No newline at end of file Index: dsn.c =================================================================== --- dsn.c (revision 32192) +++ dsn.c (revision 32193) @@ -42,10 +42,14 @@ #include #include +#include #include #include "src_plugins/lib_compat_help/pstk_compat.h" +#include "menu_internal.c" + + static const char *dsn_cookie = "dsn importer"; typedef enum { @@ -344,7 +348,7 @@ void pplg_uninit_import_dsn(void) { rnd_remove_actions_by_cookie(dsn_cookie); - + rnd_hid_menu_unload(rnd_gui, dsn_cookie); } int pplg_init_import_dsn(void) @@ -351,6 +355,7 @@ { RND_API_CHK_VER; RND_REGISTER_ACTIONS(dsn_action_list, dsn_cookie) + rnd_hid_menu_load(rnd_gui, NULL, dsn_cookie, 191, NULL, 0, dsn_menu, "plugin: import_dsn"); return 0; }