polygon1.c: Tidy up label_contour() following node_label() changes
[geda-pcb/gde.git] / src / change.h
blob7f43fba9a7f8f2ca5cdd22b557db8f45f997d87d
1 /*
2 * COPYRIGHT
4 * PCB, interactive printed circuit board design
5 * Copyright (C) 1994,1995,1996 Thomas Nau
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 * Contact addresses for paper mail and Email:
22 * Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany
23 * Thomas.Nau@rz.uni-ulm.de
25 * RCS: $Id$
28 /* prototypes to change object properties
31 #ifndef __CHANGE_INCLUDED__
32 #define __CHANGE_INCLUDED__
34 #include "global.h"
36 /* ---------------------------------------------------------------------------
37 * some defines
39 #define CHANGENAME_TYPES \
40 (VIA_TYPE | PIN_TYPE | PAD_TYPE | TEXT_TYPE | ELEMENT_TYPE | ELEMENTNAME_TYPE | LINE_TYPE)
42 #define CHANGESIZE_TYPES \
43 (POLYGON_TYPE | VIA_TYPE | PIN_TYPE | PAD_TYPE | LINE_TYPE | \
44 ARC_TYPE | TEXT_TYPE | ELEMENTNAME_TYPE | ELEMENT_TYPE)
46 #define CHANGE2NDSIZE_TYPES \
47 (VIA_TYPE | PIN_TYPE | ELEMENT_TYPE)
49 #define CHANGECLEARSIZE_TYPES \
50 (PIN_TYPE | PAD_TYPE | VIA_TYPE | LINE_TYPE | ARC_TYPE)
52 #define CHANGESQUARE_TYPES \
53 (ELEMENT_TYPE | PIN_TYPE | PAD_TYPE)
55 #define CHANGEOCTAGON_TYPES \
56 (ELEMENT_TYPE | PIN_TYPE | VIA_TYPE)
58 #define CHANGEJOIN_TYPES \
59 (ARC_TYPE | LINE_TYPE | TEXT_TYPE)
61 #define CHANGETHERMAL_TYPES \
62 (PIN_TYPE | VIA_TYPE)
64 #define CHANGEMASKSIZE_TYPES \
65 (PIN_TYPE | VIA_TYPE | PAD_TYPE)
67 Boolean ChangeLayoutName (char *);
68 Boolean ChangeLayerName (LayerTypePtr, char *);
69 Boolean ChangeSelectedSize (int, LocationType, Boolean);
70 Boolean ChangeSelectedClearSize (int, LocationType, Boolean);
71 Boolean ChangeSelected2ndSize (int, LocationType, Boolean);
72 Boolean ChangeSelectedMaskSize (int, LocationType, Boolean);
73 Boolean ChangeSelectedJoin (int);
74 Boolean SetSelectedJoin (int);
75 Boolean ClrSelectedJoin (int);
76 Boolean ChangeSelectedSquare (int);
77 Boolean SetSelectedSquare (int);
78 Boolean ClrSelectedSquare (int);
79 Boolean ChangeSelectedThermals (int, int);
80 Boolean ChangeSelectedHole (void);
81 Boolean ChangeSelectedPaste (void);
82 Boolean ChangeSelectedOctagon (int);
83 Boolean SetSelectedOctagon (int);
84 Boolean ClrSelectedOctagon (int);
85 Boolean ChangeSelectedElementSide (void);
86 Boolean ChangeElementSide (ElementTypePtr, LocationType);
87 Boolean ChangeHole (PinTypePtr);
88 Boolean ChangePaste (PadTypePtr);
89 Boolean ChangeObjectSize (int, void *, void *, void *, LocationType, Boolean);
90 Boolean ChangeObjectThermal (int, void *, void *, void *, int);
91 Boolean ChangeObjectClearSize (int, void *, void *, void *, LocationType,
92 Boolean);
93 Boolean ChangeObject2ndSize (int, void *, void *, void *, LocationType,
94 Boolean, Boolean);
95 Boolean ChangeObjectMaskSize (int, void *, void *, void *, LocationType,
96 Boolean);
97 Boolean ChangeObjectJoin (int, void *, void *, void *);
98 Boolean SetObjectJoin (int, void *, void *, void *);
99 Boolean ClrObjectJoin (int, void *, void *, void *);
100 Boolean ChangeObjectSquare (int, void *, void *, void *);
101 Boolean SetObjectSquare (int, void *, void *, void *);
102 Boolean ClrObjectSquare (int, void *, void *, void *);
103 Boolean ChangeObjectOctagon (int, void *, void *, void *);
104 Boolean SetObjectOctagon (int, void *, void *, void *);
105 Boolean ClrObjectOctagon (int, void *, void *, void *);
106 void *ChangeObjectName (int, void *, void *, void *, char *);
107 void *QueryInputAndChangeObjectName (int, void *, void *, void *);
108 void ChangePCBSize (BDimension, BDimension);
110 #endif