pcb 4.1.1
An interactive printed circuit board layout editor.

action.c File Reference

Action routines for output window. More...

#include "global.h"
Include dependency graph for action.c:

Go to the source code of this file.

Data Structures

struct  FunctionType

Enumerations

enum  FunctionID {
  F_AddSelected, F_All, F_AllConnections, F_AllRats,
  F_AllUnusedPins, F_Arc, F_Arrow, F_Block,
  F_Description, F_Cancel, F_Center, F_Clear,
  F_ClearAndRedraw, F_ClearList, F_Close, F_Found,
  F_Connection, F_Convert, F_Copy, F_CycleClip,
  F_CycleCrosshair, F_DeleteRats, F_Drag, F_DrillReport,
  F_Element, F_ElementByName, F_ElementConnections, F_ElementToBuffer,
  F_Escape, F_Find, F_FlipElement, F_FoundPins,
  F_Grid, F_InsertPoint, F_Layer, F_Layout,
  F_LayoutAs, F_LayoutToBuffer, F_Line, F_LineSize,
  F_Lock, F_Mirror, F_Move, F_NameOnPCB,
  F_Netlist, F_NetByName, F_None, F_Notify,
  F_Object, F_ObjectByName, F_PasteBuffer, F_PadByName,
  F_PinByName, F_PinOrPadName, F_Pinout, F_Polygon,
  F_PolygonHole, F_PreviousPoint, F_RatsNest, F_Rectangle,
  F_Redraw, F_Release, F_Revert, F_Remove,
  F_RemoveSelected, F_Report, F_Reset, F_ResetLinesAndPolygons,
  F_ResetPinsViasAndPads, F_Restore, F_Rotate, F_Save,
  F_Selected, F_SelectedArcs, F_SelectedElements, F_SelectedLines,
  F_SelectedNames, F_SelectedObjects, F_SelectedPads, F_SelectedPins,
  F_SelectedTexts, F_SelectedVias, F_SelectedRats, F_Stroke,
  F_Text, F_TextByName, F_TextScale, F_Thermal,
  F_ToLayout, F_ToggleAllDirections, F_ToggleAutoDRC, F_ToggleClearLine,
  F_ToggleFullPoly, F_ToggleGrid, F_ToggleHideNames, F_ToggleMask,
  F_ToggleName, F_ToggleObject, F_ToggleShowDRC, F_ToggleLiveRoute,
  F_ToggleRubberBandMode, F_ToggleStartDirection, F_ToggleSnapPin, F_ToggleThindraw,
  F_ToggleLockNames, F_ToggleOnlyNames, F_ToggleThindrawPoly, F_ToggleOrthoMove,
  F_ToggleLocalRef, F_ToggleCheckPlanes, F_ToggleUniqueNames, F_Via,
  F_ViaByName, F_Value, F_ViaDrillingHole, F_ViaSize,
  F_Zoom, F_ThroughHole, F_BuriedVias, F_ToggleAutoBuriedVias
}

Functions

static int GetFunctionID (String Ident)
 Get function ID of passed string.
static void AdjustAttachedBox (void)
 Set new coordinates if in 'RECTANGLE' mode.
static void NotifyLine (void)
 Creates points of a line.
static void NotifyBlock (void)
 Create first or second corner of a marked block.
static void NotifyMode (void)
 This is called after every mode change, like mouse button pressed, mouse button released, dragging something started or a different tool selected.
static void ClearWarnings ()
 Clear warning color from pins/pads.
static void FinishStroke (void)
 Try to recognize the stroke sent.
void stroke_init (void)
void stroke_record (int x, int y)
int stroke_trans (char *s)
static void ChangeFlag (char *, char *, int, char *)
static void click_cb (hidval hv)
 Click callback.
static void ReleaseMode (void)
 This is typically called when the mouse has moved or the mouse button was released.
static int hashfunc (String s)
void AdjustAttachedObjects (void)
 Adjusts the objects which are to be created like attached lines.
static int ActionAtomic (int argc, char **argv, Coord x, Coord y)
static int ActionDRCheck (int argc, char **argv, Coord x, Coord y)
static int ActionDumpLibrary (int argc, char **argv, Coord x, Coord y)
static int ActionFlip (int argc, char **argv, Coord x, Coord y)
static int ActionMessage (int argc, char **argv, Coord x, Coord y)
static int ActionSetThermal (int argc, char **argv, Coord x, Coord y)
void EventMoveCrosshair (int ev_x, int ev_y)
 Event handler to set the cursor according to the X pointer position called from inside main.c.
static int ActionSetValue (int argc, char **argv, Coord x, Coord y)
static int ActionQuit (int argc, char **argv, Coord x, Coord y)
static int ActionConnection (int argc, char **argv, Coord x, Coord y)
static int ActionDisperseElements (int argc, char **argv, Coord x, Coord y)
static enum crosshair_shape CrosshairShapeIncrement (enum crosshair_shape shape)
static int ActionDisplay (int argc, char **argv, Coord childX, Coord childY)
static int ActionMode (int argc, char **argv, Coord x, Coord y)
static int ActionRemoveSelected (int argc, char **argv, Coord x, Coord y)
static int ActionRenumber (int argc, char **argv, Coord x, Coord y)
static int ActionRipUp (int argc, char **argv, Coord x, Coord y)
static int ActionAddRats (int argc, char **argv, Coord x, Coord y)
static int ActionDelete (int argc, char **argv, Coord x, Coord y)
static int ActionDeleteRats (int argc, char **argv, Coord x, Coord y)
static int ActionAutoPlaceSelected (int argc, char **argv, Coord x, Coord y)
static int ActionAutoRoute (int argc, char **argv, Coord x, Coord y)
static int ActionMarkCrosshair (int argc, char **argv, Coord x, Coord y)
static int ActionChangeSize (int argc, char **argv, Coord x, Coord y)
static int ActionChange2ndSize (int argc, char **argv, Coord x, Coord y)
static int ActionChangeClearSize (int argc, char **argv, Coord x, Coord y)
static int ActionMinMaskGap (int argc, char **argv, Coord x, Coord y)
static int ActionMinClearGap (int argc, char **argv, Coord x, Coord y)
static int ActionChangePinName (int argc, char **argv, Coord x, Coord y)
int ActionChangeName (int argc, char **argv, Coord x, Coord y)
static int ActionMorphPolygon (int argc, char **argv, Coord x, Coord y)
static int ActionToggleHideName (int argc, char **argv, Coord x, Coord y)
static int ActionChangeJoin (int argc, char **argv, Coord x, Coord y)
static int ActionChangeSquare (int argc, char **argv, Coord x, Coord y)
static int ActionSetSquare (int argc, char **argv, Coord x, Coord y)
static int ActionClearSquare (int argc, char **argv, Coord x, Coord y)
static int ActionChangeOctagon (int argc, char **argv, Coord x, Coord y)
static int ActionSetOctagon (int argc, char **argv, Coord x, Coord y)
static int ActionClearOctagon (int argc, char **argv, Coord x, Coord y)
static int ActionChangeHole (int argc, char **argv, Coord x, Coord y)
static int ActionChangePaste (int argc, char **argv, Coord x, Coord y)
static int ActionSelect (int argc, char **argv, Coord x, Coord y)
int FlagHaveRegex (int parm)
static int ActionUnselect (int argc, char **argv, Coord x, Coord y)
static int ActionSaveTo (int argc, char **argv, Coord x, Coord y)
static int ActionSaveSettings (int argc, char **argv, Coord x, Coord y)
static int ActionLoadFrom (int argc, char **argv, Coord x, Coord y)
static int ActionNew (int argc, char **argv, Coord x, Coord y)
void ActionBell (char *volume)
 No operation, just for testing purposes. syntax: Bell(volume)
