mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-20 00:21:31 +00:00
Renamed D_PAD::{Set,Get}PadName() to D_PAD::{Set,Get}Name()
This commit is contained in:
parent
d6f3961804
commit
cca63801bf
pcbnew
array_creator.cppboard_netlist_updater.cppclass_board.cppclass_module.cppclass_pad.cppclass_pad.hcross-probing.cppspecctra_export.cpp
dialogs
eagle_plugin.cppexporters
gpcb_plugin.cppkicad_plugin.cpplegacy_plugin.cppmicrowave.cppmicrowave
pad_edition_functions.cpppcad2kicadpcb_plugin
pcb_painter.cpppcb_parser.cppplot_brditems_plotter.cpppython
examples
plugins
swig/tests
tools
@ -104,7 +104,7 @@ void ARRAY_CREATOR::Invoke()
|
||||
if( new_item->Type() == PCB_PAD_T )
|
||||
{
|
||||
const wxString padName = array_opts->GetItemNumber( ptN );
|
||||
static_cast<D_PAD*>( new_item )->SetPadName( padName );
|
||||
static_cast<D_PAD*>( new_item )->SetName( padName );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -321,7 +321,7 @@ bool BOARD_NETLIST_UPDATER::updateComponentPadConnections( MODULE* aPcbComponent
|
||||
// At this point, the component footprint is updated. Now update the nets.
|
||||
for( D_PAD* pad = aPcbComponent->PadsList(); pad; pad = pad->Next() )
|
||||
{
|
||||
COMPONENT_NET net = aNewComponent->GetNet( pad->GetPadName() );
|
||||
COMPONENT_NET net = aNewComponent->GetNet( pad->GetName() );
|
||||
|
||||
if( !net.IsValid() ) // New footprint pad has no net.
|
||||
{
|
||||
@ -329,13 +329,13 @@ bool BOARD_NETLIST_UPDATER::updateComponentPadConnections( MODULE* aPcbComponent
|
||||
{
|
||||
msg.Printf( _( "Disconnect component %s pin %s.\n" ),
|
||||
GetChars( aPcbComponent->GetReference() ),
|
||||
GetChars( pad->GetPadName() ) );
|
||||
GetChars( pad->GetName() ) );
|
||||
m_reporter->Report( msg, REPORTER::RPT_ACTION );
|
||||
|
||||
msg.Printf( _( "Clearing component \"%s:%s\" pin \"%s\" net name.\n" ),
|
||||
GetChars( aPcbComponent->GetReference() ),
|
||||
GetChars( aPcbComponent->GetPath() ),
|
||||
GetChars( pad->GetPadName() ) );
|
||||
GetChars( pad->GetName() ) );
|
||||
m_reporter->Report( msg, REPORTER::RPT_INFO );
|
||||
}
|
||||
|
||||
@ -380,14 +380,14 @@ bool BOARD_NETLIST_UPDATER::updateComponentPadConnections( MODULE* aPcbComponent
|
||||
{
|
||||
msg.Printf( _( "Reconnect component %s pin %s from net %s to net %s.\n"),
|
||||
GetChars( aPcbComponent->GetReference() ),
|
||||
GetChars( pad->GetPadName() ),
|
||||
GetChars( pad->GetName() ),
|
||||
GetChars( pad->GetNetname() ),
|
||||
GetChars( netName ) );
|
||||
|
||||
} else {
|
||||
msg.Printf( _( "Connect component %s pin %s to net %s.\n"),
|
||||
GetChars( aPcbComponent->GetReference() ),
|
||||
GetChars( pad->GetPadName() ),
|
||||
GetChars( pad->GetName() ),
|
||||
GetChars( netName ) );
|
||||
}
|
||||
|
||||
@ -397,7 +397,7 @@ bool BOARD_NETLIST_UPDATER::updateComponentPadConnections( MODULE* aPcbComponent
|
||||
"\"%s\" to \"%s\".\n" ),
|
||||
GetChars( aPcbComponent->GetReference() ),
|
||||
GetChars( aPcbComponent->GetPath() ),
|
||||
GetChars( pad->GetPadName() ),
|
||||
GetChars( pad->GetName() ),
|
||||
GetChars( pad->GetNetname() ),
|
||||
GetChars( netName ) );
|
||||
m_reporter->Report( msg, REPORTER::RPT_INFO );
|
||||
@ -521,7 +521,7 @@ bool BOARD_NETLIST_UPDATER::deleteSinglePadNets()
|
||||
msg.Printf( _( "Remove single pad net \"%s\" on \"%s\" pad '%s'\n" ),
|
||||
GetChars( previouspad->GetNetname() ),
|
||||
GetChars( previouspad->GetParent()->GetReference() ),
|
||||
GetChars( previouspad->GetPadName() ) );
|
||||
GetChars( previouspad->GetName() ) );
|
||||
m_reporter->Report( msg, REPORTER::RPT_ACTION );
|
||||
|
||||
previouspad->SetNetCode( NETINFO_LIST::UNCONNECTED );
|
||||
|
@ -2593,7 +2593,7 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, bool aDeleteSinglePadNets,
|
||||
// At this point, the component footprint is updated. Now update the nets.
|
||||
for( auto pad : footprint->Pads() )
|
||||
{
|
||||
COMPONENT_NET net = component->GetNet( pad->GetPadName() );
|
||||
COMPONENT_NET net = component->GetNet( pad->GetName() );
|
||||
|
||||
if( !net.IsValid() ) // Footprint pad had no net.
|
||||
{
|
||||
@ -2602,7 +2602,7 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, bool aDeleteSinglePadNets,
|
||||
msg.Printf( _( "Clearing component \"%s:%s\" pin \"%s\" net name.\n" ),
|
||||
GetChars( footprint->GetReference() ),
|
||||
GetChars( footprint->GetPath() ),
|
||||
GetChars( pad->GetPadName() ) );
|
||||
GetChars( pad->GetName() ) );
|
||||
aReporter->Report( msg, REPORTER::RPT_ACTION );
|
||||
}
|
||||
|
||||
@ -2622,7 +2622,7 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, bool aDeleteSinglePadNets,
|
||||
"\"%s\" to \"%s\".\n" ),
|
||||
GetChars( footprint->GetReference() ),
|
||||
GetChars( footprint->GetPath() ),
|
||||
GetChars( pad->GetPadName() ),
|
||||
GetChars( pad->GetName() ),
|
||||
GetChars( pad->GetNetname() ),
|
||||
GetChars( net.GetNetName() ) );
|
||||
aReporter->Report( msg, REPORTER::RPT_ACTION );
|
||||
@ -2736,7 +2736,7 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, bool aDeleteSinglePadNets,
|
||||
msg.Printf( _( "Remove single pad net \"%s\" on \"%s\" pad '%s'\n" ),
|
||||
GetChars( pad->GetNetname() ),
|
||||
GetChars( pad->GetParent()->GetReference() ),
|
||||
GetChars( pad->GetPadName() ) );
|
||||
GetChars( pad->GetName() ) );
|
||||
aReporter->Report( msg, REPORTER::RPT_ACTION );
|
||||
}
|
||||
|
||||
|
@ -373,7 +373,7 @@ void MODULE::CopyNetlistSettings( MODULE* aModule, bool aCopyLocalSettings )
|
||||
// because we copy settings from the first pad found.
|
||||
// When old and new footprints have very few differences, a better
|
||||
// algo can be used.
|
||||
D_PAD* oldPad = FindPadByName( pad->GetPadName() );
|
||||
D_PAD* oldPad = FindPadByName( pad->GetName() );
|
||||
|
||||
if( oldPad )
|
||||
oldPad->CopyNetlistSettings( pad, aCopyLocalSettings );
|
||||
@ -644,7 +644,7 @@ D_PAD* MODULE::FindPadByName( const wxString& aPadName ) const
|
||||
{
|
||||
for( D_PAD* pad = m_Pads; pad; pad = pad->Next() )
|
||||
{
|
||||
if( pad->GetPadName().CmpNoCase( aPadName ) == 0 ) // why case insensitive?
|
||||
if( pad->GetName().CmpNoCase( aPadName ) == 0 ) // why case insensitive?
|
||||
return pad;
|
||||
}
|
||||
|
||||
@ -721,7 +721,7 @@ unsigned MODULE::GetUniquePadCount( INCLUDE_NPTH_T aIncludeNPTH ) const
|
||||
|
||||
// Skip pads with no name, because they are usually "mechanical"
|
||||
// pads, not "electrical" pads
|
||||
if( pad->GetPadName().IsEmpty() )
|
||||
if( pad->GetName().IsEmpty() )
|
||||
continue;
|
||||
|
||||
if( !aIncludeNPTH )
|
||||
@ -733,7 +733,7 @@ unsigned MODULE::GetUniquePadCount( INCLUDE_NPTH_T aIncludeNPTH ) const
|
||||
}
|
||||
}
|
||||
|
||||
usedNames.insert( pad->GetPadName() );
|
||||
usedNames.insert( pad->GetName() );
|
||||
}
|
||||
|
||||
return usedNames.size();
|
||||
@ -1208,7 +1208,7 @@ wxString MODULE::GetNextPadName( bool aFillSequenceGaps ) const
|
||||
// Create a set of used pad numbers
|
||||
for( D_PAD* pad = PadsList(); pad; pad = pad->Next() )
|
||||
{
|
||||
int padNumber = getTrailingInt( pad->GetPadName() );
|
||||
int padNumber = getTrailingInt( pad->GetName() );
|
||||
usedNumbers.insert( padNumber );
|
||||
}
|
||||
|
||||
|
@ -517,7 +517,7 @@ bool D_PAD::IncrementPadName( bool aSkipUnconnectable, bool aFillSequenceGaps )
|
||||
bool skip = aSkipUnconnectable && ( GetAttribute() == PAD_ATTRIB_HOLE_NOT_PLATED );
|
||||
|
||||
if( !skip )
|
||||
SetPadName( GetParent()->GetNextPadName( aFillSequenceGaps ) );
|
||||
SetName( GetParent()->GetNextPadName( aFillSequenceGaps ) );
|
||||
|
||||
return !skip;
|
||||
}
|
||||
@ -1180,7 +1180,7 @@ wxString D_PAD::GetSelectMenuText() const
|
||||
{
|
||||
wxString text;
|
||||
wxString padlayers( LayerMaskDescribe( GetBoard(), m_layerMask ) );
|
||||
wxString padname( GetPadName() );
|
||||
wxString padname( GetName() );
|
||||
|
||||
if( padname.IsEmpty() )
|
||||
{
|
||||
@ -1191,7 +1191,7 @@ wxString D_PAD::GetSelectMenuText() const
|
||||
else
|
||||
{
|
||||
text.Printf( _( "Pad %s on %s of %s" ),
|
||||
GetChars(GetPadName() ), GetChars( padlayers ),
|
||||
GetChars(GetName() ), GetChars( padlayers ),
|
||||
GetChars(GetParent()->GetReference() ) );
|
||||
}
|
||||
|
||||
@ -1253,7 +1253,7 @@ void D_PAD::ViewGetLayers( int aLayers[], int& aCount ) const
|
||||
wxString msg;
|
||||
msg.Printf( wxT( "footprint %s, pad %s: could not find valid layer for pad" ),
|
||||
GetParent() ? GetParent()->GetReference() : "<null>",
|
||||
GetPadName().IsEmpty() ? "(unnamed)" : GetPadName() );
|
||||
GetName().IsEmpty() ? "(unnamed)" : GetName() );
|
||||
wxLogWarning( msg );
|
||||
}
|
||||
#endif
|
||||
|
@ -164,7 +164,7 @@ public:
|
||||
* Set the pad name (sometimes called pad number, although
|
||||
* it can be an array reference like AA12).
|
||||
*/
|
||||
void SetPadName( const wxString& aName )
|
||||
void SetName( const wxString& aName )
|
||||
{
|
||||
m_name = aName;
|
||||
}
|
||||
@ -172,7 +172,7 @@ public:
|
||||
/**
|
||||
* @return the pad name
|
||||
*/
|
||||
const wxString& GetPadName() const
|
||||
const wxString& GetName() const
|
||||
{
|
||||
return m_name;
|
||||
}
|
||||
|
@ -174,7 +174,7 @@ std::string FormatProbeItem( BOARD_ITEM* aItem )
|
||||
case PCB_PAD_T:
|
||||
{
|
||||
module = (MODULE*) aItem->GetParent();
|
||||
wxString pad = ((D_PAD*)aItem)->GetPadName();
|
||||
wxString pad = ((D_PAD*)aItem)->GetName();
|
||||
|
||||
return StrPrintf( "$PART: \"%s\" $PAD: \"%s\"",
|
||||
TO_UTF8( module->GetReference() ),
|
||||
|
@ -464,7 +464,7 @@ void DIALOG_PAD_PROPERTIES::initValues()
|
||||
|
||||
m_staticTextWarningPadFlipped->Show(m_isFlipped);
|
||||
|
||||
m_PadNumCtrl->SetValue( m_dummyPad->GetPadName() );
|
||||
m_PadNumCtrl->SetValue( m_dummyPad->GetName() );
|
||||
m_PadNetNameCtrl->SetValue( m_dummyPad->GetNetname() );
|
||||
|
||||
// Set the unit name in dialog:
|
||||
@ -1306,7 +1306,7 @@ bool DIALOG_PAD_PROPERTIES::TransferDataFromWindow()
|
||||
m_currentPad->SetLayerSet( FlipLayerMask( m_currentPad->GetLayerSet() ) );
|
||||
}
|
||||
|
||||
m_currentPad->SetPadName( m_padMaster->GetPadName() );
|
||||
m_currentPad->SetName( m_padMaster->GetName() );
|
||||
|
||||
wxString padNetname;
|
||||
|
||||
@ -1513,7 +1513,7 @@ bool DIALOG_PAD_PROPERTIES::transferDataToPad( D_PAD* aPad )
|
||||
aPad->SetOffset( wxPoint( x, y ) );
|
||||
|
||||
aPad->SetOrientation( m_OrientValue * 10.0 );
|
||||
aPad->SetPadName( m_PadNumCtrl->GetValue() );
|
||||
aPad->SetName( m_PadNumCtrl->GetValue() );
|
||||
|
||||
// Check if user has set an existing net name
|
||||
const NETINFO_ITEM* netinfo = m_board->FindNet( m_PadNetNameCtrl->GetValue() );
|
||||
@ -1593,7 +1593,7 @@ bool DIALOG_PAD_PROPERTIES::transferDataToPad( D_PAD* aPad )
|
||||
// Mechanical purpose only:
|
||||
// no offset, no net name, no pad name allowed
|
||||
aPad->SetOffset( wxPoint( 0, 0 ) );
|
||||
aPad->SetPadName( wxEmptyString );
|
||||
aPad->SetName( wxEmptyString );
|
||||
aPad->SetNetCode( NETINFO_LIST::UNCONNECTED );
|
||||
break;
|
||||
|
||||
|
@ -858,7 +858,7 @@ void EAGLE_PLUGIN::loadElements( wxXmlNode* aElements )
|
||||
// update the nets within the pads of the clone
|
||||
for( D_PAD* pad = m->PadsList(); pad; pad = pad->Next() )
|
||||
{
|
||||
string pn_key = makeKey( e.name, TO_UTF8( pad->GetPadName() ) );
|
||||
string pn_key = makeKey( e.name, TO_UTF8( pad->GetName() ) );
|
||||
|
||||
NET_MAP_CITER ni = m_pads_to_nets.find( pn_key );
|
||||
if( ni != m_pads_to_nets.end() )
|
||||
@ -1255,7 +1255,7 @@ void EAGLE_PLUGIN::packagePad( MODULE* aModule, wxXmlNode* aTree ) const
|
||||
D_PAD* pad = new D_PAD( aModule );
|
||||
aModule->PadsList().PushBack( pad );
|
||||
|
||||
pad->SetPadName( FROM_UTF8( e.name.c_str() ) );
|
||||
pad->SetName( FROM_UTF8( e.name.c_str() ) );
|
||||
|
||||
// pad's "Position" is not relative to the module's,
|
||||
// whereas Pos0 is relative to the module's but is the unrotated coordinate.
|
||||
@ -1572,7 +1572,7 @@ void EAGLE_PLUGIN::packageHole( MODULE* aModule, wxXmlNode* aTree ) const
|
||||
// Mechanical purpose only:
|
||||
// no offset, no net name, no pad name allowed
|
||||
// pad->SetOffset( wxPoint( 0, 0 ) );
|
||||
// pad->SetPadName( wxEmptyString );
|
||||
// pad->SetName( wxEmptyString );
|
||||
|
||||
wxPoint padpos( kicad_x( e.x ), kicad_y( e.y ) );
|
||||
|
||||
@ -1601,7 +1601,7 @@ void EAGLE_PLUGIN::packageSMD( MODULE* aModule, wxXmlNode* aTree ) const
|
||||
D_PAD* pad = new D_PAD( aModule );
|
||||
aModule->PadsList().PushBack( pad );
|
||||
|
||||
pad->SetPadName( FROM_UTF8( e.name.c_str() ) );
|
||||
pad->SetName( FROM_UTF8( e.name.c_str() ) );
|
||||
pad->SetShape( PAD_SHAPE_RECT );
|
||||
pad->SetAttribute( PAD_ATTRIB_SMD );
|
||||
|
||||
|
@ -128,7 +128,7 @@ static void build_pad_testpoints( BOARD *aPcb,
|
||||
if( rk.access != -1 )
|
||||
{
|
||||
rk.netname = pad->GetNetname();
|
||||
rk.pin = pad->GetPadName();
|
||||
rk.pin = pad->GetName();
|
||||
rk.refdes = module->GetReference();
|
||||
rk.midpoint = false; // XXX MAYBE need to be computed (how?)
|
||||
const wxSize& drill = pad->GetDrillSize();
|
||||
|
@ -660,7 +660,7 @@ static void CreateShapesSection( FILE* aFile, BOARD* aPcb )
|
||||
layer = module->GetFlag() ? "BOTTOM" : "TOP";
|
||||
}
|
||||
|
||||
pinname = pad->GetPadName();
|
||||
pinname = pad->GetName();
|
||||
|
||||
if( pinname.IsEmpty() )
|
||||
pinname = wxT( "none" );
|
||||
@ -801,7 +801,7 @@ static void CreateSignalsSection( FILE* aFile, BOARD* aPcb )
|
||||
|
||||
msg.Printf( wxT( "NODE %s %s" ),
|
||||
GetChars( module->GetReference() ),
|
||||
GetChars( pad->GetPadName() ) );
|
||||
GetChars( pad->GetName() ) );
|
||||
|
||||
fputs( TO_UTF8( msg ), aFile );
|
||||
fputs( "\n", aFile );
|
||||
|
@ -303,7 +303,7 @@ static void idf_export_module( BOARD* aPcb, MODULE* aModule,
|
||||
kplate = IDF3::PTH;
|
||||
|
||||
// hole type
|
||||
tstr = TO_UTF8( pad->GetPadName() );
|
||||
tstr = TO_UTF8( pad->GetName() );
|
||||
|
||||
if( tstr.empty() || !tstr.compare( "0" ) || !tstr.compare( "~" )
|
||||
|| ( kplate == IDF3::NPTH )
|
||||
|
@ -719,7 +719,7 @@ bool PCB_EDIT_FRAME::DoGenFootprintsReport( const wxString& aFullFilename, bool
|
||||
|
||||
for( D_PAD* pad = Module->PadsList(); pad != NULL; pad = pad->Next() )
|
||||
{
|
||||
fprintf( rptfile, "$PAD \"%s\"\n", TO_UTF8( pad->GetPadName() ) );
|
||||
fprintf( rptfile, "$PAD \"%s\"\n", TO_UTF8( pad->GetName() ) );
|
||||
int layer = 0;
|
||||
|
||||
if( pad->GetLayerSet()[B_Cu] )
|
||||
|
@ -667,7 +667,7 @@ MODULE* GPCB_FPL_CACHE::parseMODULE( LINE_READER* aLineReader )
|
||||
// and set to the pin name of the netlist on instantiation. Many gEDA
|
||||
// bare footprints use identical strings for name and number, so this
|
||||
// can be a bit confusing.
|
||||
pad->SetPadName( parameters[paramCnt-3] );
|
||||
pad->SetName( parameters[paramCnt-3] );
|
||||
|
||||
int x1 = parseInt( parameters[2], conv_unit );
|
||||
int x2 = parseInt( parameters[4], conv_unit );
|
||||
@ -749,7 +749,7 @@ MODULE* GPCB_FPL_CACHE::parseMODULE( LINE_READER* aLineReader )
|
||||
// Pcbnew pad name is used for electrical connection calculations.
|
||||
// Accordingly it should be mapped to gEDA's pin/pad number,
|
||||
// which is used for the same purpose.
|
||||
pad->SetPadName( parameters[paramCnt-3] );
|
||||
pad->SetName( parameters[paramCnt-3] );
|
||||
|
||||
wxPoint padPos( parseInt( parameters[2], conv_unit ),
|
||||
parseInt( parameters[3], conv_unit ) );
|
||||
|
@ -1264,7 +1264,7 @@ void PCB_IO::format( D_PAD* aPad, int aNestLevel ) const
|
||||
}
|
||||
|
||||
m_out->Print( aNestLevel, "(pad %s %s %s",
|
||||
m_out->Quotew( aPad->GetPadName() ).c_str(),
|
||||
m_out->Quotew( aPad->GetName() ).c_str(),
|
||||
type, shape );
|
||||
m_out->Print( 0, " (at %s", FMT_IU( aPad->GetPos0() ).c_str() );
|
||||
|
||||
|
@ -1453,7 +1453,7 @@ void LEGACY_PLUGIN::loadPAD( MODULE* aModule )
|
||||
}
|
||||
// chances are both were ASCII, but why take chances?
|
||||
|
||||
pad->SetPadName( padname );
|
||||
pad->SetName( padname );
|
||||
pad->SetShape( PAD_SHAPE_T( padshape ) );
|
||||
pad->SetSize( wxSize( size_x, size_y ) );
|
||||
pad->SetDelta( wxSize( delta_x, delta_y ) );
|
||||
|
@ -215,7 +215,7 @@ MODULE* PCB_EDIT_FRAME::CreateMuWaveBaseFootprint( const wxString& aValue,
|
||||
pad->SetLayerSet( F_Cu );
|
||||
|
||||
Line.Printf( wxT( "%d" ), pad_num );
|
||||
pad->SetPadName( Line );
|
||||
pad->SetName( Line );
|
||||
pad_num++;
|
||||
}
|
||||
|
||||
@ -329,7 +329,7 @@ MODULE* PCB_EDIT_FRAME::Create_MuWaveComponent( int shape_type )
|
||||
break;
|
||||
|
||||
case 1: //Stub :
|
||||
pad->SetPadName( wxT( "1" ) );
|
||||
pad->SetName( wxT( "1" ) );
|
||||
pad = pad->Next();
|
||||
pad->SetY0( -( gap_size + pad->GetSize().y ) / 2 );
|
||||
pad->SetSize( wxSize( pad->GetSize().x, gap_size ) );
|
||||
|
@ -369,7 +369,7 @@ MODULE* MWAVE::CreateMicrowaveInductor( INDUCTOR_PATTERN& inductorPattern,
|
||||
|
||||
module->PadsList().PushFront( pad );
|
||||
|
||||
pad->SetPadName( "1" );
|
||||
pad->SetName( "1" );
|
||||
pad->SetPosition( inductorPattern.m_End );
|
||||
pad->SetPos0( pad->GetPosition() - module->GetPosition() );
|
||||
|
||||
@ -384,7 +384,7 @@ MODULE* MWAVE::CreateMicrowaveInductor( INDUCTOR_PATTERN& inductorPattern,
|
||||
module->PadsList().Insert( newpad, pad->Next() );
|
||||
|
||||
pad = newpad;
|
||||
pad->SetPadName( "2" );
|
||||
pad->SetName( "2" );
|
||||
pad->SetPosition( inductorPattern.m_Start );
|
||||
pad->SetPos0( pad->GetPosition() - module->GetPosition() );
|
||||
|
||||
|
@ -142,11 +142,11 @@ void PCB_BASE_FRAME::AddPad( MODULE* aModule, bool draw )
|
||||
if( pad->GetAttribute() != PAD_ATTRIB_HOLE_NOT_PLATED )
|
||||
{
|
||||
padName = GetNextPadName( GetDesignSettings()
|
||||
.m_Pad_Master.GetPadName() );
|
||||
.m_Pad_Master.GetName() );
|
||||
}
|
||||
|
||||
pad->SetPadName( padName );
|
||||
GetDesignSettings().m_Pad_Master.SetPadName( padName );
|
||||
pad->SetName( padName );
|
||||
GetDesignSettings().m_Pad_Master.SetName( padName );
|
||||
|
||||
aModule->CalculateBoundingBox();
|
||||
SetMsgPanel( pad );
|
||||
|
@ -374,7 +374,7 @@ void PCB::DoPCBComponents( XNODE* aNode,
|
||||
break;
|
||||
|
||||
mNode->GetAttribute( wxT( "Name" ), &propValue );
|
||||
mc->SetPadName( str, propValue );
|
||||
mc->SetName( str, propValue );
|
||||
mNode = mNode->GetNext();
|
||||
}
|
||||
else
|
||||
|
@ -372,7 +372,7 @@ void PCB_MODULE::DoLayerContentsObjects( XNODE* aNode,
|
||||
}
|
||||
|
||||
|
||||
void PCB_MODULE::SetPadName( wxString aPin, wxString aName )
|
||||
void PCB_MODULE::SetName( wxString aPin, wxString aName )
|
||||
{
|
||||
int i;
|
||||
long num;
|
||||
@ -465,7 +465,7 @@ void PCB_MODULE::Parse( XNODE* aNode, wxStatusBar* aStatusBar,
|
||||
break;
|
||||
|
||||
mNode->GetAttribute( wxT( "Name" ), &propValue );
|
||||
SetPadName( str, propValue );
|
||||
SetName( str, propValue );
|
||||
mNode = mNode->GetNext();
|
||||
}
|
||||
else
|
||||
|
@ -57,7 +57,7 @@ public:
|
||||
wxString aDefaultMeasurementUnit,
|
||||
wxString aActualConversion );
|
||||
|
||||
void SetPadName( wxString aPin, wxString aName );
|
||||
void SetName( wxString aPin, wxString aName );
|
||||
|
||||
virtual void Parse( XNODE* aNode, wxStatusBar* aStatusBar,
|
||||
wxString aDefaultMeasurementUnit, wxString aActualConversion );
|
||||
|
@ -245,7 +245,7 @@ void PCB_PAD::AddToModule( MODULE* aModule, int aRotation, bool aEncapsulatedPad
|
||||
// actually this is a thru-hole pad
|
||||
pad->SetLayerSet( LSET::AllCuMask() | LSET( 2, B_Mask, F_Mask ) );
|
||||
|
||||
pad->SetPadName( m_name.text );
|
||||
pad->SetName( m_name.text );
|
||||
|
||||
if( padShapeName == wxT( "Oval" )
|
||||
|| padShapeName == wxT( "Ellipse" )
|
||||
|
@ -623,7 +623,7 @@ void PCB_PAINTER::draw( const D_PAD* aPad, int aLayer )
|
||||
|
||||
if( m_pcbSettings.m_padNumbers )
|
||||
{
|
||||
const wxString& padName = aPad->GetPadName();
|
||||
const wxString& padName = aPad->GetName();
|
||||
textpos.y = -textpos.y;
|
||||
double tsize = 1.5 * padsize.x / padName.Length();
|
||||
tsize = std::min( tsize, size );
|
||||
|
@ -2248,7 +2248,7 @@ D_PAD* PCB_PARSER::parseD_PAD( MODULE* aParent )
|
||||
std::unique_ptr< D_PAD > pad( new D_PAD( aParent ) );
|
||||
|
||||
NeedSYMBOLorNUMBER();
|
||||
pad->SetPadName( FromUTF8() );
|
||||
pad->SetName( FromUTF8() );
|
||||
|
||||
T token = NextTok();
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user