upth2pth.c File Reference


Detailed Description

A p[lug-in for pcb to change UnPlated Through Holes to Plated Through Holes or vice versa.

Author:
Copyright (C) 2009 by Bert Timmerman <bert.timmerman@xs4all.nl>
Function to change all (or a selection) of the unplated holes into plated holes.

Compile like this:

gcc -Ipath/to/pcb/src -Ipath/to/pcb -O2 -shared upth2pth.c -o upth2pth.so

The resulting upth2pth.so file should go in $HOME/.pcb/plugins/

Warning:
Be very strict with compiling this plug-in against the exact pcb sources you compiled/installed the pcb executable (i.e. src/pcb) with.
Usage: Upth2pth([Selected|All])
Usage: Pth2upth([Selected|All])

If no argument is passed, no changes are carried out.
Locked holes are not to be changed.


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.

Definition in file upth2pth.c.

#include <stdio.h>
#include <math.h>
#include "global.h"
#include "data.h"
#include "hid.h"
#include "misc.h"
#include "create.h"
#include "rtree.h"
#include "undo.h"
#include "set.h"
#include "error.h"

Include dependency graph for upth2pth.c:

Go to the source code of this file.

Functions

static int upth2pth (int argc, char **argv, int x, int y)
 Changing all or selected unplated holes to plated holes.
static int pth2upth (int argc, char **argv, int x, int y)
 Changing all or selected plated holes to unplated holes.
void pcb_plugin_init ()

Variables

static HID_Action upth2pth_action_list []


Function Documentation

static int pth2upth int  argc,
char **  argv,
int  x,
int  y
[static]
 

Changing all or selected plated holes to unplated holes.

Usage: Pth2upth([Selected|All])
If no argument is passed, no changes are carried out.
Locked holes are not to be changed.

Definition at line 127 of file upth2pth.c.

static int upth2pth int  argc,
char **  argv,
int  x,
int  y
[static]
 

Changing all or selected unplated holes to plated holes.

Usage: Upth2pth([Selected|All])
If no argument is passed, no changes are carried out.
Locked holes are not to be changed.

Definition at line 64 of file upth2pth.c.


Variable Documentation

HID_Action upth2pth_action_list[] [static]
 

Initial value:

{
        {"Upth2pth", NULL, upth2pth, "Change selected or all unplated holes to plated holes", NULL},
        {"Pth2upth", NULL, pth2upth, "Change selected or all plated holes to unplated holes", NULL}
}

Definition at line 182 of file upth2pth.c.


Generated on Tue Aug 17 15:28:07 2010 for pcb-plugins by  doxygen 1.4.6-NO