pcb 4.1.1
An interactive printed circuit board layout editor.

change.c File Reference

Functions used to change object properties. More...

#include <stdlib.h>
#include <stdio.h>
#include "global.h"
#include "change.h"
#include "create.h"
#include "crosshair.h"
#include "data.h"
#include "draw.h"
#include "error.h"
#include "mymem.h"
#include "misc.h"
#include "mirror.h"
#include "polygon.h"
#include "rats.h"
#include "remove.h"
#include "rtree.h"
#include "search.h"
#include "select.h"
#include "set.h"
#include "thermal.h"
#include "undo.h"
Include dependency graph for change.c:

Go to the source code of this file.

Functions

static void * ChangePinSize (ElementType *Element, PinType *Pin)
 Changes the size of a pin.
static void * ChangePinClearSize (ElementType *Element, PinType *Pin)
 Changes the clearance size of a pin.
static void * ChangePinMaskSize (ElementType *Element, PinType *Pin)
 Changes the mask size of a pin.
static void * ChangePadSize (ElementType *Element, PadType *Pad)
 Changes the size of a pad.
static void * ChangePadClearSize (ElementType *Element, PadType *Pad)
 Changes the clearance size of a pad.
static void * ChangePadMaskSize (ElementType *Element, PadType *Pad)
 Changes the mask size of a pad.
static void * ChangePin2ndSize (ElementType *Element, PinType *Pin)
 Changes the drilling hole of a pin.
static void * ChangeElement2ndSize (ElementType *Element)
 Changes the drilling hole of all pins of an element.
static void * ChangeViaSize (PinType *Via)
 Changes the size of a via.
static void * ChangeVia2ndSize (PinType *Via)
 Changes the drilling hole of a via.
static void * ChangeViaClearSize (PinType *Via)
 Changes the clearance size of a via.
static void * ChangeViaMaskSize (PinType *Via)
 Changes the mask size of a via.
static void * ChangeLineSize (LayerType *Layer, LineType *Line)
 Changes the size of a line.
static void * ChangeLineClearSize (LayerType *Layer, LineType *Line)
 Changes the clearance size of a line.
static void * ChangePolygonClearSize (LayerType *Layer, PolygonType *poly)
 Handle attempts to change the clearance of a polygon.
static void * ChangeArcSize (LayerType *Layer, ArcType *Arc)
 Changes the size of an arc.
static void * ChangeArcClearSize (LayerType *Layer, ArcType *Arc)
 Changes the clearance size of an arc.
static void * ChangeTextSize (LayerType *Layer, TextType *Text)
 Changes the scaling factor of a text object.
static void * ChangeElementSize (ElementType *Element)
 Changes the scaling factor of an element's outline.
static void * ChangeElementNameSize (ElementType *Element)
 Changes the scaling factor of a elementname object.
static void * ChangePinName (ElementType *Element, PinType *Pin)
 Changes the name of a pin.
static void * ChangePadName (ElementType *Element, PadType *Pad)
 Changes the name of a pad.
static void * ChangeViaName (PinType *Via)
 Changes the name of a via.
static void * ChangeLineName (LayerType *Layer, LineType *Line)
 Changes the name of a line.
static void * ChangeElementName (ElementType *)
static void * ChangeTextName (LayerType *Layer, TextType *Text)
 Sets data of a text object and calculates bounding box.
static void * ChangeElementSquare (ElementType *Element)
 Changes the square flag of all pins on an element.
static void * SetElementSquare (ElementType *Element)
 Sets the square flag of all pins on an element.
static void * ClrElementSquare (ElementType *Element)
 Clears the square flag of all pins on an element.
static void * ChangeElementOctagon (ElementType *Element)
 Changes the octagon flags of all pins of an element.
static void * SetElementOctagon (ElementType *Element)
 Sets the octagon flags of all pins of an element.
static void * ClrElementOctagon (ElementType *Element)
 Clears the octagon flags of all pins of an element.
static void * ChangePinSquare (ElementType *Element, PinType *Pin)
 Changes the square flag of a pin.
static void * SetPinSquare (ElementType *Element, PinType *Pin)
 Sets the square flag of a pin.
static void * ClrPinSquare (ElementType *Element, PinType *Pin)
 Clears the square flag of a pin.
static void * ChangePinOctagon (ElementType *Element, PinType *Pin)
 Changes the octagon flag of a pin.
static void * SetPinOctagon (ElementType *Element, PinType *Pin)
 Sets the octagon flag of a pin.
static void * ClrPinOctagon (ElementType *Element, PinType *Pin)
 Clears the octagon flag of a pin.
static void * ChangeViaOctagon (PinType *Via)
 Changes the octagon flag of a via.
static void * SetViaOctagon (PinType *Via)
 Sets the octagon flag of a via.
static void * ClrViaOctagon (PinType *Via)
 Clears the octagon flag of a via.
static void * ChangePadSquare (ElementType *Element, PadType *Pad)
 Changes the square flag of a pad.
static void * SetPadSquare (ElementType *Element, PadType *Pad)
 Sets the square flag of a pad.
static void * ClrPadSquare (ElementType *Element, PadType *Pad)
 Clears the square flag of a pad.
static void * ChangeViaThermal (PinType *Via)
 Changes the thermal on a via.
static void * ChangePinThermal (ElementType *element, PinType *Pin)
 Changes the thermal on a pin.
static void * ChangeLineJoin (LayerType *Layer, LineType *Line)
 Changes the clearance flag of a line.
static void * SetLineJoin (LayerType *Layer, LineType *Line)
 Sets the clearance flag of a line.
static void * ClrLineJoin (LayerType *Layer, LineType *Line)
 Clears the clearance flag of a line.
static void * ChangeArcJoin (LayerType *Layer, ArcType *Arc)
 Changes the clearance flag of an arc.
static void * SetArcJoin (LayerType *Layer, ArcType *Arc)
 Sets the clearance flag of an arc.
static void * ClrArcJoin (LayerType *Layer, ArcType *Arc)
 Clears the clearance flag of an arc.
static void * ChangeTextJoin (LayerType *Layer, TextType *Text)
 Changes the clearance flag of a text.
static void * SetTextJoin (LayerType *Layer, TextType *Text)
 Sets the clearance flag of a text.
static void * ClrTextJoin (LayerType *Layer, TextType *Text)
 Clears the clearance flag of a text.
static void * ChangePolyClear (LayerType *Layer, PolygonType *Polygon)
 Changes the CLEARPOLY flag of a polygon.
char * ChangeElementText (PCBType *pcb, DataType *data, ElementType *Element, int which, char *new_name)
 Changes the layout-name of an element.
bool ChangeLayoutName (char *Name)
 Changes the name of a layout; memory has to be already allocated.
bool ChangeElementSide (ElementType *Element, Coord yoff)
 Changes the side of the board an element is on.
