Browse Source
Clear numbers from non-numberable pads and don't run DRC on them.
Clear numbers from non-numberable pads and don't run DRC on them.
This was also the last straw on the misnamed PAD::GetName() and PAD::SetName(), which are now PAD::GetNumber() and PAD::SetNumber(). Fixes https://gitlab.com/kicad/code/kicad/issues/90176.0.7
47 changed files with 253 additions and 329 deletions
-
23d-viewer/3d_canvas/eda_3d_canvas.cpp
-
5pcbnew/CMakeLists.txt
-
13pcbnew/array_creator.cpp
-
23pcbnew/array_pad_number_provider.cpp
-
25pcbnew/array_pad_number_provider.h
-
6pcbnew/connectivity/from_to_cache.cpp
-
6pcbnew/cross-probing.cpp
-
6pcbnew/dialogs/dialog_exchange_footprints.cpp
-
12pcbnew/dialogs/dialog_pad_properties.cpp
-
6pcbnew/dialogs/dialog_track_via_properties.cpp
-
7pcbnew/drc/drc_test_provider_lvs.cpp
-
2pcbnew/exporters/export_d356.cpp
-
4pcbnew/exporters/export_footprints_placefile.cpp
-
4pcbnew/exporters/export_gencad.cpp
-
2pcbnew/exporters/export_hyperlynx.cpp
-
2pcbnew/exporters/export_idf.cpp
-
6pcbnew/exporters/gerber_placefile_writer.cpp
-
32pcbnew/footprint.cpp
-
16pcbnew/footprint.h
-
6pcbnew/microwave/microwave_footprint.cpp
-
4pcbnew/microwave/microwave_inductor.cpp
-
28pcbnew/netlist_reader/board_netlist_updater.cpp
-
30pcbnew/pad.cpp
-
16pcbnew/pad.h
-
37pcbnew/pad_naming.cpp
-
50pcbnew/pad_naming.h
-
6pcbnew/pcb_painter.cpp
-
6pcbnew/plot_brditems_plotter.cpp
-
2pcbnew/plugins/altium/altium_pcb.cpp
-
13pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp
-
6pcbnew/plugins/eagle/eagle_plugin.cpp
-
2pcbnew/plugins/fabmaster/import_fabmaster.cpp
-
4pcbnew/plugins/geda/gpcb_plugin.cpp
-
2pcbnew/plugins/kicad/kicad_plugin.cpp
-
9pcbnew/plugins/kicad/pcb_parser.cpp
-
23pcbnew/plugins/legacy/legacy_plugin.cpp
-
2pcbnew/plugins/pcad/pcb_pad.cpp
-
10pcbnew/python/swig/pad.i
-
12pcbnew/specctra_import_export/specctra_export.cpp
-
2pcbnew/tools/board_editor_control.cpp
-
13pcbnew/tools/edit_tool.cpp
-
37pcbnew/tools/pad_tool.cpp
-
6pcbnew/tools/pad_tool.h
-
2qa/pcbnew/CMakeLists.txt
-
36qa/pcbnew/test_array_pad_name_provider.cpp
-
15qa/pcbnew/test_pad_numbering.cpp
-
24qa/pcbnew/test_zone_filler.cpp
@ -1,37 +0,0 @@ |
|||
/*
|
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright (C) 2018 KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* This program is free software; you can redistribute it and/or |
|||
* modify it under the terms of the GNU General Public License |
|||
* as published by the Free Software Foundation; either version 2 |
|||
* of the License, or (at your option) any later version. |
|||
* |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program; if not, you may find one here: |
|||
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|||
* or you may search the http://www.gnu.org website for the version 2 license,
|
|||
* or you may write to the Free Software Foundation, Inc., |
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA |
|||
*/ |
|||
|
|||
#include "pad_naming.h"
|
|||
|
|||
bool PAD_NAMING::PadCanHaveName( const PAD& aPad ) |
|||
{ |
|||
// Aperture pads don't get a number
|
|||
if( aPad.IsAperturePad() ) |
|||
return false; |
|||
|
|||
// NPTH pads don't get numbers
|
|||
if( aPad.GetAttribute() == PAD_ATTRIB::NPTH ) |
|||
return false; |
|||
|
|||
return true; |
|||
} |
|||
@ -1,50 +0,0 @@ |
|||
/* |
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright (C) 2015 Jean-Pierre Charras, jp.charras at wanadoo.fr |
|||
* Copyright (C) 1992-2017 KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* This program is free software; you can redistribute it and/or |
|||
* modify it under the terms of the GNU General Public License |
|||
* as published by the Free Software Foundation; either version 2 |
|||
* of the License, or (at your option) any later version. |
|||
* |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program; if not, you may find one here: |
|||
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
|||
* or you may search the http://www.gnu.org website for the version 2 license, |
|||
* or you may write to the Free Software Foundation, Inc., |
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA |
|||
*/ |
|||
|
|||
#ifndef PAD_NAMING_H |
|||
#define PAD_NAMING_H |
|||
|
|||
#include <pad.h> |
|||
|
|||
/** |
|||
* The PAD_NAMING namespace contains helper functions for common operations |
|||
* to do with naming of #PAD objects. |
|||
*/ |
|||
namespace PAD_NAMING |
|||
{ |
|||
|
|||
/** |
|||
* Check if a pad should be named. |
|||
* |
|||
* For example, NPTH or paste apertures normally do not have names, as they |
|||
* cannot be assigned to a netlist. |
|||
* |
|||
* @param aPad the pad to check |
|||
* @return true if the pad gets a name |
|||
*/ |
|||
bool PadCanHaveName( const PAD& aPad ); |
|||
|
|||
} // namespace PAD_NAMING |
|||
|
|||
#endif // PAD_NAMING_H |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue