Cleanup.
This commit is contained in:
parent
d1a9efa5fc
commit
34be4b4666
|
@ -121,12 +121,6 @@ void SCH_VIEW::DisplaySheet( SCH_SCREEN *aScreen )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void SCH_VIEW::DisplaySheet( SCH_SHEET* aSheet )
|
|
||||||
{
|
|
||||||
DisplaySheet( aSheet->GetScreen() );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void SCH_VIEW::DisplayComponent( LIB_PART* aPart )
|
void SCH_VIEW::DisplayComponent( LIB_PART* aPart )
|
||||||
{
|
{
|
||||||
Clear();
|
Clear();
|
||||||
|
@ -138,7 +132,7 @@ void SCH_VIEW::DisplayComponent( LIB_PART* aPart )
|
||||||
LIB_PART* drawnPart = aPart;
|
LIB_PART* drawnPart = aPart;
|
||||||
|
|
||||||
// Draw the mandatory fields for aliases and parent symbols.
|
// Draw the mandatory fields for aliases and parent symbols.
|
||||||
for( auto& item : aPart->GetDrawItems() )
|
for( LIB_ITEM& item : aPart->GetDrawItems() )
|
||||||
{
|
{
|
||||||
if( item.Type() != LIB_FIELD_T )
|
if( item.Type() != LIB_FIELD_T )
|
||||||
continue;
|
continue;
|
||||||
|
@ -163,7 +157,7 @@ void SCH_VIEW::DisplayComponent( LIB_PART* aPart )
|
||||||
drawnPart = parent.get();
|
drawnPart = parent.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
for( auto& item : drawnPart->GetDrawItems() )
|
for( LIB_ITEM& item : drawnPart->GetDrawItems() )
|
||||||
{
|
{
|
||||||
// Don't show parent symbol fields. Users may be confused by shown fields that can not
|
// Don't show parent symbol fields. Users may be confused by shown fields that can not
|
||||||
// be edited.
|
// be edited.
|
||||||
|
|
|
@ -79,7 +79,6 @@ public:
|
||||||
|
|
||||||
void Cleanup();
|
void Cleanup();
|
||||||
|
|
||||||
void DisplaySheet( SCH_SHEET* aSheet );
|
|
||||||
void DisplaySheet( SCH_SCREEN* aScreen );
|
void DisplaySheet( SCH_SCREEN* aScreen );
|
||||||
void DisplayComponent( LIB_PART* aPart );
|
void DisplayComponent( LIB_PART* aPart );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue