diff --git a/bitmap2component/bitmap2cmp_gui.h b/bitmap2component/bitmap2cmp_gui.h
index bf01894db7..fca3ee70f1 100644
--- a/bitmap2component/bitmap2cmp_gui.h
+++ b/bitmap2component/bitmap2cmp_gui.h
@@ -113,7 +113,7 @@ private:
void exportEeschemaFormat();
/**
- * Generate a module in S expr format
+ * Generate a footprint in S expr format
*/
void exportPcbnewFormat();
diff --git a/cvpcb/cvpcb_mainframe.h b/cvpcb/cvpcb_mainframe.h
index 60db20d772..a8a0967acb 100644
--- a/cvpcb/cvpcb_mainframe.h
+++ b/cvpcb/cvpcb_mainframe.h
@@ -307,11 +307,10 @@ public:
/**
* Function LoadFootprintFiles
* reads the list of footprint (*.mod files) and generate the list of footprints.
- * for each module are stored
- * the module name
+ * for each footprint are stored
+ * the footprint name
* documentation string
* associated keywords
- * m_ModuleLibNames is the list of library that must be read (loaded)
* fills m_footprints
* @return true if libraries are found, false otherwise.
*/
diff --git a/eeschema/sch_edit_frame.h b/eeschema/sch_edit_frame.h
index 92c5c271e1..f218febd92 100644
--- a/eeschema/sch_edit_frame.h
+++ b/eeschema/sch_edit_frame.h
@@ -218,7 +218,7 @@ public:
/**
* Execute a remote command sent by Pcbnew via a socket connection.
*
- * When user selects a module or pin in Pcbnew, Eeschema shows that same
+ * When user selects a footprint or pin in Pcbnew, Eeschema shows that same
* component or pin and moves cursor on the item. The socket port used
* is #KICAD_SCH_PORT_SERVICE_NUMBER which defaults to 4243.
*
diff --git a/pcbnew/dialogs/dialog_board_reannotate.cpp b/pcbnew/dialogs/dialog_board_reannotate.cpp
index 58a6c6b988..e41be6fc5a 100644
--- a/pcbnew/dialogs/dialog_board_reannotate.cpp
+++ b/pcbnew/dialogs/dialog_board_reannotate.cpp
@@ -781,8 +781,8 @@ bool DIALOG_BOARD_REANNOTATE::BuildFootprintList( std::vector& aBadR
}
}
- if(( fpData.Front && annotateBack ) || // If a front module and doing backs only
- ( !fpData.Front && annotateFront ) || // If a back module and doing front only
+ if(( fpData.Front && annotateBack ) || // If a front fp and doing backs only
+ ( !fpData.Front && annotateFront ) || // If a back fp and doing front only
( footprint->IsLocked() && skipLocked ) ) // If excluding locked and it is locked
{
fpData.Action = Exclude;
diff --git a/pcbnew/dialogs/panel_fp_lib_table.cpp b/pcbnew/dialogs/panel_fp_lib_table.cpp
index edf0d52783..ea7f54bbfe 100644
--- a/pcbnew/dialogs/panel_fp_lib_table.cpp
+++ b/pcbnew/dialogs/panel_fp_lib_table.cpp
@@ -753,7 +753,7 @@ void PANEL_FP_LIB_TABLE::browseLibrariesHandler( wxCommandEvent& event )
// So we must set the file type based on it
if( event.GetEventType() == wxEVT_BUTTON )
{
- // Let's default to adding a kicad module for just the module
+ // Let's default to adding a kicad footprint file for just the footprint
fileTypeIt = fileTypes().find( ID_PANEL_FPLIB_ADD_KICADMOD );
}
else
diff --git a/pcbnew/exporters/export_footprints_placefile.cpp b/pcbnew/exporters/export_footprints_placefile.cpp
index 89b0d45286..fb66112998 100644
--- a/pcbnew/exporters/export_footprints_placefile.cpp
+++ b/pcbnew/exporters/export_footprints_placefile.cpp
@@ -339,12 +339,12 @@ std::string PLACE_FILE_EXPORTER::GenReportData()
buffer += "\n";
- wxPoint module_pos = footprint->GetPosition();
- module_pos -= m_place_Offset;
+ wxPoint footprint_pos = footprint->GetPosition();
+ footprint_pos -= m_place_Offset;
sprintf( line, "position %9.6f %9.6f orientation %.2f\n",
- module_pos.x * conv_unit,
- module_pos.y * conv_unit,
+ footprint_pos.x * conv_unit,
+ footprint_pos.y * conv_unit,
footprint->GetOrientation() / 10.0 );
buffer += line;
diff --git a/pcbnew/footprint_libraries_utils.cpp b/pcbnew/footprint_libraries_utils.cpp
index c4a41d6d8e..25afba282d 100644
--- a/pcbnew/footprint_libraries_utils.cpp
+++ b/pcbnew/footprint_libraries_utils.cpp
@@ -64,7 +64,7 @@ static const wxString INFO_LEGACY_LIB_WARN_DELETE(
/**
- * Prompt the user for a module file to open.
+ * Prompt the user for a footprint file to open.
* @param aParent - parent window for the dialog
* @param aLastPath - last opened path
*/
@@ -96,7 +96,7 @@ static wxFileName getFootprintFilenameFromUser( wxWindow* aParent, const wxStrin
* Read a file to detect the type.
* @param aFile - open file to be read. File pointer will be closed.
* @param aFileName - file name to be read
- * @param aName - wxString to receive the module name iff type is LEGACY
+ * @param aName - wxString to receive the footprint name iff type is LEGACY
*/
static IO_MGR::PCB_FILE_T detect_file_type( FILE* aFile, const wxFileName& aFileName,
wxString* aName )
@@ -148,22 +148,17 @@ static IO_MGR::PCB_FILE_T detect_file_type( FILE* aFile, const wxFileName& aFile
* @param aFileType - type of the file
* @param aName - name of the footprint
*/
-static FOOTPRINT* parse_module_with_plugin( const wxFileName& aFileName,
- IO_MGR::PCB_FILE_T aFileType,
- const wxString& aName )
+static FOOTPRINT* parse_footprint_with_plugin( const wxFileName& aFileName,
+ IO_MGR::PCB_FILE_T aFileType,
+ const wxString& aName )
{
wxString path;
switch( aFileType )
{
- case IO_MGR::GEDA_PCB:
- path = aFileName.GetPath();
- break;
- case IO_MGR::LEGACY:
- path = aFileName.GetFullPath();
- break;
- default:
- wxFAIL_MSG( wxT( "unexpected IO_MGR::PCB_FILE_T" ) );
+ case IO_MGR::GEDA_PCB: path = aFileName.GetPath(); break;
+ case IO_MGR::LEGACY: path = aFileName.GetFullPath(); break;
+ default: wxFAIL_MSG( wxT( "unexpected IO_MGR::PCB_FILE_T" ) ); break;
}
PLUGIN::RELEASER pi( IO_MGR::PluginFind( aFileType ) );
@@ -176,7 +171,7 @@ static FOOTPRINT* parse_module_with_plugin( const wxFileName& aFileName,
* Parse a KICAD footprint.
* @param aFileName - file name to parse
*/
-static FOOTPRINT* parse_module_kicad( const wxFileName& aFileName )
+static FOOTPRINT* parse_footprint_kicad( const wxFileName& aFileName )
{
wxString fcontents;
PCB_IO pcb_io;
@@ -206,11 +201,11 @@ FOOTPRINT* try_load_footprint( const wxFileName& aFileName, IO_MGR::PCB_FILE_T a
{
case IO_MGR::GEDA_PCB:
case IO_MGR::LEGACY:
- footprint = parse_module_with_plugin( aFileName, aFileType, aName );
+ footprint = parse_footprint_with_plugin( aFileName, aFileType, aName );
break;
case IO_MGR::KICAD_SEXP:
- footprint = parse_module_kicad( aFileName );
+ footprint = parse_footprint_kicad( aFileName );
break;
default:
diff --git a/pcbnew/import_gfx/dxf_import_plugin.cpp b/pcbnew/import_gfx/dxf_import_plugin.cpp
index abea80299f..a1371a525f 100644
--- a/pcbnew/import_gfx/dxf_import_plugin.cpp
+++ b/pcbnew/import_gfx/dxf_import_plugin.cpp
@@ -56,12 +56,12 @@ DXF_IMPORT_PLUGIN::DXF_IMPORT_PLUGIN() : DL_CreationAdapter()
{
m_xOffset = 0.0; // X coord offset for conversion (in mm)
m_yOffset = 0.0; // Y coord offset for conversion (in mm)
- m_DXF2mm = 1.0; // The scale factor to convert DXF units to mm
+ m_dxf2mm = 1.0; // The scale factor to convert DXF units to mm
m_version = 0; // the dxf version, not yet used
m_inBlock = false; // Discard blocks
m_defaultThickness = 0.2; // default thickness (in mm)
m_brdLayer = Dwgs_User; // The default import layer
- m_importAsfootprintGraphicItems = true;
+ m_importAsFPShapes = true;
m_minX = m_minY = std::numeric_limits::max();
m_maxX = m_maxY = std::numeric_limits::min();
}
@@ -110,19 +110,19 @@ void DXF_IMPORT_PLUGIN::SetImporter( GRAPHICS_IMPORTER* aImporter )
double DXF_IMPORT_PLUGIN::mapX( double aDxfCoordX )
{
- return SCALE_FACTOR( m_xOffset + ( aDxfCoordX * m_DXF2mm ) );
+ return SCALE_FACTOR( m_xOffset + ( aDxfCoordX * m_dxf2mm ) );
}
double DXF_IMPORT_PLUGIN::mapY( double aDxfCoordY )
{
- return SCALE_FACTOR( m_yOffset - ( aDxfCoordY * m_DXF2mm ) );
+ return SCALE_FACTOR( m_yOffset - ( aDxfCoordY * m_dxf2mm ) );
}
double DXF_IMPORT_PLUGIN::mapDim( double aDxfValue )
{
- return SCALE_FACTOR( aDxfValue * m_DXF2mm );
+ return SCALE_FACTOR( aDxfValue * m_dxf2mm );
}
@@ -275,16 +275,16 @@ void DXF_IMPORT_PLUGIN::addVertex( const DL_VertexData& aData )
if( m_curr_entity.m_EntityParseStatus == 1 ) // This is the first vertex of an entity
{
- m_curr_entity.m_LastCoordinate.x = m_xOffset + vertex->x * m_DXF2mm;
- m_curr_entity.m_LastCoordinate.y = m_yOffset - vertex->y * m_DXF2mm;
+ m_curr_entity.m_LastCoordinate.x = m_xOffset + vertex->x * m_dxf2mm;
+ m_curr_entity.m_LastCoordinate.y = m_yOffset - vertex->y * m_dxf2mm;
m_curr_entity.m_PolylineStart = m_curr_entity.m_LastCoordinate;
m_curr_entity.m_BulgeVertex = vertex->bulge;
m_curr_entity.m_EntityParseStatus = 2;
return;
}
- VECTOR2D seg_end( m_xOffset + vertex->x * m_DXF2mm,
- m_yOffset - vertex->y * m_DXF2mm );
+ VECTOR2D seg_end( m_xOffset + vertex->x * m_dxf2mm,
+ m_yOffset - vertex->y * m_dxf2mm );
if( std::abs( m_curr_entity.m_BulgeVertex ) < MIN_BULGE )
insertLine( m_curr_entity.m_LastCoordinate, seg_end, lineWidth );
@@ -709,51 +709,51 @@ void DXF_IMPORT_PLUGIN::setVariableInt( const std::string& key, int value, int c
switch( value )
{
case 1: // inches
- m_DXF2mm = 25.4;
+ m_dxf2mm = 25.4;
break;
case 2: // feet
- m_DXF2mm = 304.8;
+ m_dxf2mm = 304.8;
break;
case 4: // mm
- m_DXF2mm = 1.0;
+ m_dxf2mm = 1.0;
break;
case 5: // centimeters
- m_DXF2mm = 10.0;
+ m_dxf2mm = 10.0;
break;
case 6: // meters
- m_DXF2mm = 1000.0;
+ m_dxf2mm = 1000.0;
break;
case 8: // microinches
- m_DXF2mm = 2.54e-5;
+ m_dxf2mm = 2.54e-5;
break;
case 9: // mils
- m_DXF2mm = 0.0254;
+ m_dxf2mm = 0.0254;
break;
case 10: // yards
- m_DXF2mm = 914.4;
+ m_dxf2mm = 914.4;
break;
case 11: // Angstroms
- m_DXF2mm = 1.0e-7;
+ m_dxf2mm = 1.0e-7;
break;
case 12: // nanometers
- m_DXF2mm = 1.0e-6;
+ m_dxf2mm = 1.0e-6;
break;
case 13: // micrometers
- m_DXF2mm = 1.0e-3;
+ m_dxf2mm = 1.0e-3;
break;
case 14: // decimeters
- m_DXF2mm = 100.0;
+ m_dxf2mm = 100.0;
break;
default:
@@ -767,7 +767,7 @@ void DXF_IMPORT_PLUGIN::setVariableInt( const std::string& key, int value, int c
// 18: AU
// 19: lightyears
// 20: parsecs
- m_DXF2mm = 1.0;
+ m_dxf2mm = 1.0;
break;
}
diff --git a/pcbnew/import_gfx/dxf_import_plugin.h b/pcbnew/import_gfx/dxf_import_plugin.h
index d2def32711..6d3a88e444 100644
--- a/pcbnew/import_gfx/dxf_import_plugin.h
+++ b/pcbnew/import_gfx/dxf_import_plugin.h
@@ -125,26 +125,25 @@ public:
class DXF_IMPORT_PLUGIN : public GRAPHICS_IMPORT_PLUGIN, public DL_CreationAdapter
{
private:
- double m_xOffset; // X coord offset for conversion (in mm)
- double m_yOffset; // Y coord offset for conversion (in mm)
- double m_defaultThickness; // default line thickness for conversion (in mm)
- double m_DXF2mm; // The scale factor to convert DXF units to mm
- int m_brdLayer; // The board layer to place imported DXF items
- int m_version; // the dxf version, not used here
- bool m_inBlock; // Are we parsing a block
- std::string m_codePage; // The code page, not used here
- bool m_importAsfootprintGraphicItems; // Use module items instead of board items when true.
- // true when the items are imported in the footprint editor
- std::string m_messages; // messages generated during dxf file parsing.
- // Each message ends by '\n'
+ double m_xOffset; // X coord offset for conversion (in mm)
+ double m_yOffset; // Y coord offset for conversion (in mm)
+ double m_defaultThickness; // default line thickness for conversion (in mm)
+ double m_dxf2mm; // The scale factor to convert DXF units to mm
+ int m_brdLayer; // The board layer to place imported DXF items
+ int m_version; // the dxf version, not used here
+ bool m_inBlock; // Are we parsing a block
+ std::string m_codePage; // The code page, not used here
+ bool m_importAsFPShapes; // Use footprint items instead of board items when true.
+ // true when the items are imported in the footprint editor
+ std::string m_messages; // messages generated during dxf file parsing.
+ // Each message ends by '\n'
DXF2BRD_ENTITY_DATA m_curr_entity; // the current entity parameters when parsing a DXF entity
- double m_minX, m_maxX; // handles image size in mm
- double m_minY, m_maxY; // handles image size in mm
+ double m_minX, m_maxX; // handles image size in mm
+ double m_minY, m_maxY; // handles image size in mm
GRAPHICS_IMPORTER_BUFFER m_internalImporter;
-
public:
DXF_IMPORT_PLUGIN();
~DXF_IMPORT_PLUGIN();
@@ -177,7 +176,7 @@ public:
*/
void ImportAsFootprintGraphic( bool aImportAsFootprintGraphic )
{
- m_importAsfootprintGraphicItems = aImportAsFootprintGraphic;
+ m_importAsFPShapes = aImportAsFootprintGraphic;
}
diff --git a/pcbnew/plugins/kicad/kicad_plugin.cpp b/pcbnew/plugins/kicad/kicad_plugin.cpp
index 39b71d846a..d7f345dd2a 100644
--- a/pcbnew/plugins/kicad/kicad_plugin.cpp
+++ b/pcbnew/plugins/kicad/kicad_plugin.cpp
@@ -53,10 +53,10 @@ using namespace PCB_KEYS_T;
/**
* Helper class for creating a footprint library cache.
*
- * The new footprint library design is a file path of individual module files
- * that contain a single module per file. This class is a helper only for the
- * footprint portion of the PLUGIN API, and only for the #PCB_IO plugin. It is
- * private to this implementation file so it is not placed into a header.
+ * The new footprint library design is a file path of individual footprint files that contain
+ * a single footprint per file. This class is a helper only for the footprint portion of the
+ * PLUGIN API, and only for the #PCB_IO plugin. It is private to this implementation file so
+ * it is not placed into a header.
*/
class FP_CACHE_ITEM
{
@@ -294,7 +294,7 @@ void FP_CACHE::Remove( const wxString& aFootprintName )
THROW_IO_ERROR( msg );
}
- // Remove the module from the cache and delete the module file from the library.
+ // Remove the footprint from the cache and delete the footprint file from the library.
wxString fullPath = it->second->GetFileName().GetFullPath();
m_footprints.erase( aFootprintName );
wxRemoveFile( fullPath );
@@ -620,8 +620,8 @@ void PCB_IO::formatHeader( BOARD* aBoard, int aNestLevel ) const
void PCB_IO::format( BOARD* aBoard, int aNestLevel ) const
{
- std::set sorted_modules( aBoard->Footprints().begin(),
- aBoard->Footprints().end() );
+ std::set sorted_footprints( aBoard->Footprints().begin(),
+ aBoard->Footprints().end() );
std::set sorted_drawings( aBoard->Drawings().begin(),
aBoard->Drawings().end() );
std::set