bool ChangeLayerName (LayerType *Layer, char *Name)
 Changes the name of a layer; memory has to be already allocated.
bool ChangeHole (PinType *Via)
 Changes the hole flag of a via.
bool ChangePaste (PadType *Pad)
 Changes the nopaste flag of a pad.
bool ChangeSelectedElementSide (void)
 Changes the side of all selected and visible elements.
bool ChangeSelectedThermals (int types, int therm_style)
 Changes the thermals on all selected and visible pins and/or vias.
bool ChangeSelectedViaLayers (int from, int to)
 Changes the thermals on all selected and visible pins and/or vias.
bool ChangeSelectedSize (int types, Coord Difference, bool fixIt)
 Changes the size of all selected and visible object types.
bool ChangeSelectedClearSize (int types, Coord Difference, bool fixIt)
 Changes the clearance size of all selected and visible objects.
bool ChangeSelected2ndSize (int types, Coord Difference, bool fixIt)
 Changes the 2nd size (drilling hole) of all selected and visible objects.
bool ChangeSelectedJoin (int types)
 Changes the clearance flag (join) of all selected and visible lines and/or arcs.
bool SetSelectedJoin (int types)
 Changes the clearance flag (join) of all selected and visible lines and/or arcs.
bool ClrSelectedJoin (int types)
 Changes the clearance flag (join) of all selected and visible lines and/or arcs.
bool ChangeSelectedSquare (int types)
 Changes the square-flag of all selected and visible pins or pads.
bool SetSelectedSquare (int types)
 Sets the square-flag of all selected and visible pins or pads.
bool ClrSelectedSquare (int types)
 Clears the square-flag of all selected and visible pins or pads.
bool ChangeSelectedOctagon (int types)
 Changes the octagon-flag of all selected and visible pins and vias.
bool SetSelectedOctagon (int types)
 Sets the octagon-flag of all selected and visible pins and vias.
bool ClrSelectedOctagon (int types)
 Clears the octagon-flag of all selected and visible pins and vias.
bool ChangeSelectedHole (void)
 Changes the hole-flag of all selected and visible vias.
bool ChangeSelectedPaste (void)
 Changes the no paste-flag of all selected and visible pads.
bool ChangeObjectSize (int Type, void *Ptr1, void *Ptr2, void *Ptr3, Coord Difference, bool fixIt)
 Changes the size of the passed object.
bool ChangeObjectClearSize (int Type, void *Ptr1, void *Ptr2, void *Ptr3, Coord Difference, bool fixIt)
 Changes the clearance size of the passed object.
bool ChangeObjectThermal (int Type, void *Ptr1, void *Ptr2, void *Ptr3, int therm_type)
 Changes the thermal of the passed object.
bool ChangeObjectViaLayers (void *Ptr1, void *Ptr2, void *Ptr3, int from, int to)
 Changes the thermal of the passed object.
bool ChangeObject2ndSize (int Type, void *Ptr1, void *Ptr2, void *Ptr3, Coord Difference, bool fixIt, bool incundo)
 Changes the 2nd size of the passed object.
bool ChangeObjectMaskSize (int Type, void *Ptr1, void *Ptr2, void *Ptr3, Coord Difference, bool fixIt)
 Changes the mask size of the passed object.
void * ChangeObjectName (int Type, void *Ptr1, void *Ptr2, void *Ptr3, char *Name)
 Changes the name of the passed object.
bool ChangeObjectJoin (int Type, void *Ptr1, void *Ptr2, void *Ptr3)
 Changes the clearance-flag of the passed object.
bool SetObjectJoin (int Type, void *Ptr1, void *Ptr2, void *Ptr3)
 Sets the clearance-flag of the passed object.
bool ClrObjectJoin (int Type, void *Ptr1, void *Ptr2, void *Ptr3)
 Clears the clearance-flag of the passed object.
bool ChangeObjectSquare (int Type, void *Ptr1, void *Ptr2, void *Ptr3)
 Changes the square-flag of the passed object.
bool SetObjectSquare (int Type, void *Ptr1, void *Ptr2, void *Ptr3)
 Sets the square-flag of the passed object.
bool ClrObjectSquare (int Type, void *Ptr1, void *Ptr2, void *Ptr3)
 Clears the square-flag of the passed object.
bool ChangeObjectOctagon (int Type, void *Ptr1, void *Ptr2, void *Ptr3)
 Changes the octagon-flag of the passed object.
bool SetObjectOctagon (int Type, void *Ptr1, void *Ptr2, void *Ptr3)
 Sets the octagon-flag of the passed object.
bool ClrObjectOctagon (int Type, void *Ptr1, void *Ptr2, void *Ptr3)
 Clears the octagon-flag of the passed object.
void * QueryInputAndChangeObjectName (int Type, void *Ptr1, void *Ptr2, void *Ptr3)
void ChangePCBSize (Coord Width, Coord Height)
 Changes the maximum size of a layout, adjusts the scrollbars, releases the saved pixmap if necessary and adjusts the cursor confinement box.

Variables

static int Delta
static int Absolute
static char * NewName
static ObjectFunctionType ChangeSizeFunctions
static ObjectFunctionType Change2ndSizeFunctions
static ObjectFunctionType ChangeThermalFunctions
static ObjectFunctionType ChangeClearSizeFunctions
static ObjectFunctionType ChangeNameFunctions
static ObjectFunctionType ChangeSquareFunctions
static ObjectFunctionType ChangeJoinFunctions
static ObjectFunctionType ChangeOctagonFunctions
static ObjectFunctionType ChangeMaskSizeFunctions
static ObjectFunctionType SetSquareFunctions
static ObjectFunctionType SetJoinFunctions
static ObjectFunctionType SetOctagonFunctions
static ObjectFunctionType ClrSquareFunctions
static ObjectFunctionType ClrJoinFunctions
static ObjectFunctionType ClrOctagonFunctions

Detailed Description

Functions used to change object properties.


Copyright.


PCB, interactive printed circuit board design

Copyright (C) 1994,1995,1996, 2005 Thomas Nau

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.

Contact addresses for paper mail and Email: Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany Thomas.Nau@rz.uni-ulm.de

Definition in file change.c.


Function Documentation

static void * ChangeArcClearSize ( LayerType Layer,
ArcType Arc 
) [static]

Changes the clearance size of an arc.

Returns:
TRUE if changed.

Definition at line 818 of file change.c.

References Absolute, AddObjectToClearSizeUndoList(), LayerType::arc_tree, PCBType::Bloat, CLEAR_FLAG, ArcType::Clearance, ClearFromPolygon(), PCBType::Data, Delta, DrawArc(), EraseArc(), MAX, MIL_TO_COORD, MIN, PCB, r_delete_entry(), r_insert_entry(), RestoreToPolygon(), SetArcBoundingBox(), and TEST_FLAG.

Here is the call graph for this function:

static void * ChangeArcJoin ( LayerType Layer,
ArcType Arc 
) [static]

