39 switch( aItem.
Type() )
49 return text.GetShownText(
true );
69 return pin.GetShownName();
77 for(
int row = 0; row < table.
GetRowCount(); ++row )
79 for(
int col = 0; col < table.
GetColCount(); ++col )
103 return wxEmptyString;
109 wxArrayString itemTexts;
113 if( item->IsSCH_ITEM() )
118 itemText.Trim(
false ).Trim(
true );
120 if( !itemText.IsEmpty() )
122 itemTexts.Add( std::move( itemText ) );
127 return wxJoin( itemTexts,
'\n',
'\0' );
145 std::set<int> missingUnits;
146 for(
int unit = 1; unit <= aSym.
GetUnitCount(); ++unit )
148 missingUnits.insert( unit );
153 if( symRefDes == ref.GetRef() )
155 missingUnits.erase( ref.GetUnit() );
164 const wxString& aRef,
int aUnit )
171 if( ref.GetRef() == aRef && ref.GetUnit() == aUnit )
A base class for most all the KiCad significant classes used in schematics and boards.
KICAD_T Type() const
Returns the type of object.
Holds all the data relating to one schematic.
SCH_SHEET_PATH & CurrentSheet() const override
SCH_SHEET_LIST Hierarchy() const override
Return the full schematic flattened hierarchical sheet list.
Instances are attached to a symbol or sheet and provide a place for the symbol's value,...
wxString GetShownText(const SCH_SHEET_PATH *aPath, bool aAllowExtraText, int aDepth=0) const
Base class for any item which can be embedded within the SCHEMATIC container class,...
SCHEMATIC * Schematic() const
Searches the item hierarchy to find a SCHEMATIC.
Container to create a flattened list of symbols because in a complex hierarchy, a symbol can be used ...
A helper to define a symbol's reference designator in a schematic.
A container for handling SCH_SHEET_PATH objects in a flattened hierarchy.
void GetSymbols(SCH_REFERENCE_LIST &aReferences, bool aIncludePowerSymbols=true, bool aForceIncludeOrphanSymbols=false) const
Add a SCH_REFERENCE object to aReferences for each symbol in the list of sheets.
int GetUnitCount() const override
Return the number of units per package of the symbol.
const wxString GetRef(const SCH_SHEET_PATH *aSheet, bool aIncludeUnit=false) const override
SCH_TABLECELL * GetCell(int aRow, int aCol) const
virtual wxString GetShownText(const SCH_SHEET_PATH *aPath, bool aAllowExtraText, int aDepth=0) const