pcb 4.1.1
An interactive printed circuit board layout editor.

change.h

Go to the documentation of this file.
00001 
00033 #ifndef PCB_CHANGE_H
00034 #define PCB_CHANGE_H
00035 
00036 #include "global.h"
00037 
00038 /* ---------------------------------------------------------------------------
00039  * some defines
00040  */
00041 #define CHANGENAME_TYPES        \
00042         (VIA_TYPE | PIN_TYPE | PAD_TYPE | TEXT_TYPE | ELEMENT_TYPE | ELEMENTNAME_TYPE | LINE_TYPE)
00043 
00044 #define CHANGESIZE_TYPES        \
00045         (POLYGON_TYPE | VIA_TYPE | PIN_TYPE | PAD_TYPE | LINE_TYPE | \
00046          ARC_TYPE | TEXT_TYPE | ELEMENTNAME_TYPE | ELEMENT_TYPE)
00047 
00048 #define CHANGE2NDSIZE_TYPES     \
00049         (VIA_TYPE | PIN_TYPE | ELEMENT_TYPE)
00050 
00051 /* We include polygons here only to inform the user not to do it that way.  */
00052 #define CHANGECLEARSIZE_TYPES   \
00053         (PIN_TYPE | PAD_TYPE | VIA_TYPE | LINE_TYPE | ARC_TYPE | POLYGON_TYPE)
00054 
00055 #define CHANGESQUARE_TYPES     \
00056         (ELEMENT_TYPE | PIN_TYPE | PAD_TYPE)
00057 
00058 #define CHANGEOCTAGON_TYPES     \
00059         (ELEMENT_TYPE | PIN_TYPE | VIA_TYPE)
00060 
00061 #define CHANGEJOIN_TYPES        \
00062         (ARC_TYPE | LINE_TYPE | TEXT_TYPE)
00063 
00064 #define CHANGETHERMAL_TYPES     \
00065         (PIN_TYPE | VIA_TYPE)
00066 
00067 #define CHANGEMASKSIZE_TYPES    \
00068         (PIN_TYPE | VIA_TYPE | PAD_TYPE)
00069 
00070 bool ChangeLayoutName (char *);
00071 bool ChangeLayerName (LayerType *, char *);
00072 bool ChangeSelectedSize (int, Coord, bool);
00073 bool ChangeSelectedClearSize (int, Coord, bool);
00074 bool ChangeSelected2ndSize (int, Coord, bool);
00075 bool ChangeSelectedMaskSize (int, Coord, bool);
00076 bool ChangeSelectedJoin (int);
00077 bool SetSelectedJoin (int);
00078 bool ClrSelectedJoin (int);
00079 bool ChangeSelectedSquare (int);
00080 bool SetSelectedSquare (int);
00081 bool ClrSelectedSquare (int);
00082 bool ChangeSelectedThermals (int, int);
00083 bool ChangeSelectedViaLayers (int, int);
00084 bool ChangeSelectedHole (void);
00085 bool ChangeSelectedPaste (void);
00086 bool ChangeSelectedOctagon (int);
00087 bool SetSelectedOctagon (int);
00088 bool ClrSelectedOctagon (int);
00089 bool ChangeSelectedElementSide (void);
00090 bool ChangeElementSide (ElementType *, Coord);
00091 bool ChangeHole (PinType *);
00092 bool ChangePaste (PadType *);
00093 bool ChangeObjectSize (int, void *, void *, void *, Coord, bool);
00094 bool ChangeObjectThermal (int, void *, void *, void *, int);
00095 bool ChangeObjectViaLayers (void *, void *, void *, int, int);
00096 bool ChangeObjectClearSize (int, void *, void *, void *, Coord,
00097                                bool);
00098 bool ChangeObject2ndSize (int, void *, void *, void *, Coord,
00099                              bool, bool);
00100 bool ChangeObjectMaskSize (int, void *, void *, void *, Coord,
00101                               bool);
00102 bool ChangeObjectJoin (int, void *, void *, void *);
00103 bool SetObjectJoin (int, void *, void *, void *);
00104 bool ClrObjectJoin (int, void *, void *, void *);
00105 bool ChangeObjectSquare (int, void *, void *, void *);
00106 bool SetObjectSquare (int, void *, void *, void *);
00107 bool ClrObjectSquare (int, void *, void *, void *);
00108 bool ChangeObjectOctagon (int, void *, void *, void *);
00109 bool SetObjectOctagon (int, void *, void *, void *);
00110 bool ClrObjectOctagon (int, void *, void *, void *);
00111 void *ChangeObjectName (int, void *, void *, void *, char *);
00112 void *QueryInputAndChangeObjectName (int, void *, void *, void *);
00113 void ChangePCBSize (Coord, Coord);
00114 char *ChangeElementText (PCBType *pcb, DataType *data, ElementType *Element,
00115                          int which, char *new_name);
00116 
00117 #endif