Changes the clearance flag of an arc.

Definition at line 1205 of file change.c.

References AddObjectToClearPolyUndoList(), AddObjectToFlagUndoList(), ClearFromPolygon(), PCBType::Data, DrawArc(), EraseArc(), PCB, RestoreToPolygon(), TEST_FLAG, and TOGGLE_FLAG.

Referenced by ClrArcJoin(), and SetArcJoin().

Here is the call graph for this function:

static void * ChangeArcSize ( LayerType Layer,
ArcType Arc 
) [static]

Changes the size of an arc.

Returns:
TRUE if changed.

Definition at line 789 of file change.c.

References Absolute, AddObjectToSizeUndoList(), LayerType::arc_tree, ClearFromPolygon(), PCBType::Data, Delta, DrawArc(), EraseArc(), PCB, r_delete_entry(), r_insert_entry(), RestoreToPolygon(), SetArcBoundingBox(), TEST_FLAG, and ArcType::Thickness.

Here is the call graph for this function:

static void * ChangeElement2ndSize ( ElementType Element) [static]

Changes the drilling hole of all pins of an element.

Returns:
TRUE if changed.

Definition at line 628 of file change.c.

References Absolute, AddObjectTo2ndSizeUndoList(), AddObjectToSizeUndoList(), ClearFromPolygon(), PCBType::Data, Delta, DrawPin(), pin_st::DrillingHole, END_LOOP, ErasePin(), PCB, pin, PIN_LOOP, RestoreToPolygon(), TEST_FLAG, and pin_st::Thickness.

Here is the call graph for this function:

static void * ChangeElementName ( ElementType Element) [static]

Definition at line 1066 of file change.c.

References _, ChangeElementText(), PCBType::Data, Message(), ElementType::Name, NAME_INDEX, NAMEONPCB_INDEX, NewName, PCB, TEST_FLAG, and UniqueElementName().

Here is the call graph for this function:

static void * ChangeElementNameSize ( ElementType Element) [static]

Changes the scaling factor of a elementname object.

Returns:
TRUE if changed.

Definition at line 931 of file change.c.

References Absolute, AddObjectToSizeUndoList(), PCBType::Data, Delta, DESCRIPTION_TEXT, DrawElementName(), ELEMENTTEXT_LOOP, END_LOOP, EraseElementName(), PCBType::Font, n, ElementType::Name, DataType::name_tree, PCB, r_delete_entry(), r_insert_entry(), SetTextBoundingBox(), and TEST_FLAG.

Here is the call graph for this function:

static void * ChangeElementOctagon ( ElementType Element) [static]

Changes the octagon flags of all pins of an element.

Definition at line 1368 of file change.c.

References ChangePinOctagon(), END_LOOP, pin, PIN_LOOP, and TEST_FLAG.

Here is the call graph for this function:

bool ChangeElementSide ( ElementType Element,
Coord  yoff 
)

Changes the side of the board an element is on.

Returns:
TRUE if done.

Definition at line 1130 of file change.c.

References AddObjectToMirrorUndoList(), PCBType::Data, DrawElement(), EraseElement(), MirrorElementCoordinates(), PCB, and TEST_FLAG.

Referenced by ActionFlip(), and ChangeSelectedElementSide().

Here is the call graph for this function:

static void * ChangeElementSize ( ElementType Element) [static]

Changes the scaling factor of an element's outline.

Returns:
TRUE if changed.

Definition at line 883 of file change.c.

References Absolute, AddObjectToSizeUndoList(), ARC_LOOP, Delta, DrawElement(), ELEMENTLINE_LOOP, PCBType::ElementOn, END_LOOP, EraseElement(), line, PCB, and TEST_FLAG.

Here is the call graph for this function:

static void * ChangeElementSquare ( ElementType Element) [static]

Changes the square flag of all pins on an element.

Definition at line 1299 of file change.c.

References ChangePadSquare(), ChangePinSquare(), END_LOOP, PAD_LOOP, pin, PIN_LOOP, and TEST_FLAG.

Here is the call graph for this function:

char* ChangeElementText ( PCBType pcb,
DataType data,
ElementType Element,
int  which,
char *  new_name 
)

Changes the layout-name of an element.

Change the specified text on an element, either on the board (give PCB, PCB->Data) or in a buffer (give NULL, Buffer->Data).

Returns:
The old string is returned, and must be properly freed by the caller.

Definition at line 1039 of file change.c.

References DrawElementName(), EraseElementName(), PCBType::Font, ElementType::Name, NAME_INDEX, DataType::name_tree, PCB, r_delete_entry(), r_insert_entry(), SetTextBoundingBox(), and TextType::TextString.

Referenced by ActionElementList(), and ChangeElementName().

Here is the call graph for this function:

bool ChangeHole ( PinType Via)
bool ChangeLayerName ( LayerType Layer,
char *  Name 
)

Changes the name of a layer; memory has to be already allocated.

Definition at line 1146 of file change.c.

References CURRENT, and hid_action().

Referenced by ActionChangeName().

Here is the call graph for this function:

bool ChangeLayoutName ( char *  Name)

Changes the name of a layout; memory has to be already allocated.

Definition at line 1116 of file change.c.

References hid_action(), PCBType::Name, and PCB.

Referenced by ActionChangeName().

Here is the call graph for this function:

static void * ChangeLineClearSize ( LayerType Layer,
LineType Line 
) [static]

Changes the clearance size of a line.

Returns:
TRUE if changed.

Definition at line 735 of file change.c.

References Absolute, AddObjectToClearSizeUndoList(), PCBType::Bloat, CLEAR_FLAG, ClearFromPolygon(), PCBType::Data, Delta, DrawLine(), EraseLine(), LayerType::line_tree, MAX, MIL_TO_COORD, MIN, PCB, r_delete_entry(), r_insert_entry(), RestoreToPolygon(), SetLineBoundingBox(), and TEST_FLAG.

Here is the call graph for this function:

static void * ChangeLineJoin ( LayerType Layer,
LineType Line 
) [static]

Changes the clearance flag of a line.

Definition at line 1158 of file change.c.

References AddObjectToClearPolyUndoList(), AddObjectToFlagUndoList(), ClearFromPolygon(), PCBType::Data, DrawLine(), EraseLine(), PCB, RestoreToPolygon(), TEST_FLAG, and TOGGLE_FLAG.

Referenced by ClrLineJoin(), and SetLineJoin().

Here is the call graph for this function:

static void * ChangeLineName ( LayerType Layer,
LineType Line 
) [static]

Changes the name of a line.

Definition at line 1020 of file change.c.

References NewName, and LineType::Number.

static void * ChangeLineSize ( LayerType Layer,
LineType Line 
) [static]

Changes the size of a line.

Returns:
TRUE if changed.

Definition at line 706 of file change.c.

