Exclude from Sim: move from field to attribute

This commit is contained in:
Mike Williams
2023-08-08 12:36:36 -04:00
parent 88cb1ed8b5
commit bdecdce1b4
35 changed files with 161 additions and 230 deletions
+5 -5
View File
@@ -53,7 +53,7 @@ SCH_TEXTBOX::SCH_TEXTBOX( int aLineWidth, FILL_T aFillType, const wxString& text
SetVertJustify( GR_TEXT_V_ALIGN_TOP );
SetMultilineAllowed( true );
m_excludeFromSim = false;
m_excludedFromSim = false;
}
@@ -61,7 +61,7 @@ SCH_TEXTBOX::SCH_TEXTBOX( const SCH_TEXTBOX& aText ) :
SCH_SHAPE( aText ),
EDA_TEXT( aText )
{
m_excludeFromSim = aText.m_excludeFromSim;
m_excludedFromSim = aText.m_excludedFromSim;
}
@@ -213,8 +213,8 @@ bool SCH_TEXTBOX::operator<( const SCH_ITEM& aItem ) const
if( GetPosition().y != other->GetPosition().y )
return GetPosition().y < other->GetPosition().y;
if( GetExcludeFromSim() != other->GetExcludeFromSim() )
return GetExcludeFromSim() - other->GetExcludeFromSim();
if( GetExcludedFromSim() != other->GetExcludedFromSim() )
return GetExcludedFromSim() - other->GetExcludedFromSim();
return GetText() < other->GetText();
}
@@ -445,7 +445,7 @@ void SCH_TEXTBOX::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL
// Don't use GetShownText() here; we want to show the user the variable references
aList.emplace_back( _( "Text Box" ), KIUI::EllipsizeStatusText( aFrame, GetText() ) );
if( m_excludeFromSim )
if( m_excludedFromSim )
aList.emplace_back( _( "Exclude from" ), _( "Simulation" ) );
aList.emplace_back( _( "Font" ), GetFont() ? GetFont()->GetName() : _( "Default" ) );