Index: trunk/src/change.c =================================================================== --- trunk/src/change.c (revision 15630) +++ trunk/src/change.c (revision 15631) @@ -503,27 +503,6 @@ return change; } -/* ---------------------------------------------------------------------- - * changes the no paste-flag of all selected and visible pads - * returns pcb_true if anything has changed - */ -pcb_bool pcb_chg_selected_paste(void) -{ - pcb_bool change = pcb_false; - - PCB_PAD_ALL_LOOP(PCB->Data); - { - if (PCB_FLAG_TEST(PCB_FLAG_SELECTED, pad)) - change |= pcb_pad_change_paste(pad); - } - PCB_ENDALL_LOOP; - if (change) { - pcb_draw(); - pcb_undo_inc_serial(); - } - return change; -} - #warning subc TODO: check if it is true: /* --------------------------------------------------------------------------- * changes the size of the passed object; subc size is silk size (TODO: check if it is true) Index: trunk/src/change_act.c =================================================================== --- trunk/src/change_act.c (revision 15630) +++ trunk/src/change_act.c (revision 15631) @@ -271,49 +271,17 @@ } return 0; } +#endif /* --------------------------------------------------------------------------- */ static const char pcb_acts_ChangePaste[] = "ChangePaste(ToggleObject|Object|SelectedPads|Selected)"; - -static const char pcb_acth_ChangePaste[] = "Changes the no paste flag of objects."; - -/* %start-doc actions ChangePaste - -The "no paste flag" of a pad determines whether the solderpaste - stencil will have an opening for the pad (no set) or if there will be - no solderpaste on the pad (set). This is used for things such as - fiducial pads. - -%end-doc */ - +static const char pcb_acth_ChangePaste[] = "Changes the no paste flag of objects. Not supported anymore."; static int pcb_act_ChangePaste(int argc, const char **argv, pcb_coord_t x, pcb_coord_t y) { - const char *function = PCB_ACTION_ARG(0); - if (function) { - switch (pcb_funchash_get(function, NULL)) { - case F_ToggleObject: - case F_Object: - { - int type; - void *ptr1, *ptr2, *ptr3; - - pcb_gui->get_coords(_("Select an Object"), &x, &y); - if ((type = pcb_search_screen(x, y, PCB_TYPE_PAD, &ptr1, &ptr2, &ptr3)) != PCB_TYPE_NONE && pcb_pad_change_paste((pcb_pad_t *) ptr3)) - pcb_undo_inc_serial(); - break; - } - - case F_SelectedPads: - case F_Selected: - if (pcb_chg_selected_paste()) - pcb_board_set_changed_flag(pcb_true); - break; - } - } - return 0; + pcb_message(PCB_MSG_ERROR, "Feature not supported with padstacks.\n"); + return 1; } -#endif /* --------------------------------------------------------------------------- */ Index: trunk/src/obj_pad.c =================================================================== --- trunk/src/obj_pad.c (revision 15630) +++ trunk/src/obj_pad.c (revision 15631) @@ -49,12 +49,3 @@ #include "obj_elem.h" -/* changes the nopaste flag of a pad */ -pcb_bool pcb_pad_change_paste(pcb_pad_t *Pad) -{ - if (PCB_FLAG_TEST(PCB_FLAG_LOCK, Pad)) - return pcb_false; - pcb_undo_add_obj_to_flag(Pad); - PCB_FLAG_TOGGLE(PCB_FLAG_NOPASTE, Pad); - return pcb_true; -} Index: trunk/src/obj_pad.h =================================================================== --- trunk/src/obj_pad.h (revision 15630) +++ trunk/src/obj_pad.h (revision 15631) @@ -42,8 +42,6 @@ gdl_elem_t link; /* a pad is in a list (element) */ }; -pcb_bool pcb_pad_change_paste(pcb_pad_t *Pad); - #define PCB_PAD_LOOP(element) do { \ pcb_pad_t *pad; \ gdl_iterator_t __it__; \