References Absolute, AddObjectToSizeUndoList(), ClearFromPolygon(), PCBType::Data, Delta, DrawLine(), EraseLine(), LayerType::line_tree, PCB, r_delete_entry(), r_insert_entry(), RestoreToPolygon(), SetLineBoundingBox(), and TEST_FLAG.

Here is the call graph for this function:

bool ChangeObject2ndSize ( int  Type,
void *  Ptr1,
void *  Ptr2,
void *  Ptr3,
Coord  Difference,
bool  fixIt,
bool  incundo 
)

Changes the 2nd size of the passed object.

Returns:
True if anything is changed.

Definition at line 2232 of file change.c.

References Absolute, Delta, Draw(), IncrementUndoSerialNumber(), and ObjectOperation().

Referenced by ActionChange2ndSize(), and apply_vendor_map().

Here is the call graph for this function:

bool ChangeObjectClearSize ( int  Type,
void *  Ptr1,
void *  Ptr2,
void *  Ptr3,
Coord  Difference,
bool  fixIt 
)

Changes the clearance size of the passed object.

Returns:
True if anything is changed.

Definition at line 2116 of file change.c.

References Absolute, Delta, Draw(), IncrementUndoSerialNumber(), ObjectOperation(), PCB, and TEST_FLAG.

Referenced by ActionChangeClearSize(), and ActionMinClearGap().

Here is the call graph for this function:

bool ChangeObjectJoin ( int  Type,
void *  Ptr1,
void *  Ptr2,
void *  Ptr3 
)

Changes the clearance-flag of the passed object.

Returns:
True if anything is changed.

Definition at line 2302 of file change.c.

References Draw(), IncrementUndoSerialNumber(), and ObjectOperation().

Referenced by ActionChangeJoin().

Here is the call graph for this function:

bool ChangeObjectMaskSize ( int  Type,
void *  Ptr1,
void *  Ptr2,
void *  Ptr3,
Coord  Difference,
bool  fixIt 
)

Changes the mask size of the passed object.

Returns:
True if anything is changed.

Definition at line 2258 of file change.c.

References Absolute, Delta, Draw(), IncrementUndoSerialNumber(), and ObjectOperation().

Referenced by ActionMinMaskGap().

Here is the call graph for this function:

void* ChangeObjectName ( int  Type,
void *  Ptr1,
void *  Ptr2,
void *  Ptr3,
char *  Name 
)

Changes the name of the passed object.

Warning:
The allocated memory isn't freed because the old string is used by the undo module.
Returns:
The old name.

Definition at line 2286 of file change.c.

References Draw(), NewName, and ObjectOperation().

Referenced by ActionRenumber(), QueryInputAndChangeObjectName(), renumber_block(), renumber_buffer(), and UndoChangeName().

Here is the call graph for this function:

bool ChangeObjectOctagon ( int  Type,
void *  Ptr1,
void *  Ptr2,
void *  Ptr3 
)

Changes the octagon-flag of the passed object.

Returns:
True if anything is changed.

Definition at line 2405 of file change.c.

References Draw(), IncrementUndoSerialNumber(), and ObjectOperation().

Referenced by ActionChangeOctagon().

Here is the call graph for this function:

bool ChangeObjectSize ( int  Type,
void *  Ptr1,
void *  Ptr2,
void *  Ptr3,
Coord  Difference,
bool  fixIt 
)

Changes the size of the passed object.

Returns:
True if anything is changed.

Definition at line 2092 of file change.c.

References Absolute, Delta, Draw(), IncrementUndoSerialNumber(), and ObjectOperation().

Referenced by ActionChangeSize().

Here is the call graph for this function:

bool ChangeObjectSquare ( int  Type,
void *  Ptr1,
void *  Ptr2,
void *  Ptr3 
)

Changes the square-flag of the passed object.

Returns:
True if anything is changed.

Definition at line 2353 of file change.c.

References Draw(), IncrementUndoSerialNumber(), and ObjectOperation().

Referenced by ActionChangeSquare().

Here is the call graph for this function:

bool ChangeObjectThermal ( int  Type,
void *  Ptr1,
void *  Ptr2,
void *  Ptr3,
int  therm_type 
)

Changes the thermal of the passed object.

Returns:
True if anything is changed.

Definition at line 2147 of file change.c.

References Absolute, Delta, Draw(), IncrementUndoSerialNumber(), and ObjectOperation().

Referenced by ActionSetThermal(), and NotifyMode().

Here is the call graph for this function:

bool ChangeObjectViaLayers ( void *  Ptr1,
void *  Ptr2,
void *  Ptr3,
int  from,
int  to 
)

Changes the thermal of the passed object.

Returns:
True if anything is changed.

Definition at line 2171 of file change.c.

References AddObjectToSetViaLayersUndoList(), pin_st::BuriedFrom, pin_st::BuriedTo, ClearFromPolygon(), PCBType::Data, Draw(), DrawVia(), GetMaxBottomLayer(), IncrementUndoSerialNumber(), DataType::Layer, max_copper_layer, PCB, RestoreToPolygon(), SanitizeBuriedVia(), TEST_FLAG, and VIA_IS_BURIED.

Referenced by ActionSetViaLayers().

Here is the call graph for this function:

static void * ChangePadClearSize ( ElementType Element,
PadType Pad 
) [static]

Changes the clearance size of a pad.

Returns:
TRUE if changed.

Definition at line 595 of file change.c.

References Absolute, AddObjectToClearSizeUndoList(), PCBType::Bloat, Bloat, ClearFromPolygon(), PCBType::Data, Delta, DrawPad(), ErasePad(), PCBType::Font, MIN, DataType::pad_tree, PCB, r_delete_entry(), RestoreToPolygon(), SetElementBoundingBox(), and TEST_FLAG.

Here is the call graph for this function:

static void * ChangePadMaskSize ( ElementType Element,
PadType Pad 
) [static]

Changes the mask size of a pad.

Returns:
TRUE if changed.

Definition at line 2537 of file change.c.

References Absolute, AddObjectToMaskSizeUndoList(), PCBType::Data, Delta, DrawPad(), ErasePad(), PCBType::Font, pad_st::Mask, MAX, DataType::pad_tree, PCB, r_delete_entry(), and SetElementBoundingBox().

Here is the call graph for this function:

static void * ChangePadName ( ElementType Element,
PadType Pad 
) [static]

Changes the name of a pad.

Definition at line 1000 of file change.c.

References DrawPadName(), ErasePadName(), pad_st::Name, NewName, and TEST_FLAG.

Here is the call graph for this function:

static void * ChangePadSize ( ElementType Element,
PadType Pad 
) [static]

Changes the size of a pad.

Returns:
TRUE if changed.

Definition at line 565 of file change.c.

References Absolute, AddObjectToMaskSizeUndoList(), AddObjectToSizeUndoList(), ClearFromPolygon(), PCBType::Data, Delta, DrawPad(), ErasePad(), PCBType::Font, pad_st::Mask, DataType::pad_tree, PCB, r_delete_entry(), RestoreToPolygon(), SetElementBoundingBox(), and TEST_FLAG.

