← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] Rename instances of "module" to "footprint" for consistency

 


On 29/10/2014 23:56, Marco Ciampa wrote:
Another patch:

=== modified file 'pcbnew/class_pcb_layer_widget.cpp'
--- pcbnew/class_pcb_layer_widget.cpp	2014-09-14 15:34:37 +0000
+++ pcbnew/class_pcb_layer_widget.cpp	2014-10-29 22:52:43 +0000
@@ -73,8 +73,8 @@
      RR( _( "Anchors" ),         ANCHOR_VISIBLE,         WHITE,      _( "Show footprint and text origins as a cross" ) ),
      RR( _( "Grid" ),            GRID_VISIBLE,           WHITE,      _( "Show the (x,y) grid dots" ) ),
      RR( _( "No-Connects" ),     NO_CONNECTS_VISIBLE,    UNSPECIFIED_COLOR,  _( "Show a marker on pads which have no net connected" ) ),
-    RR( _( "Modules Front" ),   MOD_FR_VISIBLE,         UNSPECIFIED_COLOR,  _( "Show footprints that are on board's front") ),
-    RR( _( "Modules Back" ),    MOD_BK_VISIBLE,         UNSPECIFIED_COLOR,  _( "Show footprints that are on board's back") ),
+    RR( _( "Footprints Front" ),   MOD_FR_VISIBLE,         UNSPECIFIED_COLOR,  _( "Show footprints that are on board's front") ),
+    RR( _( "Footprints Back" ),    MOD_BK_VISIBLE,         UNSPECIFIED_COLOR,  _( "Show footprints that are on board's back") ),
      RR( _( "Values" ),          MOD_VALUES_VISIBLE,     UNSPECIFIED_COLOR,  _( "Show footprint's values") ),
      RR( _( "References" ),      MOD_REFERENCES_VISIBLE, UNSPECIFIED_COLOR,  _( "Show footprint's references") ),
  };
Beware here, they are not footprint anymore when they are on the board, have a value, a reference and so on... They are components.

Footprint is the right term for the standalone "print" a component will drop on a PCB. You can name them so in the footprint library, in the component propriety and so on... In the PCB editor, this object is a Components and should be named so.


=== modified file 'pcbnew/menubar_modedit.cpp'
--- pcbnew/menubar_modedit.cpp	2014-10-15 11:40:38 +0000
+++ pcbnew/menubar_modedit.cpp	2014-10-29 22:52:56 +0000
@@ -273,7 +273,7 @@
      // Anchor
      AddMenuItem( placeMenu, ID_MODEDIT_ANCHOR_TOOL,
                   _( "A&nchor" ),
-                 _( "Place footprint module reference anchor" ),
+                 _( "Place footprint reference anchor" ),
                   KiBitmap( anchor_xpm ) );
// Menu Help:

=== modified file 'pcbnew/muonde.cpp'
--- pcbnew/muonde.cpp	2014-08-24 07:05:07 +0000
+++ pcbnew/muonde.cpp	2014-10-29 22:52:53 +0000
@@ -1075,7 +1075,7 @@
if( pad == NULL )
      {
-        DisplayError( this, _( "No pad for this module" ) );
+        DisplayError( this, _( "No pad for this footprint" ) );
          return;
      }
@@ -1083,7 +1083,7 @@ if( next_pad == NULL )
      {
-        DisplayError( this, _( "Only one pad for this module" ) );
+        DisplayError( this, _( "Only one pad for this footprint" ) );
          return;
      }



Follow ups

References