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

Fix source comment/doc typos (follow-up)

Found via `codespell -q 3 -S *.po,./thirdparty -L aactual,acount,aline,alocation,alog,anormal,anumber,aother,apoints,aparent,aray,dout,einstance,modul,ot,overide,serie,te,,tesselate,tesselator,tht`
This commit is contained in:
luz paz 2021-07-03 18:37:31 -04:00 committed by Roberto Fernandez Bautista
parent 1151783a34
commit 0446d35f0d
36 changed files with 47 additions and 47 deletions

View File

@ -49,7 +49,7 @@ cmake_dependent_option( BUILD_SMALL_DEBUG_FILES "In debug build: create smaller
#
# KiCad build options should be added below.
#
# If you add a new build option, please add it's state to the
# If you add a new build option, please add its state to the
# OnCopyVersionInfo() function in common/dialog_about/dialog_about.cpp
# so that build option settings can be included in bug reports.
#

View File

@ -37,7 +37,7 @@ if( PYTHON_SITE_PACKAGE_PATH )
endif()
if( VCPKG_TOOLCHAIN )
# python 3.8+ requires us to use python to add additiona load directories (PATH no longer supported)
# python 3.8+ requires us to use python to add additional load directories (PATH no longer supported)
# vcpkg does not copy all the dlls into the python folder so we need this for development
# as the wxpython modules need the wxwidgets library DLLs to load
set( _py_dll "import os;os.add_dll_directory(\"${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/bin\");os.add_dll_directory(\"${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/bin\");" )

View File

@ -256,7 +256,7 @@ bool PGM_BASE::InitPgm( bool aHeadless )
if( !m_settings_manager->IsOK() )
return false;
// Set up built-in environment variables (and override them from the system enviroment if set)
// Set up built-in environment variables (and override them from the system environment if set)
GetCommonSettings()->InitializeEnvironment();
// Load common settings from disk after setting up env vars

View File

@ -60,7 +60,7 @@ wxString ConvertToNewOverbarNotation( const wxString& aOldStr )
{
if( ++lookahead != aOldStr.end() && *lookahead == '{' )
{
// This way the subseqent opening curly brace will not start an
// This way the subsequent opening curly brace will not start an
// overbar.
newStr << "~~{}";
continue;

View File

@ -44,7 +44,7 @@ public:
void Add( const wxString& aRef, const wxString& aFpSchName, const wxString& aFpCmpName );
/**
* @param aReference is the compoent schematic reference.
* @param aReference is the component schematic reference.
* @return the selection option:
* 0 for fpid text from the netlist
* 1 for fpid text from the cmp file

View File

@ -52,7 +52,7 @@ class testundoredo2(ActionPlugin):
def createFPCXFootprint(self,pads):
size_025_160mm = wxSizeMM(0.25,1.6)
size_150_200mm = wxSizeMM(1.50,2.0)
# create a new footprint, it's parent is our previously created pcb
# create a new footprint, its parent is our previously created pcb
footprint = FOOTPRINT(self.pcb)
footprint.SetReference("FPC"+str(pads)) # give it a reference name
footprint.Reference().SetPosition(wxPointMM(-1,-1))

View File

@ -676,7 +676,7 @@ void SCH_EDIT_FRAME::doCloseWindow()
RecordERCExclusions();
// Close the find dialog and preserve it's setting if it is displayed.
// Close the find dialog and preserve its setting if it is displayed.
if( m_findReplaceDialog )
{
m_findStringHistoryList = m_findReplaceDialog->GetFindEntries();

View File

@ -886,12 +886,12 @@ private:
void initScreenZoom();
/**
* Verify that the symbol library links \a aSheet and all of it's child sheets have
* Verify that the symbol library links \a aSheet and all of its child sheets have
* been remapped to the symbol library table.
*
* @param aSheet is the #SCH_SHEET object to test.
*
* @return true if \a aSheet and it's child sheets have not been remapped.
* @return true if \a aSheet and its child sheets have not been remapped.
*/
bool checkForNoFullyDefinedLibIds( SCH_SHEET* aSheet );

View File

@ -2330,7 +2330,7 @@ SCH_SYMBOL* SCH_SEXPR_PARSER::parseSchematicSymbol()
break;
case T_property:
// The field parent symbol must be set and it's orientation must be set before
// The field parent symbol must be set and its orientation must be set before
// the field positions are set.
field = parseSchField( symbol.get() );

View File

@ -2087,7 +2087,7 @@ void SCH_SEXPR_PLUGIN_CACHE::DeleteSymbol( const wxString& aSymbolName )
{
LIB_SYMBOL* rootSymbol = symbol;
// Remove the root symbol and all it's children.
// Remove the root symbol and all its children.
m_symbols.erase( it );
LIB_SYMBOL_MAP::iterator it1 = m_symbols.begin();

View File

@ -801,7 +801,7 @@ void SCH_LEGACY_PLUGIN::loadFile( const wxString& aFileName, SCH_SCREEN* aScreen
LoadContent( reader, aScreen, m_version );
// Unfortunately schematic files prior to version 2 are not terminated with $EndSCHEMATC
// so checking for it's existance will fail so just exit here and take our chances. :(
// so checking for its existance will fail so just exit here and take our chances. :(
if( m_version > 1 )
{
char* line = reader.Line();
@ -4225,7 +4225,7 @@ void SCH_LEGACY_PLUGIN_CACHE::DeleteSymbol( const wxString& aSymbolName )
{
LIB_SYMBOL* rootSymbol = symbol;
// Remove the root symbol and all it's children.
// Remove the root symbol and all its children.
m_symbols.erase( it );
LIB_SYMBOL_MAP::iterator it1 = m_symbols.begin();

View File

@ -203,7 +203,7 @@ void SCH_SCREEN::Append( SCH_SCREEN* aScreen )
{
wxCHECK_RET( aScreen, "Invalid screen object." );
// No need to descend the hierarchy. Once the top level screen is copied, all of it's
// No need to descend the hierarchy. Once the top level screen is copied, all of its
// children are copied as well.
for( auto aItem : aScreen->m_rtree )
Append( aItem );

View File

@ -231,7 +231,7 @@ wxString SCH_SHEET_PATH::PathAsString() const
s = wxT( "/" ); // This is the root path
// Start at 1 to avoid the root sheet, which does not need to be added to the path.
// It's timestamp changes anyway.
// Its timestamp changes anyway.
for( unsigned i = 1; i < size(); i++ )
s += at( i )->m_Uuid.AsString() + "/";

View File

@ -68,7 +68,7 @@ struct SCH_SHEET_INSTANCE
*
* A hierarchical schematic uses sheets (hierarchical sheets) included in a given sheet.
* Each sheet corresponds to a schematic drawing handled by a SCH_SCREEN structure. A
* SCH_SCREEN structure contains drawings, and have a filename to write it's data. Also a
* SCH_SCREEN structure contains drawings, and have a filename to write its data. Also a
* SCH_SCREEN displays a sheet number and the name of the sheet.
*
* In simple (and flat) hierarchies a sheet is linked to a SCH_SCREEN, and a SCH_SCREEN is
@ -346,7 +346,7 @@ public:
bool TestForRecursion( const wxString& aSrcFileName, const wxString& aDestFileName );
/**
* Make the sheet file name relative to it's parent sheet.
* Make the sheet file name relative to its parent sheet.
*
* This should only be called when changing the parent sheet path such performing a save
* as or a new schematic without a project in stand alone mode. The sheet file name is

View File

@ -81,7 +81,7 @@ bool SCH_EDIT_FRAME::checkForNoFullyDefinedLibIds( SCH_SHEET* aSheet )
if( newScreens.HasNoFullyDefinedLibIds() )
{
msg.Printf( _( "The schematic '%s' has not had it's symbol library links remapped "
msg.Printf( _( "The schematic '%s' has not had its symbol library links remapped "
"to the symbol library table. The project this schematic belongs to "
"must first be remapped before it can be imported into the current "
"project." ),

View File

@ -61,7 +61,7 @@ private:
*
* The passed vector<int> will be returned with the same number of elements
* as there are Gerber files. The indices into it are 1:1 with the loaded Gerber
* files. Any Gerber that maps will have it's entry set to the KiCad PCB layer
* files. Any Gerber that maps will have its entry set to the KiCad PCB layer
* number. Gerbers that can be identified or which don't map to an
* equivalent KiCad PCB layer will be set to UNSELECTED_LAYER.
*
@ -76,7 +76,7 @@ private:
*
* The passed vector<int> will be returned with the same number of elements
* as there are Gerber files. The indices into it are 1:1 with the loaded Gerber
* files. Any Gerber that maps will have it's entry set to the KiCad PCB layer
* files. Any Gerber that maps will have its entry set to the KiCad PCB layer
* number. Gerbers that aren't using Altium extensions or which don't map to an
* equivalent KiCad PCB layer will be set to UNSELECTED_LAYER.
*
@ -91,7 +91,7 @@ private:
*
* The passed vector<int> will be returned with the same number of elements
* as there are Gerber files. The indices into it are 1:1 with the loaded Gerber
* files. Any Gerber that maps will have it's entry set to the KiCad PCB layer
* files. Any Gerber that maps will have its entry set to the KiCad PCB layer
* number. Gerbers that aren't using KiCad naming or which don't map to an
* equivalent KiCad PCB layer will be set to UNSELECTED_LAYER.
*
@ -106,7 +106,7 @@ private:
*
* The passed vector<int> will be returned with the same number of elements
* as there are Gerber files. The indices into it are 1:1 with the loaded Gerber
* files. Any Gerber that maps will have it's entry set to the KiCad PCB layer
* files. Any Gerber that maps will have its entry set to the KiCad PCB layer
* number. Gerbers that aren't using X2 File functions or which don't map to an
* equivalent KiCad PCB layer will be set to UNSELECTED_LAYER.
*

View File

@ -192,8 +192,8 @@ void GERBER_FILE_IMAGE::ResetDefaultValues()
m_Offset.x = 0;
m_Offset.y = 0; // Coord Offset, from OF command
m_Scale.x = m_Scale.y = 1.0; // scale (A and B) this layer
m_MirrorA = false; // true: miror / axe A (default = X)
m_MirrorB = false; // true: miror / axe B (default = Y)
m_MirrorA = false; // true: mirror / axe A (default = X)
m_MirrorB = false; // true: mirror / axe B (default = Y)
m_SwapAxis = false; // false if A = X, B = Y; true if A =Y, B = Y
m_Has_DCode = false; // true = DCodes in file
// false = no DCode-> perhaps deprecated RS274D file

View File

@ -214,7 +214,7 @@ public:
/**
* Return the current coordinate type pointed to by InnJnn Text (InnnnJmmmm)
*
* These coordinates are relative, so if coordinate is absent, it's value
* These coordinates are relative, so if coordinate is absent, its value
* defaults to 0
*/
wxPoint ReadIJCoord( char*& Text );

View File

@ -96,7 +96,7 @@ private:
wxFileName m_filename;
wxArrayString m_GerberFiles; // List of gerber files in job
// Convert a JSON string, that uses escaped sequence of 4 hexdecimal digits
// Convert a JSON string, that uses escaped sequence of 4 hexadecimal digits
// to encode unicode chars when not ASCII7 codes
// json11 converts this sequence to UTF8 string
wxString formatStringFromJSON( const std::string& name );
@ -166,7 +166,7 @@ bool GERBER_JOBFILE_READER::ReadGerberJobFile()
wxString GERBER_JOBFILE_READER::formatStringFromJSON( const std::string& name )
{
// Convert a JSON string, that uses a escaped sequence of 4 hexdecimal digits
// Convert a JSON string, that uses a escaped sequence of 4 hexadecimal digits
// to encode unicode chars
// Our json11 library returns in this case a UTF8 sequence. Just convert it to
// a wxString.

View File

@ -183,7 +183,7 @@ wxPoint GERBER_FILE_IMAGE::ReadXYCoord( char*& Text, bool aExcellonMode )
/* Returns the current coordinate type pointed to by InnJnn Text (InnnnJmmmm)
* These coordinates are relative, so if coordinate is absent, it's value
* These coordinates are relative, so if coordinate is absent, its value
* defaults to 0
*/
wxPoint GERBER_FILE_IMAGE::ReadIJCoord( char*& Text )

View File

@ -120,7 +120,7 @@ public:
int GetItemIndex( DS_DATA_ITEM* aItem ) const;
/**
* @return is the item from it's index \a aIdx, or NULL if does not exist.
* @return is the item from its index \a aIdx, or NULL if does not exist.
*/
DS_DATA_ITEM* GetItem( unsigned aIdx ) const;

View File

@ -748,7 +748,7 @@ protected:
* around.
*
* Each panel has rows, starting at 0. Each row has positions starting at 0. Each item in a panel
* can have it's row and position set.
* can have its row and position set.
*
* Eventually panels will be movable. Each initialization function sets up the panel for this,
* then after a //==// break has additional calls to anchor toolbars in a way that matches

View File

@ -121,7 +121,7 @@ struct PARSE_ERROR : public IO_ERROR
int byteIndex; ///< at which byte offset within the line, 1 based index
/// problem line of input [say, from a LINE_READER].
/// this is brought up in original byte format rather than wxString form, incase
/// this is brought up in original byte format rather than wxString form, in case
/// there was a problem with the encoding, in which case converting to wxString is
/// not reliable in this context.
std::string inputLine;

View File

@ -293,7 +293,7 @@ public:
virtual void Parse( LIB_TABLE_LEXER* aLexer ) = 0;
/**
* Generate the table in s-expression format to \a aOutput with an indention level
* Generate the table in s-expression format to \a aOutput with an indentation level
* of \a aIndentLevel.
*
* @param aOutput is the #OUTPUTFORMATTER to format the table into.

View File

@ -84,7 +84,7 @@ public:
/**
* Set the draw at zero flag.
*
* When set the marker will be drawn when it's position is 0,0. Otherwise it will not
* When set the marker will be drawn when its position is 0,0. Otherwise it will not
* be drawn when its position is 0,0.
*
* @param aDrawFlag The value to set the draw at zero flag.

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