Here is the call graph for this function:

static void * ChangePadSquare ( ElementType Element,
PadType Pad 
) [static]

Changes the square flag of a pad.

Definition at line 1425 of file change.c.

References AddObjectToClearPolyUndoList(), AddObjectToFlagUndoList(), ClearFromPolygon(), PCBType::Data, DrawPad(), ErasePad(), PCB, RestoreToPolygon(), TEST_FLAG, and TOGGLE_FLAG.

Referenced by ChangeElementSquare(), ClrPadSquare(), and SetPadSquare().

Here is the call graph for this function:

bool ChangePaste ( PadType Pad)

Changes the nopaste flag of a pad.

Definition at line 1644 of file change.c.

References AddObjectToFlagUndoList(), Draw(), DrawPad(), ErasePad(), TEST_FLAG, and TOGGLE_FLAG.

Referenced by ActionChangePaste(), and ChangeSelectedPaste().

Here is the call graph for this function:

void ChangePCBSize ( Coord  Width,
Coord  Height 
)

Changes the maximum size of a layout, adjusts the scrollbars, releases the saved pixmap if necessary and adjusts the cursor confinement box.

Definition at line 2524 of file change.c.

References hid_action(), PCBType::MaxHeight, PCBType::MaxWidth, and PCB.

Referenced by config_sizes_apply(), and real_load_pcb().

Here is the call graph for this function:

static void * ChangePin2ndSize ( ElementType Element,
PinType Pin 
) [static]

Changes the drilling hole of a pin.

Returns:
TRUE if changed.

Definition at line 672 of file change.c.

References Absolute, AddObjectTo2ndSizeUndoList(), AddObjectToSizeUndoList(), ClearFromPolygon(), PCBType::Data, Delta, DrawPin(), pin_st::DrillingHole, ErasePin(), PCB, RestoreToPolygon(), TEST_FLAG, and pin_st::Thickness.

Here is the call graph for this function:

static void * ChangePinClearSize ( ElementType Element,
PinType Pin 
) [static]

Changes the clearance size of a pin.

Returns:
TRUE if changed.

Definition at line 532 of file change.c.

References Absolute, AddObjectToClearSizeUndoList(), PCBType::Bloat, Bloat, pin_st::Clearance, ClearFromPolygon(), PCBType::Data, Delta, DrawPin(), ErasePin(), PCBType::Font, MIN, PCB, DataType::pin_tree, r_delete_entry(), RestoreToPolygon(), SetElementBoundingBox(), and TEST_FLAG.

Here is the call graph for this function:

static void * ChangePinMaskSize ( ElementType Element,
PinType Pin 
) [static]

Changes the mask size of a pin.

Returns:
TRUE if changed.

Definition at line 2563 of file change.c.

References Absolute, AddObjectToMaskSizeUndoList(), PCBType::Data, Delta, DrawPin(), ErasePin(), PCBType::Font, pin_st::Mask, MAX, PCB, DataType::pin_tree, r_delete_entry(), SetElementBoundingBox(), and pin_st::Thickness.

Here is the call graph for this function:

static void * ChangePinName ( ElementType Element,
PinType Pin 
) [static]

Changes the name of a pin.

Definition at line 980 of file change.c.

References DrawPinName(), ErasePinName(), pin_st::Name, NewName, and TEST_FLAG.

Here is the call graph for this function:

static void * ChangePinOctagon ( ElementType Element,
PinType Pin 
) [static]

Changes the octagon flag of a pin.

Definition at line 1558 of file change.c.

References AddObjectToClearPolyUndoList(), AddObjectToFlagUndoList(), ClearFromPolygon(), PCBType::Data, DrawPin(), ErasePin(), PCB, RestoreToPolygon(), TEST_FLAG, and TOGGLE_FLAG.

Referenced by ChangeElementOctagon(), ClrPinOctagon(), and SetPinOctagon().

Here is the call graph for this function:

static void * ChangePinSize ( ElementType Element,
PinType Pin 
) [static]
static void * ChangePinSquare ( ElementType Element,
PinType Pin 
) [static]

Changes the square flag of a pin.

Definition at line 1472 of file change.c.

References AddObjectToClearPolyUndoList(), AddObjectToFlagUndoList(), ClearFromPolygon(), PCBType::Data, DrawPin(), ErasePin(), PCB, RestoreToPolygon(), TEST_FLAG, and TOGGLE_FLAG.

Referenced by ChangeElementSquare(), ClrPinSquare(), and SetPinSquare().

Here is the call graph for this function:

static void * ChangePinThermal ( ElementType element,
PinType Pin 
) [static]

Changes the thermal on a pin.

Returns:
TRUE if changed.

Definition at line 373 of file change.c.

References AddObjectToClearPolyUndoList(), AddObjectToFlagUndoList(), ASSIGN_THERM, CLEAR_THERM, ClearFromPolygon(), CURRENT, PCBType::Data, Delta, DrawPin(), INDEXOFCURRENT, PCB, and RestoreToPolygon().

Here is the call graph for this function:

static void * ChangePolyClear ( LayerType Layer,
PolygonType Polygon 
) [static]

Changes the CLEARPOLY flag of a polygon.

Definition at line 1660 of file change.c.

References AddObjectToClearPolyUndoList(), AddObjectToFlagUndoList(), PCBType::Data, DrawPolygon(), InitClip(), PCB, TEST_FLAG, and TOGGLE_FLAG.

Here is the call graph for this function:

static void * ChangePolygonClearSize ( LayerType Layer,
PolygonType poly 
) [static]

Handle attempts to change the clearance of a polygon.

Definition at line 767 of file change.c.

References _, hid_st::confirm_dialog, and gui.

bool ChangeSelected2ndSize ( int  types,
Coord  Difference,
bool  fixIt 
)

Changes the 2nd size (drilling hole) of all selected and visible objects.

Returns:
True if anything has changed.

Definition at line 1841 of file change.c.

References Absolute, Delta, Draw(), IncrementUndoSerialNumber(), and SelectedOperation().

Referenced by ActionChange2ndSize().

Here is the call graph for this function:

bool ChangeSelectedClearSize ( int  types,
Coord  Difference,
bool  fixIt 
)

Changes the clearance size of all selected and visible objects.

Returns:
True if anything has changed.

Definition at line 1815 of file change.c.

References Absolute, Delta, Draw(), IncrementUndoSerialNumber(), PCB, SelectedOperation(), and TEST_FLAG.

Referenced by ActionChangeClearSize().

Here is the call graph for this function:

bool ChangeSelectedElementSide ( void  )

Changes the side of all selected and visible elements.

Returns:
True if anything has changed.

Definition at line 1678 of file change.c.

