7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-14 16:19:36 +00:00

First pass renaming module to footprint

This is mostly in comments and the few remainin text strings that
reference module
This commit is contained in:
Seth Hillbrand 2020-10-20 20:48:06 -07:00
parent 06bf7943b7
commit f8a4edb1c9
62 changed files with 140 additions and 140 deletions

View File

@ -290,7 +290,7 @@ void S3D_PLUGIN_MANAGER::listPlugins( const wxString& aPath,
{
// list potential plugins given a search path
wxString nameFilter; // filter for user-loadable libraries (aka modules)
wxString nameFilter; // filter for user-loadable libraries (aka footprints)
wxString lName; // stores name of enumerated files
wxString fName; // full name of file
wxDir wd;

View File

@ -231,7 +231,7 @@ class BOARD_ADAPTER
/**
* @brief GetModulesZcoord3DIU - Get the position of the module in 3d integer units
* considering if it is flipped or not.
* @param aIsFlipped: true for use in modules on Front (top) layer, false
* @param aIsFlipped: true for use in footprints on Front (top) layer, false
* if module is on back (bottom) layer
* @return the Z position of 3D shapes, in 3D integer units
*/

View File

@ -224,7 +224,7 @@ void BOARD_ADAPTER::AddGraphicsShapesWithClearanceToContainer( const MODULE* aMo
}
}
// Convert texts sur modules
// Convert texts sur footprints
if( aModule->Reference().GetLayer() == aLayerId && aModule->Reference().IsVisible() )
texts.push_back( &aModule->Reference() );

View File

@ -458,7 +458,7 @@ void BOARD_ADAPTER::createLayers( REPORTER* aStatusReporter )
}
}
// Add holes of modules
// Add holes of footprints
// /////////////////////////////////////////////////////////////////////////
for( MODULE* module : m_board->Modules() )
{
@ -534,7 +534,7 @@ void BOARD_ADAPTER::createLayers( REPORTER* aStatusReporter )
const bool renderPlatedPadsAsPlated = GetFlag( FL_RENDER_PLATED_PADS_AS_PLATED );
// Add modules PADs objects to containers
// Add footprints PADs objects to containers
for( PCB_LAYER_ID curr_layer_id : layer_id )
{
wxASSERT( m_layers_container2D.find( curr_layer_id ) != m_layers_container2D.end() );
@ -549,7 +549,7 @@ void BOARD_ADAPTER::createLayers( REPORTER* aStatusReporter )
AddPadsShapesWithClearanceToContainer( module, layerContainer, curr_layer_id, 0,
true, renderPlatedPadsAsPlated, false );
// Micro-wave modules may have items on copper layers
// Micro-wave footprints may have items on copper layers
AddGraphicsShapesWithClearanceToContainer( module, layerContainer, curr_layer_id, 0 );
}
}
@ -567,7 +567,7 @@ void BOARD_ADAPTER::createLayers( REPORTER* aStatusReporter )
}
}
// Add modules PADs poly contourns (vertical outlines)
// Add footprints PADs poly contourns (vertical outlines)
if( GetFlag( FL_RENDER_OPENGL_COPPER_THICKNESS )
&& ( m_render_engine == RENDER_ENGINE::OPENGL_LEGACY ) )
{
@ -980,7 +980,7 @@ void BOARD_ADAPTER::createLayers( REPORTER* aStatusReporter )
}
// Add modules tech layers - objects
// Add footprints tech layers - objects
// /////////////////////////////////////////////////////////////////////
for( MODULE* module : m_board->Modules() )
{
@ -1008,7 +1008,7 @@ void BOARD_ADAPTER::createLayers( REPORTER* aStatusReporter )
}
// Add modules tech layers - contours
// Add footprints tech layers - contours
for( MODULE* module : m_board->Modules() )
{
if( (curr_layer_id == F_SilkS) || (curr_layer_id == B_SilkS) )

View File

@ -271,7 +271,7 @@ private:
bool m_opengl_supports_raytracing;
bool m_render_raytracing_was_requested;
CCONTAINER m_3DShapes_container; // Holds 3D shapes from modules
CCONTAINER m_3DShapes_container; // Holds 3D shapes from footprints
CGENERICACCELERATOR *m_accelerator3DShapes; // used for mouse over searching
BOARD_ITEM* m_currentIntersectedBoardItem;

View File

@ -908,7 +908,7 @@ void C3D_RENDER_OGL_LEGACY::load_3D_models( REPORTER* aStatusReporter )
(!m_boardAdapter.GetFlag( FL_MODULE_ATTRIBUTES_VIRTUAL )) )
return;
// Go for all modules
// Go for all footprints
for( MODULE* module : m_boardAdapter.GetBoard()->Modules() )
{
for( const MODULE_3D_SETTINGS& model : module->Models() )

View File

@ -1255,7 +1255,7 @@ void C3D_RENDER_OGL_LEGACY::render_3D_models_selected( bool aRenderTopOrBot, boo
C_OGL_3DMODEL::BeginDrawMulti( !aRenderSelectedOnly );
// Go for all modules
// Go for all footprints
for( auto module : m_boardAdapter.GetBoard()->Modules() )
{
const bool isIntersected = ( module == m_currentIntersectedBoardItem );

View File

@ -95,7 +95,7 @@ private:
CLAYERS_OGL_DISP_LISTS* m_ogl_disp_list_through_holes_outer_ring;
//CLAYERS_OGL_DISP_LISTS* m_ogl_disp_list_through_holes_vias_inner; // Not in use
// This is for pads holes of the modules
// This is for pads holes of the footprints
//CLAYERS_OGL_DISP_LISTS* m_ogl_disp_list_vias_and_pad_holes_inner_contourn_and_caps;
CLAYERS_OGL_DISP_LISTS* m_ogl_disp_list_vias_and_pad_holes_outer_contourn_and_caps;

View File

@ -1267,7 +1267,7 @@ void C3D_RENDER_RAYTRACING::add_3D_vias_and_pads_to_container()
void C3D_RENDER_RAYTRACING::load_3D_models( CCONTAINER &aDstContainer, bool aSkipMaterialInformation )
{
// Go for all modules
// Go for all footprints
for( auto module : m_boardAdapter.GetBoard()->Modules() )
{
if((!module->Models().empty() ) &&

View File

@ -104,7 +104,7 @@ PGM_BASE& Pgm()
return program;
}
// A module to allow Html modules initialization/cleanup
// A module to allow Html footprints initialization/cleanup
// When a wxHtmlWindow is used *only* in a dll/so module, the Html text is displayed
// as plain text.
// This helper class is just used to force wxHtmlWinParser initialization
@ -161,7 +161,7 @@ struct APP_SINGLE_TOP : public wxApp
#endif
// Force wxHtmlWinParser initialization when a wxHtmlWindow is used only
// in a shared modules (.so or .dll file)
// in a shared footprints (.so or .dll file)
// Otherwise the Html text is displayed as plain text.
HtmlModule html_init;
@ -402,7 +402,7 @@ bool PGM_SINGLE_TOP::OnPgmInit()
#if defined(PGM_DATA_FILE_EXT)
// PGM_DATA_FILE_EXT, if present, may be different for each compile,
// it may come from CMake on the compiler command line, but often does not.
// This facility is mostly useful for those program modules
// This facility is mostly useful for those program footprints
// supporting a single argv[1].
if( !argv1.GetExt() )
argv1.SetExt( wxT( PGM_DATA_FILE_EXT ) );

View File

@ -117,7 +117,7 @@ static struct PGM_PYTHON : public PGM_BASE
#if defined(PGM_DATA_FILE_EXT)
// PGM_DATA_FILE_EXT, if present, may be different for each compile,
// it may come from CMake on the compiler command line, but often does not.
// This facillity is mostly useful for those program modules
// This facillity is mostly useful for those program footprints
// supporting a single argv[1].
if( !argv1.GetExt() )
argv1.SetExt( wxT( PGM_DATA_FILE_EXT ) );

View File

@ -86,7 +86,7 @@ CVPCB_MAINFRAME::CVPCB_MAINFRAME( KIWAY* aKiway, wxWindow* aParent ) :
ReCreateMenuBar();
ReCreateHToolbar();
// Create list of available modules and components of the schematic
// Create list of available footprints and components of the schematic
BuildCmpListBox();
BuildFOOTPRINTS_LISTBOX();
BuildLIBRARY_LISTBOX();

View File

@ -74,7 +74,7 @@ public:
std::map<wxString, wxString> m_pinMap;
};
///> Map to hold NETLIST modules data
///> Map to hold NETLIST footprints data
using PCB_MODULES_MAP = std::map<wxString, std::shared_ptr<PCB_MODULE_DATA>>;
using CHANGELIST_ITEM = std::pair<SCH_REFERENCE, std::shared_ptr<PCB_MODULE_DATA>>;
@ -131,7 +131,7 @@ private:
void getChangeList();
/**
* @brief Check if some symbols are not represented in PCB modules and vice versa.
* @brief Check if some symbols are not represented in PCB footprints and vice versa.
* \ref m_refs must be sorted by path
*/
void checkForUnusedSymbols();

View File

@ -241,7 +241,7 @@ void GBR_TO_PCB_EXPORTER::export_non_copper_item( GERBER_DRAW_ITEM* aGbrItem, LA
/*
* Many holes will be pads, but we have no way to create those without modules, and creating
* Many holes will be pads, but we have no way to create those without footprints, and creating
* a module per pad is not really viable.
*
* So we use vias to mimic holes, with the loss of any hole shape (as we only have round holes

View File

@ -78,7 +78,7 @@ private:
* write a via to the board file.
* Some of these will represent actual vias while others are used to represent
* holes in pads. (We can't generate actual pads because the Gerbers don't contain
* info on how to group them into modules.)
* info on how to group them into footprints.)
* @param aVia
*/
void export_via( const EXPORT_VIA& aVia );

View File

@ -264,7 +264,7 @@ public:
*/
virtual bool IsLocked() const
{
// only MODULEs & TRACKs can be locked at this time.
// only footprints & TRACKs can be locked at this time.
return false;
}
@ -274,7 +274,7 @@ public:
*/
virtual void SetLocked( bool aLocked )
{
// only MODULEs & TRACKs can be locked at this time.
// only footprints & TRACKs can be locked at this time.
}
/**

View File

@ -194,10 +194,10 @@ enum GAL_LAYER_ID: int
LAYER_GRID,
LAYER_GRID_AXES,
LAYER_NO_CONNECTS, ///< show a marker on pads with no nets
LAYER_MOD_FR, ///< show modules on front
LAYER_MOD_BK, ///< show modules on back
LAYER_MOD_VALUES, ///< show modules values (when texts are visibles)
LAYER_MOD_REFERENCES, ///< show modules references (when texts are visibles)
LAYER_MOD_FR, ///< show footprints on front
LAYER_MOD_BK, ///< show footprints on back
LAYER_MOD_VALUES, ///< show footprints values (when texts are visibles)
LAYER_MOD_REFERENCES, ///< show footprints references (when texts are visibles)
LAYER_TRACKS,
LAYER_PADS_TH, ///< multilayer pads, usually with holes
LAYER_PADS_PLATEDHOLES, ///< to draw pad holes (plated)

View File

@ -286,7 +286,7 @@ public:
*/
virtual void OnModify();
// Modules (footprints)
// footprints (footprints)
/**
* Function CreateNewModule

View File

@ -127,7 +127,7 @@ void ARRAY_CREATOR::Invoke()
// PCB items keep the same numbering
// @TODO: renumber modules if asked. This needs UI to enable.
// @TODO: renumber footprints if asked. This needs UI to enable.
// something like this, but needs a "block offset" to prevent
// multiple selections overlapping.
// if( new_item->Type() == PCB_MODULE_T )

View File

@ -103,7 +103,7 @@ private:
/**
* Find the "best" module place. The criteria are:
* - Maximum ratsnest with modules already placed
* - Maximum ratsnest with footprints already placed
* - Max size, and number of pads max
*/
MODULE* pickModule();

View File

@ -62,7 +62,7 @@ const int scale = (int)(0.01 * IU_PER_MM);
const int PADDING = (int)(1 * IU_PER_MM);
// Populates a list of rectangles, from a list of modules
// Populates a list of rectangles, from a list of footprints
void fillRectList( CSubRectArray& vecSubRects, std::vector <MODULE*>& aModuleList )
{
vecSubRects.clear();

View File

@ -140,7 +140,7 @@ void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry, bool a
{
if( m_editModules )
{
// modules inside modules are not supported yet
// footprints inside footprints are not supported yet
wxASSERT( boardItem->Type() != PCB_MODULE_T );
boardItem->SetParent( board->Modules().front() );
@ -188,7 +188,7 @@ void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry, bool a
case PCB_FP_SHAPE_T:
case PCB_FP_TEXT_T:
case PCB_FP_ZONE_AREA_T:
// This level can only handle module items when editing modules
// This level can only handle module items when editing footprints
wxASSERT( m_editModules );
if( boardItem->Type() == PCB_FP_TEXT_T )
@ -233,7 +233,7 @@ void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry, bool a
case PCB_MODULE_T:
{
// There are no modules inside a module yet
// There are no footprints inside a module yet
wxASSERT( !m_editModules );
MODULE* module = static_cast<MODULE*>( boardItem );

View File

@ -81,7 +81,7 @@ void BOARD::ConvertBrdLayerToPolygonalContours( PCB_LAYER_ID aLayer, SHAPE_POLY_
module->TransformPadsShapesWithClearanceToPolygon( aOutlines, aLayer, 0, maxError,
ERROR_INSIDE );
// Micro-wave modules may have items on copper layers
// Micro-wave footprints may have items on copper layers
module->TransformGraphicShapesWithClearanceToPolygonSet( aOutlines, aLayer, 0, maxError,
ERROR_INSIDE );
}

View File

@ -1106,7 +1106,7 @@ SEARCH_RESULT BOARD::Visit( INSPECTOR inspector, void* testData, const KICAD_T s
break;
/* Instances of the requested KICAD_T live in a list, either one
* that I manage, or that my modules manage. If it's a type managed
* that I manage, or that my footprints manage. If it's a type managed
* by class MODULE, then simply pass it on to each module's
* MODULE::Visit() function by way of the
* IterateForward( m_Modules, ... ) call.

View File

@ -349,7 +349,7 @@ public:
}
/**
* Removes all modules from the deque and frees the memory associated with them
* Removes all footprints from the deque and frees the memory associated with them
*/
void DeleteAllModules()
{
@ -546,7 +546,7 @@ public:
/**
* Expect either of the two layers on which a module can reside, and returns
* whether that layer is visible.
* @param aLayer One of the two allowed layers for modules: F_Cu or B_Cu
* @param aLayer One of the two allowed layers for footprints: F_Cu or B_Cu
* @return bool - true if the layer is visible, else false.
*/
bool IsModuleLayerVisible( PCB_LAYER_ID aLayer );
@ -1082,7 +1082,7 @@ public:
* @param aPosition A wxPoint object containing the position to test.
* @param aActiveLayer Layer to test.
* @param aVisibleOnly Search only the visible layers if true.
* @param aIgnoreLocked Ignore locked modules when true.
* @param aIgnoreLocked Ignore locked footprints when true.
* @return MODULE* The best module or NULL if none.
*/
MODULE* GetFootprint( const wxPoint& aPosition, PCB_LAYER_ID aActiveLayer,

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