diff --git a/pcbnew/array_pad_number_provider.h b/pcbnew/array_pad_number_provider.h index c96966cab9..0e8ea43c0a 100644 --- a/pcbnew/array_pad_number_provider.h +++ b/pcbnew/array_pad_number_provider.h @@ -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 ); diff --git a/pcbnew/board_item_container.h b/pcbnew/board_item_container.h index b6bf00f82e..e454e4eed9 100644 --- a/pcbnew/board_item_container.h +++ b/pcbnew/board_item_container.h @@ -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, diff --git a/pcbnew/board_stackup_manager/board_stackup.cpp b/pcbnew/board_stackup_manager/board_stackup.cpp index cecb817762..5f1479cd80 100644 --- a/pcbnew/board_stackup_manager/board_stackup.cpp +++ b/pcbnew/board_stackup_manager/board_stackup.cpp @@ -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 diff --git a/pcbnew/dialogs/dialog_copper_zones.cpp b/pcbnew/dialogs/dialog_copper_zones.cpp index 1634fc5ae7..23597b00cf 100644 --- a/pcbnew/dialogs/dialog_copper_zones.cpp +++ b/pcbnew/dialogs/dialog_copper_zones.cpp @@ -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 }; diff --git a/pcbnew/dialogs/dialog_move_exact.cpp b/pcbnew/dialogs/dialog_move_exact.cpp index ce4911a89b..4f5b640846 100644 --- a/pcbnew/dialogs/dialog_move_exact.cpp +++ b/pcbnew/dialogs/dialog_move_exact.cpp @@ -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(); } diff --git a/pcbnew/dialogs/dialog_pad_properties.cpp b/pcbnew/dialogs/dialog_pad_properties.cpp index ae6af3f89f..b269e7f0a3 100644 --- a/pcbnew/dialogs/dialog_pad_properties.cpp +++ b/pcbnew/dialogs/dialog_pad_properties.cpp @@ -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(); } diff --git a/pcbnew/dialogs/dialog_target_properties.cpp b/pcbnew/dialogs/dialog_target_properties.cpp index 2bc9be45c8..be8895a2d8 100644 --- a/pcbnew/dialogs/dialog_target_properties.cpp +++ b/pcbnew/dialogs/dialog_target_properties.cpp @@ -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 ..) diff --git a/pcbnew/drc/drc_test_provider_library_parity.cpp b/pcbnew/drc/drc_test_provider_library_parity.cpp index 50f85a1eb8..310b53d0b9 100644 --- a/pcbnew/drc/drc_test_provider_library_parity.cpp +++ b/pcbnew/drc/drc_test_provider_library_parity.cpp @@ -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. diff --git a/pcbnew/exporters/exporter_vrml.cpp b/pcbnew/exporters/exporter_vrml.cpp index 14bda9c71a..685c344e45 100644 --- a/pcbnew/exporters/exporter_vrml.cpp +++ b/pcbnew/exporters/exporter_vrml.cpp @@ -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; diff --git a/pcbnew/exporters/gen_drill_report_files.cpp b/pcbnew/exporters/gen_drill_report_files.cpp index c0281608be..7d54839b95 100644 --- a/pcbnew/exporters/gen_drill_report_files.cpp +++ b/pcbnew/exporters/gen_drill_report_files.cpp @@ -191,7 +191,7 @@ bool GENDRILL_WRITER_BASE::genDrillMapFile( const wxString& aFullFileName, PLOT_ GERBER_PLOTTER* gbrplotter = static_cast ( 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 ); diff --git a/pcbnew/footprint.h b/pcbnew/footprint.h index 9ffce5cb65..0bbd50226e 100644 --- a/pcbnew/footprint.h +++ b/pcbnew/footprint.h @@ -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 diff --git a/pcbnew/footprint_edit_frame.cpp b/pcbnew/footprint_edit_frame.cpp index ed5221ef88..9afdd2ccb8 100644 --- a/pcbnew/footprint_edit_frame.cpp +++ b/pcbnew/footprint_edit_frame.cpp @@ -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(); diff --git a/pcbnew/ibis/ibis_parser.cpp b/pcbnew/ibis/ibis_parser.cpp index 642d164627..56f515cff1 100644 --- a/pcbnew/ibis/ibis_parser.cpp +++ b/pcbnew/ibis/ibis_parser.cpp @@ -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; } diff --git a/pcbnew/ibis/ibis_parser.h b/pcbnew/ibis/ibis_parser.h index f4b7759a97..21ebdcf605 100644 --- a/pcbnew/ibis/ibis_parser.h +++ b/pcbnew/ibis/ibis_parser.h @@ -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. }; diff --git a/pcbnew/import_gfx/graphics_importer_buffer.cpp b/pcbnew/import_gfx/graphics_importer_buffer.cpp index 468d779571..a9910cb3a3 100644 --- a/pcbnew/import_gfx/graphics_importer_buffer.cpp +++ b/pcbnew/import_gfx/graphics_importer_buffer.cpp @@ -105,7 +105,7 @@ static void convertPolygon( std::list>& 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 ) diff --git a/pcbnew/pcb_shape.h b/pcbnew/pcb_shape.h index d995b161ed..947982435a 100644 --- a/pcbnew/pcb_shape.h +++ b/pcbnew/pcb_shape.h @@ -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 */ diff --git a/pcbnew/pcb_target.h b/pcbnew/pcb_target.h index cf41c1f876..9190c2407e 100644 --- a/pcbnew/pcb_target.h +++ b/pcbnew/pcb_target.h @@ -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 */ diff --git a/pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp b/pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp index 4762fa0e96..1e94683d78 100644 --- a/pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp +++ b/pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp @@ -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 ) diff --git a/pcbnew/plugins/kicad/pcb_parser.h b/pcbnew/plugins/kicad/pcb_parser.h index f022f09b71..e50fba4e29 100644 --- a/pcbnew/plugins/kicad/pcb_parser.h +++ b/pcbnew/plugins/kicad/pcb_parser.h @@ -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() ) ) diff --git a/pcbnew/plugins/kicad/pcb_plugin.h b/pcbnew/plugins/kicad/pcb_plugin.h index a6cff10490..fdc6d84c9b 100644 --- a/pcbnew/plugins/kicad/pcb_plugin.h +++ b/pcbnew/plugins/kicad/pcb_plugin.h @@ -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). diff --git a/pcbnew/python/plugins/FootprintWizardBase.py b/pcbnew/python/plugins/FootprintWizardBase.py index de2002e9d3..51eebb0d93 100644 --- a/pcbnew/python/plugins/FootprintWizardBase.py +++ b/pcbnew/python/plugins/FootprintWizardBase.py @@ -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 diff --git a/pcbnew/python/scripting/pcb_scripting_tool.h b/pcbnew/python/scripting/pcb_scripting_tool.h index a5007f80e0..acbb2e43d0 100644 --- a/pcbnew/python/scripting/pcb_scripting_tool.h +++ b/pcbnew/python/scripting/pcb_scripting_tool.h @@ -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(); diff --git a/pcbnew/python/swig/units.i b/pcbnew/python/swig/units.i index 59bb0450ef..664dde14ac 100644 --- a/pcbnew/python/swig/units.i +++ b/pcbnew/python/swig/units.i @@ -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) diff --git a/pcbnew/specctra_import_export/specctra.h b/pcbnew/specctra_import_export/specctra.h index fccc2cd715..0af8b539ed 100644 --- a/pcbnew/specctra_import_export/specctra.h +++ b/pcbnew/specctra_import_export/specctra.h @@ -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 ) : diff --git a/pcbnew/specctra_import_export/specctra_export.cpp b/pcbnew/specctra_import_export/specctra_export.cpp index e8c4acd4cd..a372500713 100644 --- a/pcbnew/specctra_import_export/specctra_export.cpp +++ b/pcbnew/specctra_import_export/specctra_export.cpp @@ -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 } diff --git a/pcbnew/specctra_import_export/specctra_import.cpp b/pcbnew/specctra_import_export/specctra_import.cpp index 7ccef09fde..7ecc6fbd43 100644 --- a/pcbnew/specctra_import_export/specctra_import.cpp +++ b/pcbnew/specctra_import_export/specctra_import.cpp @@ -93,7 +93,7 @@ bool PCB_EDIT_FRAME::ImportSpecctraSession( const wxString& fullFileName ) // Update footprint positions GetCanvas()->GetView()->RecacheAllItems(); - // add imported tracks (previous tracks are removed, therfore all are new) + // add imported tracks (previous tracks are removed, therefore all are new) for( auto track : GetBoard()->Tracks() ) GetCanvas()->GetView()->Add( track ); } diff --git a/pcbnew/teardrop/teardrop.cpp b/pcbnew/teardrop/teardrop.cpp index 1886d51087..1c11e608c5 100644 --- a/pcbnew/teardrop/teardrop.cpp +++ b/pcbnew/teardrop/teardrop.cpp @@ -77,7 +77,7 @@ ZONE* TEARDROP_MANAGER::createTeardrop( TEARDROP_VARIANT aTeardropVariant, for( VECTOR2I pt: aPoints ) outline->Append(pt.x, pt.y); - // Can be usefull: + // Can be useful: teardrop->CalculateFilledArea(); return teardrop; @@ -335,7 +335,7 @@ int TEARDROP_MANAGER::addTeardropsOnTracks( BOARD_COMMIT* aCommitter ) for( unsigned jj = ii+1; jj < sublist->size(); jj++ ) { - // Seach candidates with thickness > curr thickness + // Search candidates with thickness > curr thickness PCB_TRACK* candidate = (*sublist)[jj]; if( min_width >= candidate->GetWidth() ) diff --git a/pcbnew/teardrop/teardrop.h b/pcbnew/teardrop/teardrop.h index e46f4fa129..06868a0fff 100644 --- a/pcbnew/teardrop/teardrop.h +++ b/pcbnew/teardrop/teardrop.h @@ -247,7 +247,7 @@ private: int m_tolerance; // max distance between a track end point and a pad/via center to // see them connected to ut a teardrop BOARD* m_board; - TEARDROP_PARAMETERS_LIST* m_prmsList; // the teardrop parameters list, from the board desing settings + TEARDROP_PARAMETERS_LIST* m_prmsList; // the teardrop parameters list, from the board design settings std::vector m_createdTdList; // list of new created teardrops }; diff --git a/pcbnew/teardrop/teardrop_utils.cpp b/pcbnew/teardrop/teardrop_utils.cpp index 68c1d8ff11..fa14bdc71d 100644 --- a/pcbnew/teardrop/teardrop_utils.cpp +++ b/pcbnew/teardrop/teardrop_utils.cpp @@ -410,7 +410,7 @@ bool TEARDROP_MANAGER::ComputePointsOnPadVia( TEARDROP_PARAMETERS* aCurrParams, : nullptr; SHAPE_POLY_SET c_buffer; - // aHeightRatio is the factor to calculate the aViaPad teardrop prefered height + // aHeightRatio is the factor to calculate the aViaPad teardrop preferred height // teardrop height = aViaPad size * aHeightRatio (aHeightRatio <= 1.0) // For rectangular (and similar) shapes, the preferred_height is calculated from the min // dim of the rectangle = aViaPad.m_Width @@ -418,7 +418,7 @@ bool TEARDROP_MANAGER::ComputePointsOnPadVia( TEARDROP_PARAMETERS* aCurrParams, int preferred_height = aViaPad.m_Width * aCurrParams->m_HeightRatio; // force_clip_shape = true to force the via/pad polygon to be clipped to follow - // contraints + // constraints // Clipping is also needed for rectangular shapes, because the teardrop shape is // restricted to a polygonal area smaller than the pad area (the teardrop height // use the smaller value of X and Y sizes). @@ -543,7 +543,7 @@ bool TEARDROP_MANAGER::ComputePointsOnPadVia( TEARDROP_PARAMETERS* aCurrParams, } } - if( found_start < 0 ) // PointE was not initalized, because start point does not exit + if( found_start < 0 ) // PointE was not initialized, because start point does not exit { int ii = found_end-1; @@ -553,7 +553,7 @@ bool TEARDROP_MANAGER::ComputePointsOnPadVia( TEARDROP_PARAMETERS* aCurrParams, PointE = hull[ii]; } - if( found_end < 0 ) // PointC was not initalized, because end point does not exit + if( found_end < 0 ) // PointC was not initialized, because end point does not exit { int ii = found_start-1; @@ -692,7 +692,7 @@ bool TEARDROP_MANAGER::computeTeardropPolygonPoints( TEARDROP_PARAMETERS* aCurrP int track_stub_len; // the dist between the start point and the anchor point // on the track - // Note: aTrack can be modified if the inital track is too short + // Note: aTrack can be modified if the initial track is too short if( !findAnchorPointsOnTrack( aCurrParams, start, end, aTrack, aViaPad, &track_stub_len, aFollowTracks, aTrackLookupList ) ) return false; diff --git a/pcbnew/toolbars_footprint_viewer.cpp b/pcbnew/toolbars_footprint_viewer.cpp index f0eb4adb9b..5faab2fbdc 100644 --- a/pcbnew/toolbars_footprint_viewer.cpp +++ b/pcbnew/toolbars_footprint_viewer.cpp @@ -101,7 +101,7 @@ void FOOTPRINT_VIEWER_FRAME::ReCreateHToolbar() UpdateZoomSelectBox(); m_mainToolBar->AddControl( m_zoomSelectBox ); - // Option to run Zoom automatique on footprint selection changge + // Option to run Zoom automatique on footprint selection change m_mainToolBar->AddTool( ID_FPVIEWER_AUTOZOOM_TOOL, wxEmptyString, KiScaledBitmap( BITMAPS::zoom_auto_fit_in_page, this ), _( "Automatic Zoom on footprint change" ), diff --git a/pcbnew/tools/drawing_tool.h b/pcbnew/tools/drawing_tool.h index 29aa44cec1..138d586eab 100644 --- a/pcbnew/tools/drawing_tool.h +++ b/pcbnew/tools/drawing_tool.h @@ -195,7 +195,7 @@ public: int SetAnchor( const TOOL_EVENT& aEvent ); /** - * Toggle the horizontal/veritcal/45-degree constraint for drawing tools. + * Toggle the horizontal/vertical/45-degree constraint for drawing tools. */ int ToggleHV45Mode( const TOOL_EVENT& toolEvent ); diff --git a/pcbnew/tools/pcb_selection_tool.cpp b/pcbnew/tools/pcb_selection_tool.cpp index d227665908..9dd88ca910 100644 --- a/pcbnew/tools/pcb_selection_tool.cpp +++ b/pcbnew/tools/pcb_selection_tool.cpp @@ -1845,7 +1845,7 @@ void PCB_SELECTION_TOOL::FindItem( BOARD_ITEM* aItem ) m_frame->FocusOnLocation( aItem->GetPosition() ); } - // If the item has a bouding box, then zoom out if needed + // If the item has a bounding box, then zoom out if needed if( aItem->GetBoundingBox().GetHeight() > 0 && aItem->GetBoundingBox().GetWidth() > 0 ) { // This adds some margin @@ -1876,7 +1876,7 @@ void PCB_SELECTION_TOOL::FindItem( BOARD_ITEM* aItem ) { pcbView->SetScale( pcbView->GetScale() * ( scale ) ); - //Let's refocus because there is an algortihm to avoid dialogs in there. + //Let's refocus because there is an algorithm to avoid dialogs in there. m_frame->FocusOnLocation( aItem->GetCenter() ); } } diff --git a/pcbnew/tracks_cleaner.cpp b/pcbnew/tracks_cleaner.cpp index 22f713b72c..9a444265b4 100644 --- a/pcbnew/tracks_cleaner.cpp +++ b/pcbnew/tracks_cleaner.cpp @@ -659,7 +659,7 @@ bool TRACKS_CLEANER::mergeCollinearSegments( PCB_TRACK* aSeg1, PCB_TRACK* aSeg2 // If the existing connected points are not the same as the points generated by our // min/max alg, then assign the missing points to the end closest. This ensures that - // our replacment track is still connected + // our replacement track is still connected for( auto pt : pts ) { if( !dummy_seg.IsPointOnEnds( wxPoint( pt.x, pt.y ) ) ) diff --git a/pcbnew/zone.cpp b/pcbnew/zone.cpp index 5e23464c25..8648625386 100644 --- a/pcbnew/zone.cpp +++ b/pcbnew/zone.cpp @@ -748,7 +748,7 @@ bool ZONE::AppendCorner( VECTOR2I aPosition, int aHoleIdx, bool aAllowDuplicatio // If aHoleIdx >= 0, the corner musty be added to the hole, index aHoleIdx. // (remember: the index of the first hole is 0) - // Return error if if does dot exist. + // Return error if it does not exist. if( aHoleIdx >= m_Poly->HoleCount( 0 ) ) return false; diff --git a/pcbnew/zone.h b/pcbnew/zone.h index 3dde8f6038..649f501cc0 100644 --- a/pcbnew/zone.h +++ b/pcbnew/zone.h @@ -839,7 +839,7 @@ protected: bool m_isRuleArea; /* A zone outline can be a teardrop zone with different rules for priority - * (alway bigger priority than copper zones) and never removed from a + * (always bigger priority than copper zones) and never removed from a * copper zone having the same netcode */ TEARDROP_TYPE m_teardropType;