References ChangeElementSide(), PCBType::Data, Draw(), ELEMENT_LOOP, PCBType::ElementOn, END_LOOP, IncrementUndoSerialNumber(), PCB, PCBType::PinOn, and TEST_FLAG.

Referenced by ActionFlip().

Here is the call graph for this function:

bool ChangeSelectedHole ( void  )

Changes the hole-flag of all selected and visible vias.

Returns:
True if anything has changed.

Definition at line 2042 of file change.c.

References ChangeHole(), PCBType::Data, Draw(), END_LOOP, IncrementUndoSerialNumber(), PCB, TEST_FLAG, VIA_LOOP, and PCBType::ViaOn.

Referenced by ActionChangeHole().

Here is the call graph for this function:

bool ChangeSelectedJoin ( int  types)

Changes the clearance flag (join) of all selected and visible lines and/or arcs.

Returns:
True if anything has changed.

Definition at line 1864 of file change.c.

References Draw(), IncrementUndoSerialNumber(), and SelectedOperation().

Referenced by ActionChangeJoin().

Here is the call graph for this function:

bool ChangeSelectedOctagon ( int  types)

Changes the octagon-flag of all selected and visible pins and vias.

Returns:
True if anything has changed.

Definition at line 1983 of file change.c.

References Draw(), IncrementUndoSerialNumber(), and SelectedOperation().

Referenced by ActionChangeOctagon().

Here is the call graph for this function:

bool ChangeSelectedPaste ( void  )

Changes the no paste-flag of all selected and visible pads.

Returns:
True if anything has changed.

Definition at line 2067 of file change.c.

References ALLPAD_LOOP, ChangePaste(), PCBType::Data, Draw(), ENDALL_LOOP, IncrementUndoSerialNumber(), PCB, and TEST_FLAG.

Referenced by ActionChangePaste().

Here is the call graph for this function:

bool ChangeSelectedSize ( int  types,
Coord  Difference,
bool  fixIt 
)

Changes the size of all selected and visible object types.

Returns:
True if anything has changed.

Definition at line 1792 of file change.c.

References Absolute, Delta, Draw(), IncrementUndoSerialNumber(), and SelectedOperation().

Referenced by ActionChangeSize().

Here is the call graph for this function:

bool ChangeSelectedSquare ( int  types)

Changes the square-flag of all selected and visible pins or pads.

Returns:
True if anything has changed.

Definition at line 1924 of file change.c.

References Draw(), IncrementUndoSerialNumber(), and SelectedOperation().

Referenced by ActionChangeSquare().

Here is the call graph for this function:

bool ChangeSelectedThermals ( int  types,
int  therm_style 
)

Changes the thermals on all selected and visible pins and/or vias.

Returns:
True if anything has changed.

Definition at line 1707 of file change.c.

References Delta, Draw(), IncrementUndoSerialNumber(), and SelectedOperation().

Referenced by ActionSetThermal().

Here is the call graph for this function:

bool ChangeSelectedViaLayers ( int  from,
int  to 
)

Changes the thermals on all selected and visible pins and/or vias.

Returns:
True if anything has changed.

Definition at line 1729 of file change.c.

References AddObjectToSetViaLayersUndoList(), ClearFromPolygon(), PCBType::Data, Draw(), DrawVia(), END_LOOP, GetMaxBottomLayer(), IncrementUndoSerialNumber(), DataType::Layer, max_copper_layer, PCB, RestoreToPolygon(), SanitizeBuriedVia(), TEST_FLAG, VIA_IS_BURIED, and VIA_LOOP.

Referenced by ActionSetViaLayers().

Here is the call graph for this function:

static void * ChangeTextJoin ( LayerType Layer,
TextType Text 
) [static]

Changes the clearance flag of a text.

Definition at line 1252 of file change.c.

References AddObjectToClearPolyUndoList(), AddObjectToFlagUndoList(), ClearFromPolygon(), PCBType::Data, DrawText(), EraseText(), PCB, RestoreToPolygon(), TEST_FLAG, and TOGGLE_FLAG.

Referenced by ClrTextJoin(), and SetTextJoin().

Here is the call graph for this function:

static void * ChangeTextName ( LayerType Layer,
TextType Text 
) [static]

Sets data of a text object and calculates bounding box.

Memory must have already been allocated. The one for the new string is allocated.

Returns:
True if the string has been changed.

Definition at line 1092 of file change.c.

References ClearFromPolygon(), PCBType::Data, DrawText(), EraseText(), PCBType::Font, NewName, PCB, r_delete_entry(), r_insert_entry(), RestoreToPolygon(), SetTextBoundingBox(), TEST_FLAG, LayerType::text_tree, and TextType::TextString.

Here is the call graph for this function:

static void * ChangeTextSize ( LayerType Layer,
TextType Text 
) [static]

Changes the scaling factor of a text object.

Returns:
TRUE if changed.

Definition at line 852 of file change.c.

References Absolute, AddObjectToSizeUndoList(), ClearFromPolygon(), PCBType::Data, Delta, DrawText(), EraseText(), PCBType::Font, PCB, r_delete_entry(), r_insert_entry(), RestoreToPolygon(), TextType::Scale, SetTextBoundingBox(), TEST_FLAG, and LayerType::text_tree.

Here is the call graph for this function:

static void * ChangeVia2ndSize ( PinType Via) [static]

Changes the drilling hole of a via.

Returns:
TRUE if changed.

Definition at line 430 of file change.c.

References Absolute, AddObjectTo2ndSizeUndoList(), AddObjectToSizeUndoList(), ClearFromPolygon(), PCBType::Data, Delta, DrawVia(), pin_st::DrillingHole, EraseVia(), PCB, RestoreToPolygon(), TEST_FLAG, and pin_st::Thickness.

Here is the call graph for this function:

static void * ChangeViaClearSize ( PinType Via) [static]

Changes the clearance size of a via.

Returns:
TRUE if changed.

Definition at line 464 of file change.c.

References Absolute, AddObjectToClearSizeUndoList(), PCBType::Bloat, Bloat, pin_st::Clearance, ClearFromPolygon(), PCBType::Data, Delta, DrawVia(), EraseVia(), MIN, PCB, r_delete_entry(), r_insert_entry(), RestoreToPolygon(), SetPinBoundingBox(), TEST_FLAG, and DataType::via_tree.

Here is the call graph for this function:

static void * ChangeViaMaskSize ( PinType Via) [static]

Changes the mask size of a via.

Returns:
TRUE if changed.

Definition at line 2589 of file change.c.

References Absolute, AddObjectToMaskSizeUndoList(), PCBType::Data, Delta, DrawVia(), EraseVia(), pin_st::Mask, MAX, PCB, r_delete_entry(), r_insert_entry(), SetPinBoundingBox(), and DataType::via_tree.

Here is the call graph for this function:

static void * ChangeViaName ( PinType Via) [static]

Changes the name of a via.

Definition at line 961 of file change.c.

References DrawPinName(), ErasePinName(), pin_st::Name, NewName, and TEST_FLAG.

