Index: trunk/scconfig/Rev.h =================================================================== --- trunk/scconfig/Rev.h (revision 12707) +++ trunk/scconfig/Rev.h (revision 12708) @@ -1 +1 @@ -static const int myrev = 12673; +static const int myrev = 12708; Index: trunk/scconfig/Rev.tab =================================================================== --- trunk/scconfig/Rev.tab (revision 12707) +++ trunk/scconfig/Rev.tab (revision 12708) @@ -1,3 +1,4 @@ +12708 configure new source file for the 'brave' feature 12673 configure new lib plugin: compat helper (because of the data model rewrite) 12595 configure new source files for padstacks 12401 configure new source files for more generic thermal support Index: trunk/src/Makefile.in =================================================================== --- trunk/src/Makefile.in (revision 12707) +++ trunk/src/Makefile.in (revision 12708) @@ -26,6 +26,7 @@ attrib.o board.o box.o + brave.o buffer.o build_run.o change.o @@ -217,7 +218,7 @@ # main: action registrations put /local/pcb/ACTION_REG_SRC { - action_act.c buffer.c change_act.c conf_act.c file_act.c find_act.c + action_act.c buffer.c brave.c change_act.c conf_act.c file_act.c find_act.c gui_act.c main_act.c netlist_act.c font_act.c object_act.c obj_pstk_act.c plugins.c polygon_act.c plug_footprint_act.c rats_act.c rats_patch.c remove_act.c select_act.c undo_act.c Index: trunk/src/brave.c =================================================================== --- trunk/src/brave.c (nonexistent) +++ trunk/src/brave.c (revision 12708) @@ -0,0 +1,56 @@ +/* + * COPYRIGHT + * + * pcb-rnd, interactive printed circuit board design + * Copyright (C) 2017 Tibor 'Igor2' Palinkas + * + * This module, diag, was written and is Copyright (C) 2016 by Tibor Palinkas + * this module is also subject to the GNU GPL as described below + * + * 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. + * + */ + +#include "config.h" + +#include "brave.h" +#include "hid_dad.h" + +static struct { + pcb_brave_t bit; + const char *shrt, *lng; +} desc[] = { + {PCB_BRAVE_PSTK_VIA, "use padstack for vias", + "placing new vias will place padstacks instsad of old via objects" }, + {0, NULL, NULL} +}; + + +static const char pcb_acts_Brave[] = + "Brave()\n" + "Brave(setting, on|off)\n"; +static const char pcb_acth_Brave[] = "Changes brave settings."; +static int pcb_act_Brave(int argc, const char **argv, pcb_coord_t x, pcb_coord_t y) +{ + return 0; +} + +pcb_hid_action_t brave_action_list[] = { + {"Brave", 0, pcb_act_Brave, + pcb_acth_Brave, pcb_acts_Brave} +}; + +PCB_REGISTER_ACTIONS(brave_action_list, NULL) + Index: trunk/src/brave.h =================================================================== --- trunk/src/brave.h (nonexistent) +++ trunk/src/brave.h (revision 12708) @@ -0,0 +1,11 @@ +#ifndef PCB_BRAVE_H +#define PCB_BRAVE_H +typedef enum { + PCB_BRAVE_OFF = 0, + PCB_BRAVE_PSTK_VIA = 1, + PCB_BRACE_max +} pcb_brave_t; + +extern pcb_brave_t pcb_brave; + +#endif