Array creator tool: Add option to assign unique reference designators
ADDED: Option to assign unique reference designators to footprints created with the array tool [pcbnew] CHANGED: Array creator dialog no longer displays pad numbering properties when in the board editor. [pcbnew] Fixes https://gitlab.com/kicad/code/kicad/-/issues/2354
This commit is contained in:
+18
-1
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2019 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
* Copyright (C) 2019-2021 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
|
||||
@@ -92,6 +92,20 @@ public:
|
||||
m_shouldNumber = aShouldNumber;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @return are the footprints in this array reannotated to be unique (true), or do they
|
||||
* keep the original annotation (false)?
|
||||
*/
|
||||
bool ShouldReannotateFootprints() const
|
||||
{
|
||||
return m_reannotateFootprints;
|
||||
}
|
||||
|
||||
void SetSShouldReannotateFootprints( bool aShouldReannotate )
|
||||
{
|
||||
m_reannotateFootprints = aShouldReannotate;
|
||||
}
|
||||
|
||||
/*!
|
||||
* @return is the numbering is enabled and should start at a point
|
||||
* specified in these options or is it implicit according to the calling
|
||||
@@ -114,6 +128,9 @@ protected:
|
||||
/// True if this array numbers the new items
|
||||
bool m_shouldNumber;
|
||||
|
||||
/// True if this array will rename any footprints to be unique
|
||||
bool m_reannotateFootprints;
|
||||
|
||||
/// True if this array's number starts from the preset point
|
||||
/// False if the array numbering starts from some externally provided point
|
||||
bool m_numberingStartIsSpecified;
|
||||
|
||||
Reference in New Issue
Block a user