Here is the call graph for this function:

static void * ChangeViaOctagon ( PinType Via) [static]

Changes the octagon flag of a via.

Definition at line 1515 of file change.c.

References AddObjectToClearPolyUndoList(), AddObjectToFlagUndoList(), ClearFromPolygon(), PCBType::Data, DrawVia(), EraseVia(), PCB, RestoreToPolygon(), TEST_FLAG, and TOGGLE_FLAG.

Referenced by ClrViaOctagon(), and SetViaOctagon().

Here is the call graph for this function:

static void * ChangeViaSize ( PinType Via) [static]
static void * ChangeViaThermal ( PinType Via) [static]

Changes the thermal on a via.

Returns:
TRUE if changed.

Definition at line 352 of file change.c.

References AddObjectToClearPolyUndoList(), AddObjectToFlagUndoList(), ASSIGN_THERM, CLEAR_THERM, ClearFromPolygon(), CURRENT, PCBType::Data, Delta, DrawVia(), INDEXOFCURRENT, PCB, and RestoreToPolygon().

Here is the call graph for this function:

static void * ClrArcJoin ( LayerType Layer,
ArcType Arc 
) [static]

Clears the clearance flag of an arc.

Definition at line 1241 of file change.c.

References ChangeArcJoin(), and TEST_FLAG.

Here is the call graph for this function:

static void * ClrElementOctagon ( ElementType Element) [static]

Clears the octagon flags of all pins of an element.

Definition at line 1406 of file change.c.

References ClrPinOctagon(), END_LOOP, pin, PIN_LOOP, and TEST_FLAG.

Here is the call graph for this function:

static void * ClrElementSquare ( ElementType Element) [static]

Clears the square flag of all pins on an element.

Definition at line 1345 of file change.c.

References ClrPadSquare(), ClrPinSquare(), END_LOOP, PAD_LOOP, pin, PIN_LOOP, and TEST_FLAG.

Here is the call graph for this function:

static void * ClrLineJoin ( LayerType Layer,
LineType Line 
) [static]

Clears the clearance flag of a line.

Definition at line 1194 of file change.c.

References ChangeLineJoin(), and TEST_FLAG.

Here is the call graph for this function:

bool ClrObjectJoin ( int  Type,
void *  Ptr1,
void *  Ptr2,
void *  Ptr3 
)

Clears the clearance-flag of the passed object.

Returns:
True if anything is changed.

Definition at line 2336 of file change.c.

References Draw(), IncrementUndoSerialNumber(), and ObjectOperation().

Referenced by ChangeFlag().

Here is the call graph for this function:

bool ClrObjectOctagon ( int  Type,
void *  Ptr1,
void *  Ptr2,
void *  Ptr3 
)

Clears the octagon-flag of the passed object.

Returns:
True if anything is changed.

Definition at line 2440 of file change.c.

References Draw(), IncrementUndoSerialNumber(), and ObjectOperation().

Referenced by ActionClearOctagon(), and ChangeFlag().

Here is the call graph for this function:

bool ClrObjectSquare ( int  Type,
void *  Ptr1,
void *  Ptr2,
void *  Ptr3 
)

Clears the square-flag of the passed object.

Returns:
True if anything is changed.

Definition at line 2388 of file change.c.

References Draw(), IncrementUndoSerialNumber(), and ObjectOperation().

Referenced by ActionClearSquare(), and ChangeFlag().

Here is the call graph for this function:

static void * ClrPadSquare ( ElementType Element,
PadType Pad 
) [static]

Clears the square flag of a pad.

Definition at line 1458 of file change.c.

References ChangePadSquare(), and TEST_FLAG.

Referenced by ClrElementSquare().

Here is the call graph for this function:

static void * ClrPinOctagon ( ElementType Element,
PinType Pin 
) [static]

Clears the octagon flag of a pin.

Definition at line 1589 of file change.c.

References ChangePinOctagon(), and TEST_FLAG.

Referenced by ClrElementOctagon().

Here is the call graph for this function:

static void * ClrPinSquare ( ElementType Element,
PinType Pin 
) [static]

Clears the square flag of a pin.

Definition at line 1503 of file change.c.

References ChangePinSquare(), and TEST_FLAG.

Referenced by ClrElementSquare().

Here is the call graph for this function:

bool ClrSelectedJoin ( int  types)

Changes the clearance flag (join) of all selected and visible lines and/or arcs.

Returns:
True if anything has changed.

Definition at line 1904 of file change.c.

References Draw(), IncrementUndoSerialNumber(), and SelectedOperation().

Referenced by ChangeFlag().

Here is the call graph for this function:

bool ClrSelectedOctagon ( int  types)

Clears the octagon-flag of all selected and visible pins and vias.

Returns:
True if anything has changed.

Definition at line 2023 of file change.c.

References Draw(), IncrementUndoSerialNumber(), and SelectedOperation().

Referenced by ActionClearOctagon(), and ChangeFlag().

Here is the call graph for this function:

bool ClrSelectedSquare ( int  types)

Clears the square-flag of all selected and visible pins or pads.

Returns:
True if anything has changed.

Definition at line 1963 of file change.c.

References Draw(), IncrementUndoSerialNumber(), and SelectedOperation().

Referenced by ActionClearSquare(), and ChangeFlag().

Here is the call graph for this function:

static void * ClrTextJoin ( LayerType Layer,
TextType Text 
) [static]

Clears the clearance flag of a text.

Definition at line 1288 of file change.c.

References ChangeTextJoin(), and TEST_FLAG.

Here is the call graph for this function:

static void * ClrViaOctagon ( PinType Via) [static]

Clears the octagon flag of a via.

Definition at line 1546 of file change.c.

References ChangeViaOctagon(), and TEST_FLAG.

Here is the call graph for this function:

void* QueryInputAndChangeObjectName ( int  Type,
void *  Ptr1,
void *  Ptr2,
void *  Ptr3 
)

Queries the user for a new object name and changes it.

Warning:
The allocated memory isn't freed because the old string is used by the undo module.

Definition at line 2458 of file change.c.

References _, AddObjectToChangeNameUndoList(), ChangeObjectName(), Draw(), ELEMENT_NAME, EMPTY, gui, IncrementUndoSerialNumber(), Number, PCB, and hid_st::prompt_for.

Referenced by ActionChangeName().

Here is the call graph for this function:

static void * SetArcJoin ( LayerType Layer,
ArcType Arc 
) [static]

Sets the clearance flag of an arc.

Definition at line 1230 of file change.c.

References ChangeArcJoin(), and TEST_FLAG.

Here is the call graph for this function:

static void * SetElementOctagon ( ElementType Element) [static]

Sets the octagon flags of all pins of an element.

Definition at line 1387 of file change.c.

References END_LOOP, pin, PIN_LOOP, SetPinOctagon(), and TEST_FLAG.

