4 * \brief Prototypes to change object properties.
8 * <h1><b>Copyright.</b></h1>\n
10 * PCB, interactive printed circuit board design
12 * Copyright (C) 1994,1995,1996 Thomas Nau
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 * Contact addresses for paper mail and Email:
29 * Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany
30 * Thomas.Nau@rz.uni-ulm.de
38 /* ---------------------------------------------------------------------------
41 #define CHANGENAME_TYPES \
42 (VIA_TYPE | PIN_TYPE | PAD_TYPE | TEXT_TYPE | ELEMENT_TYPE | ELEMENTNAME_TYPE | LINE_TYPE)
44 #define CHANGESIZE_TYPES \
45 (POLYGON_TYPE | VIA_TYPE | PIN_TYPE | PAD_TYPE | LINE_TYPE | \
46 ARC_TYPE | TEXT_TYPE | ELEMENTNAME_TYPE | ELEMENT_TYPE)
48 #define CHANGE2NDSIZE_TYPES \
49 (VIA_TYPE | PIN_TYPE | ELEMENT_TYPE)
51 /* We include polygons here only to inform the user not to do it that way. */
52 #define CHANGECLEARSIZE_TYPES \
53 (PIN_TYPE | PAD_TYPE | VIA_TYPE | LINE_TYPE | ARC_TYPE | POLYGON_TYPE)
55 #define CHANGESQUARE_TYPES \
56 (ELEMENT_TYPE | PIN_TYPE | PAD_TYPE)
58 #define CHANGEOCTAGON_TYPES \
59 (ELEMENT_TYPE | PIN_TYPE | VIA_TYPE)
61 #define CHANGEJOIN_TYPES \
62 (ARC_TYPE | LINE_TYPE | TEXT_TYPE)
64 #define CHANGETHERMAL_TYPES \
67 #define CHANGEMASKSIZE_TYPES \
68 (PIN_TYPE | VIA_TYPE | PAD_TYPE)
70 bool ChangeLayoutName (char *);
71 bool ChangeLayerName (LayerType
*, char *);
72 bool ChangeSelectedSize (int, Coord
, bool);
73 bool ChangeSelectedClearSize (int, Coord
, bool);
74 bool ChangeSelected2ndSize (int, Coord
, bool);
75 bool ChangeSelectedMaskSize (int, Coord
, bool);
76 bool ChangeSelectedJoin (int);
77 bool SetSelectedJoin (int);
78 bool ClrSelectedJoin (int);
79 bool ChangeSelectedSquare (int);
80 bool SetSelectedSquare (int);
81 bool ClrSelectedSquare (int);
82 bool ChangeSelectedThermals (int, int);
83 bool ChangeSelectedHole (void);
84 bool ChangeSelectedPaste (void);
85 bool ChangeSelectedOctagon (int);
86 bool SetSelectedOctagon (int);
87 bool ClrSelectedOctagon (int);
88 bool ChangeSelectedElementSide (void);
89 bool ChangeElementSide (ElementType
*, Coord
);
90 bool ChangeHole (PinType
*);
91 bool ChangePaste (PadType
*);
92 bool ChangeObjectSize (int, void *, void *, void *, Coord
, bool);
93 bool ChangeObjectThermal (int, void *, void *, void *, int);
94 bool ChangeObjectClearSize (int, void *, void *, void *, Coord
,
96 bool ChangeObject2ndSize (int, void *, void *, void *, Coord
,
98 bool ChangeObjectMaskSize (int, void *, void *, void *, Coord
,
100 bool ChangeObjectJoin (int, void *, void *, void *);
101 bool SetObjectJoin (int, void *, void *, void *);
102 bool ClrObjectJoin (int, void *, void *, void *);
103 bool ChangeObjectSquare (int, void *, void *, void *);
104 bool SetObjectSquare (int, void *, void *, void *);
105 bool ClrObjectSquare (int, void *, void *, void *);
106 bool ChangeObjectOctagon (int, void *, void *, void *);
107 bool SetObjectOctagon (int, void *, void *, void *);
108 bool ClrObjectOctagon (int, void *, void *, void *);
109 void *ChangeObjectName (int, void *, void *, void *, char *);
110 void *QueryInputAndChangeObjectName (int, void *, void *, void *);
111 void ChangePCBSize (Coord
, Coord
);
112 char *ChangeElementText (PCBType
*pcb
, DataType
*data
, ElementType
*Element
,
113 int which
, char *new_name
);