static int ActionPasteBuffer (int argc, char **argv, Coord x, Coord y)
static int ActionUndo (int argc, char **argv, Coord x, Coord y)
static int ActionRedo (int argc, char **argv, Coord x, Coord y)
static int ActionPolygon (int argc, char **argv, Coord x, Coord y)
static int ActionRouteStyle (int argc, char **argv, Coord x, Coord y)
static int ActionMoveObject (int argc, char **argv, Coord x, Coord y)
static int ActionMoveToCurrentLayer (int argc, char **argv, Coord x, Coord y)
static int ActionSetSame (int argc, char **argv, Coord x, Coord y)
static int ActionSetFlag (int argc, char **argv, Coord x, Coord y)
static int ActionClrFlag (int argc, char **argv, Coord x, Coord y)
static int ActionChangeFlag (int argc, char **argv, Coord x, Coord y)
static int ActionExecuteFile (int argc, char **argv, Coord x, Coord y)
static int ActionPSCalib (int argc, char **argv, Coord x, Coord y)
static ElementTypefind_element_by_refdes (char *refdes)
static AttributeTypelookup_attr (AttributeListType *list, const char *name)
static void delete_attr (AttributeListType *list, AttributeType *attr)
static int parse_layout_attribute_units (char *name, int def)
static int ActionElementList (int argc, char **argv, Coord x, Coord y)
static int ActionElementSetAttr (int argc, char **argv, Coord x, Coord y)
static int ActionExecCommand (int argc, char **argv, Coord x, Coord y)
static int pcb_spawnvp (char **argv)
static char * tempfile_name_new (char *name)
 Creates a new temporary file name.
static int tempfile_unlink (char *name)
 Unlink a temporary file.
static int ActionImport (int argc, char **argv, Coord x, Coord y)
static int ActionAttributes (int argc, char **argv, Coord x, Coord y)
static bool identify_layer (char *layer_name, Cardinal *layer_no)
static int ActionSetViaLayers (int argc, char **argv, Coord x, Coord y)

Variables

