pcb 4.1.1
An interactive printed circuit board layout editor.
|
Action routines for output window. More...
#include "global.h"
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 ElementType * | find_element_by_refdes (char *refdes) |
static AttributeType * | lookup_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 LayerType * | lastLayer |
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 ElementType * | element_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 [] |
Action routines for output window.
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.
enum FunctionID |
Definition at line 3818 of file action.c.
References AddAllRats(), AddObjectToFlagUndoList(), ARG, CenterDisplay(), ClearWarnings(), PCBType::Data, Draw(), DrawRat(), END_LOOP, F_AllRats, F_Close, F_Selected, F_SelectedRats, GetFunctionID(), len, line, PCB, RAT_LOOP, SettingType::RatWarn, SET_FLAG, SetChangedFlag(), Settings, SQUARE, and TEST_FLAG.
Definition at line 1843 of file action.c.
References AFAIL, Bumped, F_Block, F_Close, F_Restore, F_Save, GetFunctionID(), IncrementUndoSerialNumber(), RestoreUndoSerialNumber(), and SaveUndoSerialNumber().
Definition at line 8020 of file action.c.
References _, AFAIL, ARG, ElementType::Attributes, LayerType::Attributes, PCBType::Attributes, CURRENT, PCBType::Data, hid_st::edit_attributes, ELEMENT_LOOP, END_LOOP, F_Element, F_Layer, F_Layout, hid_st::get_coords, GetFunctionID(), gui, DataType::Layer, layer, layername, malloc(), max_copper_layer, Message(), LayerType::Name, NAMEONPCB_NAME, PCB, SearchScreen(), and TEST_FLAG.
Definition at line 3971 of file action.c.
References _, AutoPlaceSelected(), hid_st::confirm_dialog, gui, hid_action(), and SetChangedFlag().
Definition at line 4013 of file action.c.
References ARG, AutoRoute(), F_AllRats, F_Selected, F_SelectedRats, GetFunctionID(), hid_action(), and SetChangedFlag().
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.
Definition at line 4207 of file action.c.
References _, ARG, CHANGE2NDSIZE_TYPES, ChangeObject2ndSize(), ChangeSelected2ndSize(), F_Object, F_Selected, F_SelectedObjects, F_SelectedPins, F_SelectedVias, hid_st::get_coords, GetFunctionID(), GetValue(), gui, ptr1, ptr2, ptr3, SearchScreen(), and SetChangedFlag().
Definition at line 4274 of file action.c.
References _, ARG, CHANGECLEARSIZE_TYPES, ChangeObjectClearSize(), ChangeSelectedClearSize(), increments::clear, F_Object, F_Selected, F_SelectedArcs, F_SelectedLines, F_SelectedObjects, F_SelectedPads, F_SelectedPins, F_SelectedVias, hid_st::get_coords, GetFunctionID(), GetValue(), gui, SettingType::increments, ptr1, ptr2, ptr3, SearchScreen(), SetChangedFlag(), and Settings.
Definition at line 6832 of file action.c.
References AFAIL, ARG, and ChangeFlag().
Definition at line 5297 of file action.c.
References _, ARG, ChangeHole(), ChangeSelectedHole(), F_Object, F_Selected, F_SelectedVias, F_ToggleObject, hid_st::get_coords, GetFunctionID(), gui, IncrementUndoSerialNumber(), ptr1, ptr2, ptr3, SearchScreen(), and SetChangedFlag().
Definition at line 4875 of file action.c.
References _, ARG, CHANGEJOIN_TYPES, ChangeObjectJoin(), ChangeSelectedJoin(), F_Object, F_Selected, F_SelectedArcs, F_SelectedLines, F_SelectedObjects, F_ToggleObject, hid_st::get_coords, GetFunctionID(), gui, ptr1, ptr2, ptr3, SearchScreen(), and SetChangedFlag().
Definition at line 4655 of file action.c.
References _, ARG, CrosshairType::AttachedObject, ChangeLayerName(), ChangeLayoutName(), CHANGENAME_TYPES, Crosshair, CURRENT, Draw(), EMPTY, EraseRat(), F_Layer, F_Layout, F_Object, hid_st::get_coords, GetFunctionID(), gui, IncrementUndoSerialNumber(), RubberbandType::Line, LookupRatLines(), MoveObjectToRemoveUndoList(), PCBType::Name, PCB, hid_st::prompt_for, ptr, ptr1, ptr2, ptr3, QueryInputAndChangeObjectName(), PCBType::RatOn, RestoreUndoSerialNumber(), AttachedObjectType::Rubberband, AttachedObjectType::RubberbandN, SaveUndoSerialNumber(), SearchScreen(), and SetChangedFlag().
Definition at line 5111 of file action.c.
References _, ARG, ChangeObjectOctagon(), CHANGEOCTAGON_TYPES, ChangeSelectedOctagon(), F_Object, F_Selected, F_SelectedElements, F_SelectedObjects, F_SelectedPins, F_SelectedVias, F_ToggleObject, hid_st::get_coords, GetFunctionID(), gui, ptr1, ptr2, ptr3, SearchScreen(), and SetChangedFlag().
Definition at line 5346 of file action.c.
References _, ARG, ChangePaste(), ChangeSelectedPaste(), F_Object, F_Selected, F_SelectedPads, F_ToggleObject, hid_st::get_coords, GetFunctionID(), gui, IncrementUndoSerialNumber(), ptr1, ptr2, ptr3, SearchScreen(), and SetChangedFlag().
Definition at line 4557 of file action.c.
References AddObjectToChangeNameUndoList(), AFAIL, PCBType::Data, defer_needs_update, defer_updates, ELEMENT_LOOP, END_LOOP, gui, IncrementUndoSerialNumber(), hid_st::invalidate_all, pin_st::Name, NAMEONPCB_NAME, NSTRCMP, pin_st::Number, PAD_LOOP, PCB, pin, PIN_LOOP, and SetChangedFlag().
Definition at line 4112 of file action.c.
References _, ARG, ChangeObjectSize(), ChangeSelectedSize(), CHANGESIZE_TYPES, Crosshair, F_Object, F_Selected, F_SelectedArcs, F_SelectedElements, F_SelectedLines, F_SelectedNames, F_SelectedObjects, F_SelectedPads, F_SelectedPins, F_SelectedTexts, F_SelectedVias, GetFunctionID(), GetValue(), SettingType::increments, Message(), ptr1, ptr2, ptr3, SearchScreen(), SetChangedFlag(), Settings, increments::size, TEST_FLAG, CrosshairType::X, and CrosshairType::Y.
Definition at line 4936 of file action.c.
References _, ARG, ChangeObjectSquare(), ChangeSelectedSquare(), CHANGESQUARE_TYPES, F_Object, F_Selected, F_SelectedElements, F_SelectedObjects, F_SelectedPins, F_ToggleObject, hid_st::get_coords, GetFunctionID(), gui, ptr1, ptr2, ptr3, SearchScreen(), and SetChangedFlag().
Definition at line 5235 of file action.c.
References _, ARG, CHANGEOCTAGON_TYPES, ClrObjectOctagon(), ClrSelectedOctagon(), Crosshair, F_Object, F_Selected, F_SelectedElements, F_SelectedObjects, F_SelectedPins, F_SelectedVias, F_ToggleObject, hid_st::get_coords, GetFunctionID(), gui, ptr1, ptr2, ptr3, SearchScreen(), SetChangedFlag(), CrosshairType::X, and CrosshairType::Y.
Definition at line 5053 of file action.c.
References _, ARG, CHANGESQUARE_TYPES, ClrObjectSquare(), ClrSelectedSquare(), F_Object, F_Selected, F_SelectedElements, F_SelectedObjects, F_SelectedPins, F_ToggleObject, hid_st::get_coords, GetFunctionID(), gui, ptr1, ptr2, ptr3, SearchScreen(), and SetChangedFlag().
Definition at line 6802 of file action.c.
References ARG, and ChangeFlag().
Definition at line 2345 of file action.c.
References _, AFAIL, ARG, ClearFlagOnAllObjects(), ClearFlagOnLinesAndPolygons(), ClearFlagOnPinsViasAndPads(), connection(), Draw(), F_Find, F_Reset, F_ResetLinesAndPolygons, F_ResetPinsViasAndPads, hid_st::get_coords, GetFunctionID(), gui, IncrementUndoSerialNumber(), and LookupConnection().
Definition at line 3884 of file action.c.
References ARG, Crosshair, DeleteRats(), F_AllRats, F_Object, F_Selected, F_SelectedRats, GetFunctionID(), Note, NotifyMode(), REMOVE_MODE, RemoveSelected(), RestoreMode(), SaveMode(), SetChangedFlag(), SetMode(), CrosshairType::X, and CrosshairType::Y.
Definition at line 3934 of file action.c.
References ARG, ClearWarnings(), DeleteRats(), F_AllRats, F_Selected, F_SelectedRats, GetFunctionID(), SettingType::RatWarn, SetChangedFlag(), and Settings.
Definition at line 2410 of file action.c.
References AddObjectToMoveUndoList(), AFAIL, ARG, PCBType::Data, ELEMENT_LOOP, END_LOOP, F_All, F_Selected, GAP, GetFunctionID(), PCBType::Grid, IncrementUndoSerialNumber(), PCBType::MaxWidth, maxy, minx, miny, MoveElementLowLevel(), PCB, Redraw(), SetChangedFlag(), and TEST_FLAG.
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.
Definition at line 1883 of file action.c.
References _, unit::allow, PCBType::Bloat, hid_st::drc_gui, DRCAll(), SettingType::grid_unit, gui, HID_DRC_GUI::log_drc_overview, Message(), PCBType::minDrill, PCBType::minRing, PCBType::minSlk, PCBType::minWid, PCB, Settings, and PCBType::Shrink.
Definition at line 1923 of file action.c.
References LibraryEntryType::Description, LibraryMenuType::directory, LibraryMenuType::Entry, LibraryMenuType::EntryMax, LibraryMenuType::EntryN, LibraryMenuType::flag, Library, LibraryEntryType::ListEntry, LibraryType::Menu, LibraryType::MenuMax, LibraryType::MenuN, LibraryMenuType::Name, LibraryEntryType::Package, LibraryMenuType::Style, LibraryEntryType::Template, UNKNOWN, and LibraryEntryType::Value.
Definition at line 7105 of file action.c.
References _, AFAIL, ARG, args, ChangeElementText(), CLEAR_FLAG, hid_st::confirm_dialog, CopyPastebufferToLayout(), PCBType::Data, DESCRIPTION_NAME, TextType::Direction, ELEMENT_LOOP, ElementOrientation(), EMPTY_STRING_P, END_LOOP, find_element_by_refdes(), FRONT, gui, LoadFootprint(), ElementType::MarkX, ElementType::MarkY, PCBType::MaxHeight, PCBType::MaxWidth, MIN, MirrorElementCoordinates(), ElementType::Name, NAMEONPCB_INDEX, NAMEONPCB_NAME, number_of_footprints_not_found, parse_layout_attribute_units(), PASTEBUFFER, PCB, RemoveElement(), RotateElementLowLevel(), TextType::Scale, SET_FLAG, SetChangedFlag(), TEST_FLAG, VALUE_INDEX, TextType::X, and TextType::Y.
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.
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().
Definition at line 1982 of file action.c.
References AFAIL, ARG, ChangeElementSide(), ChangeSelectedElementSide(), Crosshair, Draw(), F_Object, F_Selected, F_SelectedElements, GetFunctionID(), IncrementUndoSerialNumber(), PCBType::MaxHeight, PCB, SearchScreen(), and CrosshairType::Y.
Definition at line 7709 of file action.c.
References _, ActionExecuteFile(), AddAllRats(), ARG, AttributeGet, AttributePut, AttributeRemove, Concat(), DeleteRats(), dot(), PCBType::Filename, hid_st::get_coords, GetValue(), SettingType::GnetlistProgram, gui, hid_action(), SettingType::MakeProgram, malloc(), Marked, Message(), PCB, pcb_snprintf(), pcb_spawnvp(), hid_st::prompt_for, Settings, MarkType::status, tempfile_name_new(), tempfile_unlink(), MarkType::X, x, MarkType::Y, and y.
Definition at line 5944 of file action.c.
References _, AFAIL, PCBType::Changed, hid_st::confirm_dialog, PCBType::Filename, FreeLibraryMemory(), gui, ImportNetlist(), LoadElementToBuffer(), LoadLayoutToBuffer(), LoadPCB(), NetlistChanged(), PCBType::NetlistLib, PCBType::Netlistname, notify_crosshair_change(), PASTEBUFFER, PASTEBUFFER_MODE, PCB, RevertPCB(), SetMode(), and StripWhiteSpaceAndDup().
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.
Definition at line 4448 of file action.c.
References ALLARC_LOOP, ALLLINE_LOOP, ARG, ChangeObjectClearSize(), pin_st::Clearance, PCBType::Data, ELEMENT_LOOP, END_LOOP, ENDALL_LOOP, GetValue(), IncrementUndoSerialNumber(), layer, line, PAD_LOOP, PCB, pin, PIN_LOOP, RestoreUndoSerialNumber(), SaveUndoSerialNumber(), TEST_FLAGS, and VIA_LOOP.
Definition at line 4352 of file action.c.
References ARG, ChangeObjectMaskSize(), PCBType::Data, pin_st::DrillingHole, ELEMENT_LOOP, END_LOOP, GetValue(), IncrementUndoSerialNumber(), pin_st::Mask, PAD_LOOP, PCB, pin, PIN_LOOP, RestoreUndoSerialNumber(), SaveUndoSerialNumber(), TEST_FLAGS, pin_st::Thickness, thickness, and VIA_LOOP.
Definition at line 3075 of file action.c.
References AFAIL, ARC_MODE, ARG, ARROW_MODE, CrosshairType::AttachedBox, CrosshairType::AttachedLine, COPY_MODE, Crosshair, F_Arc, F_Arrow, F_Cancel, F_Copy, F_Escape, F_InsertPoint, F_Line, F_Lock, F_Move, F_None, F_Notify, F_PasteBuffer, F_Polygon, F_PolygonHole, F_Rectangle, F_Release, F_Remove, F_Restore, F_Rotate, F_Save, F_Stroke, F_Text, F_Thermal, F_Via, FinishStroke(), GetFunctionID(), INSERTPOINT_MODE, LINE_MODE, LOCK_MODE, mid_stroke, SettingType::Mode, MOVE_MODE, NO_MODE, Note, notify_crosshair_change(), NotifyMode(), PASTEBUFFER_MODE, POLYGON_MODE, POLYGONHOLE_MODE, RECTANGLE_MODE, ReleaseMode(), REMOVE_MODE, RestoreMode(), ROTATE_MODE, RUBBERBANDMOVE_MODE, saved_mode, SaveMode(), SetMode(), Settings, AttachedBoxType::State, AttachedLineType::State, STATE_FIRST, TEXT_MODE, THERMAL_MODE, VIA_MODE, CrosshairType::X, BoxType::X1, CrosshairType::Y, and BoxType::Y1.
Definition at line 4746 of file action.c.
References _, ALLPOLYGON_LOOP, ARG, PCBType::Data, Draw(), ENDALL_LOOP, F_Object, F_Selected, F_SelectedObjects, hid_st::get_coords, GetFunctionID(), gui, IncrementUndoSerialNumber(), layer, MorphPolygon(), PCB, ptr1, ptr2, ptr3, SearchScreen(), and TEST_FLAG.
Definition at line 6593 of file action.c.
References _, ARG, CrosshairType::AttachedObject, Crosshair, GetValue(), LookupRatLines(), LookupRubberbandLines(), Message(), MOVE_TYPES, MoveObjectAndRubberband(), PCB, ptr1, ptr2, ptr3, AttachedObjectType::RubberbandN, SearchScreen(), SetChangedFlag(), TEST_FLAG, x, and y.
Definition at line 6643 of file action.c.
References _, ARG, CURRENT, F_Object, F_Selected, F_SelectedObjects, hid_st::get_coords, GetFunctionID(), gui, MoveObjectToLayer(), MoveSelectedObjectsToLayer(), MOVETOLAYER_TYPES, ptr1, ptr2, ptr3, SearchScreen(), and SetChangedFlag().
Definition at line 6010 of file action.c.
References _, ARG, CenterDisplay(), PCBType::Changed, hid_st::confirm_dialog, CreateNewPCB(), CreateNewPCBPost(), gui, hid_action(), PCBType::MaxHeight, PCBType::MaxWidth, PCBType::Name, notify_crosshair_change(), PCB, hid_st::prompt_for, Redraw(), RemovePCB(), ResetStackAndVisibility(), SaveInTMP(), SettingType::SaveInTMP, and Settings.
Definition at line 6123 of file action.c.
References _, AddSelectedToBuffer(), AFAIL, ARG, ClearBuffer(), confirm_dialog, ConvertBufferToElement(), CopyPastebufferToLayout(), crosshair_update_range(), F_AddSelected, F_Clear, F_Convert, F_Mirror, F_Restore, F_Rotate, F_Save, F_ToLayout, hid_st::fileselect, GetFunctionID(), GetValue(), gui, Message(), MirrorBuffer(), notify_crosshair_change(), PASTEBUFFER, RotateBuffer(), SaveBufferElements(), SetBufferNumber(), SetChangedFlag(), SmashBufferElement(), x, and y.
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.
Definition at line 7008 of file action.c.
References hid_st::calibrate, and hid_find_exporter().
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().
Definition at line 6466 of file action.c.
References addedLines, CrosshairType::AttachedLine, CrosshairType::AttachedPolygon, Crosshair, CURRENT, line, LINE_MODE, SettingType::Mode, notify_crosshair_change(), AttachedLineType::Point1, AttachedLineType::Point2, polygon_st::PointN, POLYGON_MODE, POLYGONHOLE_MODE, Redo(), SetChangedFlag(), Settings, AttachedLineType::State, STATE_FIRST, STATE_SECOND, PointType::X, and PointType::Y.
Definition at line 3297 of file action.c.
References RemoveSelected(), and SetChangedFlag().
Definition at line 3318 of file action.c.
References _, __FUNCTION__, AddNetlistLibToUndoList(), AddObjectToChangeNameUndoList(), ChangeObjectName(), CLEAR_FLAG, cnt, hid_st::confirm_dialog, PCBType::Data, ELEMENT_LOOP, DataType::ElementN, END_LOOP, LibraryMenuType::Entry, LibraryMenuType::EntryN, hid_st::fileselect, gui, IncrementUndoSerialNumber(), LibraryEntryType::ListEntry, malloc(), ElementType::MarkX, ElementType::MarkY, LibraryType::Menu, LibraryType::MenuN, Message(), NAMEONPCB_NAME, NetlistChanged(), PCBType::NetlistLib, ok, PCB, pcb_fprintf(), pin, realloc(), SET_FLAG, SetChangedFlag(), TEST_FLAG, and UNKNOWN.
Definition at line 3689 of file action.c.
References ALLARC_LOOP, ALLLINE_LOOP, ARG, SettingType::BufferNumber, ClearBuffer(), CopyObjectToBuffer(), CopyPastebufferToLayout(), Crosshair, PCBType::Data, END_LOOP, ENDALL_LOOP, EraseObject(), F_All, F_Element, F_Selected, GetFunctionID(), IncrementUndoSerialNumber(), layer, line, MoveObjectToRemoveUndoList(), Note, PASTEBUFFER, PCB, ptr1, ptr2, ptr3, RemoveObject(), RestoreUndoSerialNumber(), SaveUndoSerialNumber(), SearchScreen(), SetBufferNumber(), SetChangedFlag(), Settings, SmashBufferElement(), TEST_FLAG, TEST_FLAGS, VIA_LOOP, PCBType::ViaOn, VISIBLELINE_LOOP, CrosshairType::X, and CrosshairType::Y.
Definition at line 6552 of file action.c.
References ARG, RouteStyleType::Diameter, hid_action(), RouteStyleType::Hole, RouteStyleType::Keepaway, PCB, PCBType::RouteStyle, SetKeepawayWidth(), SetLineSize(), SetViaDrillingHole(), SetViaSize(), and RouteStyleType::Thick.
Definition at line 5898 of file action.c.
References hid_save_settings().
Definition at line 5793 of file action.c.
References AFAIL, ARG, CheckAndOpenFile(), Crosshair, PCBType::Filename, fp, gui, LookupConnectionsToAllElements(), LookupElementConnections(), LookupUnusedPins(), hid_st::notify_filename_changed, PCB, SaveBufferElements(), SavePCB(), SearchScreen(), SetChangedFlag(), CrosshairType::X, and CrosshairType::Y.
Definition at line 5435 of file action.c.
References _, AddSelectedToBuffer(), AFAIL, ARG, CrosshairType::AttachedBox, box, SettingType::BufferNumber, ClearBuffer(), ConvertBufferToElement(), CopyPastebufferToLayout(), Crosshair, Draw(), F_All, F_Block, F_BuriedVias, F_Connection, F_Convert, F_ElementByName, F_Found, F_NetByName, F_Object, F_ObjectByName, F_PadByName, F_PinByName, F_TextByName, F_ToggleObject, F_ViaByName, hid_st::get_coords, GetFunctionID(), PCBType::Grid, GridFit(), PCBType::GridOffsetX, PCBType::GridOffsetY, gui, IncrementUndoSerialNumber(), MAX, MIN, Note, notify_crosshair_change(), NotifyBlock(), PASTEBUFFER, PCB, AttachedBoxType::Point1, AttachedBoxType::Point2, hid_st::prompt_for, RemoveSelected(), RestoreUndoSerialNumber(), SaveUndoSerialNumber(), SelectBlock(), SelectBuriedVias(), SelectByFlag(), SelectObject(), SetBufferNumber(), SetChangedFlag(), Settings, AttachedBoxType::State, STATE_FIRST, STATE_THIRD, x, PointType::X, BoxType::X1, BoxType::X2, y, PointType::Y, BoxType::Y1, and BoxType::Y2.
Definition at line 6771 of file action.c.
References ARG, and ChangeFlag().
Definition at line 5172 of file action.c.
References _, ARG, CHANGEOCTAGON_TYPES, F_Object, F_Selected, F_SelectedElements, F_SelectedObjects, F_SelectedPins, F_SelectedVias, F_ToggleObject, hid_st::get_coords, GetFunctionID(), gui, ptr1, ptr2, ptr3, SearchScreen(), SetChangedFlag(), SetObjectOctagon(), and SetSelectedOctagon().
Definition at line 6689 of file action.c.
References ARC_MODE, ChangeGroupVisibility(), CLONE_TYPES, CURRENT, PCBType::Data, GetLayerNumber(), hid_action(), SettingType::Keepaway, layer, LINE_MODE, SettingType::LineThickness, SettingType::Mode, notify_crosshair_change(), PCB, ptr1, ptr2, ptr3, Redraw(), SearchScreen(), SetMode(), Settings, VIA_MODE, SettingType::ViaDrillingHole, and SettingType::ViaThickness.
Definition at line 4994 of file action.c.
References _, ARG, CHANGESQUARE_TYPES, F_Object, F_Selected, F_SelectedElements, F_SelectedObjects, F_SelectedPins, F_ToggleObject, hid_st::get_coords, GetFunctionID(), gui, ptr1, ptr2, ptr3, SearchScreen(), SetChangedFlag(), SetObjectSquare(), and SetSelectedSquare().
Definition at line 2084 of file action.c.
References AFAIL, ARG, ChangeObjectThermal(), ChangeSelectedThermals(), CHANGETHERMAL_TYPES, Crosshair, Draw(), F_Object, F_Selected, F_SelectedElements, F_SelectedPins, F_SelectedVias, GetFunctionID(), GetUnitlessValue(), IncrementUndoSerialNumber(), PCB, ptr1, ptr2, ptr3, SearchScreen(), style, PCBType::ThermStyle, CrosshairType::X, and CrosshairType::Y.
Definition at line 2211 of file action.c.
References AFAIL, ARG, F_Grid, F_Line, F_LineSize, F_Text, F_TextScale, F_Via, F_ViaDrillingHole, F_ViaSize, GetFunctionID(), GetValue(), PCBType::Grid, increments::grid, hid_action(), SettingType::increments, increments::line, SettingType::LineThickness, PCB, SetGrid(), SetLineSize(), SetTextScale(), Settings, SetViaDrillingHole(), SetViaSize(), SettingType::TextScale, SettingType::ViaDrillingHole, and SettingType::ViaThickness.
Definition at line 8192 of file action.c.
References _, AFAIL, ARG, ChangeObjectViaLayers(), ChangeSelectedViaLayers(), Crosshair, F_Object, F_Selected, F_SelectedVias, F_ThroughHole, GetFunctionID(), identify_layer(), max_copper_layer, Message(), min, ptr1, ptr2, ptr3, SearchScreen(), SetChangedFlag(), TEST_FLAG, CrosshairType::X, and CrosshairType::Y.
Definition at line 4800 of file action.c.
References _, AddObjectToFlagUndoList(), ARG, PCBType::Data, Draw(), DrawElementName(), ELEMENT_LOOP, PCBType::ElementOn, END_LOOP, EraseElementName(), F_Object, F_Selected, F_SelectedElements, FRONT, hid_st::get_coords, GetFunctionID(), gui, IncrementUndoSerialNumber(), PCBType::InvisibleObjectsOn, NAMEONPCB_TEXT, PCB, ptr1, ptr2, ptr3, SearchScreen(), TEST_FLAG, and TOGGLE_FLAG.
Definition at line 6288 of file action.c.
References addedLines, AdjustAttachedObjects(), ARC_MODE, ARG, CrosshairType::AttachedBox, CrosshairType::AttachedLine, CrosshairType::AttachedObject, CrosshairType::AttachedPolygon, ClearUndoList(), Crosshair, CURRENT, DrawLine(), F_ClearList, FitCrosshairIntoGrid(), GetArcEnds(), GetFunctionID(), GoToPreviousPoint(), LINE_MODE, SettingType::Mode, notify_crosshair_change(), PCB, AttachedBoxType::Point1, AttachedLineType::Point1, AttachedBoxType::Point2, AttachedLineType::Point2, polygon_st::PointN, POLYGON_MODE, POLYGONHOLE_MODE, ptr1, ptr2, ptr3, SearchObjectByLocation(), SET_FLAG, SetChangedFlag(), SetLocalRef(), Settings, AttachedLineType::State, AttachedBoxType::State, AttachedObjectType::State, STATE_FIRST, STATE_SECOND, STATE_THIRD, TEST_FLAG, Undo(), UNDO_CREATE, UNDO_REMOVE, CrosshairType::X, PointType::X, BoxType::X1, CrosshairType::Y, PointType::Y, and BoxType::Y1.
Referenced by FinishStroke().
Definition at line 5640 of file action.c.
References _, AFAIL, ARG, CrosshairType::AttachedBox, box, Crosshair, Draw(), F_All, F_Block, F_Connection, F_ElementByName, F_Found, F_NetByName, F_ObjectByName, F_PadByName, F_PinByName, F_TextByName, F_ViaByName, GetFunctionID(), gui, IncrementUndoSerialNumber(), MAX, MIN, notify_crosshair_change(), NotifyBlock(), AttachedBoxType::Point1, AttachedBoxType::Point2, hid_st::prompt_for, SelectBlock(), SelectByFlag(), SetChangedFlag(), AttachedBoxType::State, STATE_FIRST, STATE_THIRD, PointType::X, BoxType::X1, BoxType::X2, PointType::Y, BoxType::Y1, and BoxType::Y2.
static void AdjustAttachedBox | ( | void | ) | [static] |
Set new coordinates if in 'RECTANGLE' mode.
The cursor shape is also adjusted.
Definition at line 811 of file action.c.
References ARC_MODE, CrosshairType::AttachedBox, Crosshair, gui, SettingType::Mode, AttachedBoxType::otherway, AttachedBoxType::Point2, Settings, hid_st::shift_is_pressed, AttachedBoxType::State, STATE_SECOND, CrosshairType::X, PointType::X, CrosshairType::Y, and PointType::Y.
Referenced by AdjustAttachedObjects().
void AdjustAttachedObjects | ( | void | ) |
Adjusts the objects which are to be created like attached lines.
Definition at line 835 of file action.c.
References AdjustAttachedBox(), AdjustAttachedLine(), AdjustInsertPoint(), AdjustTwoLine(), ARC_MODE, ARROW_MODE, CrosshairType::AttachedBox, PCBType::Clipping, Crosshair, INSERTPOINT_MODE, LINE_MODE, SettingType::Mode, NO_MODE, PCB, AttachedBoxType::Point2, POLYGON_MODE, POLYGONHOLE_MODE, PCBType::RatDraw, RECTANGLE_MODE, ROTATE_MODE, Settings, AttachedBoxType::State, CrosshairType::X, PointType::X, CrosshairType::Y, and PointType::Y.
Referenced by ActionDisplay(), ActionUndo(), EventMoveCrosshair(), ghid_menu_cb(), ghid_note_event_location(), ghid_port_button_release_cb(), ghid_port_key_release_cb(), mod_changed(), and SetMode().
static void ChangeFlag | ( | char * | what, |
char * | flag_name, | ||
int | value, | ||
char * | cmd_name | ||
) | [static] |
Definition at line 6846 of file action.c.
References _, CHANGESIZE_TYPES, ClrObjectJoin(), ClrObjectOctagon(), ClrObjectSquare(), ClrSelectedJoin(), ClrSelectedOctagon(), ClrSelectedSquare(), Crosshair, F_Object, F_Selected, F_SelectedElements, F_SelectedLines, F_SelectedNames, F_SelectedObjects, F_SelectedPads, F_SelectedPins, F_SelectedTexts, F_SelectedVias, GetFunctionID(), Message(), NSTRCMP, ptr1, ptr2, ptr3, SearchScreen(), SetChangedFlag(), SetObjectJoin(), SetObjectOctagon(), SetObjectSquare(), SetSelectedJoin(), SetSelectedOctagon(), SetSelectedSquare(), TEST_FLAG, CrosshairType::X, and CrosshairType::Y.
Referenced by ActionChangeFlag(), ActionClrFlag(), and ActionSetFlag().
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().
static void click_cb | ( | hidval | hv | ) | [static] |
Click callback.
This is called a clicktime after a mouse down, to we can distinguish between short clicks (typically: select or create something) and long clicks. Long clicks typically drag something.
Definition at line 605 of file action.c.
References AddSelectedToBuffer(), CrosshairType::AttachedBox, CrosshairType::AttachedObject, AttachForCopy(), box, SettingType::BufferNumber, ClearBuffer(), hid_st::control_is_pressed, COPY_MODE, Crosshair, gui, MOVE_MODE, Note, notify_crosshair_change(), NotifyBlock(), PASTEBUFFER, PASTEBUFFER_MODE, AttachedBoxType::Point1, AttachedObjectType::Ptr1, AttachedObjectType::Ptr2, AttachedObjectType::Ptr3, RemoveSelected(), saved_mode, SaveMode(), SaveUndoSerialNumber(), SelectBlock(), SetBufferNumber(), SetChangedFlag(), SetMode(), Settings, hid_st::shift_is_pressed, AttachedObjectType::Type, PointType::X, BoxType::X1, BoxType::X2, PointType::Y, BoxType::Y1, and BoxType::Y2.
Referenced by NotifyMode().
static enum crosshair_shape CrosshairShapeIncrement | ( | enum crosshair_shape | shape | ) | [static] |
Definition at line 2656 of file action.c.
References Basic_Crosshair_Shape, Crosshair_Shapes_Number, Dozen_Crosshair_Shape, and Union_Jack_Crosshair_Shape.
Referenced by ActionDisplay().
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.
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().
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().
static int GetFunctionID | ( | String | Ident | ) | [static] |
Get function ID of passed string.
Definition at line 758 of file action.c.
References _, ENTRIES, function_hash, hash_initted, hashfunc(), and ID.
Referenced by ActionAddRats(), ActionAtomic(), ActionAttributes(), ActionAutoRoute(), ActionChange2ndSize(), ActionChangeClearSize(), ActionChangeHole(), ActionChangeJoin(), ActionChangeName(), ActionChangeOctagon(), ActionChangePaste(), ActionChangeSize(), ActionChangeSquare(), ActionClearOctagon(), ActionClearSquare(), ActionConnection(), ActionDelete(), ActionDeleteRats(), ActionDisperseElements(), ActionDisplay(), ActionFlip(), ActionMarkCrosshair(), ActionMode(), ActionMorphPolygon(), ActionMoveToCurrentLayer(), ActionPasteBuffer(), ActionPolygon(), ActionRipUp(), ActionSelect(), ActionSetOctagon(), ActionSetSquare(), ActionSetThermal(), ActionSetValue(), ActionSetViaLayers(), ActionToggleHideName(), ActionUndo(), ActionUnselect(), and ChangeFlag().
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().
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().
static void NotifyLine | ( | void | ) | [static] |
Creates points of a line.
Definition at line 883 of file action.c.
References CrosshairType::AttachedLine, hid_st::beep, Crosshair, CURRENT, Distance(), gui, LINE_MODE, LookupConnection(), Marked, SettingType::Mode, PCB, AttachedLineType::Point1, AttachedLineType::Point2, ptr1, ptr2, ptr3, PCBType::RatDraw, SearchScreen(), SetLocalRef(), Settings, AttachedLineType::State, STATE_FIRST, STATE_SECOND, STATE_THIRD, MarkType::status, TEST_FLAG, PointType::X, CrosshairType::X, PointType::Y, and CrosshairType::Y.
Referenced by NotifyMode().
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().
static int pcb_spawnvp | ( | char ** | argv | ) | [static] |
Definition at line 7381 of file action.c.
Referenced by ActionImport().
static void ReleaseMode | ( | void | ) | [static] |
This is typically called when the mouse has moved or the mouse button was released.
Definition at line 661 of file action.c.
References ARROW_MODE, CrosshairType::AttachedBox, box, Bumped, ClearBuffer(), Crosshair, gui, IncrementUndoSerialNumber(), MAX, MIN, SettingType::Mode, Note, NotifyMode(), PASTEBUFFER, AttachedBoxType::Point1, AttachedBoxType::Point2, RestoreMode(), RestoreUndoSerialNumber(), saved_mode, SaveUndoSerialNumber(), SelectBlock(), SelectObject(), SetBufferNumber(), SetChangedFlag(), Settings, hid_st::shift_is_pressed, AttachedBoxType::State, STATE_FIRST, PointType::X, BoxType::X1, BoxType::X2, PointType::Y, BoxType::Y1, and BoxType::Y2.
Referenced by ActionMode().
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().
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().
const char addrats_help[] [static] |
const char addrats_syntax[] = N_("AddRats(AllRats|SelectedRats|Close)") [static] |
const char atomic_help[] = N_("Save or restore the undo serial number.") [static] |
const char atomic_syntax[] = N_("Atomic(Save|Restore|Close|Block)") [static] |
const char attributes_help[] [static] |
const char attributes_syntax[] [static] |
const char autoplace_help[] = N_("Auto-place selected components.") [static] |
const char autoplace_syntax[] = N_("AutoPlaceSelected()") [static] |
const char autoroute_help[] = N_("Auto-route some or all rat lines.") [static] |
const char autoroute_syntax[] = N_("AutoRoute(AllRats|SelectedRats)") [static] |
const char changeclearsize_help[] [static] |
const char changeclearsize_syntax[] [static] |
const char changedrillsize_help[] [static] |
const char changedrillsize_syntax[] [static] |
const char changeflag_help[] = N_("Sets or clears flags on objects.") [static] |
const char changeflag_syntax[] [static] |
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")
const char changehold_help[] = N_("Changes the hole flag of objects.") [static] |
const char changehold_syntax[] [static] |
const char changejoin_help[] [static] |
const char changejoin_syntax[] [static] |
const char changename_help[] = N_("Sets the name of objects.") [static] |
const char changename_syntax[] [static] |
const char changeoctagon_help[] [static] |
const char changeoctagon_syntax[] [static] |
const char changepaste_help[] [static] |
const char changepaste_syntax[] [static] |
const char changepinname_help[] [static] |
const char changepinname_syntax[] [static] |
const char changesize_help[] = N_("Changes the size of objects.") [static] |
const char changesize_syntax[] [static] |
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)")
const char changesquare_help[] [static] |
const char changesquare_syntax[] [static] |
const char clearoctagon_help[] [static] |
const char clearoctagon_syntax[] [static] |
const char clearsquare_help[] [static] |
const char clearsquare_syntax[] [static] |
const char clrflag_help[] = N_("Clears flags on objects.") [static] |
const char clrflag_syntax[] [static] |
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")
const char connection_help[] [static] |
const char connection_syntax[] [static] |
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] |
const char delete_syntax[] [static] |
const char deleterats_help[] = N_("Delete rat lines.") [static] |
const char deleterats_syntax[] [static] |
const char disperseelements_help[] = N_("Disperses elements.") [static] |
const char disperseelements_syntax[] [static] |
const char display_help[] = N_("Several display-related actions.") [static] |
const char display_syntax[] [static] |
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)")
const char drc_help[] = N_("Invoke the DRC check.") [static] |
const char drc_syntax[] = N_("DRC()") [static] |
const char dumplibrary_help[] [static] |
const char dumplibrary_syntax[] = N_("DumpLibrary()") [static] |
ElementType* element_cache = NULL [static] |
Definition at line 7017 of file action.c.
Referenced by find_element_by_refdes().
const char elementlist_help[] [static] |
const char elementlist_syntax[] [static] |
const char elementsetattr_help[] [static] |
const char elementsetattr_syntax[] [static] |
const char execcommand_help[] = N_("Runs a command.") [static] |
const char execcommand_syntax[] = N_("ExecCommand(command)") [static] |
const char executefile_help[] = N_("Run actions from the given file.") [static] |
const char executefile_syntax[] = N_("ExecuteFile(filename)") [static] |
struct { ... }
fake [static] |
Referenced by BreakManyEdges(), and NotifyMode().
const char flip_help[] [static] |
const char flip_syntax[] = N_("Flip(Object|Selected|SelectedElements)") [static] |
char function_hash[HSIZE] [static] |
Definition at line 737 of file action.c.
Referenced by GetFunctionID().
FunctionType Functions[] [static] |
int hash_initted = 0 [static] |
Definition at line 738 of file action.c.
Referenced by GetFunctionID().
const char import_help[] = N_("Import schematics.") [static] |
const char import_syntax[] [static] |
PointType InsertedPoint [static] |
Definition at line 304 of file action.c.
Referenced by AdjustInsertPoint().
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] |
const char loadfrom_syntax[] [static] |
const char markcrosshair_help[] = N_("Set/Reset the Crosshair mark.") [static] |
const char markcrosshair_syntax[] [static] |
const char message_help[] = N_("Writes a message to the log window.") [static] |
const char message_syntax[] = N_("Message(message)") [static] |
bool mid_stroke = false [static] |
Definition at line 332 of file action.c.
Referenced by ActionMode(), EventMoveCrosshair(), and FinishStroke().
const char mincleargap_help[] [static] |
const char mincleargap_syntax[] [static] |
const char minmaskgap_help[] [static] |
const char minmaskgap_syntax[] [static] |
const char mode_help[] = N_("Change or use the tool mode.") [static] |
const char mode_syntax[] [static] |
const char morphpolygon_help[] [static] |
const char morphpolygon_syntax[] = N_("MorphPolygon(Object|Selected)") [static] |
const char moveobject_help[] [static] |
const char moveobject_syntax[] = N_("MoveObject(X,Y,dim)") [static] |
const char movetocurrentlayer_help[] [static] |
const char movetocurrentlayer_syntax[] [static] |
const char new_help[] = N_("Starts a new layout.") [static] |
const char new_syntax[] = N_("New([name])") [static] |
struct { ... }
Note [static] |
Referenced by ActionDelete(), ActionMode(), ActionRipUp(), ActionSelect(), click_cb(), NotifyMode(), and ReleaseMode().
int number_of_footprints_not_found [static] |
Definition at line 7093 of file action.c.
Referenced by ActionElementList().
const char pastebuffer_help[] [static] |
const char pastebuffer_syntax[] [static] |
Definition at line 308 of file action.c.
Referenced by add_noholes_polyarea(), common_fill_pcb_polygon(), common_gui_draw_pcb_polygon(), common_thindraw_pcb_polygon(), new_descriptor(), and SelectObject().
const char polygon_help[] = N_("Some polygon related stuff.") [static] |
const char polygon_syntax[] = N_("Polygon(Close|PreviousPoint)") [static] |
Definition at line 329 of file action.c.
Referenced by NotifyMode().
void* ptr1 |
Definition at line 320 of file action.c.
Referenced by ActionChange2ndSize(), ActionChangeClearSize(), ActionChangeHole(), ActionChangeJoin(), ActionChangeName(), ActionChangeOctagon(), ActionChangePaste(), ActionChangeSize(), ActionChangeSquare(), ActionClearOctagon(), ActionClearSquare(), ActionDisplay(), ActionMorphPolygon(), ActionMoveObject(), ActionMoveToCurrentLayer(), ActionRipUp(), ActionSetOctagon(), ActionSetSame(), ActionSetSquare(), ActionSetThermal(), ActionSetViaLayers(), ActionToggleHideName(), ActionUndo(), AddNet(), ChangeFlag(), check_snap_offgrid_line(), describe_location(), FinishStroke(), FitCrosshairIntoGrid(), GetLowestDistancePolygonPoint(), GetUndoSlot(), LookupConnection(), MoveLineToLayer(), NotifyLine(), NotifyMode(), pad_callback(), pinorvia_callback(), PlowsPolygon(), ReportDialog(), RotateScreenObject(), selection_changed_cb(), SelectObject(), SetThing(), UndoChange2ndSize(), UndoChangeAngles(), UndoChangeClearSize(), UndoChangeMaskSize(), UndoChangeName(), UndoChangeSize(), UndoClearPoly(), UndoCopyOrCreate(), UndoFlag(), UndoMirror(), UndoMove(), UndoMoveToLayer(), UndoRemove(), UndoRotate(), UndoSetViaLayers(), and UndoSwapCopiedObject().
void* ptr2 |
Definition at line 321 of file action.c.
Referenced by ActionChange2ndSize(), ActionChangeClearSize(), ActionChangeHole(), ActionChangeJoin(), ActionChangeName(), ActionChangeOctagon(), ActionChangePaste(), ActionChangeSize(), ActionChangeSquare(), ActionClearOctagon(), ActionClearSquare(), ActionDisplay(), ActionMorphPolygon(), ActionMoveObject(), ActionMoveToCurrentLayer(), ActionRipUp(), ActionSetOctagon(), ActionSetSame(), ActionSetSquare(), ActionSetThermal(), ActionSetViaLayers(), ActionToggleHideName(), ActionUndo(), AddNet(), ChangeFlag(), check_snap_offgrid_line(), describe_location(), FinishStroke(), FitCrosshairIntoGrid(), GetLowestDistancePolygonPoint(), GetUndoSlot(), LookupConnection(), MoveLineToLayer(), MoveObjectAndRubberband(), NotifyLine(), NotifyMode(), PlowsPolygon(), ReportDialog(), RotateObject(), RotateScreenObject(), selection_changed_cb(), SelectObject(), SetThing(), UndoChange2ndSize(), UndoChangeAngles(), UndoChangeClearSize(), UndoChangeMaskSize(), UndoChangeName(), UndoChangeSize(), UndoClearPoly(), UndoCopyOrCreate(), UndoFlag(), UndoMirror(), UndoMove(), UndoMoveToLayer(), UndoRemove(), UndoRotate(), UndoSetViaLayers(), and UndoSwapCopiedObject().
void* ptr3 |
Definition at line 322 of file action.c.
Referenced by ActionChange2ndSize(), ActionChangeClearSize(), ActionChangeHole(), ActionChangeJoin(), ActionChangeName(), ActionChangeOctagon(), ActionChangePaste(), ActionChangeSize(), ActionChangeSquare(), ActionClearOctagon(), ActionClearSquare(), ActionDisplay(), ActionMorphPolygon(), ActionMoveObject(), ActionMoveToCurrentLayer(), ActionRipUp(), ActionSetOctagon(), ActionSetSame(), ActionSetSquare(), ActionSetThermal(), ActionSetViaLayers(), ActionToggleHideName(), ActionUndo(), AddNet(), ChangeFlag(), check_snap_offgrid_line(), describe_location(), FinishStroke(), FitCrosshairIntoGrid(), GetUndoSlot(), LookupConnection(), MoveLineToLayer(), NotifyLine(), NotifyMode(), ReportDialog(), RotateScreenObject(), selection_changed_cb(), SelectObject(), SetThing(), UndoChange2ndSize(), UndoChangeAngles(), UndoChangeClearSize(), UndoChangeMaskSize(), UndoChangeName(), UndoChangeSize(), UndoClearPoly(), UndoCopyOrCreate(), UndoFlag(), UndoMirror(), UndoMove(), UndoMoveToLayer(), UndoRemove(), UndoRemovePoint(), UndoRotate(), UndoSetViaLayers(), and UndoSwapCopiedObject().
const char quit_help[] = N_("Quits the application after confirming.") [static] |
const char quit_syntax[] = N_("Quit()") [static] |
const char redo_help[] = N_("Redo recent \"undo\" operations.") [static] |
const char redo_syntax[] = N_("Redo()") [static] |
const char removeselected_help[] = N_("Removes any selected objects.") [static] |
const char removeselected_syntax[] = N_("RemoveSelected()") [static] |
const char renumber_help[] [static] |
const char renumber_syntax[] [static] |
const char ripup_help[] [static] |
const char ripup_syntax[] = N_("RipUp(All|Selected|Element)") [static] |
const char routestyle_help[] [static] |
const char routestyle_syntax[] = N_("RouteStyle(1|2|3|4)") [static] |
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] |
const char savesettings_syntax[] [static] |
const char saveto_help[] = N_("Saves data to a file.") [static] |
const char saveto_syntax[] [static] |
const char select_help[] = N_("Toggles or sets the selection.") [static] |
const char select_syntax[] [static] |
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)")
const char setflag_help[] = N_("Sets flags on objects.") [static] |
const char setflag_syntax[] [static] |
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")
const char setoctagon_help[] = N_("Sets the octagon-flag of objects.") [static] |
const char setoctagon_syntax[] [static] |
const char setsame_help[] [static] |
const char setsame_syntax[] = N_("SetSame()") [static] |
const char setsquare_help[] = N_("sets the square-flag of objects.") [static] |
const char setsquare_syntax[] [static] |
const char setthermal_help[] [static] |
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")
const char setthermal_syntax[] = "SetThermal(Object|SelectedPins|SelectedVias|Selected, Style)" [static] |
const char setvalue_help[] [static] |
const char setvalue_syntax[] [static] |
const char setvialayers_help[] [static] |
const char setvialayers_syntax[] [static] |
const char togglehidename_help[] [static] |
const char togglehidename_syntax[] [static] |
const char undo_help[] = N_("Undo recent changes.") [static] |
const char undo_syntax[] [static] |
const char unselect_help[] [static] |
const char unselect_syntax[] [static] |
Definition at line 315 of file action.c.
Referenced by AddSelectedToBuffer(), AddTextToElement(), check_point_in_pin(), CopyElementLowLevel(), CreateNewArcInElement(), CreateNewPin(), CreateNewPointInPolygon(), CreateNewText(), CreateNewVia(), frac_circle(), GotoError(), InsertPointIntoLine(), IsPointInBox(), IsPointInPad(), IsPointInPolygon(), IsPointInPolygonIgnoreHoles(), NotifyMode(), pin_name_to_xy(), point_box(), polygon_is_rectangle(), REGISTER_ATTRIBUTES(), ReportNetLengthByName(), RotateObject(), SearchObjectByLocation(), SetLocalRef(), and WriteElementData().
Definition at line 315 of file action.c.
Referenced by AddSelectedToBuffer(), AddTextToElement(), check_point_in_pin(), CopyElementLowLevel(), CreateNewArcInElement(), CreateNewPin(), CreateNewPointInPolygon(), CreateNewText(), CreateNewVia(), frac_circle(), GotoError(), InsertPointIntoLine(), IsPointInBox(), IsPointInPad(), IsPointInPolygon(), IsPointInPolygonIgnoreHoles(), pin_name_to_xy(), point_box(), ReportNetLengthByName(), RotateObject(), SearchObjectByLocation(), SetLocalRef(), and WriteElementData().