Index: Plug.tmpasm =================================================================== --- Plug.tmpasm (revision 32187) +++ Plug.tmpasm (revision 32188) @@ -1,6 +1,8 @@ put /local/pcb/mod {vendordrill} append /local/pcb/mod/OBJS [@ $(PLUGDIR)/vendordrill/vendor.o @] put /local/pcb/mod/CONF {$(PLUGDIR)/vendordrill/vendor_conf.h} +put /local/pcb/mod/MENUFILE {vendor-menu.lht} +put /local/pcb/mod/MENUVAR {vendor_menu} switch /local/pcb/vendordrill/controls case {buildin} include /local/pcb/tmpasm/buildin; end; Index: vendor-menu.lht =================================================================== --- vendor-menu.lht (nonexistent) +++ vendor-menu.lht (revision 32188) @@ -0,0 +1,23 @@ +ha:rnd-menu-v1 { + li:main_menu { + ha:Mode = { + li:submenu { + ha:Vendor drill mapping = { checked=plugins/vendor/enable; action=conf(toggle, plugins/vendor/enable, design) } + } + } + + ha:Connects = { + li:submenu { + ha:Apply vendor drill mapping = { action=ApplyVendor() } + } + } + } + + li:anchored { + ha:@import_geo { + li:submenu { + ha:Load vendor resource file = { action=LoadVendorFrom() } + } + } + } +} \ No newline at end of file Index: vendor.c =================================================================== --- vendor.c (revision 32187) +++ vendor.c (revision 32188) @@ -53,6 +53,8 @@ #include #include +#include "menu_internal.c" + conf_vendor_t conf_vendor; static void add_to_drills(char *); @@ -671,5 +673,6 @@ rnd_event_bind(PCB_EVENT_NEW_PSTK, vendor_new_pstk, NULL, vendor_cookie); RND_REGISTER_ACTIONS(vendor_action_list, vendor_cookie) + rnd_hid_menu_load(rnd_gui, NULL, vendor_cookie, 190, NULL, 0, vendor_menu, "vendor drill mapping menus"); return 0; }