mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Add area to Zone search panel
If the zone is a filled area, show the total filled area. If it is a rule area, show the area to which the rule applies (the outline area)
This commit is contained in:
parent
e064a3481d
commit
e6f06456db
@ -206,6 +206,7 @@ ZONE_SEARCH_HANDLER::ZONE_SEARCH_HANDLER( PCB_EDIT_FRAME* aFrame ) :
|
||||
m_columns.emplace_back( _HKI( "Priority" ), 2, wxLIST_FORMAT_CENTER );
|
||||
m_columns.emplace_back( wxT( "X" ), 3, wxLIST_FORMAT_CENTER );
|
||||
m_columns.emplace_back( wxT( "Y" ), 3, wxLIST_FORMAT_CENTER );
|
||||
m_columns.emplace_back( _HKI( "Area" ), 3, wxLIST_FORMAT_RIGHT );
|
||||
}
|
||||
|
||||
|
||||
@ -258,6 +259,11 @@ wxString ZONE_SEARCH_HANDLER::getResultCell( BOARD_ITEM* aItem, int aCol )
|
||||
return m_frame->MessageTextFromCoord( zone->GetX(), ORIGIN_TRANSFORMS::ABS_X_COORD );
|
||||
else if( aCol == 5 )
|
||||
return m_frame->MessageTextFromCoord( zone->GetY(), ORIGIN_TRANSFORMS::ABS_Y_COORD );
|
||||
else if( aCol == 6 )
|
||||
{
|
||||
return m_frame->MessageTextFromValue( zone->GetIsRuleArea() ? zone->GetOutlineArea() : zone->GetFilledArea(),
|
||||
true, EDA_DATA_TYPE::AREA );
|
||||
}
|
||||
|
||||
|
||||
return wxEmptyString;
|
||||
|
Loading…
x
Reference in New Issue
Block a user