Here is the call graph for this function:

static void * SetElementSquare ( ElementType Element) [static]

Sets the square flag of all pins on an element.

Definition at line 1322 of file change.c.

References END_LOOP, PAD_LOOP, pin, PIN_LOOP, SetPadSquare(), SetPinSquare(), and TEST_FLAG.

Here is the call graph for this function:

static void * SetLineJoin ( LayerType Layer,
LineType Line 
) [static]

Sets the clearance flag of a line.

Definition at line 1183 of file change.c.

References ChangeLineJoin(), and TEST_FLAG.

Here is the call graph for this function:

bool SetObjectJoin ( int  Type,
void *  Ptr1,
void *  Ptr2,
void *  Ptr3 
)

Sets the clearance-flag of the passed object.

Returns:
True if anything is changed.

Definition at line 2319 of file change.c.

References Draw(), IncrementUndoSerialNumber(), and ObjectOperation().

Referenced by ChangeFlag().

Here is the call graph for this function:

bool SetObjectOctagon ( int  Type,
void *  Ptr1,
void *  Ptr2,
void *  Ptr3 
)

Sets the octagon-flag of the passed object.

Returns:
True if anything is changed.

Definition at line 2423 of file change.c.

References Draw(), IncrementUndoSerialNumber(), and ObjectOperation().

Referenced by ActionSetOctagon(), and ChangeFlag().

Here is the call graph for this function:

bool SetObjectSquare ( int  Type,
void *  Ptr1,
void *  Ptr2,
void *  Ptr3 
)

Sets the square-flag of the passed object.

Returns:
True if anything is changed.

Definition at line 2371 of file change.c.

References Draw(), IncrementUndoSerialNumber(), and ObjectOperation().

Referenced by ActionSetSquare(), and ChangeFlag().

Here is the call graph for this function:

static void * SetPadSquare ( ElementType Element,
PadType Pad 
) [static]

Sets the square flag of a pad.

Definition at line 1444 of file change.c.

References ChangePadSquare(), and TEST_FLAG.

Referenced by SetElementSquare().

Here is the call graph for this function:

static void * SetPinOctagon ( ElementType Element,
PinType Pin 
) [static]

Sets the octagon flag of a pin.

Definition at line 1577 of file change.c.

References ChangePinOctagon(), and TEST_FLAG.

Referenced by SetElementOctagon().

Here is the call graph for this function:

static void * SetPinSquare ( ElementType Element,
PinType Pin 
) [static]

Sets the square flag of a pin.

Definition at line 1491 of file change.c.

References ChangePinSquare(), and TEST_FLAG.

Referenced by SetElementSquare().

Here is the call graph for this function:

bool SetSelectedJoin ( int  types)

Changes the clearance flag (join) of all selected and visible lines and/or arcs.

Returns:
True if anything has changed.

Definition at line 1884 of file change.c.

References Draw(), IncrementUndoSerialNumber(), and SelectedOperation().

Referenced by ChangeFlag().

Here is the call graph for this function:

bool SetSelectedOctagon ( int  types)

Sets the octagon-flag of all selected and visible pins and vias.

Returns:
True if anything has changed.

Definition at line 2003 of file change.c.

References Draw(), IncrementUndoSerialNumber(), and SelectedOperation().

Referenced by ActionSetOctagon(), and ChangeFlag().

Here is the call graph for this function:

bool SetSelectedSquare ( int  types)

Sets the square-flag of all selected and visible pins or pads.

Returns:
True if anything has changed.

Definition at line 1943 of file change.c.

References Draw(), IncrementUndoSerialNumber(), and SelectedOperation().

Referenced by ActionSetSquare(), and ChangeFlag().

Here is the call graph for this function:

static void * SetTextJoin ( LayerType Layer,
TextType Text 
) [static]

Sets the clearance flag of a text.

Definition at line 1277 of file change.c.

References ChangeTextJoin(), and TEST_FLAG.

Here is the call graph for this function:

static void * SetViaOctagon ( PinType Via) [static]

Sets the octagon flag of a via.

Definition at line 1534 of file change.c.

References ChangeViaOctagon(), and TEST_FLAG.

Here is the call graph for this function:


Variable Documentation

Initial value:
 {
  NULL,
  NULL,
  NULL,
  ChangeVia2ndSize,
  ChangeElement2ndSize,
  NULL,
  ChangePin2ndSize,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL
}

Definition at line 145 of file change.c.

Initial value:
 {
  ChangeLineJoin,
  ChangeTextJoin,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  ChangeArcJoin,
  NULL
}

Definition at line 215 of file change.c.

Initial value:
 {
  NULL,
  NULL,
  NULL,
  ChangeViaMaskSize,



  NULL,

  NULL,
  ChangePinMaskSize,
  ChangePadMaskSize,
  NULL,
  NULL,
  NULL,
  NULL
}

Definition at line 243 of file change.c.

Initial value:

Definition at line 187 of file change.c.

Initial value:
 {
  NULL,
  NULL,
  NULL,
  ChangeViaOctagon,
  ChangeElementOctagon,
  NULL,
  ChangePinOctagon,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL
}

Definition at line 229 of file change.c.

Initial value:
 {
  NULL,
  NULL,
  NULL,
  NULL,
  ChangeElementSquare,
  NULL,
  ChangePinSquare,
  ChangePadSquare,
  NULL,
  NULL,
  NULL,
  NULL
}

Definition at line 201 of file change.c.

Initial value:
 {
  NULL,
  NULL,
  NULL,
  ChangeViaThermal,
  NULL,
  NULL,
  ChangePinThermal,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL
}

Definition at line 159 of file change.c.

Initial value:
 {
  ClrLineJoin,
  ClrTextJoin,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  ClrArcJoin,
  NULL
}

Definition at line 317 of file change.c.

Initial value:
 {
  NULL,
  NULL,
  NULL,
  ClrViaOctagon,
  ClrElementOctagon,
  NULL,
  ClrPinOctagon,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL
}

Definition at line 331 of file change.c.

Initial value:
 {
  NULL,
  NULL,
  NULL,
  NULL,
  ClrElementSquare,
  NULL,
  ClrPinSquare,
  ClrPadSquare,
  NULL,
  NULL,
  NULL,
  NULL
}

Definition at line 303 of file change.c.

Initial value:
 {
  SetLineJoin,
  SetTextJoin,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  SetArcJoin,
  NULL
}

Definition at line 275 of file change.c.

Initial value:
 {
  NULL,
  NULL,
  NULL,
  SetViaOctagon,
  SetElementOctagon,
  NULL,
  SetPinOctagon,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL
}

Definition at line 289 of file change.c.

Initial value:
 {
  NULL,
  NULL,
  NULL,
  NULL,
  SetElementSquare,
  NULL,
  SetPinSquare,
  SetPadSquare,
  NULL,
  NULL,
  NULL,
  NULL
}

Definition at line 261 of file change.c.