Index: trunk/src/action_helper.c =================================================================== --- trunk/src/action_helper.c (revision 17687) +++ trunk/src/action_helper.c (revision 17688) @@ -118,21 +118,3 @@ pcb_draw(); } - -void pcb_release_mode(void) -{ - pcb_tool_release_mode(); - - if (pcb_tool_is_saved) - pcb_tool_restore(); - pcb_tool_is_saved = pcb_false; - pcb_draw(); -} - -void pcb_notify_mode(void) -{ - if (conf_core.temp.rat_warn) - pcb_clear_warnings(); - pcb_tool_notify_mode(); - pcb_draw(); -} Index: trunk/src/action_helper.h =================================================================== --- trunk/src/action_helper.h (revision 17687) +++ trunk/src/action_helper.h (revision 17688) @@ -33,16 +33,10 @@ #define PCB_ACTION_ARG(n) (argc > (n) ? argv[n] : NULL) -/* does what's appropriate for the current mode setting (when clicked). This - normally means creation of an object at the current crosshair location. - new created objects are added to the create undo list of course */ -void pcb_notify_mode(void); /* Clear warning color from pins/pads */ void pcb_clear_warnings(void); -void pcb_release_mode(void); - /* --------------------------------------------------------------------------- * Macros called by various action routines to show usage or to report * a syntax error and fail Index: trunk/src/tool.c =================================================================== --- trunk/src/tool.c (revision 17687) +++ trunk/src/tool.c (revision 17688) @@ -393,3 +393,22 @@ pcb_tool_unreg_by_cookie(pcb_tool_cookie); } + +/*** old helpers ***/ +void pcb_release_mode(void) +{ + pcb_tool_release_mode(); + + if (pcb_tool_is_saved) + pcb_tool_restore(); + pcb_tool_is_saved = pcb_false; + pcb_draw(); +} + +void pcb_notify_mode(void) +{ + if (conf_core.temp.rat_warn) + pcb_clear_warnings(); + pcb_tool_notify_mode(); + pcb_draw(); +} Index: trunk/src/tool.h =================================================================== --- trunk/src/tool.h (revision 17687) +++ trunk/src/tool.h (revision 17688) @@ -132,6 +132,16 @@ pcb_bool pcb_tool_should_snap_offgrid_line(pcb_layer_t *layer, pcb_line_t *line); +/**** old heleprs ****/ + +/* does what's appropriate for the current mode setting (when clicked). This + normally means creation of an object at the current crosshair location. + new created objects are added to the create undo list of course */ +void pcb_notify_mode(void); + +void pcb_release_mode(void); + + /**** Low level, for internal use ****/ /* Get the tool pointer of a tool by id */