Index: trunk/doc-rnd/TODO =================================================================== --- trunk/doc-rnd/TODO (revision 1399) +++ trunk/doc-rnd/TODO (revision 1400) @@ -9,7 +9,6 @@ - move compat to portability? - move realpath to portability? - mods: - - move command.[ch] - move libpcbfp UNGLIB (cleanup #3): Index: trunk/scconfig/plugins.h =================================================================== --- trunk/scconfig/plugins.h (revision 1399) +++ trunk/scconfig/plugins.h (revision 1400) @@ -13,6 +13,7 @@ plugin_def("legacy_func", "legacy functions", sbuildin) plugin_def("stroke", "libstroke gestures", sdisable) plugin_def("report", "reprot actions", sbuildin) +plugin_def("shand_cmd", "command shorthands", sbuildin) plugin_header("\nImport plugins:\n") plugin_def("import_sch", "import sch", sbuildin) Index: trunk/src/command.c =================================================================== --- trunk/src/command.c (revision 1399) +++ trunk/src/command.c (nonexistent) @@ -1,400 +0,0 @@ -/* $Id$ */ - -/* - * COPYRIGHT - * - * PCB, interactive printed circuit board design - * Copyright (C) 1994,1995,1996, 2005 Thomas Nau - * - * 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., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * Contact addresses for paper mail and Email: - * Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany - * Thomas.Nau@rz.uni-ulm.de - * - */ - -/* executes commands from user - */ - -#include "config.h" - -#include -#ifdef HAVE_STRING_H -#include -#endif -#include - -#include "global.h" -#include "action_helper.h" -#include "buffer.h" -#include "command.h" -#include "data.h" -#include "error.h" -#include "file.h" -#include "mymem.h" -#include "misc.h" -#include "rats.h" -#include "set.h" - - -RCSID("$Id$"); - -/* ---------------------------------------------------------------------- */ - -/* %start-doc actions 00macros - -@macro colonaction - -This is one of the command box helper actions. While it is a regular -action and can be used like any other action, its name and syntax are -optimized for use with the command box (@code{:}) and thus the syntax -is documented for that purpose. - -@end macro - -%end-doc */ - -/* ---------------------------------------------------------------------- */ - -static const char h_syntax[] = "h"; - -static const char h_help[] = "Print a help message for commands."; - -/* %start-doc actions h - -@colonaction - -%end-doc */ - -static int CommandHelp(int argc, char **argv, Coord x, Coord y) -{ - Message("following commands are supported:\n" - " Command() execute an action command (too numerous to list)\n" - " see the manual for the list of action commands\n" - " h display this help message\n" - " l [file] load layout\n" - " le [file] load element to buffer\n" - " m [file] load layout to buffer (merge)\n" - " q quits the application\n" - " q! quits without save warning\n" - " rn [file] read in a net-list file\n" - " s [file] save layout\n" " w [file] save layout\n" " wq [file] save layout and quit\n"); - return (0); -} - -/* ---------------------------------------------------------------------- */ - -static const char l_syntax[] = "l [name]"; - -static const char l_help[] = "Loads layout data."; - -/* %start-doc actions l - -Loads a new datafile (layout) and, if confirmed, overwrites any -existing unsaved data. The filename and the searchpath -(@emph{filePath}) are passed to the command defined by -@emph{fileCommand}. If no filename is specified a file select box -will popup. - -@colonaction - -%end-doc */ - -static int CommandLoadLayout(int argc, char **argv, Coord x, Coord y) -{ - char *filename, *name = NULL; - - switch (argc) { - case 1: /* filename is passed in commandline */ - filename = argv[0]; - break; - - default: /* usage */ - Message("Usage: l [name]\n loads layout data\n"); - return (1); - } - - if (!PCB->Changed || gui->confirm_dialog("OK to override layout data?", 0)) - LoadPCB(filename, true, false); - free(name); - return (0); -} - -/* --------------------------------------------------------------------------- */ - -static const char le_syntax[] = "le [name]"; - -static const char le_help[] = "Loads an element into the current buffer."; - -/* %start-doc actions le - -The filename and the searchpath (@emph{elementSearchPaths}) are passed to the -element loader. If no filename is specified a file select box will popup. - -@colonaction - -%end-doc */ - -static int CommandLoadElementToBuffer(int argc, char **argv, Coord x, Coord y) -{ - char *filename; - - switch (argc) { - case 1: /* filename is passed in commandline */ - filename = argv[0]; - if (filename && LoadElementToBuffer(PASTEBUFFER, filename)) - SetMode(PASTEBUFFER_MODE); - break; - - default: /* usage */ - Message(false, "Usage: le [name]\n loads element data to buffer\n"); - return (1); - } - return (0); -} - -/* --------------------------------------------------------------------------- */ - -static const char m_syntax[] = "m [name]"; - -static const char m_help[] = "Loads a layout into the current buffer."; - -/* %start-doc actions m - -The filename and the searchpath (@emph{filePath}) are passed to the -command defined by @emph{fileCommand}. -If no filename is specified a file select box will popup. - -@colonaction - -%end-doc */ - -static int CommandLoadLayoutToBuffer(int argc, char **argv, Coord x, Coord y) -{ - char *filename; - - switch (argc) { - case 1: /* filename is passed in commandline */ - filename = argv[0]; - if (filename && LoadLayoutToBuffer(PASTEBUFFER, filename)) - SetMode(PASTEBUFFER_MODE); - break; - - default: /* usage */ - Message("Usage: m [name]\n loads layout data to buffer\n"); - return (1); - } - return (0); -} - -/* --------------------------------------------------------------------------- */ - -static const char q_syntax[] = "q"; - -static const char q_help[] = "Quits the application after confirming."; - -/* %start-doc actions q - -If you have unsaved changes, you will be prompted to confirm (or -save) before quitting. - -@colonaction - -%end-doc */ - -static int CommandQuit(int argc, char **argv, Coord x, Coord y) -{ - if (!PCB->Changed || gui->close_confirm_dialog() == HID_CLOSE_CONFIRM_OK) - QuitApplication(); - return 0; -} - -static const char qreally_syntax[] = "q!"; - -static const char qreally_help[] = "Quits the application without confirming."; - -/* %start-doc actions q! - -Note that this command neither saves your data nor prompts for -confirmation. - -@colonaction - -%end-doc */ - -static int CommandReallyQuit(int argc, char **argv, Coord x, Coord y) -{ - QuitApplication(); - return 0; -} - -/* ---------------------------------------------------------------------- */ - -static const char rn_syntax[] = "rn [name]"; - -static const char rn_help[] = "Reads netlist."; - -/* %start-doc actions rn - -If no filename is given a file select box will pop up. The file is -read via the command defined by the @emph{RatCommand} resource. The -command must send its output to @emph{stdout}. - -Netlists are used for generating rat's nests (see @ref{Rats Nest}) and -for verifying the board layout (which is also accomplished by the -@emph{Ratsnest} command). - -@colonaction - -%end-doc */ - -static int CommandLoadNetlist(int argc, char **argv, Coord x, Coord y) -{ - char *filename, *name = NULL; - - switch (argc) { - case 1: /* filename is passed in commandline */ - filename = argv[0]; - break; - - default: /* usage */ - Message("Usage: rn [name]\n reads in a netlist file\n"); - return (1); - } - if (PCB->Netlistname) - free(PCB->Netlistname); - PCB->Netlistname = StripWhiteSpaceAndDup(filename); - free(name); - return (0); -} - -/* ---------------------------------------------------------------------- */ - -static const char s_syntax[] = "s [name]"; - -static const char s_help[] = "Saves layout data."; - -/* %start-doc actions s - -Data and the filename are passed to the command defined by the -resource @emph{saveCommand}. It must read the layout data from -@emph{stdin}. If no filename is entered, either the last one is used -again or, if it is not available, a file select box will pop up. - -@colonaction - -%end-doc */ - -static const char w_syntax[] = "w [name]"; - -static const char w_help[] = "Saves layout data."; - -/* %start-doc actions w - -This commands has been added for the convenience of @code{vi} users -and has the same functionality as @code{s}. - -@colonaction - -%end-doc */ - -static int CommandSaveLayout(int argc, char **argv, Coord x, Coord y) -{ - switch (argc) { - case 0: - if (PCB->Filename) { - if (SavePCB(PCB->Filename) == 0) - SetChangedFlag(false); - } - else - Message("No filename to save to yet\n"); - break; - - case 1: - if (SavePCB(argv[0]) == 0) { - SetChangedFlag(false); - free(PCB->Filename); - PCB->Filename = strdup(argv[0]); - if (gui->notify_filename_changed != NULL) - gui->notify_filename_changed(); - } - break; - - default: - Message("Usage: s [name] | w [name]\n saves layout data\n"); - return (1); - } - return (0); -} - -/* --------------------------------------------------------------------------- */ - -static const char wq_syntax[] = "wq"; - -static const char wq_help[] = "Saves the layout data and quits."; - -/* %start-doc actions wq - -This command has been added for the convenience of @code{vi} users and -has the same functionality as @code{s} combined with @code{q}. - -@colonaction - -%end-doc */ - -static int CommandSaveLayoutAndQuit(int argc, char **argv, Coord x, Coord y) -{ - if (!CommandSaveLayout(argc, argv, x, y)) - return CommandQuit(0, 0, 0, 0); - return (1); -} - -/* --------------------------------------------------------------------------- */ - -HID_Action command_action_list[] = { - {"h", 0, CommandHelp, - h_help, h_syntax} - , - {"l", 0, CommandLoadLayout, - l_help, l_syntax} - , - {"le", 0, CommandLoadElementToBuffer, - le_help, le_syntax} - , - {"m", 0, CommandLoadLayoutToBuffer, - m_help, m_syntax} - , - {"q", 0, CommandQuit, - q_help, q_syntax} - , - {"q!", 0, CommandReallyQuit, - qreally_help, qreally_syntax} - , - {"rn", 0, CommandLoadNetlist, - rn_help, rn_syntax} - , - {"s", 0, CommandSaveLayout, - s_help, s_syntax} - , - {"w", 0, CommandSaveLayout, - w_help, w_syntax} - , - {"wq", 0, CommandSaveLayoutAndQuit, - wq_help, wq_syntax} - , -}; - -REGISTER_ACTIONS(command_action_list, NULL) Index: trunk/src/command.h =================================================================== --- trunk/src/command.h (revision 1399) +++ trunk/src/command.h (nonexistent) @@ -1,39 +0,0 @@ -/* - * COPYRIGHT - * - * PCB, interactive printed circuit board design - * Copyright (C) 1994,1995,1996 Thomas Nau - * - * 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., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * Contact addresses for paper mail and Email: - * Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany - * Thomas.Nau@rz.uni-ulm.de - * - * RCS: $Id$ - */ - -/* prototypes for command execution - */ - -#ifndef PCB_COMMAND_H -#define PCB_COMMAND_H - -#include "global.h" - -void ExecuteUserCommand(char *); -void CallActionProc(char *action, char **arg, int argc); - -#endif Index: trunk/src/Makefile.dep =================================================================== --- trunk/src/Makefile.dep (revision 1399) +++ trunk/src/Makefile.dep (revision 1400) @@ -69,17 +69,6 @@ vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ list_element.h libpcb_fp.h data.h draw.h mymem.h -command.o: command.c ../config.h ../config.manual.h ../config.auto.h \ - global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ - global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ - list_line.h ../src_3rd/genlist/gentdlist_impl.h \ - ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ - list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ - vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h action_helper.h buffer.h command.h data.h \ - error.h file.h mymem.h misc.h ../src_3rd/genvector/gds_char.h rats.h \ - set.h compat.o: compat.c ../config.h ../config.manual.h ../config.auto.h \ compat.h global.h const.h ../globalconst.h ../config.h macro.h \ global_typedefs.h global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h \ @@ -482,9 +471,9 @@ list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h action_helper.h buffer.h command.h data.h \ - error.h file.h find.h mymem.h misc.h ../src_3rd/genvector/gds_char.h \ - rats.h set.h create.h rats_patch.h hid_actions.h + list_element.h libpcb_fp.h action_helper.h buffer.h data.h error.h \ + file.h find.h mymem.h misc.h ../src_3rd/genvector/gds_char.h rats.h \ + set.h create.h rats_patch.h hid_actions.h object_act.o: object_act.c ../config.h ../config.manual.h \ ../config.auto.h global.h const.h ../globalconst.h ../config.h macro.h \ global_typedefs.h global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h \ @@ -991,6 +980,18 @@ list_element.h libpcb_fp.h create.h global.h data.h draw.h misc.h \ ../src_3rd/genvector/gds_char.h mymem.h move.h remove.h rtree.h \ strflags.h undo.h pcb-printf.h plugins.h hid_actions.h dolists.h +../src_plugins/shand_cmd/command.o: ../src_plugins/shand_cmd/command.c \ + ../config.h ../config.manual.h ../config.auto.h global.h const.h \ + ../globalconst.h ../config.h macro.h global_typedefs.h global_objs.h \ + ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ + ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ + ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ + list_pad.h list_pin.h list_rat.h vtonpoint.h \ + ../src_3rd/genvector/genvector_impl.h \ + ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ + list_element.h libpcb_fp.h action_helper.h global.h buffer.h \ + ../src_plugins/shand_cmd/command.h data.h error.h file.h mymem.h misc.h \ + ../src_3rd/genvector/gds_char.h mymem.h rats.h set.h ../src_plugins/legacy_func/legacy_func.o: \ ../src_plugins/legacy_func/legacy_func.c ../src_3rd/genvector/gds_char.h \ ../src_3rd/genvector/genvector_impl.h \ @@ -1175,495 +1176,6 @@ list_element.h libpcb_fp.h hid.h data.h global.h misc.h \ ../src_3rd/genvector/gds_char.h mymem.h pcb-printf.h plugins.h \ hid_draw_helpers.h hid_nogui.h hid_actions.h hid_init.h dolists.h -../src_plugins/hid_gtk/ghid-cell-renderer-visibility.o: \ - ../src_plugins/hid_gtk/ghid-cell-renderer-visibility.c \ - ../src_plugins/hid_gtk/gtkhid.h ../src_plugins/hid_gtk/gui.h global.h \ - ../config.h ../config.manual.h ../config.auto.h const.h ../globalconst.h \ - ../config.h macro.h global_typedefs.h global_objs.h \ - ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ - ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ - ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ - list_pad.h list_pin.h list_rat.h vtonpoint.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ - global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h \ - ../src_plugins/hid_gtk/ghid-cell-renderer-visibility.h -../src_plugins/hid_gtk/ghid-coord-entry.o: \ - ../src_plugins/hid_gtk/ghid-coord-entry.c \ - ../src_plugins/hid_gtk/gtkhid.h ../src_plugins/hid_gtk/gui.h global.h \ - ../config.h ../config.manual.h ../config.auto.h const.h ../globalconst.h \ - ../config.h macro.h global_typedefs.h global_objs.h \ - ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ - ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ - ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ - list_pad.h list_pin.h list_rat.h vtonpoint.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ - global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h pcb-printf.h -../src_plugins/hid_gtk/ghid-layer-selector.o: \ - ../src_plugins/hid_gtk/ghid-layer-selector.c \ - ../src_plugins/hid_gtk/gtkhid.h ../src_plugins/hid_gtk/gui.h global.h \ - ../config.h ../config.manual.h ../config.auto.h const.h ../globalconst.h \ - ../config.h macro.h global_typedefs.h global_objs.h \ - ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ - ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ - ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ - list_pad.h list_pin.h list_rat.h vtonpoint.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ - global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h pcb-printf.h \ - ../src_plugins/hid_gtk/ghid-cell-renderer-visibility.h -../src_plugins/hid_gtk/ghid-main-menu.o: \ - ../src_plugins/hid_gtk/ghid-main-menu.c ../src_plugins/hid_gtk/gtkhid.h \ - ../src_plugins/hid_gtk/gui.h global.h ../config.h ../config.manual.h \ - ../config.auto.h const.h ../globalconst.h ../config.h macro.h \ - global_typedefs.h global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h \ - list_common.h list_line.h ../src_3rd/genlist/gentdlist_impl.h \ - ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ - list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ - vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ - global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h pcb-printf.h -../src_plugins/hid_gtk/ghid-route-style-selector.o: \ - ../src_plugins/hid_gtk/ghid-route-style-selector.c global.h ../config.h \ - ../config.manual.h ../config.auto.h const.h ../globalconst.h ../config.h \ - macro.h global_typedefs.h global_objs.h ../src_3rd/genlist/gendlist.h \ - polyarea.h list_common.h list_line.h ../src_3rd/genlist/gentdlist_impl.h \ - ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ - list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ - vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h ../src_plugins/hid_gtk/gtkhid.h \ - ../src_plugins/hid_gtk/gui.h hid.h hid_resource.h resource.h data.h \ - global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h pcb-printf.h -../src_plugins/hid_gtk/gtkhid-main.o: \ - ../src_plugins/hid_gtk/gtkhid-main.c ../config.h ../config.manual.h \ - ../config.auto.h action_helper.h global.h const.h ../globalconst.h \ - ../config.h macro.h global_typedefs.h global_objs.h \ - ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ - ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ - ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ - list_pad.h list_pin.h list_rat.h vtonpoint.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h crosshair.h error.h \ - ../src_plugins/hid_gtk/gui.h global.h hid.h hid_resource.h resource.h \ - data.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h hid_nogui.h \ - hid_draw_helpers.h pcb-printf.h plugins.h hid_attrib.h hid_init.h \ - hid_flags.h hid_actions.h dolists.h -../src_plugins/hid_gtk/gui-command-window.o: \ - ../src_plugins/hid_gtk/gui-command-window.c ../config.h \ - ../config.manual.h ../config.auto.h ../src_plugins/hid_gtk/gui.h \ - global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ - global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ - list_line.h ../src_3rd/genlist/gentdlist_impl.h \ - ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ - list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ - vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ - global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h command.h crosshair.h \ - hid_actions.h -../src_plugins/hid_gtk/gui-config.o: ../src_plugins/hid_gtk/gui-config.c \ - ../config.h ../config.manual.h ../config.auto.h \ - ../src_plugins/hid_gtk/gui.h global.h const.h ../globalconst.h \ - ../config.h macro.h global_typedefs.h global_objs.h \ - ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ - ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ - ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ - list_pad.h list_pin.h list_rat.h vtonpoint.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ - global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h \ - ../src_plugins/hid_gtk/gtkhid.h action_helper.h change.h file.h error.h \ - draw.h portability.h pcb-printf.h set.h hid_attrib.h -../src_plugins/hid_gtk/gui-dialog-print.o: \ - ../src_plugins/hid_gtk/gui-dialog-print.c ../config.h ../config.manual.h \ - ../config.auto.h ../src_plugins/hid_gtk/gui.h global.h const.h \ - ../globalconst.h ../config.h macro.h global_typedefs.h global_objs.h \ - ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ - ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ - ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ - list_pad.h list_pin.h list_rat.h vtonpoint.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ - global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h pcb-printf.h hid_attrib.h \ - hid_init.h -../src_plugins/hid_gtk/gui-dialog.o: ../src_plugins/hid_gtk/gui-dialog.c \ - ../config.h ../config.manual.h ../config.auto.h data.h global.h const.h \ - ../globalconst.h ../config.h macro.h global_typedefs.h global_objs.h \ - ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ - ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ - ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ - list_pad.h list_pin.h list_rat.h vtonpoint.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h ../src_plugins/hid_gtk/gui.h global.h hid.h \ - hid_resource.h resource.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h command.h -../src_plugins/hid_gtk/gui-drc-window.o: \ - ../src_plugins/hid_gtk/gui-drc-window.c ../config.h ../config.manual.h \ - ../config.auto.h error.h search.h global.h const.h ../globalconst.h \ - ../config.h macro.h global_typedefs.h global_objs.h \ - ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ - ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ - ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ - list_pad.h list_pin.h list_rat.h vtonpoint.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h draw.h pcb-printf.h \ - ../src_3rd/genvector/gds_char.h undo.h set.h \ - ../src_plugins/hid_gtk/gui.h global.h hid.h hid_resource.h resource.h \ - data.h misc.h mymem.h ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h \ - ../src_plugins/hid_gtk/gui-drc-window.h hid_actions.h -../src_plugins/hid_gtk/gui-keyref-window.o: \ - ../src_plugins/hid_gtk/gui-keyref-window.c ../config.h \ - ../config.manual.h ../config.auto.h ../src_plugins/hid_gtk/gui.h \ - global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ - global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ - list_line.h ../src_3rd/genlist/gentdlist_impl.h \ - ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ - list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ - vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ - global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h -../src_plugins/hid_gtk/gui-library-window.o: \ - ../src_plugins/hid_gtk/gui-library-window.c ../config.h \ - ../config.manual.h ../config.auto.h ../src_plugins/hid_gtk/gui.h \ - global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ - global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ - list_line.h ../src_3rd/genlist/gentdlist_impl.h \ - ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ - list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ - vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ - global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h buffer.h set.h \ - ../src_plugins/hid_gtk/gui-library-window.h -../src_plugins/hid_gtk/gui-log-window.o: \ - ../src_plugins/hid_gtk/gui-log-window.c ../config.h ../config.manual.h \ - ../config.auto.h ../src_plugins/hid_gtk/gui.h global.h const.h \ - ../globalconst.h ../config.h macro.h global_typedefs.h global_objs.h \ - ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ - ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ - ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ - list_pad.h list_pin.h list_rat.h vtonpoint.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ - global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h pcb-printf.h -../src_plugins/hid_gtk/gui-misc.o: ../src_plugins/hid_gtk/gui-misc.c \ - ../config.h ../config.manual.h ../config.auto.h global.h const.h \ - ../globalconst.h ../config.h macro.h global_typedefs.h global_objs.h \ - ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ - ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ - ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ - list_pad.h list_pin.h list_rat.h vtonpoint.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h crosshair.h global.h data.h misc.h \ - ../src_3rd/genvector/gds_char.h mymem.h action_helper.h set.h \ - pcb-printf.h ../src_plugins/hid_gtk/gui.h hid.h hid_resource.h \ - resource.h ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h -../src_plugins/hid_gtk/gui-netlist-window.o: \ - ../src_plugins/hid_gtk/gui-netlist-window.c ../config.h \ - ../config.manual.h ../config.auto.h global.h const.h ../globalconst.h \ - ../config.h macro.h global_typedefs.h global_objs.h \ - ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ - ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ - ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ - list_pad.h list_pin.h list_rat.h vtonpoint.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h create.h global.h data.h draw.h error.h \ - find.h misc.h ../src_3rd/genvector/gds_char.h mymem.h mymem.h rats.h \ - remove.h search.h select.h set.h undo.h hid_actions.h \ - ../src_plugins/hid_gtk/gui.h hid.h hid_resource.h resource.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h -../src_plugins/hid_gtk/gui-output-events.o: \ - ../src_plugins/hid_gtk/gui-output-events.c ../config.h \ - ../config.manual.h ../config.auto.h ../src_plugins/hid_gtk/gui.h \ - global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ - global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ - list_line.h ../src_3rd/genlist/gentdlist_impl.h \ - ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ - list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ - vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ - global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h \ - ../src_plugins/hid_gtk/gtkhid.h action_helper.h crosshair.h draw.h \ - error.h set.h find.h search.h rats.h -../src_plugins/hid_gtk/gui-pinout-preview.o: \ - ../src_plugins/hid_gtk/gui-pinout-preview.c ../config.h \ - ../config.manual.h ../config.auto.h global.h const.h ../globalconst.h \ - ../config.h macro.h global_typedefs.h global_objs.h \ - ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ - ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ - ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ - list_pad.h list_pin.h list_rat.h vtonpoint.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h ../src_plugins/hid_gtk/gui.h hid.h \ - hid_resource.h resource.h data.h global.h misc.h \ - ../src_3rd/genvector/gds_char.h mymem.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h copy.h draw.h mymem.h move.h \ - rotate.h -../src_plugins/hid_gtk/gui-pinout-window.o: \ - ../src_plugins/hid_gtk/gui-pinout-window.c ../config.h \ - ../config.manual.h ../config.auto.h global.h const.h ../globalconst.h \ - ../config.h macro.h global_typedefs.h global_objs.h \ - ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ - ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ - ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ - list_pad.h list_pin.h list_rat.h vtonpoint.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h ../src_plugins/hid_gtk/gui.h hid.h \ - hid_resource.h resource.h data.h global.h misc.h \ - ../src_3rd/genvector/gds_char.h mymem.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h copy.h draw.h mymem.h move.h \ - rotate.h -../src_plugins/hid_gtk/gui-top-window.o: \ - ../src_plugins/hid_gtk/gui-top-window.c ../config.h ../config.manual.h \ - ../config.auto.h ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h global.h const.h \ - ../globalconst.h ../config.h macro.h global_typedefs.h global_objs.h \ - ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ - ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ - ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ - list_pad.h list_pin.h list_rat.h vtonpoint.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h ../src_plugins/hid_gtk/gtkhid.h \ - ../src_plugins/hid_gtk/gui.h hid.h hid_resource.h resource.h data.h \ - global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h action_helper.h buffer.h \ - change.h command.h copy.h create.h crosshair.h draw.h error.h file.h \ - find.h gpcb-menu.h insert.h line.h mymem.h move.h pcb-printf.h polygon.h \ - rats.h remove.h rotate.h rubberband.h search.h select.h set.h undo.h \ - event.h free_atexit.h paths.h \ - ../src_plugins/hid_gtk/gui-icons-mode-buttons.data \ - ../src_plugins/hid_gtk/gui-icons-misc.data hid_attrib.h hid_actions.h \ - hid_flags.h -../src_plugins/hid_gtk/gui-utils.o: ../src_plugins/hid_gtk/gui-utils.c \ - ../config.h ../config.manual.h ../config.auto.h \ - ../src_plugins/hid_gtk/gui.h global.h const.h ../globalconst.h \ - ../config.h macro.h global_typedefs.h global_objs.h \ - ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ - ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ - ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ - list_pad.h list_pin.h list_rat.h vtonpoint.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h hid.h hid_resource.h resource.h data.h \ - global.h misc.h ../src_3rd/genvector/gds_char.h mymem.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h -../src_plugins/hid_gtk/gtkhid-gdk.o: ../src_plugins/hid_gtk/gtkhid-gdk.c \ - ../config.h ../config.manual.h ../config.auto.h crosshair.h global.h \ - const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ - global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ - list_line.h ../src_3rd/genlist/gentdlist_impl.h \ - ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ - list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ - vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h clip.h ../src_plugins/hid_gtk/gui.h global.h \ - hid.h hid_resource.h resource.h data.h misc.h \ - ../src_3rd/genvector/gds_char.h mymem.h \ - ../src_plugins/hid_gtk/ghid-coord-entry.h \ - ../src_plugins/hid_gtk/ghid-main-menu.h \ - ../src_plugins/hid_gtk/ghid-layer-selector.h \ - ../src_plugins/hid_gtk/ghid-route-style-selector.h resource.h \ - ../src_plugins/hid_gtk/gui-pinout-preview.h hid_draw_helpers.h \ - hid_attrib.h hid_helper.h hid_color.h -../src_plugins/hid_lesstif/dialogs.o: \ - ../src_plugins/hid_lesstif/dialogs.c ../config.h ../config.manual.h \ - ../config.auto.h ../src_plugins/hid_lesstif/xincludes.h compat.h \ - global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ - global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ - list_line.h ../src_3rd/genlist/gentdlist_impl.h \ - ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ - list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ - vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h data.h global.h crosshair.h misc.h \ - ../src_3rd/genvector/gds_char.h mymem.h pcb-printf.h hid.h \ - ../src_plugins/hid_lesstif/lesstif.h hid_attrib.h hid_actions.h \ - hid_init.h -../src_plugins/hid_lesstif/library.o: \ - ../src_plugins/hid_lesstif/library.c ../config.h ../config.manual.h \ - ../config.auto.h ../src_plugins/hid_lesstif/xincludes.h compat.h \ - global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ - global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ - list_line.h ../src_3rd/genlist/gentdlist_impl.h \ - ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ - list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ - vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h data.h global.h misc.h \ - ../src_3rd/genvector/gds_char.h mymem.h set.h buffer.h hid.h \ - ../src_plugins/hid_lesstif/lesstif.h -../src_plugins/hid_lesstif/main.o: ../src_plugins/hid_lesstif/main.c \ - ../config.h ../config.manual.h ../config.auto.h \ - ../src_plugins/hid_lesstif/xincludes.h global.h const.h ../globalconst.h \ - ../config.h macro.h global_typedefs.h global_objs.h \ - ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ - ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ - ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ - list_pad.h list_pin.h list_rat.h vtonpoint.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h data.h global.h action_helper.h crosshair.h \ - mymem.h misc.h ../src_3rd/genvector/gds_char.h mymem.h pcb-printf.h \ - resource.h clip.h event.h error.h plugins.h hid.h hid_nogui.h \ - hid_draw_helpers.h hid_resource.h resource.h \ - ../src_plugins/hid_lesstif/lesstif.h hid_attrib.h hid_helper.h \ - hid_init.h hid_color.h hid_extents.h hid_flags.h hid_actions.h dolists.h -../src_plugins/hid_lesstif/menu.o: ../src_plugins/hid_lesstif/menu.c \ - ../config.h ../config.manual.h ../config.auto.h \ - ../src_plugins/hid_lesstif/xincludes.h global.h const.h ../globalconst.h \ - ../config.h macro.h global_typedefs.h global_objs.h \ - ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ - ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ - ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ - list_pad.h list_pin.h list_rat.h vtonpoint.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h data.h global.h error.h misc.h \ - ../src_3rd/genvector/gds_char.h mymem.h pcb-printf.h hid.h \ - hid_resource.h resource.h resource.h \ - ../src_plugins/hid_lesstif/lesstif.h mymem.h paths.h hid_actions.h \ - hid_flags.h pcb-menu.h ../src_3rd/genht/htsp.h ../src_3rd/genht/ht.h \ - ../src_3rd/genht/ht_inlines.h ../src_3rd/genht/hash.h -../src_plugins/hid_lesstif/netlist.o: \ - ../src_plugins/hid_lesstif/netlist.c ../config.h ../config.manual.h \ - ../config.auto.h ../src_plugins/hid_lesstif/xincludes.h compat.h \ - global.h const.h ../globalconst.h ../config.h macro.h global_typedefs.h \ - global_objs.h ../src_3rd/genlist/gendlist.h polyarea.h list_common.h \ - list_line.h ../src_3rd/genlist/gentdlist_impl.h \ - ../src_3rd/genlist/gendlist.h ../src_3rd/genlist/gentdlist_undef.h \ - list_arc.h list_text.h list_poly.h list_pad.h list_pin.h list_rat.h \ - vtonpoint.h ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h data.h global.h find.h rats.h select.h undo.h \ - remove.h crosshair.h draw.h hid.h hid_actions.h \ - ../src_plugins/hid_lesstif/lesstif.h -../src_plugins/hid_lesstif/styles.o: ../src_plugins/hid_lesstif/styles.c \ - ../config.h ../config.manual.h ../config.auto.h \ - ../src_plugins/hid_lesstif/xincludes.h compat.h global.h const.h \ - ../globalconst.h ../config.h macro.h global_typedefs.h global_objs.h \ - ../src_3rd/genlist/gendlist.h polyarea.h list_common.h list_line.h \ - ../src_3rd/genlist/gentdlist_impl.h ../src_3rd/genlist/gendlist.h \ - ../src_3rd/genlist/gentdlist_undef.h list_arc.h list_text.h list_poly.h \ - list_pad.h list_pin.h list_rat.h vtonpoint.h \ - ../src_3rd/genvector/genvector_impl.h \ - ../src_3rd/genvector/genvector_undef.h hid.h global_element.h \ - list_element.h libpcb_fp.h data.h global.h set.h misc.h \ - ../src_3rd/genvector/gds_char.h mymem.h mymem.h pcb-printf.h hid.h \ - ../src_plugins/hid_lesstif/lesstif.h hid_flags.h ../src_plugins/toporouter/toporouter.o: \ ../src_plugins/toporouter/toporouter.c \ ../src_plugins/toporouter/toporouter.h data.h global.h ../config.h \ Index: trunk/src/Makefile.in =================================================================== --- trunk/src/Makefile.in (revision 1399) +++ trunk/src/Makefile.in (revision 1400) @@ -16,7 +16,6 @@ change.o change_act.o clip.o - command.o compat.o copy.o create.o @@ -111,7 +110,7 @@ # main: action registrations put /local/pcb/ACTION_REG_SRC { - action_act.c buffer.c change_act.c command.c file_act.c find_act.c + action_act.c buffer.c change_act.c file_act.c find_act.c flags.c gui_act.c main.c misc.c move.c netlist.c object_act.c plugins.c polygon_act.c rats_act.c rats_patch.c remove_act.c select_act.c undo_act.c @@ -144,6 +143,7 @@ include {../src_plugins/toporouter/Plug.tmpasm} include {../src_plugins/oldactions/Plug.tmpasm} include {../src_plugins/fontmode/Plug.tmpasm} +include {../src_plugins/shand_cmd/Plug.tmpasm} include {../src_plugins/legacy_func/Plug.tmpasm} include {../src_plugins/renumber/Plug.tmpasm} include {../src_plugins/stroke/Plug.tmpasm} Index: trunk/src/netlist.c =================================================================== --- trunk/src/netlist.c (revision 1399) +++ trunk/src/netlist.c (revision 1400) @@ -44,7 +44,6 @@ #include "global.h" #include "action_helper.h" #include "buffer.h" -#include "command.h" #include "data.h" #include "error.h" #include "file.h" Index: trunk/src_plugins/shand_cmd/Makefile =================================================================== --- trunk/src_plugins/shand_cmd/Makefile (nonexistent) +++ trunk/src_plugins/shand_cmd/Makefile (revision 1400) @@ -0,0 +1,6 @@ +all: + cd ../../src && make mod_shand_cmd + + +clean: + rm *.o *.so 2>/dev/null ; true Index: trunk/src_plugins/shand_cmd/Plug.tmpasm =================================================================== --- trunk/src_plugins/shand_cmd/Plug.tmpasm (nonexistent) +++ trunk/src_plugins/shand_cmd/Plug.tmpasm (revision 1400) @@ -0,0 +1,8 @@ +put /local/pcb/mod {shand_cmd} +put /local/pcb/mod/OBJS [@ $(PLUGDIR)/shand_cmd/command.o @] + +switch /local/pcb/shand_cmd/controls + case {buildin} include {Makefile.in.mod/Buildin}; end; + case {plugin} include {Makefile.in.mod/Plugin}; end; + case {disable} include {Makefile.in.mod/Disable}; end; +end Index: trunk/src_plugins/shand_cmd/README =================================================================== --- trunk/src_plugins/shand_cmd/README (nonexistent) +++ trunk/src_plugins/shand_cmd/README (revision 1400) @@ -0,0 +1,4 @@ +vi-like command shorthands (1..3 character long commands) + +#state: works +#default: buildin Index: trunk/src_plugins/shand_cmd/command.c =================================================================== --- trunk/src_plugins/shand_cmd/command.c (nonexistent) +++ trunk/src_plugins/shand_cmd/command.c (revision 1400) @@ -0,0 +1,417 @@ +/* $Id$ */ + +/* + * COPYRIGHT + * + * PCB, interactive printed circuit board design + * Copyright (C) 1994,1995,1996, 2005 Thomas Nau + * + * 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., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * Contact addresses for paper mail and Email: + * Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany + * Thomas.Nau@rz.uni-ulm.de + * + */ + +/* executes commands from user + */ + +#include "config.h" + +#include +#ifdef HAVE_STRING_H +#include +#endif +#include + +#include "global.h" +#include "action_helper.h" +#include "buffer.h" +#include "command.h" +#include "data.h" +#include "error.h" +#include "file.h" +#include "mymem.h" +#include "misc.h" +#include "rats.h" +#include "set.h" +#include "plugins.h" +#include "hid_actions.h" + + +RCSID("$Id$"); + +/* ---------------------------------------------------------------------- */ + +/* %start-doc actions 00macros + +@macro colonaction + +This is one of the command box helper actions. While it is a regular +action and can be used like any other action, its name and syntax are +optimized for use with the command box (@code{:}) and thus the syntax +is documented for that purpose. + +@end macro + +%end-doc */ + +/* ---------------------------------------------------------------------- */ + +static const char h_syntax[] = "h"; + +static const char h_help[] = "Print a help message for commands."; + +/* %start-doc actions h + +@colonaction + +%end-doc */ + +static int CommandHelp(int argc, char **argv, Coord x, Coord y) +{ + Message("following commands are supported:\n" + " Command() execute an action command (too numerous to list)\n" + " see the manual for the list of action commands\n" + " h display this help message\n" + " l [file] load layout\n" + " le [file] load element to buffer\n" + " m [file] load layout to buffer (merge)\n" + " q quits the application\n" + " q! quits without save warning\n" + " rn [file] read in a net-list file\n" + " s [file] save layout\n" " w [file] save layout\n" " wq [file] save layout and quit\n"); + return (0); +} + +/* ---------------------------------------------------------------------- */ + +static const char l_syntax[] = "l [name]"; + +static const char l_help[] = "Loads layout data."; + +/* %start-doc actions l + +Loads a new datafile (layout) and, if confirmed, overwrites any +existing unsaved data. The filename and the searchpath +(@emph{filePath}) are passed to the command defined by +@emph{fileCommand}. If no filename is specified a file select box +will popup. + +@colonaction + +%end-doc */ + +static int CommandLoadLayout(int argc, char **argv, Coord x, Coord y) +{ + char *filename, *name = NULL; + + switch (argc) { + case 1: /* filename is passed in commandline */ + filename = argv[0]; + break; + + default: /* usage */ + Message("Usage: l [name]\n loads layout data\n"); + return (1); + } + + if (!PCB->Changed || gui->confirm_dialog("OK to override layout data?", 0)) + LoadPCB(filename, true, false); + free(name); + return (0); +} + +/* --------------------------------------------------------------------------- */ + +static const char le_syntax[] = "le [name]"; + +static const char le_help[] = "Loads an element into the current buffer."; + +/* %start-doc actions le + +The filename and the searchpath (@emph{elementSearchPaths}) are passed to the +element loader. If no filename is specified a file select box will popup. + +@colonaction + +%end-doc */ + +static int CommandLoadElementToBuffer(int argc, char **argv, Coord x, Coord y) +{ + char *filename; + + switch (argc) { + case 1: /* filename is passed in commandline */ + filename = argv[0]; + if (filename && LoadElementToBuffer(PASTEBUFFER, filename)) + SetMode(PASTEBUFFER_MODE); + break; + + default: /* usage */ + Message(false, "Usage: le [name]\n loads element data to buffer\n"); + return (1); + } + return (0); +} + +/* --------------------------------------------------------------------------- */ + +static const char m_syntax[] = "m [name]"; + +static const char m_help[] = "Loads a layout into the current buffer."; + +/* %start-doc actions m + +The filename and the searchpath (@emph{filePath}) are passed to the +command defined by @emph{fileCommand}. +If no filename is specified a file select box will popup. + +@colonaction + +%end-doc */ + +static int CommandLoadLayoutToBuffer(int argc, char **argv, Coord x, Coord y) +{ + char *filename; + + switch (argc) { + case 1: /* filename is passed in commandline */ + filename = argv[0]; + if (filename && LoadLayoutToBuffer(PASTEBUFFER, filename)) + SetMode(PASTEBUFFER_MODE); + break; + + default: /* usage */ + Message("Usage: m [name]\n loads layout data to buffer\n"); + return (1); + } + return (0); +} + +/* --------------------------------------------------------------------------- */ + +static const char q_syntax[] = "q"; + +static const char q_help[] = "Quits the application after confirming."; + +/* %start-doc actions q + +If you have unsaved changes, you will be prompted to confirm (or +save) before quitting. + +@colonaction + +%end-doc */ + +static int CommandQuit(int argc, char **argv, Coord x, Coord y) +{ + if (!PCB->Changed || gui->close_confirm_dialog() == HID_CLOSE_CONFIRM_OK) + QuitApplication(); + return 0; +} + +static const char qreally_syntax[] = "q!"; + +static const char qreally_help[] = "Quits the application without confirming."; + +/* %start-doc actions q! + +Note that this command neither saves your data nor prompts for +confirmation. + +@colonaction + +%end-doc */ + +static int CommandReallyQuit(int argc, char **argv, Coord x, Coord y) +{ + QuitApplication(); + return 0; +} + +/* ---------------------------------------------------------------------- */ + +static const char rn_syntax[] = "rn [name]"; + +static const char rn_help[] = "Reads netlist."; + +/* %start-doc actions rn + +If no filename is given a file select box will pop up. The file is +read via the command defined by the @emph{RatCommand} resource. The +command must send its output to @emph{stdout}. + +Netlists are used for generating rat's nests (see @ref{Rats Nest}) and +for verifying the board layout (which is also accomplished by the +@emph{Ratsnest} command). + +@colonaction + +%end-doc */ + +static int CommandLoadNetlist(int argc, char **argv, Coord x, Coord y) +{ + char *filename, *name = NULL; + + switch (argc) { + case 1: /* filename is passed in commandline */ + filename = argv[0]; + break; + + default: /* usage */ + Message("Usage: rn [name]\n reads in a netlist file\n"); + return (1); + } + if (PCB->Netlistname) + free(PCB->Netlistname); + PCB->Netlistname = StripWhiteSpaceAndDup(filename); + free(name); + return (0); +} + +/* ---------------------------------------------------------------------- */ + +static const char s_syntax[] = "s [name]"; + +static const char s_help[] = "Saves layout data."; + +/* %start-doc actions s + +Data and the filename are passed to the command defined by the +resource @emph{saveCommand}. It must read the layout data from +@emph{stdin}. If no filename is entered, either the last one is used +again or, if it is not available, a file select box will pop up. + +@colonaction + +%end-doc */ + +static const char w_syntax[] = "w [name]"; + +static const char w_help[] = "Saves layout data."; + +/* %start-doc actions w + +This commands has been added for the convenience of @code{vi} users +and has the same functionality as @code{s}. + +@colonaction + +%end-doc */ + +static int CommandSaveLayout(int argc, char **argv, Coord x, Coord y) +{ + switch (argc) { + case 0: + if (PCB->Filename) { + if (SavePCB(PCB->Filename) == 0) + SetChangedFlag(false); + } + else + Message("No filename to save to yet\n"); + break; + + case 1: + if (SavePCB(argv[0]) == 0) { + SetChangedFlag(false); + free(PCB->Filename); + PCB->Filename = strdup(argv[0]); + if (gui->notify_filename_changed != NULL) + gui->notify_filename_changed(); + } + break; + + default: + Message("Usage: s [name] | w [name]\n saves layout data\n"); + return (1); + } + return (0); +} + +/* --------------------------------------------------------------------------- */ + +static const char wq_syntax[] = "wq"; + +static const char wq_help[] = "Saves the layout data and quits."; + +/* %start-doc actions wq + +This command has been added for the convenience of @code{vi} users and +has the same functionality as @code{s} combined with @code{q}. + +@colonaction + +%end-doc */ + +static int CommandSaveLayoutAndQuit(int argc, char **argv, Coord x, Coord y) +{ + if (!CommandSaveLayout(argc, argv, x, y)) + return CommandQuit(0, 0, 0, 0); + return (1); +} + +/* --------------------------------------------------------------------------- */ + +HID_Action shand_cmd_action_list[] = { + {"h", 0, CommandHelp, + h_help, h_syntax} + , + {"l", 0, CommandLoadLayout, + l_help, l_syntax} + , + {"le", 0, CommandLoadElementToBuffer, + le_help, le_syntax} + , + {"m", 0, CommandLoadLayoutToBuffer, + m_help, m_syntax} + , + {"q", 0, CommandQuit, + q_help, q_syntax} + , + {"q!", 0, CommandReallyQuit, + qreally_help, qreally_syntax} + , + {"rn", 0, CommandLoadNetlist, + rn_help, rn_syntax} + , + {"s", 0, CommandSaveLayout, + s_help, s_syntax} + , + {"w", 0, CommandSaveLayout, + w_help, w_syntax} + , + {"wq", 0, CommandSaveLayoutAndQuit, + wq_help, wq_syntax} + , +}; + +static const char *shand_cmd_cookie = "shand_cmd plugin"; + +REGISTER_ACTIONS(shand_cmd_action_list, shand_cmd_cookie) + +static void hid_shand_cmd_uninit(void) +{ + hid_remove_actions_by_cookie(shand_cmd_cookie); +} + +#include "dolists.h" +pcb_uninit_t hid_shand_cmd_init(void) +{ + REGISTER_ACTIONS(shand_cmd_action_list, shand_cmd_cookie) + return hid_shand_cmd_uninit; +} + Index: trunk/src_plugins/shand_cmd/command.h =================================================================== --- trunk/src_plugins/shand_cmd/command.h (nonexistent) +++ trunk/src_plugins/shand_cmd/command.h (revision 1400) @@ -0,0 +1,39 @@ +/* + * COPYRIGHT + * + * PCB, interactive printed circuit board design + * Copyright (C) 1994,1995,1996 Thomas Nau + * + * 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., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * Contact addresses for paper mail and Email: + * Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany + * Thomas.Nau@rz.uni-ulm.de + * + * RCS: $Id$ + */ + +/* prototypes for command execution + */ + +#ifndef PCB_COMMAND_H +#define PCB_COMMAND_H + +#include "global.h" + +void ExecuteUserCommand(char *); +void CallActionProc(char *action, char **arg, int argc); + +#endif