static PointType InsertedPoint
static LayerTypelastLayer
struct {
   PolygonType *   poly
   LineType   line
fake
struct {
   Coord   X
   Coord   Y
   Cardinal   Buffer
   bool   Click
   bool   Moving
   int   Hit
   void *   ptr1
   void *   ptr2
   void *   ptr3
Note
static int defer_updates = 0
static int defer_needs_update = 0
static Cardinal polyIndex = 0
static bool saved_mode = false
static bool mid_stroke = false
static BoxType StrokeBox
static FunctionType Functions []
static char function_hash [HSIZE]
static int hash_initted = 0
static const char atomic_syntax [] = N_("Atomic(Save|Restore|Close|Block)")
static const char atomic_help [] = N_("Save or restore the undo serial number.")
static const char drc_syntax [] = N_("DRC()")
static const char drc_help [] = N_("Invoke the DRC check.")
static const char dumplibrary_syntax [] = N_("DumpLibrary()")
static const char dumplibrary_help []
static const char flip_syntax [] = N_("Flip(Object|Selected|SelectedElements)")
static const char flip_help []
static const char message_syntax [] = N_("Message(message)")
static const char message_help [] = N_("Writes a message to the log window.")
static const char setthermal_syntax [] = "SetThermal(Object|SelectedPins|SelectedVias|Selected, Style)"
static const char setthermal_help []
static const char setvalue_syntax []
static const char setvalue_help []
static const char quit_syntax [] = N_("Quit()")
static const char quit_help [] = N_("Quits the application after confirming.")
static const char connection_syntax []
static const char connection_help []
static const char disperseelements_syntax []
static const char disperseelements_help [] = N_("Disperses elements.")
static const char display_syntax []
static const char display_help [] = N_("Several display-related actions.")
static const char mode_syntax []
static const char mode_help [] = N_("Change or use the tool mode.")
static const char removeselected_syntax [] = N_("RemoveSelected()")
static const char removeselected_help [] = N_("Removes any selected objects.")
static const char renumber_syntax []
static const char renumber_help []
static const char ripup_syntax [] = N_("RipUp(All|Selected|Element)")
static const char ripup_help []
static const char addrats_syntax [] = N_("AddRats(AllRats|SelectedRats|Close)")
static const char addrats_help []
static const char delete_syntax []
static const char delete_help [] = N_("Delete stuff.")
static const char deleterats_syntax []
static const char deleterats_help [] = N_("Delete rat lines.")
static const char autoplace_syntax [] = N_("AutoPlaceSelected()")
static const char autoplace_help [] = N_("Auto-place selected components.")
static const char autoroute_syntax [] = N_("AutoRoute(AllRats|SelectedRats)")
static const char autoroute_help [] = N_("Auto-route some or all rat lines.")
static const char markcrosshair_syntax []
static const char markcrosshair_help [] = N_("Set/Reset the Crosshair mark.")
static const char changesize_syntax []
static const char changesize_help [] = N_("Changes the size of objects.")
static const char changedrillsize_syntax []
static const char changedrillsize_help []
static const char changeclearsize_syntax []
static const char changeclearsize_help []
static const char minmaskgap_syntax []
static const char minmaskgap_help []
static const char mincleargap_syntax []
static const char mincleargap_help []
static const char changepinname_syntax []
static const char changepinname_help []
static const char changename_syntax []
static const char changename_help [] = N_("Sets the name of objects.")
static const char morphpolygon_syntax [] = N_("MorphPolygon(Object|Selected)")
static const char morphpolygon_help []
static const char togglehidename_syntax []
static const char togglehidename_help []
static const char changejoin_syntax []
static const char changejoin_help []
static const char changesquare_syntax []
static const char changesquare_help []
static const char setsquare_syntax []
static const char setsquare_help [] = N_("sets the square-flag of objects.")
static const char clearsquare_syntax []
static const char clearsquare_help []
static const char changeoctagon_syntax []
static const char changeoctagon_help []
static const char setoctagon_syntax []
static const char setoctagon_help [] = N_("Sets the octagon-flag of objects.")
static const char clearoctagon_syntax []
static const char clearoctagon_help []
static const char changehold_syntax []
static const char changehold_help [] = N_("Changes the hole flag of objects.")
static const char changepaste_syntax []
static const char changepaste_help []
static const char select_syntax []
static const char select_help [] = N_("Toggles or sets the selection.")
static const char unselect_syntax []
static const char unselect_help []
static const char saveto_syntax []
static const char saveto_help [] = N_("Saves data to a file.")
static const char savesettings_syntax []
static const char savesettings_help [] = N_("Saves settings.")
static const char loadfrom_syntax []
static const char loadfrom_help [] = N_("Load layout data from a file.")
static const char new_syntax [] = N_("New([name])")
static const char new_help [] = N_("Starts a new layout.")
static const char pastebuffer_syntax []
static const char pastebuffer_help []
static const char undo_syntax []
static const char undo_help [] = N_("Undo recent changes.")
static const char redo_syntax [] = N_("Redo()")
static const char redo_help [] = N_("Redo recent \"undo\" operations.")
static const char polygon_syntax [] = N_("Polygon(Close|PreviousPoint)")
static const char polygon_help [] = N_("Some polygon related stuff.")
static const char routestyle_syntax [] = N_("RouteStyle(1|2|3|4)")
static const char routestyle_help []
static const char moveobject_syntax [] = N_("MoveObject(X,Y,dim)")
static const char moveobject_help []
static const char movetocurrentlayer_syntax []
static const char movetocurrentlayer_help []
static const char setsame_syntax [] = N_("SetSame()")
static const char setsame_help []
static const char setflag_syntax []
static const char setflag_help [] = N_("Sets flags on objects.")
static const char clrflag_syntax []
static const char clrflag_help [] = N_("Clears flags on objects.")
static const char changeflag_syntax []
static const char changeflag_help [] = N_("Sets or clears flags on objects.")
static const char executefile_syntax [] = N_("ExecuteFile(filename)")
static const char executefile_help [] = N_("Run actions from the given file.")
static ElementTypeelement_cache = NULL
static const char elementlist_syntax []
static const char elementlist_help []
static int number_of_footprints_not_found
static const char elementsetattr_syntax []
static const char elementsetattr_help []
static const char execcommand_syntax [] = N_("ExecCommand(command)")
static const char execcommand_help [] = N_("Runs a command.")
static const char import_syntax []
static const char import_help [] = N_("Import schematics.")
static const char attributes_syntax []
static const char attributes_help []
static const char setvialayers_syntax []
static const char setvialayers_help []
HID_Action action_action_list []

Detailed Description

Action routines for output window.


Copyright.


PCB, interactive printed circuit board design

Copyright (C) 1994,1995,1996 Thomas Nau

Copyright (C) 1997, 1998, 1999, 2000, 2001 Harry Eaton

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: Harry Eaton, 6697 Buttonhole Ct, Columbia, MD 21044, USA haceaton@aplcomm.jhuapl.edu

Definition in file action.c.


Enumeration Type Documentation

enum FunctionID
Enumerator:
F_AddSelected 
F_All 
F_AllConnections 
F_AllRats 
F_AllUnusedPins 
F_Arc 
F_Arrow 
F_Block 
F_Description 
F_Cancel 
F_Center 
F_Clear 
F_ClearAndRedraw 
F_ClearList 
F_Close 
F_Found 
F_Connection 
F_Convert 
F_Copy 
F_CycleClip 
F_CycleCrosshair 
F_DeleteRats 
F_Drag 
F_DrillReport 
F_Element 
F_ElementByName 
F_ElementConnections 
F_ElementToBuffer 
F_Escape 
F_Find 
F_FlipElement 
F_FoundPins 
F_Grid 
F_InsertPoint 
F_Layer 
F_Layout 
F_LayoutAs 
F_LayoutToBuffer 
F_Line 
F_LineSize 
F_Lock 
F_Mirror 
F_Move 
F_NameOnPCB 
F_Netlist 
F_NetByName 
F_None 
F_Notify 
F_Object 
F_ObjectByName 
F_PasteBuffer 
F_PadByName 
F_PinByName 
F_PinOrPadName 
F_Pinout 
F_Polygon 
F_PolygonHole 
F_PreviousPoint 
F_RatsNest 
F_Rectangle 
F_Redraw 
F_Release 
F_Revert 
F_Remove 
F_RemoveSelected 
F_Report 
F_Reset 
F_ResetLinesAndPolygons 
F_ResetPinsViasAndPads 
F_Restore 
F_Rotate 
F_Save 
F_Selected 
F_SelectedArcs 
F_SelectedElements 
F_SelectedLines 
F_SelectedNames 
F_SelectedObjects 
F_SelectedPads 
F_SelectedPins 
F_SelectedTexts 
F_SelectedVias 
F_SelectedRats 
F_Stroke 
F_Text 
F_TextByName 
F_TextScale 
F_Thermal 
F_ToLayout 
F_ToggleAllDirections 
F_ToggleAutoDRC 
F_ToggleClearLine 
F_ToggleFullPoly 
F_ToggleGrid 
F_ToggleHideNames 
F_ToggleMask 
F_ToggleName 
F_ToggleObject 
F_ToggleShowDRC 
F_ToggleLiveRoute 
F_ToggleRubberBandMode 
F_ToggleStartDirection 
F_ToggleSnapPin 
F_ToggleThindraw 
F_ToggleLockNames 
F_ToggleOnlyNames 
F_ToggleThindrawPoly 
F_ToggleOrthoMove 
F_ToggleLocalRef 
F_ToggleCheckPlanes 
F_ToggleUniqueNames 
F_Via 
F_ViaByName 
F_Value 
F_ViaDrillingHole 
F_ViaSize 
F_Zoom 
F_ThroughHole 
F_BuriedVias 
F_ToggleAutoBuriedVias 

Definition at line 96 of file action.c.


Function Documentation

static int ActionAddRats ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionAtomic ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 1843 of file action.c.

References AFAIL, Bumped, F_Block, F_Close, F_Restore, F_Save, GetFunctionID(), IncrementUndoSerialNumber(), RestoreUndoSerialNumber(), and SaveUndoSerialNumber().

Here is the call graph for this function:

static int ActionAttributes ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionAutoPlaceSelected ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 3971 of file action.c.

References _, AutoPlaceSelected(), hid_st::confirm_dialog, gui, hid_action(), and SetChangedFlag().

Here is the call graph for this function:

static int ActionAutoRoute ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 4013 of file action.c.

References ARG, AutoRoute(), F_AllRats, F_Selected, F_SelectedRats, GetFunctionID(), hid_action(), and SetChangedFlag().

Here is the call graph for this function:

void ActionBell ( char *  volume)

No operation, just for testing purposes. syntax: Bell(volume)

Definition at line 6055 of file action.c.

References hid_st::beep, and gui.

static int ActionChange2ndSize ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionChangeClearSize ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionChangeFlag ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 6832 of file action.c.

References AFAIL, ARG, and ChangeFlag().

Here is the call graph for this function:

static int ActionChangeHole ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionChangeJoin ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionChangeOctagon ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionChangePaste ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionChangePinName ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionChangeSquare ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionClearOctagon ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionClearSquare ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionClrFlag ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 6802 of file action.c.

References ARG, and ChangeFlag().

Here is the call graph for this function:

static int ActionConnection ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionDelete ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionDeleteRats ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 3934 of file action.c.

References ARG, ClearWarnings(), DeleteRats(), F_AllRats, F_Selected, F_SelectedRats, GetFunctionID(), SettingType::RatWarn, SetChangedFlag(), and Settings.

Here is the call graph for this function:

static int ActionDisperseElements ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionDisplay ( int  argc,
char **  argv,
Coord  childX,
Coord  childY 
) [static]

Definition at line 2677 of file action.c.

References _, AddObjectToFlagUndoList(), AdjustAttachedObjects(), AFAIL, ARG, CrosshairType::AttachedLine, Basic_Crosshair_Shape, CLEAR_FLAG, ClearFlagOnAllObjects(), PCBType::Clipping, Crosshair, Crosshair_Shapes_Number, CrosshairShapeIncrement(), PCBType::Data, display, Draw(), DrawElementName(), SettingType::DrawGrid, DrawPadName(), DrawPinName(), DrawViaName(), ELEMENT_LOOP, END_LOOP, EraseElementName(), ErasePadName(), ErasePinName(), EraseViaName(), F_ClearAndRedraw, F_CycleClip, F_CycleCrosshair, F_Description, F_Grid, F_NameOnPCB, F_PinOrPadName, F_Pinout, F_Redraw, F_ToggleAllDirections, F_ToggleAutoBuriedVias, F_ToggleAutoDRC, F_ToggleCheckPlanes, F_ToggleClearLine, F_ToggleFullPoly, F_ToggleGrid, F_ToggleHideNames, F_ToggleLiveRoute, F_ToggleLocalRef, F_ToggleLockNames, F_ToggleMask, F_ToggleName, F_ToggleOnlyNames, F_ToggleOrthoMove, F_ToggleRubberBandMode, F_ToggleShowDRC, F_ToggleSnapPin, F_ToggleStartDirection, F_ToggleThindraw, F_ToggleThindrawPoly, F_ToggleUniqueNames, F_Value, hid_st::get_coords, GetFunctionID(), GetValue(), PCBType::Grid, PCBType::GridOffsetX, PCBType::GridOffsetY, gui, IncrementUndoSerialNumber(), LINE_MODE, LookupConnection(), SettingType::Mode, MoveCrosshairAbsolute(), notify_crosshair_change(), PAD_LOOP, PCB, pin, PIN_LOOP, AttachedLineType::Point1, ptr1, ptr2, ptr3, Redraw(), SearchScreen(), SET_FLAG, SetChangedFlag(), SetGrid(), Settings, CrosshairType::shape, hid_st::show_item, AttachedLineType::State, STATE_FIRST, TEST_FLAG, TOGGLE_FLAG, x, CrosshairType::X, PointType::X, y, CrosshairType::Y, and PointType::Y.

Here is the call graph for this function:

static int ActionDRCheck ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionElementSetAttr ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 7300 of file action.c.

References _, AFAIL, ARG, ElementType::Attributes, CreateNewAttribute(), PCBType::Data, delete_attr(), ELEMENT_LOOP, END_LOOP, lookup_attr(), Message(), NAMEONPCB_NAME, NSTRCMP, PCB, and AttributeType::value.

Here is the call graph for this function:

static int ActionExecCommand ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 7362 of file action.c.

References AFAIL, ARG, and command.

static int ActionExecuteFile ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 6947 of file action.c.

References _, AFAIL, defer_needs_update, defer_updates, fp, gui, hid_parse_actions(), IncrementUndoSerialNumber(), hid_st::invalidate_all, line, and n.

Referenced by ActionImport().

Here is the call graph for this function:

static int ActionFlip ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionMarkCrosshair ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 4058 of file action.c.

References ARG, Crosshair, F_Center, GetFunctionID(), Marked, notify_mark_change(), MarkType::status, CrosshairType::X, MarkType::X, CrosshairType::Y, and MarkType::Y.

Here is the call graph for this function:

static int ActionMessage ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 2034 of file action.c.

References AFAIL, and Message().

Here is the call graph for this function:

static int ActionMinClearGap ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionMinMaskGap ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionMorphPolygon ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionMoveObject ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionMoveToCurrentLayer ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionNew ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionPolygon ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 6517 of file action.c.

References ARG, ClosePolygon(), F_Close, F_PreviousPoint, GetFunctionID(), GoToPreviousPoint(), SettingType::Mode, notify_crosshair_change(), POLYGON_MODE, and Settings.

Here is the call graph for this function:

static int ActionPSCalib ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 7008 of file action.c.

References hid_st::calibrate, and hid_find_exporter().

Here is the call graph for this function:

static int ActionQuit ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 2300 of file action.c.

References ARG, PCBType::Changed, hid_st::close_confirm_dialog, gui, HID_CLOSE_CONFIRM_OK, PCB, and QuitApplication().

Here is the call graph for this function:

static int ActionRemoveSelected ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 3297 of file action.c.

References RemoveSelected(), and SetChangedFlag().

Here is the call graph for this function:

static int ActionRouteStyle ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionSaveSettings ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 5898 of file action.c.

References hid_save_settings().

Here is the call graph for this function:

static int ActionSaveTo ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionSetFlag ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 6771 of file action.c.

References ARG, and ChangeFlag().

Here is the call graph for this function:

static int ActionSetOctagon ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionSetSquare ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionSetThermal ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionSetViaLayers ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int ActionToggleHideName ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static void AdjustAttachedBox ( void  ) [static]
static void ClearWarnings ( void  ) [static]

Clear warning color from pins/pads.

Definition at line 573 of file action.c.

References ALLPAD_LOOP, ALLPIN_LOOP, CLEAR_FLAG, PCBType::Data, Draw(), DrawPad(), DrawPin(), ENDALL_LOOP, PCB, pin, SettingType::RatWarn, Settings, and TEST_FLAG.

Referenced by ActionAddRats(), ActionDeleteRats(), and NotifyMode().

Here is the call graph for this function:

static void click_cb ( hidval  hv) [static]
static enum crosshair_shape CrosshairShapeIncrement ( enum crosshair_shape  shape) [static]
static void delete_attr ( AttributeListType list,
AttributeType attr 
) [static]

Definition at line 7051 of file action.c.

References AttributeListType::List, and AttributeListType::Number.

Referenced by ActionElementSetAttr().

void EventMoveCrosshair ( int  ev_x,
int  ev_y 
)

Event handler to set the cursor according to the X pointer position called from inside main.c.

Warning:
!!! no action routine !!!

Definition at line 2156 of file action.c.

References AdjustAttachedObjects(), mid_stroke, MoveCrosshairAbsolute(), notify_crosshair_change(), stroke_record(), BoxType::X2, and BoxType::Y2.

Referenced by CursorAction(), mod_changed(), and work_area_input().

Here is the call graph for this function:

static ElementType* find_element_by_refdes ( char *  refdes) [static]

Definition at line 7020 of file action.c.

References PCBType::Data, element_cache, ELEMENT_LOOP, END_LOOP, NAMEONPCB_NAME, and PCB.

Referenced by ActionElementList().

void FinishStroke ( void  ) [static]

Try to recognize the stroke sent.

Definition at line 484 of file action.c.

References _, ActionUndo(), ARROW_MODE, hid_st::beep, gui, LINE_MODE, Message(), mid_stroke, SettingType::Mode, ptr1, ptr2, ptr3, Redo(), RotateScreenObject(), SetMode(), Settings, stroke_trans(), SWAP_IDENT, VIA_MODE, BoxType::X1, and BoxType::Y1.

Referenced by ActionMode().

Here is the call graph for this function:

int FlagHaveRegex ( int  parm)

Definition at line 5588 of file action.c.

static int hashfunc ( String  s) [static]

Definition at line 741 of file action.c.

Referenced by GetFunctionID().

static bool identify_layer ( char *  layer_name,
Cardinal layer_no 
) [static]

Definition at line 8159 of file action.c.

References PCBType::Data, INDEXOFCURRENT, layer, max_copper_layer, PCB, and SearchLayerByName().

Referenced by ActionSetViaLayers().

Here is the call graph for this function:

static AttributeType* lookup_attr ( AttributeListType list,
const char *  name 
) [static]

Definition at line 7041 of file action.c.

References AttributeListType::List, AttributeType::name, and AttributeListType::Number.

Referenced by ActionElementSetAttr().

static void NotifyBlock ( void  ) [static]

Create first or second corner of a marked block.

Definition at line 954 of file action.c.

References CrosshairType::AttachedBox, Crosshair, notify_crosshair_change(), AttachedBoxType::Point1, AttachedBoxType::Point2, AttachedBoxType::State, STATE_FIRST, STATE_SECOND, STATE_THIRD, CrosshairType::X, PointType::X, CrosshairType::Y, and PointType::Y.

Referenced by ActionSelect(), ActionUnselect(), click_cb(), and NotifyMode().

Here is the call graph for this function:

static void NotifyMode ( void  ) [static]

This is called after every mode change, like mouse button pressed, mouse button released, dragging something started or a different tool selected.

It does what's appropriate for the current mode setting. This can also mean creation of an object at the current crosshair location.

New created objects are added to the create undo list of course.

Definition at line 986 of file action.c.

References _, abs, hid_st::add_timer, addedLines, AddNet(), AddObjectToCreateUndoList(), AdjustInsertPoint(), ARC_MODE, ARROW_MODE, CrosshairType::AttachedBox, CrosshairType::AttachedLine, CrosshairType::AttachedObject, CrosshairType::AttachedPolygon, AttachForCopy(), BOTTOM_SIDE, ChangeObjectThermal(), CLEAR_FLAG, ClearWarnings(), click_cb(), PCBType::Clipping, COPY_MODE, COPY_TYPES, CopyAttachedPolygonToLayer(), CopyObject(), CopyPastebufferToLayout(), CreateDrawnLineOnLayer(), CreateNewArcOnLayer(), CreateNewPointInPolygon(), CreateNewPolygonFromRectangle(), CreateNewText(), CreateNewVia(), CreateNewViaEx(), Crosshair, CURRENT, PCBType::Data, Draw(), DrawArc(), DrawElement(), DrawElementName(), DrawLine(), DrawObject(), DrawPolygon(), DrawRat(), DrawText(), DrawVia(), TextType::Element, END_LOOP, EraseElementName(), EraseRat(), fake, PCBType::Font, GET_THERM, GetArcEnds(), GetLayerGroupNumberByNumber(), GetLayerGroupNumberByPointer(), GetLayerGroupNumberBySide(), GetLayerNumber(), GetLowestDistancePolygonPoint(), gui, hid_actionl(), IncrementUndoSerialNumber(), INDEXOFCURRENT, INSERT_TYPES, INSERTPOINT_MODE, InsertPointIntoObject(), SettingType::Keepaway, RubberbandType::Line, line, LINE_MODE, SettingType::LineThickness, LOCK_MODE, LookupConnection(), LookupRatLines(), MakeFlags(), Message(), SettingType::Mode, MOVE_MODE, MOVE_TYPES, MoveObjectAndRubberband(), MoveObjectToRemoveUndoList(), n, ElementType::Name, NAME_INDEX, DataType::name_tree, NoFlags, Note, NotifyBlock(), NotifyLine(), AttachedBoxType::otherway, PAD_LOOP, PASTEBUFFER_MODE, PBO_SUB, PCB, pin, PIN_LOOP, AttachedLineType::Point1, AttachedBoxType::Point1, AttachedLineType::Point2, AttachedBoxType::Point2, polygon_st::PointN, polygon_st::Points, poly_Boolean_free(), POLYGON_MODE, POLYGONHOLE_MODE, PolygonToPoly(), polyIndex, PolyToPolygonsOnLayer(), prev_contour_point(), hid_st::prompt_for, ptr, AttachedObjectType::Ptr1, ptr1, AttachedObjectType::Ptr2, ptr2, AttachedObjectType::Ptr3, ptr3, r_delete_entry(), r_insert_entry(), PCBType::RatDraw, PCBType::RatOn, SettingType::RatWarn, RECTANGLE_MODE, REMOVE_MODE, REMOVE_TYPES, RemoveElement(), RemoveObject(), RestoreUndoSerialNumber(), ROTATE_MODE, RotateScreenObject(), AttachedObjectType::Rubberband, AttachedObjectType::RubberbandN, SaveUndoSerialNumber(), SearchObjectByLocation(), SearchScreen(), SELECT_TYPES, SetChangedFlag(), SetLocalRef(), SetMode(), SetTextBoundingBox(), Settings, SGNZ, hid_st::shift_is_pressed, AttachedObjectType::State, AttachedLineType::State, AttachedBoxType::State, STATE_FIRST, STATE_SECOND, STATE_THIRD, SWAP_IDENT, TEST_FLAG, TEST_SILK_LAYER, TEXT_MODE, SettingType::TextScale, THERMAL_MODE, PCBType::ThermStyle, TOGGLE_FLAG, AttachedObjectType::Type, VIA_MODE, SettingType::ViaDrillingHole, PCBType::ViaOn, SettingType::ViaThickness, AttachedObjectType::X, X, CrosshairType::X, PointType::X, BoxType::X2, XOR, AttachedObjectType::Y, CrosshairType::Y, PointType::Y, and BoxType::Y2.

Referenced by ActionDelete(), ActionMode(), and ReleaseMode().

static int parse_layout_attribute_units ( char *  name,
int  def 
) [static]

Definition at line 7096 of file action.c.

References AttributeGet, GetValue(), and PCB.

Referenced by ActionElementList().

Here is the call graph for this function:

static int pcb_spawnvp ( char **  argv) [static]

Definition at line 7381 of file action.c.

References _, and Message().

Referenced by ActionImport().

Here is the call graph for this function:

void stroke_init ( void  )

Referenced by main().

void stroke_record ( int  x,
int  y 
)

Referenced by EventMoveCrosshair().

int stroke_trans ( char *  s)

Referenced by FinishStroke().

static char* tempfile_name_new ( char *  name) [static]

Creates a new temporary file name.

Hopefully the operating system provides a mkdtemp() function to securily create a temporary directory with mode 0700.
If so then that directory is created and the returned string is made up of the directory plus the name variable.
For example:

tempfile_name_new ("myfile") might return "/var/tmp/pcb.123456/myfile".

If mkdtemp() is not available then 'name' is ignored and the insecure tmpnam() function is used.

Files/names created with tempfile_name_new() should be unlinked with tempfile_unlink to make sure the temporary directory is also removed when mkdtemp() is used.

Definition at line 7436 of file action.c.

References __FUNCTION__, c, len, and malloc().

Referenced by ActionImport().

Here is the call graph for this function:

static int tempfile_unlink ( char *  name) [static]

Unlink a temporary file.

If we have mkdtemp() then our temp file lives in a temporary directory and we need to remove that directory too.

Definition at line 7522 of file action.c.

References _, and __FUNCTION__.

Referenced by ActionImport().


Variable Documentation

Definition at line 8275 of file action.c.

const char addrats_help[] [static]
Initial value:
  N_("Add one or more rat lines to the board.")

Definition at line 3795 of file action.c.

const char addrats_syntax[] = N_("AddRats(AllRats|SelectedRats|Close)") [static]

Definition at line 3793 of file action.c.

const char atomic_help[] = N_("Save or restore the undo serial number.") [static]

Definition at line 1808 of file action.c.

const char atomic_syntax[] = N_("Atomic(Save|Restore|Close|Block)") [static]

Definition at line 1806 of file action.c.

const char attributes_help[] [static]
Initial value:
  N_("Let the user edit the attributes of the layout, current or given\n"
  "layer, or selected element.")

Definition at line 8007 of file action.c.

const char attributes_syntax[] [static]
Initial value:
  N_("Attributes(Layout|Layer|Element)\n"
  "Attributes(Layer,layername)")

Definition at line 8003 of file action.c.

const char autoplace_help[] = N_("Auto-place selected components.") [static]

Definition at line 3961 of file action.c.

const char autoplace_syntax[] = N_("AutoPlaceSelected()") [static]

Definition at line 3959 of file action.c.

const char autoroute_help[] = N_("Auto-route some or all rat lines.") [static]

Definition at line 3987 of file action.c.

const char autoroute_syntax[] = N_("AutoRoute(AllRats|SelectedRats)") [static]

Definition at line 3985 of file action.c.

Definition at line 316 of file action.c.

const char changeclearsize_help[] [static]
Initial value:
  N_("Changes the clearance size of objects.")

Definition at line 4262 of file action.c.

const char changeclearsize_syntax[] [static]
Initial value:
  N_("ChangeClearSize(Object, delta)\n"
  "ChangeClearSize(SelectedPins|SelectedPads|SelectedVias, delta)\n"
  "ChangeClearSize(SelectedLines|SelectedArcs, delta\n"
  "ChangeClearSize(Selected|SelectedObjects, delta)")

Definition at line 4256 of file action.c.

const char changedrillsize_help[] [static]
Initial value:
  N_("Changes the drilling hole size of objects.")

Definition at line 4199 of file action.c.

const char changedrillsize_syntax[] [static]
Initial value:
  N_("ChangeDrillSize(Object, delta)\n"
  "ChangeDrillSize(SelectedPins|SelectedVias|Selected|SelectedObjects, delta)")

Definition at line 4195 of file action.c.

const char changeflag_help[] = N_("Sets or clears flags on objects.") [static]

Definition at line 6820 of file action.c.

const char changeflag_syntax[] [static]
Initial value:
  N_("ChangeFlag(Object|Selected|SelectedObjects, flag, value)\n"
  "ChangeFlag(SelectedLines|SelectedPins|SelectedVias, flag, value)\n"
  "ChangeFlag(SelectedPads|SelectedTexts|SelectedNames, flag, value)\n"
  "ChangeFlag(SelectedElements, flag, value)\n"
  "flag = square | octagon | thermal | join\n"
  "value = 0 | 1")

Definition at line 6812 of file action.c.

const char changehold_help[] = N_("Changes the hole flag of objects.") [static]

Definition at line 5287 of file action.c.

const char changehold_syntax[] [static]
Initial value:
  N_("ChangeHole(ToggleObject|Object|SelectedVias|Selected)")

Definition at line 5284 of file action.c.

const char changejoin_help[] [static]
Initial value:
  N_("Changes the join (clearance through polygons) of objects.")

Definition at line 4861 of file action.c.

const char changejoin_syntax[] [static]
Initial value:
  N_("ChangeJoin(ToggleObject|SelectedLines|SelectedArcs|Selected)")

Definition at line 4858 of file action.c.

const char changename_help[] = N_("Sets the name of objects.") [static]

Definition at line 4635 of file action.c.

const char changename_syntax[] [static]
Initial value:
  N_("ChangeName(Object)\n"
  "ChangeName(Layout|Layer)")

Definition at line 4631 of file action.c.

const char changeoctagon_help[] [static]
Initial value:
  N_("Changes the octagon-flag of pins and vias.")

Definition at line 5101 of file action.c.

const char changeoctagon_syntax[] [static]
Initial value:
  N_("ChangeOctagon(Object|ToggleObject|SelectedObjects|Selected)\n"
  "ChangeOctagon(SelectedElements|SelectedPins|SelectedVias)")

Definition at line 5097 of file action.c.

const char changepaste_help[] [static]
Initial value:
  N_("Changes the no paste flag of objects.")

Definition at line 5333 of file action.c.

const char changepaste_syntax[] [static]
Initial value:
  N_("ChangePaste(ToggleObject|Object|SelectedPads|Selected)")

Definition at line 5330 of file action.c.

const char changepinname_help[] [static]
Initial value:
  N_("Sets the name of a specific pin on a specific element.")

Definition at line 4541 of file action.c.

const char changepinname_syntax[] [static]
Initial value:
  N_("ChangePinName(ElementName,PinNumber,PinName)")

Definition at line 4538 of file action.c.

const char changesize_help[] = N_("Changes the size of objects.") [static]

Definition at line 4099 of file action.c.

const char changesize_syntax[] [static]
Initial value:
  N_("ChangeSize(Object, delta)\n"
  "ChangeSize(SelectedObjects|Selected, delta)\n"
  "ChangeSize(SelectedLines|SelectedPins|SelectedVias, delta)\n"
  "ChangeSize(SelectedPads|SelectedTexts|SelectedNames, delta)\n"
  "ChangeSize(SelectedElements, delta)")

Definition at line 4092 of file action.c.

const char changesquare_help[] [static]
Initial value:
  N_("Changes the square flag of pins and pads.")

Definition at line 4924 of file action.c.

const char changesquare_syntax[] [static]
Initial value:
  N_("ChangeSquare(ToggleObject)\n"
  "ChangeSquare(SelectedElements|SelectedPins)\n"
  "ChangeSquare(Selected|SelectedObjects)")

Definition at line 4919 of file action.c.

const char clearoctagon_help[] [static]
Initial value:
  N_("Clears the octagon-flag of pins and vias.")

Definition at line 5225 of file action.c.

const char clearoctagon_syntax[] [static]
Initial value:
  N_("ClearOctagon(ToggleObject|Object|SelectedObjects|Selected)\n"
  "ClearOctagon(SelectedElements|SelectedPins|SelectedVias)")

Definition at line 5221 of file action.c.

const char clearsquare_help[] [static]
Initial value:
  N_("Clears the square-flag of pins and pads.")

Definition at line 5041 of file action.c.

const char clearsquare_syntax[] [static]
Initial value:
  N_("ClearSquare(ToggleObject|SelectedElements|SelectedPins)")

Definition at line 5038 of file action.c.

bool Click

Definition at line 317 of file action.c.

const char clrflag_help[] = N_("Clears flags on objects.") [static]

Definition at line 6788 of file action.c.

const char clrflag_syntax[] [static]
Initial value:
  N_("ClrFlag(Object|Selected|SelectedObjects, flag)\n"
  "ClrFlag(SelectedLines|SelectedPins|SelectedVias, flag)\n"
  "ClrFlag(SelectedPads|SelectedTexts|SelectedNames, flag)\n"
  "ClrFlag(SelectedElements, flag)\n"
  "flag = square | octagon | thermal | join")

Definition at line 6781 of file action.c.

const char connection_help[] [static]
Initial value:
  N_("Searches connections of the object at the cursor position.")

Definition at line 2318 of file action.c.

const char connection_syntax[] [static]
Initial value:
  N_("Connection(Find|ResetLinesAndPolygons|ResetPinsAndVias|Reset)")

Definition at line 2315 of file action.c.

int defer_needs_update = 0 [static]

Definition at line 327 of file action.c.

Referenced by ActionChangePinName(), and ActionExecuteFile().

int defer_updates = 0 [static]

Definition at line 326 of file action.c.

Referenced by ActionChangePinName(), and ActionExecuteFile().

const char delete_help[] = N_("Delete stuff.") [static]

Definition at line 3877 of file action.c.

const char delete_syntax[] [static]
Initial value:
  N_("Delete(Object|Selected)\n"
  "Delete(AllRats|SelectedRats)")

Definition at line 3873 of file action.c.

const char deleterats_help[] = N_("Delete rat lines.") [static]

Definition at line 3927 of file action.c.

const char deleterats_syntax[] [static]
Initial value:
  N_("DeleteRats(AllRats|Selected|SelectedRats)")

Definition at line 3924 of file action.c.

const char disperseelements_help[] = N_("Disperses elements.") [static]

Definition at line 2395 of file action.c.

const char disperseelements_syntax[] [static]
Initial value:
  N_("DisperseElements(All|Selected)")

Definition at line 2392 of file action.c.

const char display_help[] = N_("Several display-related actions.") [static]

Definition at line 2528 of file action.c.

const char display_syntax[] [static]
Initial value:
  N_("Display(NameOnPCB|Description|Value)\n"
  "Display(Grid|Redraw)\n"
  "Display(CycleClip|CycleCrosshair|Toggle45Degree|ToggleStartDirection)\n"
  "Display(ToggleGrid|ToggleRubberBandMode|ToggleUniqueNames)\n"
  "Display(ToggleMask|ToggleName|ToggleClearLine|ToggleFullPoly|ToggleSnapPin)\n"
  "Display(ToggleThindraw|ToggleThindrawPoly|ToggleOrthoMove|ToggleLocalRef)\n"
  "Display(ToggleCheckPlanes|ToggleShowDRC|ToggleAutoDRC)\n"
  "Display(ToggleLiveRoute|LockNames|OnlyNames)\n"
  "Display(Pinout|PinOrPadName)")

Definition at line 2517 of file action.c.

const char drc_help[] = N_("Invoke the DRC check.") [static]

Definition at line 1873 of file action.c.

const char drc_syntax[] = N_("DRC()") [static]

Definition at line 1871 of file action.c.

const char dumplibrary_help[] [static]
Initial value:
  N_("Display the entire contents of the libraries.")

Definition at line 1914 of file action.c.

const char dumplibrary_syntax[] = N_("DumpLibrary()") [static]

Definition at line 1912 of file action.c.

ElementType* element_cache = NULL [static]

Definition at line 7017 of file action.c.

Referenced by find_element_by_refdes().

const char elementlist_help[] [static]
Initial value:
  N_("Adds the given element if it doesn't already exist.")

Definition at line 7065 of file action.c.

const char elementlist_syntax[] [static]
Initial value:
  N_("ElementList(Start|Done|Need,<refdes>,<footprint>,<value>)")

Definition at line 7062 of file action.c.

const char elementsetattr_help[] [static]
Initial value:
  N_("Sets or clears an element-specific attribute.")

Definition at line 7288 of file action.c.

const char elementsetattr_syntax[] [static]
Initial value:
  N_("ElementSetAttr(refdes,name[,value])")

Definition at line 7285 of file action.c.

const char execcommand_help[] = N_("Runs a command.") [static]

Definition at line 7353 of file action.c.

const char execcommand_syntax[] = N_("ExecCommand(command)") [static]

Definition at line 7351 of file action.c.

const char executefile_help[] = N_("Run actions from the given file.") [static]

Definition at line 6938 of file action.c.

const char executefile_syntax[] = N_("ExecuteFile(filename)") [static]

Definition at line 6936 of file action.c.

struct { ... } fake [static]

Referenced by BreakManyEdges(), and NotifyMode().

const char flip_help[] [static]
Initial value:
  N_("Flip an element to the opposite side of the board.")

Definition at line 1968 of file action.c.

const char flip_syntax[] = N_("Flip(Object|Selected|SelectedElements)") [static]

Definition at line 1966 of file action.c.

char function_hash[HSIZE] [static]

Definition at line 737 of file action.c.

Referenced by GetFunctionID().

FunctionType Functions[] [static]

Definition at line 335 of file action.c.

int hash_initted = 0 [static]

Definition at line 738 of file action.c.

Referenced by GetFunctionID().

int Hit

Definition at line 319 of file action.c.

const char import_help[] = N_("Import schematics.") [static]

Definition at line 7597 of file action.c.

const char import_syntax[] [static]
Initial value:
  N_("Import()\n"
  "Import([gnetlist|make[,source,source,...]])\n"
  "Import(setnewpoint[,(mark|center|X,Y)])\n"
  "Import(setdisperse,D,units)\n")

Definition at line 7591 of file action.c.

Definition at line 304 of file action.c.

Referenced by AdjustInsertPoint().

LayerType* lastLayer [static]

Definition at line 305 of file action.c.

Definition at line 309 of file action.c.

Referenced by acquire_twonets(), ActionAddRats(), ActionDJopt(), ActionExecuteFile(), ActionMinClearGap(), ActionRedo(), ActionRipUp(), AddLineToBuffer(), AdjustAttachedLine(), AdjustInsertPoint(), AdjustTwoLine(), batch_do_export(), ChangeElementSize(), check_snap_offgrid_line(), CheckPolygonForRubberbandConnection(), choose_example_line(), ClearFlagOnLinesAndPolygons(), cluster_find(), common_draw_pcb_text(), config_increments_tab_create(), ConvertBufferToElement(), CopyElementLowLevel(), CopyLine(), CopyPastebufferToLayout(), create_line(), CreateNewLineInElement(), CreateNewLineInSymbol(), CreateRouteData(), DeleteRats(), draw_element_package(), DrawElementPackage(), DrawShortestRats(), drc_callback(), DRCAll(), drcLine_callback(), EraseElement(), escape(), export_pcb_drawline(), find_pair_line_callback(), find_pair_padline_callback(), find_pair_pinline_callback(), find_pairs(), FreeDataMemory(), FreeRotateBuffer(), FreeRotateElementLowLevel(), GatherSubnets(), GetDataBoundingBox(), GlobalPuller(), gsvit_build_net_from_selected(), gsvit_lookup_net_from_line(), hid_load_settings_1(), import_clusters(), InsertPointIntoLine(), InsertPointIntoPolygon(), IsArcInRectangle(), IsLineInQuadrangle(), IsLineInRectangle(), IsPolygonInPolygon(), line_callback(), line_sub_callback(), linepoint_callback(), LocateError(), LOCtoArcLine_callback(), LOCtoLineLine_callback(), LOCtoPadLine_callback(), LOCtoPolyLine_callback(), LOCtoPVline_callback(), LOCtoRat_callback(), LookupRatLines(), LookupRubberbandLines(), maybe_pull_1(), MirrorBuffer(), MirrorElementCoordinates(), MoveElementLowLevel(), MoveLineToLayerLowLevel(), nbcb_ripup(), netlist_rip_up_cb(), new_line_extra(), NotifyMode(), padDX(), parse_option_line(), pinout_set_data(), print_extra(), PrintFab(), rat_callback(), RD_DrawLine(), read_lines(), remove_point(), RemoveExcessPolygonPoints(), ReportDialog(), RotateBuffer(), RotateElementLowLevel(), rubber_callback(), SearchObjectByID(), SelectBlock(), SelectByFlag(), SelectedOperation(), SelectObject(), SetElementBoundingBox(), SetFontInfo(), SetTextBoundingBox(), SmashBufferElement(), SwapBuffer(), vertex_net_thickness(), vianudge(), WriteElementData(), WriteLayerData(), WritePCBFontData(), WritePCBRatData(), XORDrawBuffer(), XORDrawElement(), XORDrawInsertPointObject(), XORDrawMoveOrCopyObject(), and XYtoNetLength().

const char loadfrom_help[] = N_("Load layout data from a file.") [static]

Definition at line 5910 of file action.c.

const char loadfrom_syntax[] [static]
Initial value:
  N_("LoadFrom(Layout|LayoutToBuffer|ElementToBuffer|Netlist|Revert,filename)")

Definition at line 5907 of file action.c.

const char markcrosshair_help[] = N_("Set/Reset the Crosshair mark.") [static]

Definition at line 4041 of file action.c.

const char markcrosshair_syntax[] [static]
Initial value:
  N_("MarkCrosshair()\n"
  "MarkCrosshair(Center)")

Definition at line 4037 of file action.c.

const char message_help[] = N_("Writes a message to the log window.") [static]

Definition at line 2022 of file action.c.

const char message_syntax[] = N_("Message(message)") [static]

Definition at line 2020 of file action.c.

bool mid_stroke = false [static]

Definition at line 332 of file action.c.

Referenced by ActionMode(), EventMoveCrosshair(), and FinishStroke().

const char mincleargap_help[] [static]
Initial value:
  N_("Ensures that polygons are a minimum distance from objects.")

Definition at line 4436 of file action.c.

const char mincleargap_syntax[] [static]
Initial value:
  N_("MinClearGap(delta)\n"
  "MinClearGap(Selected, delta)")

Definition at line 4432 of file action.c.

const char minmaskgap_help[] [static]
Initial value:
  N_("Ensures the mask is a minimum distance from pins and pads.")

Definition at line 4340 of file action.c.

const char minmaskgap_syntax[] [static]
Initial value:
  N_("MinMaskGap(delta)\n"
  "MinMaskGap(Selected, delta)")

Definition at line 4336 of file action.c.

const char mode_help[] = N_("Change or use the tool mode.") [static]

Definition at line 3020 of file action.c.

const char mode_syntax[] [static]
Initial value:
  N_("Mode(Arc|Arrow|Copy|InsertPoint|Line|Lock|Move|None|PasteBuffer)\n"
  "Mode(Polygon|Rectangle|Remove|Rotate|Text|Thermal|Via)\n"
  "Mode(Notify|Release|Cancel|Stroke)\n"
  "Mode(Save|Restore)")

Definition at line 3014 of file action.c.

const char morphpolygon_help[] [static]
Initial value:
  N_("Converts dead polygon islands into separate polygons.")

Definition at line 4732 of file action.c.

const char morphpolygon_syntax[] = N_("MorphPolygon(Object|Selected)") [static]

Definition at line 4730 of file action.c.

const char moveobject_help[] [static]
Initial value:
  N_("Moves the object under the crosshair.")

Definition at line 6579 of file action.c.

const char moveobject_syntax[] = N_("MoveObject(X,Y,dim)") [static]

Definition at line 6577 of file action.c.

const char movetocurrentlayer_help[] [static]
Initial value:
  N_("Moves objects to the current layer.")

Definition at line 6631 of file action.c.

const char movetocurrentlayer_syntax[] [static]
Initial value:
  N_("MoveToCurrentLayer(Object|SelectedObjects)")

Definition at line 6628 of file action.c.

bool Moving

Definition at line 318 of file action.c.

const char new_help[] = N_("Starts a new layout.") [static]

Definition at line 6001 of file action.c.

const char new_syntax[] = N_("New([name])") [static]

Definition at line 5999 of file action.c.

Definition at line 7093 of file action.c.

Referenced by ActionElementList().

const char pastebuffer_help[] [static]
Initial value:
  N_("Various operations on the paste buffer.")

Definition at line 6068 of file action.c.

const char pastebuffer_syntax[] [static]
Initial value:
  N_("PasteBuffer(AddSelected|Clear|1..MAX_BUFFER)\n"
  "PasteBuffer(Rotate, 1..3)\n"
  "PasteBuffer(Convert|Save|Restore|Mirror)\n"
  "PasteBuffer(ToLayout, X, Y, units)")

Definition at line 6062 of file action.c.

const char polygon_help[] = N_("Some polygon related stuff.") [static]

Definition at line 6496 of file action.c.

const char polygon_syntax[] = N_("Polygon(Close|PreviousPoint)") [static]

Definition at line 6494 of file action.c.

Cardinal polyIndex = 0 [static]

Definition at line 329 of file action.c.

Referenced by NotifyMode().

const char quit_help[] = N_("Quits the application after confirming.") [static]

Definition at line 2290 of file action.c.

const char quit_syntax[] = N_("Quit()") [static]

Definition at line 2288 of file action.c.

const char redo_help[] = N_("Redo recent \"undo\" operations.") [static]

Definition at line 6448 of file action.c.

const char redo_syntax[] = N_("Redo()") [static]

Definition at line 6446 of file action.c.

const char removeselected_help[] = N_("Removes any selected objects.") [static]

Definition at line 3290 of file action.c.

const char removeselected_syntax[] = N_("RemoveSelected()") [static]

Definition at line 3288 of file action.c.

const char renumber_help[] [static]
Initial value:
  N_("Renumber all elements.  The changes will be recorded to filename\n"
  "for use in backannotating these changes to the schematic.")

Definition at line 3309 of file action.c.

const char renumber_syntax[] [static]
Initial value:
 N_("Renumber()\n"
                                      "Renumber(filename)")

Definition at line 3306 of file action.c.

const char ripup_help[] [static]
Initial value:
  N_("Ripup auto-routed tracks, or convert an element to parts.")

Definition at line 3666 of file action.c.

const char ripup_syntax[] = N_("RipUp(All|Selected|Element)") [static]

Definition at line 3664 of file action.c.

const char routestyle_help[] [static]
Initial value:
  N_("Copies the indicated routing style into the current sizes.")

Definition at line 6544 of file action.c.

const char routestyle_syntax[] = N_("RouteStyle(1|2|3|4)") [static]

Definition at line 6542 of file action.c.

bool saved_mode = false [static]

Definition at line 330 of file action.c.

Referenced by ActionMode(), click_cb(), and ReleaseMode().

const char savesettings_help[] = N_("Saves settings.") [static]

Definition at line 5887 of file action.c.

const char savesettings_syntax[] [static]
Initial value:
  N_("SaveSettings()\n"
  "SaveSettings(local)")

Definition at line 5883 of file action.c.

const char saveto_help[] = N_("Saves data to a file.") [static]

Definition at line 5764 of file action.c.

const char saveto_syntax[] [static]
Initial value:
  N_("SaveTo(Layout|LayoutAs,filename)\n"
  "SaveTo(AllConnections|AllUnusedPins|ElementConnections,filename)\n"
  "SaveTo(PasteBuffer,filename)")

Definition at line 5759 of file action.c.

const char select_help[] = N_("Toggles or sets the selection.") [static]

Definition at line 5388 of file action.c.

const char select_syntax[] [static]
Initial value:
  N_("Select(Object|ToggleObject)\n"
  "Select(All|Block|Connection|BuriedVias)\n"
  "Select(ElementByName|ObjectByName|PadByName|PinByName)\n"
  "Select(ElementByName|ObjectByName|PadByName|PinByName, Name)\n"
  "Select(TextByName|ViaByName|NetByName)\n"
  "Select(TextByName|ViaByName|NetByName, Name)\n"
  "Select(Convert)")

Definition at line 5379 of file action.c.

const char setflag_help[] = N_("Sets flags on objects.") [static]

Definition at line 6757 of file action.c.

const char setflag_syntax[] [static]
Initial value:
  N_("SetFlag(Object|Selected|SelectedObjects, flag)\n"
  "SetFlag(SelectedLines|SelectedPins|SelectedVias, flag)\n"
  "SetFlag(SelectedPads|SelectedTexts|SelectedNames, flag)\n"
  "SetFlag(SelectedElements, flag)\n"
  "flag = square | octagon | thermal | join")

Definition at line 6750 of file action.c.

const char setoctagon_help[] = N_("Sets the octagon-flag of objects.") [static]

Definition at line 5163 of file action.c.

const char setoctagon_syntax[] [static]
Initial value:
  N_("SetOctagon(Object|ToggleObject|SelectedElements|Selected)")

Definition at line 5160 of file action.c.

const char setsame_help[] [static]
Initial value:
  N_("Sets current layer and sizes to match indicated item.")

Definition at line 6677 of file action.c.

const char setsame_syntax[] = N_("SetSame()") [static]

Definition at line 6675 of file action.c.

const char setsquare_help[] = N_("sets the square-flag of objects.") [static]

Definition at line 4983 of file action.c.

const char setsquare_syntax[] [static]
Initial value:
  N_("SetSquare(ToggleObject|SelectedElements|SelectedPins)")

Definition at line 4980 of file action.c.

const char setthermal_help[] [static]
Initial value:
  N_("Set the thermal (on the current layer) of pins or vias to the given style.\n"
  "Style = 0 means no thermal.\n"
  "Style = 1 has diagonal fingers with sharp edges.\n"
  "Style = 2 has horizontal and vertical fingers with sharp edges.\n"
  "Style = 3 is a solid connection to the plane.\n"
  "Style = 4 has diagonal fingers with rounded edges.\n"
  "Style = 5 has horizontal and vertical fingers with rounded edges.\n")

Definition at line 2056 of file action.c.

const char setthermal_syntax[] = "SetThermal(Object|SelectedPins|SelectedVias|Selected, Style)" [static]

Definition at line 2053 of file action.c.

const char setvalue_help[] [static]
Initial value:
  N_("Change various board-wide values and sizes.")

Definition at line 2181 of file action.c.

const char setvalue_syntax[] [static]
Initial value:
  N_("SetValue(Grid|Line|LineSize|Text|TextScale|ViaDrillingHole|Via|ViaSize, "
      "delta)")

Definition at line 2177 of file action.c.

const char setvialayers_help[] [static]
Initial value:
  N_("Sets starting and ending layer for burried/blind/standard vias.")

Definition at line 8133 of file action.c.

const char setvialayers_syntax[] [static]
Initial value:
  N_("SetViaLayers(Object|SelectedVias|Selected[,ThroughHole|TH])\n"
     "SetViaLayers(Object|SelectedVias|Selected,from,to)\n"
     "SetViaLayers(Object|SelectedVias|Selected,[c|-|from],[c|-|to])"
     )

Definition at line 8127 of file action.c.

BoxType StrokeBox [static]

Definition at line 333 of file action.c.

const char togglehidename_help[] [static]
Initial value:
  N_("Toggles the visibility of element names.")

Definition at line 4789 of file action.c.

const char togglehidename_syntax[] [static]
Initial value:
  N_("ToggleHideName(Object|SelectedElements)")

Definition at line 4786 of file action.c.

const char undo_help[] = N_("Undo recent changes.") [static]

Definition at line 6270 of file action.c.

const char undo_syntax[] [static]
Initial value:
 N_("Undo()\n"
                                  "Undo(ClearList)")

Definition at line 6267 of file action.c.

const char unselect_help[] [static]
Initial value:
  N_("Unselects the object at the pointer location or the specified objects.")

Definition at line 5606 of file action.c.

const char unselect_syntax[] [static]
Initial value:
  N_("Unselect(All|Block|Connection)\n"
  "Unselect(ElementByName|ObjectByName|PadByName|PinByName)\n"
  "Unselect(ElementByName|ObjectByName|PadByName|PinByName, Name)\n"
  "Unselect(TextByName|ViaByName)\n"
  "Unselect(TextByName|ViaByName, Name)\n")

Definition at line 5599 of file action.c.