Index: trunk/scconfig/Rev.h =================================================================== --- trunk/scconfig/Rev.h (revision 29411) +++ trunk/scconfig/Rev.h (revision 29412) @@ -1 +1 @@ -static const int myrev = 29405; +static const int myrev = 29412; Index: trunk/scconfig/Rev.tab =================================================================== --- trunk/scconfig/Rev.tab (revision 29411) +++ trunk/scconfig/Rev.tab (revision 29412) @@ -1,4 +1,4 @@ -29405 configure move generic actions from core to librnd +29412 configure move generic actions from core to librnd 29385 configure remove build system special casing: generated lists for action registration 29375 configure librnd separation: stroke plugin API conversion from stub to event 29340 configure librnd separation: tool code Index: trunk/src/Makefile.in =================================================================== --- trunk/src/Makefile.in (revision 29411) +++ trunk/src/Makefile.in (revision 29412) @@ -169,6 +169,7 @@ data.o draw.o drc.o + event.o extobj.o extobj_act.o font.o Index: trunk/src/board.c =================================================================== --- trunk/src/board.c (revision 29411) +++ trunk/src/board.c (revision 29412) @@ -37,7 +37,7 @@ #include #include "undo.h" #include "draw.h" -#include +#include "event.h" #include #include #include "layer.h" Index: trunk/src/change_act.c =================================================================== --- trunk/src/change_act.c (revision 29411) +++ trunk/src/change_act.c (revision 29412) @@ -44,7 +44,7 @@ #include "draw.h" #include "search.h" #include "undo.h" -#include +#include "event.h" #include #include "obj_rat_draw.h" #include "data_it.h" Index: trunk/src/crosshair.c =================================================================== --- trunk/src/crosshair.c (revision 29411) +++ trunk/src/crosshair.c (revision 29412) @@ -46,7 +46,7 @@ #include "vtonpoint.h" #include "find.h" #include "undo.h" -#include +#include "event.h" #include #include "obj_line_draw.h" Index: trunk/src/drc.c =================================================================== --- trunk/src/drc.c (revision 29411) +++ trunk/src/drc.c (revision 29412) @@ -33,7 +33,7 @@ #include #include "conf_core.h" #include -#include +#include "event.h" pcb_view_list_t pcb_drc_lst; Index: trunk/src/event.c =================================================================== --- trunk/src/event.c (nonexistent) +++ trunk/src/event.c (revision 29412) @@ -0,0 +1,56 @@ +/* + * COPYRIGHT + * + * pcb-rnd, interactive printed circuit board design + * Copyright (C) 2016,2020 Tibor 'Igor2' Palinkas + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Contact: + * Project page: http://repo.hu/projects/pcb-rnd + * lead developer: http://repo.hu/projects/pcb-rnd/contact.html + * mailing list: pcb-rnd (at) list.repo.hu (send "subscribe") + */ + +#include "config.h" +#include "event.h" + +static const char *pcb_evnames[] = { + "pcbev_new_pstk", + "pcbev_route_styles_changed", + "pcbev_netlist_changed", + "pcbev_layers_changed", + "pcbev_layer_changed_grp", + "pcbev_layervis_changed", + "pcbev_library_changed", + "pcbev_font_changed", + "pcbev_undo_post", + "pcbev_rubber_reset", + "pcbev_rubber_move", + "pcbev_rubber_move_draw", + "pcbev_rubber_rotate90", + "pcbev_rubber_rotate", + "pcbev_rubber_lookup_lines", + "pcbev_rubber_lookup_rats", + "pcbev_rubber_constrain_main_line", + "pcbev_draw_crosshair_chatt", + "pcbev_drc_run", + "pcbev_net_indicate_short" +}; + +void pcb_event_init_app(void) +{ + pcb_event_app_reg(PCB_EVENT_last, pcb_evnames, sizeof(pcb_evnames)); +} Index: trunk/src/event.h =================================================================== --- trunk/src/event.h (nonexistent) +++ trunk/src/event.h (revision 29412) @@ -0,0 +1,65 @@ +/* + * COPYRIGHT + * + * pcb-rnd, interactive printed circuit board design + * Copyright (C) 2016,2020 Tibor 'Igor2' Palinkas + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Contact: + * Project page: http://repo.hu/projects/pcb-rnd + * lead developer: http://repo.hu/projects/pcb-rnd/contact.html + * mailing list: pcb-rnd (at) list.repo.hu (send "subscribe") + */ + +#ifndef PCB_EVENT_H +#define PCB_EVENT_H + +#include + +enum { + PCB_EVENT_NEW_PSTK = RND_EVENT_app, /* called when a new padstack is created */ + + PCB_EVENT_ROUTE_STYLES_CHANGED, /* called after any route style change (used to be the RouteStylesChanged action) */ + PCB_EVENT_NETLIST_CHANGED, /* called after any netlist change (used to be the NetlistChanged action) */ + PCB_EVENT_LAYERS_CHANGED, /* called after layers or layer groups change (used to be the LayersChanged action) */ + PCB_EVENT_LAYER_CHANGED_GRP, /* called after a layer changed its group; argument: layer pointer */ + PCB_EVENT_LAYERVIS_CHANGED, /* called after the visibility of layers has changed */ + PCB_EVENT_LIBRARY_CHANGED, /* called after a change in the footprint lib (used to be the LibraryChanged action) */ + PCB_EVENT_FONT_CHANGED, /* called when a font has changed; argument is the font ID */ + + PCB_EVENT_UNDO_POST, /* called after an undo/redo operation; argument is an integer pcb_undo_ev_t */ + + PCB_EVENT_RUBBER_RESET, /* rubber band: reset attached */ + PCB_EVENT_RUBBER_MOVE, /* rubber band: object moved */ + PCB_EVENT_RUBBER_MOVE_DRAW, /* rubber band: draw crosshair-attached rubber band objects after a move or copy */ + PCB_EVENT_RUBBER_ROTATE90, /* rubber band: crosshair object rotated by 90 degrees */ + PCB_EVENT_RUBBER_ROTATE, /* rubber band: crosshair object rotated by arbitrary angle */ + PCB_EVENT_RUBBER_LOOKUP_LINES, /* rubber band: attach rubber banded line objects to crosshair */ + PCB_EVENT_RUBBER_LOOKUP_RATS, /* rubber band: attach rubber banded rat lines objects to crosshair */ + PCB_EVENT_RUBBER_CONSTRAIN_MAIN_LINE, /* rubber band: adapt main line to keep rubberband lines direction */ + + PCB_EVENT_DRAW_CROSSHAIR_CHATT, /* called from crosshair code upon attached object recalculation; event handlers can use this hook to enforce various geometric restrictions */ + + PCB_EVENT_DRC_RUN, /* called from core to run all configured DRCs (implemented in plugins) */ + + PCB_EVENT_NET_INDICATE_SHORT, /* called by core to get a shortcircuit indicated (e.g. by mincut). Args: (pcb_net_t *net, pcb_any_obj_t *offending_term, pcb_net_t *offending_net, int *handled, int *cancel) - if *handled is non-zero, the short is already indicated; if *cancel is non-zero the whole process is cancelled, no more advanced short checking should take place in this session */ + + PCB_EVENT_last /* not a real event */ +}; + +void pcb_event_init_app(void); + +#endif Index: trunk/src/file_act.c =================================================================== --- trunk/src/file_act.c (revision 29411) +++ trunk/src/file_act.c (revision 29412) @@ -44,7 +44,7 @@ #include "plug_import.h" #include "remove.h" #include "draw.h" -#include +#include "event.h" #include "find.h" #include "search.h" #include Index: trunk/src/font.c =================================================================== --- trunk/src/font.c (revision 29411) +++ trunk/src/font.c (revision 29412) @@ -41,7 +41,7 @@ #include "plug_io.h" #include #include -#include +#include "event.h" #include #define STEP_SYMBOLLINE 10 Index: trunk/src/font_act.c =================================================================== --- trunk/src/font_act.c (revision 29411) +++ trunk/src/font_act.c (revision 29412) @@ -31,7 +31,7 @@ #include "font.h" #include "conf_core.h" #include "plug_io.h" -#include +#include "event.h" #define PCB (do not use PCB directly) Index: trunk/src/gui_act.c =================================================================== --- trunk/src/gui_act.c (revision 29411) +++ trunk/src/gui_act.c (revision 29412) @@ -51,7 +51,7 @@ #include #include #include -#include +#include "event.h" #include "layer.h" #include "layer_ui.h" #include "layer_grp.h" Index: trunk/src/layer.c =================================================================== --- trunk/src/layer.c (revision 29411) +++ trunk/src/layer.c (revision 29412) @@ -34,7 +34,7 @@ #include "layer.h" #include #include "undo.h" -#include +#include "event.h" #include "layer_ui.h" #include "layer_vis.h" #include "funchash_core.h" Index: trunk/src/layer_grp.c =================================================================== --- trunk/src/layer_grp.c (revision 29411) +++ trunk/src/layer_grp.c (revision 29412) @@ -32,7 +32,7 @@ #include "data.h" #include "layer_grp.h" #include -#include +#include "event.h" #include #include "funchash_core.h" Index: trunk/src/layer_ui.c =================================================================== --- trunk/src/layer_ui.c (revision 29411) +++ trunk/src/layer_ui.c (revision 29412) @@ -32,7 +32,7 @@ #include "config.h" #include "board.h" #include "layer.h" -#include +#include "event.h" #include #include "genvector/vtp0.h" #include "layer_ui.h" Index: trunk/src/layer_vis.c =================================================================== --- trunk/src/layer_vis.c (revision 29411) +++ trunk/src/layer_vis.c (revision 29412) @@ -36,7 +36,7 @@ #include "layer.h" #include "layer_ui.h" #include "layer_vis.h" -#include +#include "event.h" #include #include Index: trunk/src/librnd/core/event.c =================================================================== --- trunk/src/librnd/core/event.c (revision 29411) +++ trunk/src/librnd/core/event.c (revision 29412) @@ -55,35 +55,13 @@ "pcbev_stroke_start", "pcbev_stroke_record", "pcbev_stroke_finish", - - /*** app ***/ + "pcbev_board_changed", + "pcbev_board_meta_changed", + "pcbev_board_fn_changed", "pcbev_save_pre", "pcbev_save_post", "pcbev_load_pre", - "pcbev_load_post", - "pcbev_board_changed", - "pcbev_board_meta_changed", - "pcbev_board_fn_changed", - "pcbev_route_styles_changed", - "pcbev_netlist_changed", - "pcbev_layers_changed", - "pcbev_layer_changed_grp", - "pcbev_layervis_changed", - "pcbev_library_changed", - "pcbev_font_changed", - "pcbev_undo_post", - "pcbev_new_pstk", - "pcbev_rubber_reset", - "pcbev_rubber_move", - "pcbev_rubber_move_draw", - "pcbev_rubber_rotate90", - "pcbev_rubber_rotate", - "pcbev_rubber_lookup_lines", - "pcbev_rubber_lookup_rats", - "pcbev_rubber_constrain_main_line", - "pcbev_draw_crosshair_chatt", - "pcbev_drc_run", - "pcbev_net_indicate_short" + "pcbev_load_post" }; static const char **rnd_evnames_app = NULL; @@ -98,7 +76,7 @@ event_t *next; }; -static event_t *rnd_events_lib[PCB_EVENT_last]; +static event_t *rnd_events_lib[RND_EVENT_last]; static event_t **rnd_events_app = NULL; #define EVENT_SETUP(ev, err) \ @@ -105,20 +83,20 @@ pcb_event_id_t evid = ev; \ const char **evnames = rnd_evnames_lib; \ event_t **events = rnd_events_lib; \ - if ((ev >= PCB_EVENT_app) && (rnd_event_app_last > 0)) { \ + if ((ev >= RND_EVENT_app) && (rnd_event_app_last > 0)) { \ if ((ev) > rnd_event_app_last) { err; } \ evnames = rnd_evnames_app; \ events = rnd_events_app; \ - ev -= PCB_EVENT_app; \ + ev -= RND_EVENT_app; \ } \ - else if (!(((ev) >= 0) && ((ev) < PCB_EVENT_last))) { err; } + else if (!(((ev) >= 0) && ((ev) < RND_EVENT_last))) { err; } void pcb_event_app_reg(long last_event_id, const char **event_names, long sizeof_event_names) { rnd_event_app_last = last_event_id; rnd_evnames_app = event_names; - assert((sizeof_event_names / sizeof(char *)) == last_event_id - PCB_EVENT_app); - rnd_events_app = calloc(sizeof(event_t), last_event_id - PCB_EVENT_app + 1); + assert((sizeof_event_names / sizeof(char *)) == last_event_id - RND_EVENT_app); + rnd_events_app = calloc(sizeof(event_t), last_event_id - RND_EVENT_app + 1); } void pcb_event_bind(pcb_event_id_t ev, pcb_event_handler_t *handler, void *user_data, const char *cookie) @@ -183,8 +161,10 @@ void pcb_event_unbind_allcookie(const char *cookie) { pcb_event_id_t n; - for (n = 0; n < PCB_EVENT_last; n++) + for (n = 0; n < RND_EVENT_last; n++) pcb_event_unbind_cookie(n, cookie); + for (n = RND_EVENT_app; n < rnd_event_app_last; n++) + pcb_event_unbind_cookie(n, cookie); } const char *pcb_event_name(pcb_event_id_t ev) @@ -271,7 +251,7 @@ void pcb_events_init(void) { - if ((sizeof(rnd_evnames_lib) / sizeof(rnd_evnames_lib[0])) != PCB_EVENT_last) { + if ((sizeof(rnd_evnames_lib) / sizeof(rnd_evnames_lib[0])) != RND_EVENT_last) { fprintf(stderr, "INTERNAL ERROR: event.c: rnd_evnames_lib and pcb_event_id_t are out of sync\n"); exit(1); } @@ -293,9 +273,9 @@ void pcb_events_uninit(void) { - pcb_events_uninit_(rnd_events_lib, PCB_EVENT_last); + pcb_events_uninit_(rnd_events_lib, RND_EVENT_last); if (rnd_event_app_last > 0) - pcb_events_uninit_(rnd_events_app, rnd_event_app_last - PCB_EVENT_app); + pcb_events_uninit_(rnd_events_app, rnd_event_app_last - RND_EVENT_app); free(rnd_events_app); } Index: trunk/src/librnd/core/event.h =================================================================== --- trunk/src/librnd/core/event.h (revision 29411) +++ trunk/src/librnd/core/event.h (revision 29412) @@ -24,8 +24,8 @@ * mailing list: pcb-rnd (at) list.repo.hu (send "subscribe") */ -#ifndef PCB_EVENT_H -#define PCB_EVENT_H +#ifndef RND_EVENT_H +#define RND_EVENT_H #include #include #include @@ -61,44 +61,16 @@ PCB_EVENT_STROKE_RECORD, /* parameters: pcb_coord_t x, pcb_coord_t y */ PCB_EVENT_STROKE_FINISH, /* parameters: int *handled; if it is non-zero, stroke has handled the request and Tool() should return 1, breaking action script execution */ -/*** app ***/ - - PCB_EVENT_SAVE_PRE, /* called before saving the design */ - PCB_EVENT_SAVE_POST, /* called after saving the design */ - PCB_EVENT_LOAD_PRE, /* called before loading a new design */ - PCB_EVENT_LOAD_POST, /* called after loading a new design, whether it was successful or not */ - PCB_EVENT_BOARD_CHANGED, /* called after the board being edited got _replaced_ (used to be the PCBChanged action) */ PCB_EVENT_BOARD_META_CHANGED, /* called if the metadata of the board has changed */ PCB_EVENT_BOARD_FN_CHANGED, /* called after the file name of the board has changed */ - PCB_EVENT_ROUTE_STYLES_CHANGED, /* called after any route style change (used to be the RouteStylesChanged action) */ - PCB_EVENT_NETLIST_CHANGED, /* called after any netlist change (used to be the NetlistChanged action) */ - PCB_EVENT_LAYERS_CHANGED, /* called after layers or layer groups change (used to be the LayersChanged action) */ - PCB_EVENT_LAYER_CHANGED_GRP, /* called after a layer changed its group; argument: layer pointer */ - PCB_EVENT_LAYERVIS_CHANGED, /* called after the visibility of layers has changed */ - PCB_EVENT_LIBRARY_CHANGED, /* called after a change in the footprint lib (used to be the LibraryChanged action) */ - PCB_EVENT_FONT_CHANGED, /* called when a font has changed; argument is the font ID */ - PCB_EVENT_UNDO_POST, /* called after an undo/redo operation; argument is an integer pcb_undo_ev_t */ + PCB_EVENT_SAVE_PRE, /* called before saving the design (required for window placement) */ + PCB_EVENT_SAVE_POST, /* called after saving the design (required for window placement) */ + PCB_EVENT_LOAD_PRE, /* called before loading a new design (required for window placement) */ + PCB_EVENT_LOAD_POST, /* called after loading a new design, whether it was successful or not (required for window placement) */ - PCB_EVENT_NEW_PSTK, /* called when a new padstack is created */ - - PCB_EVENT_RUBBER_RESET, /* rubber band: reset attached */ - PCB_EVENT_RUBBER_MOVE, /* rubber band: object moved */ - PCB_EVENT_RUBBER_MOVE_DRAW, /* rubber band: draw crosshair-attached rubber band objects after a move or copy */ - PCB_EVENT_RUBBER_ROTATE90, /* rubber band: crosshair object rotated by 90 degrees */ - PCB_EVENT_RUBBER_ROTATE, /* rubber band: crosshair object rotated by arbitrary angle */ - PCB_EVENT_RUBBER_LOOKUP_LINES, /* rubber band: attach rubber banded line objects to crosshair */ - PCB_EVENT_RUBBER_LOOKUP_RATS, /* rubber band: attach rubber banded rat lines objects to crosshair */ - PCB_EVENT_RUBBER_CONSTRAIN_MAIN_LINE, /* rubber band: adapt main line to keep rubberband lines direction */ - - PCB_EVENT_DRAW_CROSSHAIR_CHATT, /* called from crosshair code upon attached object recalculation; event handlers can use this hook to enforce various geometric restrictions */ - - PCB_EVENT_DRC_RUN, /* called from core to run all configured DRCs (implemented in plugins) */ - - PCB_EVENT_NET_INDICATE_SHORT, /* called by core to get a shortcircuit indicated (e.g. by mincut). Args: (pcb_net_t *net, pcb_any_obj_t *offending_term, pcb_net_t *offending_net, int *handled, int *cancel) - if *handled is non-zero, the short is already indicated; if *cancel is non-zero the whole process is cancelled, no more advanced short checking should take place in this session */ - - PCB_EVENT_last /* not a real event */ + RND_EVENT_last /* not a real event */ } pcb_event_id_t; /* Maximum number of arguments for an event handler, auto-set argv[0] included */ @@ -159,8 +131,8 @@ const char *pcb_event_name(pcb_event_id_t ev); /* The application may register its events by defining an enum - starting from PCB_EVENT_app and calling this function */ + starting from RND_EVENT_app and calling this function after hidlib_init1() */ void pcb_event_app_reg(long last_event_id, const char **event_names, long sizeof_event_names); -#define PCB_EVENT_app 100 +#define RND_EVENT_app 100 #endif Index: trunk/src/main.c =================================================================== --- trunk/src/main.c (revision 29411) +++ trunk/src/main.c (revision 29412) @@ -54,7 +54,7 @@ #include #include "plug_footprint.h" #include "plug_import.h" -#include +#include "event.h" #include #include #include "conf_core.h" @@ -424,6 +424,7 @@ pcb_extobj_init(); pcb_hidlib_init1(conf_core_init); + pcb_event_init_app(); pcb_conf_set(CFR_INTERNAL, "rc/path/exec_prefix", -1, exec_prefix, POL_OVERWRITE); free(exec_prefix); Index: trunk/src/move.c =================================================================== --- trunk/src/move.c (revision 29411) +++ trunk/src/move.c (revision 29412) @@ -38,7 +38,7 @@ #include "move.h" #include "select.h" #include "undo.h" -#include +#include "event.h" #include #include #include "obj_arc_op.h" Index: trunk/src/netlist.c =================================================================== --- trunk/src/netlist.c (revision 29411) +++ trunk/src/netlist.c (revision 29412) @@ -33,7 +33,7 @@ #include "board.h" #include "data.h" #include "data_it.h" -#include +#include "event.h" #include #include "layer_grp.h" #include "find.h" Index: trunk/src/obj_pstk.c =================================================================== --- trunk/src/obj_pstk.c (revision 29411) +++ trunk/src/obj_pstk.c (revision 29412) @@ -46,7 +46,7 @@ #include "search.h" #include "undo.h" #include "vtpadstack.h" -#include +#include "event.h" #include #include Index: trunk/src/obj_text.c =================================================================== --- trunk/src/obj_text.c (revision 29411) +++ trunk/src/obj_text.c (revision 29412) @@ -39,7 +39,7 @@ #include "undo.h" #include "polygon.h" #include -#include +#include "event.h" #include "layer.h" #include "obj_text.h" Index: trunk/src/object_act.c =================================================================== --- trunk/src/object_act.c (revision 29411) +++ trunk/src/object_act.c (revision 29412) @@ -43,7 +43,7 @@ #include "change.h" #include #include "undo.h" -#include +#include "event.h" #include "funchash_core.h" #include "search.h" Index: trunk/src/plug_footprint.c =================================================================== --- trunk/src/plug_footprint.c (revision 29411) +++ trunk/src/plug_footprint.c (revision 29412) @@ -36,7 +36,7 @@ #include "conf_core.h" #include #include -#include +#include "event.h" FILE PCB_FP_FOPEN_IN_DST_, *PCB_FP_FOPEN_IN_DST = &PCB_FP_FOPEN_IN_DST_; Index: trunk/src/plug_io.c =================================================================== --- trunk/src/plug_io.c (revision 29411) +++ trunk/src/plug_io.c (revision 29412) @@ -60,7 +60,7 @@ #include #include #include -#include +#include "event.h" #include #include "route_style.h" #include Index: trunk/src/polygon.c =================================================================== --- trunk/src/polygon.c (revision 29411) +++ trunk/src/polygon.c (revision 29412) @@ -52,7 +52,7 @@ #include "obj_text_draw.h" #include #include -#include +#include "event.h" #define UNSUBTRACT_BLOAT 10 #define SUBTRACT_PIN_VIA_BATCH_SIZE 100 Index: trunk/src/rotate.c =================================================================== --- trunk/src/rotate.c (revision 29411) +++ trunk/src/rotate.c (revision 29412) @@ -38,7 +38,7 @@ #include "search.h" #include "select.h" #include "undo.h" -#include +#include "event.h" #include "data.h" #include "conf_core.h" #include "obj_arc_op.h" Index: trunk/src/tool_logic.c =================================================================== --- trunk/src/tool_logic.c (revision 29411) +++ trunk/src/tool_logic.c (revision 29412) @@ -27,7 +27,7 @@ #include "config.h" #include -#include +#include "event.h" #include #include #include Index: trunk/src/undo.c =================================================================== --- trunk/src/undo.c (revision 29411) +++ trunk/src/undo.c (revision 29412) @@ -52,7 +52,7 @@ #include "data.h" #include "draw.h" #include -#include +#include "event.h" #include "insert.h" #include "polygon.h" #include "remove.h" Index: trunk/src_plugins/cam/cam_compile.c =================================================================== --- trunk/src_plugins/cam/cam_compile.c (revision 29411) +++ trunk/src_plugins/cam/cam_compile.c (revision 29412) @@ -31,7 +31,7 @@ #define GVT_DONT_UNDEF #include "cam_compile.h" #include "layer_vis.h" -#include +#include "event.h" #include #include Index: trunk/src_plugins/ddraft/ddraft.c =================================================================== --- trunk/src_plugins/ddraft/ddraft.c (revision 29411) +++ trunk/src_plugins/ddraft/ddraft.c (revision 29412) @@ -36,7 +36,7 @@ #include #include #include -#include +#include "event.h" #include #include "funchash_core.h" #include "search.h" Index: trunk/src_plugins/dialogs/dlg_export.c =================================================================== --- trunk/src_plugins/dialogs/dlg_export.c (revision 29411) +++ trunk/src_plugins/dialogs/dlg_export.c (revision 29412) @@ -29,7 +29,7 @@ #include "board.h" #include "data.h" #include "layer_vis.h" -#include +#include "event.h" #include #include #include Index: trunk/src_plugins/dialogs/dlg_fontsel.c =================================================================== --- trunk/src_plugins/dialogs/dlg_fontsel.c (revision 29411) +++ trunk/src_plugins/dialogs/dlg_fontsel.c (revision 29412) @@ -29,7 +29,7 @@ #include "board.h" #include "change.h" #include "conf_core.h" -#include +#include "event.h" #include #include "stub_draw.h" #include "idpath.h" Index: trunk/src_plugins/dialogs/dlg_layer_flags.c =================================================================== --- trunk/src_plugins/dialogs/dlg_layer_flags.c (revision 29411) +++ trunk/src_plugins/dialogs/dlg_layer_flags.c (revision 29412) @@ -27,7 +27,7 @@ #include "config.h" #include "board.h" #include -#include +#include "event.h" #include #include "dlg_layer_binding.h" #include "dlg_layer_flags.h" Index: trunk/src_plugins/dialogs/dlg_library.c =================================================================== --- trunk/src_plugins/dialogs/dlg_library.c (revision 29411) +++ trunk/src_plugins/dialogs/dlg_library.c (revision 29412) @@ -38,7 +38,7 @@ #include "conf_core.h" #include "data.h" #include "draw.h" -#include +#include "event.h" #include "obj_subc.h" #include "plug_footprint.h" #include Index: trunk/src_plugins/dialogs/dlg_netlist.c =================================================================== --- trunk/src_plugins/dialogs/dlg_netlist.c (revision 29411) +++ trunk/src_plugins/dialogs/dlg_netlist.c (revision 29412) @@ -24,7 +24,7 @@ * mailing list: pcb-rnd (at) list.repo.hu (send "subscribe") */ -#include +#include "event.h" #include "netlist.h" #include Index: trunk/src_plugins/dialogs/dlg_pref.c =================================================================== --- trunk/src_plugins/dialogs/dlg_pref.c (revision 29411) +++ trunk/src_plugins/dialogs/dlg_pref.c (revision 29412) @@ -34,7 +34,7 @@ #include "build_run.h" #include #include -#include +#include "event.h" #include #include #include Index: trunk/src_plugins/dialogs/dlg_undo.c =================================================================== --- trunk/src_plugins/dialogs/dlg_undo.c (revision 29411) +++ trunk/src_plugins/dialogs/dlg_undo.c (revision 29412) @@ -25,7 +25,7 @@ */ #include -#include +#include "event.h" #include "undo.h" const char *dlg_undo_cookie = "undo dialog"; Index: trunk/src_plugins/draw_csect/draw_csect.c =================================================================== --- trunk/src_plugins/draw_csect/draw_csect.c (revision 29411) +++ trunk/src_plugins/draw_csect/draw_csect.c (revision 29412) @@ -35,7 +35,7 @@ #include "stub_draw.h" #include #include -#include +#include "event.h" #include "layer_vis.h" #include "obj_text_draw.h" Index: trunk/src_plugins/drc_orig/drc_orig.c =================================================================== --- trunk/src_plugins/drc_orig/drc_orig.c (revision 29411) +++ trunk/src_plugins/drc_orig/drc_orig.c (revision 29412) @@ -35,7 +35,7 @@ #include "data_it.h" #include "conf_core.h" #include "find.h" -#include +#include "event.h" #include #include "layer_vis.h" Index: trunk/src_plugins/export_openems/excitation.c =================================================================== --- trunk/src_plugins/export_openems/excitation.c (revision 29411) +++ trunk/src_plugins/export_openems/excitation.c (revision 29412) @@ -27,7 +27,7 @@ #include "config.h" #include -#include +#include "event.h" #define MAX_EXC 16 #define FREQ_MAX ((double)(100.0*1000.0*1000.0*1000.0)) Index: trunk/src_plugins/export_openems/mesh.c =================================================================== --- trunk/src_plugins/export_openems/mesh.c (revision 29411) +++ trunk/src_plugins/export_openems/mesh.c (revision 29412) @@ -33,7 +33,7 @@ #include "board.h" #include "data.h" #include -#include +#include "event.h" #include #include Index: trunk/src_plugins/fontmode/fontmode.c =================================================================== --- trunk/src_plugins/fontmode/fontmode.c (revision 29411) +++ trunk/src_plugins/fontmode/fontmode.c (revision 29412) @@ -54,7 +54,7 @@ #include #include #include -#include +#include "event.h" #include "polygon.h" #include "obj_poly_draw.h" Index: trunk/src_plugins/hid_lesstif/main.c =================================================================== --- trunk/src_plugins/hid_lesstif/main.c (revision 29411) +++ trunk/src_plugins/hid_lesstif/main.c (revision 29412) @@ -25,7 +25,7 @@ #include #include "layer.h" #include -#include +#include "event.h" #include #include #include Index: trunk/src_plugins/io_hyp/io_hyp.c =================================================================== --- trunk/src_plugins/io_hyp/io_hyp.c (revision 29411) +++ trunk/src_plugins/io_hyp/io_hyp.c (revision 29412) @@ -38,7 +38,7 @@ #include #include #include -#include +#include "event.h" #include "plug_io.h" #include "parser.h" #include "board.h" Index: trunk/src_plugins/io_pcb/file.c =================================================================== --- trunk/src_plugins/io_pcb/file.c (revision 29411) +++ trunk/src_plugins/io_pcb/file.c (revision 29412) @@ -66,7 +66,7 @@ #include "route_style.h" #include "obj_poly.h" #include "thermal.h" -#include +#include "event.h" #include "funchash_core.h" #include "netlist.h" Index: trunk/src_plugins/lib_hid_pcbui/layersel.c =================================================================== --- trunk/src_plugins/lib_hid_pcbui/layersel.c (revision 29411) +++ trunk/src_plugins/lib_hid_pcbui/layersel.c (revision 29412) @@ -36,7 +36,7 @@ #include #include "board.h" #include "data.h" -#include +#include "event.h" #include "layer.h" #include "layer_grp.h" #include "layer_ui.h" Index: trunk/src_plugins/lib_hid_pcbui/lib_hid_pcbui.c =================================================================== --- trunk/src_plugins/lib_hid_pcbui/lib_hid_pcbui.c (revision 29411) +++ trunk/src_plugins/lib_hid_pcbui/lib_hid_pcbui.c (revision 29412) @@ -29,7 +29,7 @@ #include #include #include -#include +#include "event.h" #include "layer_menu.h" #include "layersel.h" Index: trunk/src_plugins/lib_hid_pcbui/routest.c =================================================================== --- trunk/src_plugins/lib_hid_pcbui/routest.c (revision 29411) +++ trunk/src_plugins/lib_hid_pcbui/routest.c (revision 29412) @@ -30,7 +30,7 @@ #include #include "conf_core.h" #include "route_style.h" -#include +#include "event.h" #include #include #include Index: trunk/src_plugins/mincut/rats_mincut.c =================================================================== --- trunk/src_plugins/mincut/rats_mincut.c (revision 29411) +++ trunk/src_plugins/mincut/rats_mincut.c (revision 29412) @@ -34,7 +34,7 @@ #include "data.h" #include "draw.h" #include -#include +#include "event.h" #include "plug_io.h" #include "find.h" #include "polygon.h" Index: trunk/src_plugins/oldactions/oldactions.c =================================================================== --- trunk/src_plugins/oldactions/oldactions.c (revision 29411) +++ trunk/src_plugins/oldactions/oldactions.c (revision 29412) @@ -34,7 +34,7 @@ #include "config.h" #include #include "data.h" -#include +#include "event.h" #include "change.h" #include #include "undo.h" Index: trunk/src_plugins/rubberband_orig/rubberband.c =================================================================== --- trunk/src_plugins/rubberband_orig/rubberband.c (revision 29411) +++ trunk/src_plugins/rubberband_orig/rubberband.c (revision 29412) @@ -41,7 +41,7 @@ #include "data_it.h" #include "data_list.h" #include -#include +#include "event.h" #include "undo.h" #include "operation.h" #include "rotate.h" Index: trunk/src_plugins/shape/shape.c =================================================================== --- trunk/src_plugins/shape/shape.c (revision 29411) +++ trunk/src_plugins/shape/shape.c (revision 29412) @@ -37,7 +37,7 @@ #include "conf_core.h" #include "data.h" #include -#include +#include "event.h" #include "layer.h" #include #include "obj_poly.h" Index: trunk/src_plugins/sketch_route/sketch_route.c =================================================================== --- trunk/src_plugins/sketch_route/sketch_route.c (revision 29411) +++ trunk/src_plugins/sketch_route/sketch_route.c (revision 29412) @@ -37,7 +37,7 @@ #include "board.h" #include "conf_core.h" #include "data.h" -#include +#include "event.h" #include "list_common.h" #include "obj_line_list.h" #include "obj_pstk.h" Index: trunk/src_plugins/vendordrill/vendor.c =================================================================== --- trunk/src_plugins/vendordrill/vendor.c (revision 29411) +++ trunk/src_plugins/vendordrill/vendor.c (revision 29412) @@ -49,7 +49,7 @@ #include "vendor_conf.h" #include #include "obj_pstk_inlines.h" -#include +#include "event.h" #include #include