7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-20 11:21:41 +00:00

Fix typos in pcbnew sub-directory

Found via `codespell -q 3 -S *.po,./thirdparty,./Documentation/changelogs -L aactual,acount,aline,alocation,alog,anormal,anumber,aother,apoints,aparent,aray,ba,busses,dout,einstance,leaded,modul,ontext,ot,overide,serie,te,,tesselate,tesselator,tht`
This commit is contained in:
luz paz 2022-06-29 16:21:10 -04:00
parent 1598ce762b
commit af6ba1a16e
35 changed files with 45 additions and 45 deletions

View File

@ -37,7 +37,7 @@ class ARRAY_PAD_NUMBER_PROVIDER
public:
/**
* @param aFootprint the footprint to gather existing numbers from (nullptr for no footprint)
* @oaram aArrayOpts the array options that provide the candidate numbers
* @param aArrayOpts the array options that provide the candidate numbers
*/
ARRAY_PAD_NUMBER_PROVIDER( const FOOTPRINT* aFootprint, const ARRAY_OPTIONS& aArrayOpts );

View File

@ -60,7 +60,7 @@ public:
/**
* @brief Adds an item to the container.
* @param aMode decides whether the item is added in the beginning or at the end of the list.
* @param aSkipConnectivity skip connectivity update (usefull for file loading, when
* @param aSkipConnectivity skip connectivity update (useful for file loading, when
* the connectivity is updated after end of loading).
*/
virtual void Add( BOARD_ITEM* aItem, ADD_MODE aMode = ADD_MODE::INSERT,

View File

@ -466,7 +466,7 @@ bool BOARD_STACKUP::SynchronizeWithBoard( BOARD_DESIGN_SETTINGS* aSettings )
}
}
// Transfert layer settings:
// Transfer layer settings:
*this = stackup;
// Transfer other stackup settings from aSettings

View File

@ -243,7 +243,7 @@ bool DIALOG_COPPER_ZONE::TransferDataToWindow()
m_cornerRadius.SetValue( m_settings.GetCornerRadius() );
m_PriorityLevelCtrl->SetValue( m_settings.m_ZonePriority );
if( m_isTeardrop ) // outlines are never smoothed: they have alreay the right shape
if( m_isTeardrop ) // outlines are never smoothed: they have already the right shape
{
m_cornerSmoothingChoice->SetSelection( 0 );
m_cornerSmoothingChoice->Enable( false );
@ -640,7 +640,7 @@ void DIALOG_COPPER_ZONE::OnNetSortingOptionSelected( wxCommandEvent& event )
void DIALOG_COPPER_ZONE::storePersistentNetSortConfigurations()
{
// These configurations are persistent across multiple invokations of
// These configurations are persistent across multiple invocations of
// this dialog
int newConfig{ NO_PERSISTENT_SORT_MODE };

View File

@ -235,7 +235,7 @@ void DIALOG_MOVE_EXACT::OnClear( wxCommandEvent& event )
m_rotate.SetAngleValue( ANGLE_0 );
}
// Keep m_stdButtonsOK focused to allow enter key actiavte the OK button
// Keep m_stdButtonsOK focused to allow enter key activate the OK button
m_stdButtonsOK->SetFocus();
}

View File

@ -2130,7 +2130,7 @@ void DIALOG_PAD_PROPERTIES::editPrimitive()
void DIALOG_PAD_PROPERTIES::OnPrimitiveSelection( wxListEvent& event )
{
// Called on a double click on the basic shapes list
// To Do: highligth the primitive(s) currently selected.
// To Do: highlight the primitive(s) currently selected.
redraw();
}

View File

@ -94,7 +94,7 @@ bool DIALOG_TARGET_PROPERTIES::TransferDataFromWindow()
BOARD_COMMIT commit( m_Parent );
commit.Modify( m_Target );
// Save old item in undo list, if is is not currently edited (will be later if so)
// Save old item in undo list, if it's not currently edited (will be later if so)
bool pushCommit = ( m_Target->GetEditFlags() == 0 );
if( m_Target->GetEditFlags() != 0 ) // other edit in progress (MOVE, NEW ..)

View File

