Index: trunk/scconfig/Rev.h =================================================================== --- trunk/scconfig/Rev.h (revision 33055) +++ trunk/scconfig/Rev.h (revision 33056) @@ -1 +1 @@ -static const int myrev = 32952; +static const int myrev = 33056; Index: trunk/scconfig/Rev.tab =================================================================== --- trunk/scconfig/Rev.tab (revision 33055) +++ trunk/scconfig/Rev.tab (revision 33056) @@ -1,3 +1,4 @@ +33056 configure menu item for feature plugins: asm and shape 32952 configure new plugin: ch_editpoint draw edit points of objects 32934 configure moving onpoint from core to plugin 32857 configure menu item for import_ttf Index: trunk/src_plugins/asm/Plug.tmpasm =================================================================== --- trunk/src_plugins/asm/Plug.tmpasm (revision 33055) +++ trunk/src_plugins/asm/Plug.tmpasm (revision 33056) @@ -2,6 +2,8 @@ put /local/pcb/mod/CONF {$(PLUGDIR)/asm/asm_conf.h} put /local/pcb/mod/CONFFILE {asm.conf} put /local/pcb/mod/CONFVAR {asm_conf_internal} +put /local/pcb/mod/MENUFILE {asm-menu.lht} +put /local/pcb/mod/MENUVAR {asm_menu} put /local/pcb/mod/OBJS [@ $(PLUGDIR)/asm/asm.o @] Index: trunk/src_plugins/asm/asm-menu.lht =================================================================== --- trunk/src_plugins/asm/asm-menu.lht (nonexistent) +++ trunk/src_plugins/asm/asm-menu.lht (revision 33056) @@ -0,0 +1,9 @@ +ha:rnd-menu-v1 { + li:anchored { + ha:@feature_plugins { + li:submenu { + ha:Assembly helper (interactive) = { action=asm() } + } + } + } +} \ No newline at end of file Index: trunk/src_plugins/asm/asm.c =================================================================== --- trunk/src_plugins/asm/asm.c (revision 33055) +++ trunk/src_plugins/asm/asm.c (revision 33056) @@ -41,11 +41,13 @@ #include #include #include +#include #include "search.h" #include "draw.h" #include "select.h" #include "asm_conf.h" #include "../src_plugins/asm/conf_internal.c" +#include "menu_internal.c" conf_asm_t conf_asm; #define ASM_CONF_FN "asm.conf" @@ -633,6 +635,7 @@ void pplg_uninit_asm(void) { + rnd_hid_menu_unload(rnd_gui, asm_cookie); rnd_remove_actions_by_cookie(asm_cookie); rnd_conf_unreg_file(ASM_CONF_FN, asm_conf_internal); rnd_conf_unreg_fields("plugins/asm1/"); @@ -648,5 +651,7 @@ RND_REGISTER_ACTIONS(asm_action_list, asm_cookie) + rnd_hid_menu_load(rnd_gui, NULL, asm_cookie, 175, NULL, 0, asm_menu, "plugin: asm"); + return 0; } Index: trunk/src_plugins/shape/Plug.tmpasm =================================================================== --- trunk/src_plugins/shape/Plug.tmpasm (revision 33055) +++ trunk/src_plugins/shape/Plug.tmpasm (revision 33056) @@ -1,4 +1,6 @@ put /local/pcb/mod {shape} +put /local/pcb/mod/MENUFILE {shape-menu.lht} +put /local/pcb/mod/MENUVAR {shape_menu} append /local/pcb/mod/OBJS [@ $(PLUGDIR)/shape/shape.o @] Index: trunk/src_plugins/shape/shape-menu.lht =================================================================== --- trunk/src_plugins/shape/shape-menu.lht (nonexistent) +++ trunk/src_plugins/shape/shape-menu.lht (revision 33056) @@ -0,0 +1,9 @@ +ha:rnd-menu-v1 { + li:anchored { + ha:@feature_plugins { + li:submenu { + ha:Shape generator (interactive) = { action=shape() } + } + } + } +} \ No newline at end of file Index: trunk/src_plugins/shape/shape.c =================================================================== --- trunk/src_plugins/shape/shape.c (revision 33055) +++ trunk/src_plugins/shape/shape.c (revision 33056) @@ -44,6 +44,8 @@ #include "obj_poly_draw.h" #include "rotate.h" #include +#include +#include "menu_internal.c" const char *pcb_shape_corner_name[] = {"Rn", "Ch", "Sq", NULL}; @@ -627,6 +629,7 @@ void pplg_uninit_shape(void) { + rnd_hid_menu_unload(rnd_gui, pcb_shape_cookie); rnd_event_unbind_allcookie(pcb_shape_cookie); rnd_remove_actions_by_cookie(pcb_shape_cookie); } @@ -638,5 +641,6 @@ rnd_event_bind(PCB_EVENT_LAYERVIS_CHANGED, shape_layer_chg, NULL, pcb_shape_cookie); + rnd_hid_menu_load(rnd_gui, NULL, pcb_shape_cookie, 175, NULL, 0, shape_menu, "plugin: shape"); return 0; }