47 if( !item->IsEnabled() )
52 wxString sublayer_text;
54 if( item->GetSublayersCount() )
56 sublayer_text.Printf( wxT(
"\n sublayer \"1/%d\"" ),
57 item->GetSublayersCount() );
60 txt.Printf( wxT(
"layer \"%s\" type \"%s\"%s" ),
61 item->FormatDielectricLayerName(),
62 item->GetTypeName(), sublayer_text );
66 txt.Printf( wxT(
"layer \"%s\" type \"%s\"" ),
68 item->GetTypeName() );
73 if( item->IsColorEditable() )
75 txt.Printf( wxT(
" Color \"%s\"" ), item->GetColor() );
79 for(
int idx = 0; idx < item->GetSublayersCount(); idx++ )
83 txt.Printf( wxT(
"\n sublayer \"%d/%d\"" ), idx+1, item->GetSublayersCount() );
87 if( item->IsThicknessEditable() )
89 txt.Printf( wxT(
" Thickness %s" ),
95 txt.Printf( wxT(
" Locked" ) );
100 if( item->IsMaterialEditable() )
102 txt.Printf( wxT(
" Material \"%s\"" ), item->GetMaterial( idx ) );
106 if( item->HasEpsilonRValue() )
108 txt.Printf( wxT(
" EpsilonR %s" ), item->FormatEpsilonR( idx ) );
112 if( item->HasLossTangentValue() )
114 txt.Printf( wxT(
" LossTg %s" ), item->FormatLossTangent( idx ) );
123 txt.Printf( wxT(
"Finish \"%s\"" ), aStackup.
m_FinishType );
127 report << wxT(
" Option \"Impedance Controlled\"" );
130 report << wxT(
" Option \"Plated edges\"" );
134 wxString conn_txt = wxT(
"yes" );
137 conn_txt << wxT(
",bevelled" );
139 txt.Printf( wxT(
" EdgeConnector \"%s\"" ), conn_txt );
KICOMMON_API wxString StringFromValue(const EDA_IU_SCALE &aIuScale, EDA_UNITS aUnits, double aValue, bool aAddUnitsText=false, EDA_DATA_TYPE aType=EDA_DATA_TYPE::DISTANCE)
Return the string from aValue according to aUnits (inch, mm ...) for display.