@ -362,7 +362,7 @@ bool FOOTPRINT::FootprintNeedsUpdate( const FOOTPRINT* aLibFootprint )
// changed for instances on the board. Or they might want to be tested for equality.
// Currently we punt and ignore all the text items.
// Drawings and pads are also somewhat problematic as there's no gaurantee that they'll be
// Drawings and pads are also somewhat problematic as there's no guarantee that they'll be
// in the same order in the two footprints. Rather than building some sophisticated hashing
// algorithm we use the footprint sorting functions to attempt to sort them in the same order.

View File

@ -264,7 +264,7 @@ EXPORTER_PCB_VRML::~EXPORTER_PCB_VRML()
void EXPORTER_PCB_VRML::initStaticColorList()
{
// Initialize the list of colors used in VRML export, but only once.
// (The list is stati
// (The list is static)
if( g_ColorsLoaded )
return;

View File

@ -191,7 +191,7 @@ bool GENDRILL_WRITER_BASE::genDrillMapFile( const wxString& aFullFileName, PLOT_
GERBER_PLOTTER* gbrplotter = static_cast <GERBER_PLOTTER*> ( plotter );
gbrplotter->DisableApertMacros( false );
gbrplotter->UseX2format( true ); // Mandatory
gbrplotter->UseX2NetAttributes( false ); // net attributes hace no meaning here
gbrplotter->UseX2NetAttributes( false ); // net attributes have no meaning here
// Attributes are added using X2 format
AddGerberX2Header( gbrplotter, m_pcb, false );

View File

@ -142,7 +142,7 @@ public:
void ClearAllNets();
/**
* Old footprints do not alway have a valid UUID (some can be set to null uuid)
* Old footprints do not always have a valid UUID (some can be set to null uuid)
* However null UUIDs, having a special meaning in editor, create issues when
* editing a footprint
* So all null uuids a re replaced by a valid uuid

View File

@ -481,7 +481,7 @@ void FOOTPRINT_EDIT_FRAME::AddFootprintToBoard( FOOTPRINT* aFootprint )
m_footprintNameWhenLoaded = aFootprint->GetFPID().GetLibItemName();
PCB_BASE_EDIT_FRAME::AddFootprintToBoard( aFootprint );
// Ensure item UUIDs are valide
// Ensure item UUIDs are valid
// ("old" footprints can have null uuids that create issues in fp editor)
aFootprint->FixUuids();

View File

@ -56,7 +56,7 @@ bool IBIS_MATRIX_BANDED::Check()
if( m_bandwidth < 1 )
{
Report( _( "Bandwith of banded matrices should be >= 1." ), RPT_SEVERITY_ERROR );
Report( _( "Bandwidth of banded matrices should be >= 1." ), RPT_SEVERITY_ERROR );
status = false;
}

View File

@ -118,7 +118,7 @@ enum class IBIS_MATRIX_TYPE
{
// All matrices are supposed to be symmetrical, only upper right triangle is given
UNDEFINED,
BANDED, // Give the main diagonal + [bandwith] elements on the right
BANDED, // Give the main diagonal + [bandwidth] elements on the right
SPARSE, // Only give non-zero values.
FULL, // Give the whole upper triangle.
};

View File

@ -105,7 +105,7 @@ static void convertPolygon( std::list<std::unique_ptr<IMPORTED_SHAPE>>& aShapes,
double maxY = maxX;
// as Clipper/SHAPE_POLY_SET uses ints we first need to upscale to a reasonably large size (in integer coordinates)
// to avoid loosing accuracy
// to avoid losing accuracy
const double convert_scale = 1000000000.0;
for( IMPORTED_POLYGON* path : aPaths )

View File

@ -138,7 +138,7 @@ public:
* @param aCornerBuffer is a buffer to store the polygon.
* @param aClearanceValue is the clearance around the pad.
* @param aError is the maximum deviation from a true arc.
* @param aErrorLoc whether any approximation error shoule be placed inside or outside
* @param aErrorLoc whether any approximation error should be placed inside or outside
* @param ignoreLineWidth is used for edge cut items where the line width is only
* for visualization
*/

View File

@ -105,7 +105,7 @@ public:
* @param aCornerBuffer is a buffer to store the polygon.
* @param aClearanceValue is the clearance around the pad.
* @param aError is the maximum deviation from a true arc.
* @param aErrorLoc whether any approximation error shoule be placed inside or outside
* @param aErrorLoc whether any approximation error should be placed inside or outside
* @param ignoreLineWidth is used for edge cut items where the line width is only
* for visualization
*/

View File

@ -3759,7 +3759,7 @@ bool CADSTAR_PCB_ARCHIVE_LOADER::calculateZonePriorities( PCB_LAYER_ID& aLayer )
{
// Test if this zone were lower priority than other zone, what is the error?
double areaThis = errorArea( thisZone, otherZone );
// Viceversa
// Vice-versa
double areaOther = errorArea( otherZone, thisZone );
if( areaThis > areaOther )

View File

@ -114,7 +114,7 @@ public:
private:
///< Convert net code using the mapping table if available,
///< otherwise returns unchanged net code if < 0 or if is is out of range
///< otherwise returns unchanged net code if < 0 or if it's out of range
inline int getNetCode( int aNetCode )
{
if( ( aNetCode >= 0 ) && ( aNetCode < (int) m_netCodes.size() ) )

View File

@ -132,7 +132,7 @@ class SHAPE_LINE_CHAIN;
#define CTL_OMIT_INITIAL_COMMENTS (1 << 3) ///< omit FOOTPRINT initial comments
#define CTL_OMIT_PATH (1 << 4) ///< Omit component sheet time stamp (useless in library)
#define CTL_OMIT_AT (1 << 5) ///< Omit position and rotation. (always saved
///< with potion 0,0 and rotation = 0 in library).
///< with position 0,0 and rotation = 0 in library).
//#define CTL_OMIT_HIDE (1 << 6) // found and defined in eda_text.h
#define CTL_OMIT_LIBNAME (1 << 7) ///< Omit lib alias when saving (used for
///< board/not library).

View File

@ -454,7 +454,7 @@ class FootprintWizardDrawingAids:
def SetLineTickness(self, lineThickness):
"""!
Old version of SetLineThickness.
Does the same thing, but is is only here for compatibility with old
Does the same thing, but is only here for compatibility with old
scripts.
Set the current pen lineThickness used for subsequent drawing
operations

View File

@ -52,7 +52,7 @@ private:
///< Reload Python plugins and reset toolbar (if in pcbnew)
int reloadPlugins( const TOOL_EVENT& aEvent );
///< Call LoadPlugins method of the scripting module with apropriate paths
///< Call LoadPlugins method of the scripting module with appropriate paths
///< Must be called under PyLOCK
static void callLoadPlugins();

View File

@ -37,7 +37,7 @@
elif type(iu) in [wxPoint,wxSize,VECTOR2I]:
return tuple(map(ToMM,iu))
else:
raise TypeError("ToMM() excpects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(iu)))
raise TypeError("ToMM() expects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(iu)))
def FromMM(mm):
if type(mm) in [int,float]:
@ -53,7 +53,7 @@
elif type(iu) in [wxPoint,wxSize,VECTOR2I]:
return tuple(map(ToMils,iu))
else:
raise TypeError("ToMils() excpects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(iu)))
raise TypeError("ToMils() expects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(iu)))
def FromMils(mils):
if type(mils) in [int,float]:
@ -61,7 +61,7 @@
elif type(mils) in [wxPoint,wxSize,VECTOR2I]:
return tuple(map(FromMils,mils))
else:
raise TypeError("FromMils() excpects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(mils)))
raise TypeError("FromMils() expects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(mils)))
def PutOnGridMM(value, gridSizeMM):
thresh = FromMM(gridSizeMM)

View File

@ -1127,7 +1127,7 @@ class CLASS_CLASS : public ELEM_HOLDER
public:
/**
* @param aParent is the arent element of the object.
* @param aParent is the parent element of the object.
* @param aType May be either T_class_class or T_region_class_class
*/
CLASS_CLASS( ELEM* aParent, DSN_T aType ) :

View File

@ -1696,7 +1696,7 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard )
wire->net_id = netname;
if( track->IsLocked() )
wire->wire_type = T_fix; // tracks with fix property are not returnned in .ses files
wire->wire_type = T_fix; // tracks with fix property are not returned in .ses files
else
wire->wire_type = T_route; // could be T_protect
@ -1758,7 +1758,7 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard )
dsnVia->net_id = TO_UTF8( net->GetNetname() );
if( via->IsLocked() )
dsnVia->via_type = T_fix; // vias with fix property are not returnned in .ses files
dsnVia->via_type = T_fix; // vias with fix property are not returned in .ses files
else
dsnVia->via_type = T_route; // could be T_protect
}

Some files were not shown because too many files have changed in this diff Show More