Add hierarchical label group in pdf outline
This commit is contained in:
parent
a381a0acb2
commit
f2377b447d
|
@ -929,34 +929,36 @@ void SCH_LABEL_BASE::Plot( PLOTTER* aPlotter, bool aBackground ) const
|
||||||
|
|
||||||
if( s_poly.size() )
|
if( s_poly.size() )
|
||||||
aPlotter->PlotPoly( s_poly, FILL_T::NO_FILL, penWidth );
|
aPlotter->PlotPoly( s_poly, FILL_T::NO_FILL, penWidth );
|
||||||
}
|
|
||||||
|
|
||||||
for( const SCH_FIELD& field : m_fields )
|
|
||||||
field.Plot( aPlotter, aBackground );
|
|
||||||
|
|
||||||
// Plot attributes to a hypertext menu
|
// Plot attributes to a hypertext menu
|
||||||
std::vector<wxString> properties;
|
std::vector<wxString> properties;
|
||||||
|
|
||||||
if( connection )
|
if( connection )
|
||||||
{
|
{
|
||||||
properties.emplace_back( wxString::Format( wxT( "!%s = %s" ),
|
properties.emplace_back(
|
||||||
_( "Net" ),
|
wxString::Format( wxT( "!%s = %s" ), _( "Net" ), connection->Name() ) );
|
||||||
connection->Name() ) );
|
|
||||||
|
|
||||||
properties.emplace_back( wxString::Format( wxT( "!%s = %s" ),
|
properties.emplace_back( wxString::Format( wxT( "!%s = %s" ), _( "Resolved netclass" ),
|
||||||
_( "Resolved netclass" ),
|
|
||||||
GetEffectiveNetClass()->GetName() ) );
|
GetEffectiveNetClass()->GetName() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
for( const SCH_FIELD& field : GetFields() )
|
for( const SCH_FIELD& field : GetFields() )
|
||||||
{
|
{
|
||||||
properties.emplace_back( wxString::Format( wxT( "!%s = %s" ),
|
properties.emplace_back(
|
||||||
field.GetName(),
|
wxString::Format( wxT( "!%s = %s" ), field.GetName(), field.GetShownText() ) );
|
||||||
field.GetShownText() ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !properties.empty() )
|
if( !properties.empty() )
|
||||||
aPlotter->HyperlinkMenu( GetBodyBoundingBox(), properties );
|
aPlotter->HyperlinkMenu( GetBodyBoundingBox(), properties );
|
||||||
|
|
||||||
|
if( Type() == SCH_HIER_LABEL_T )
|
||||||
|
{
|
||||||
|
aPlotter->Bookmark( GetBodyBoundingBox(), GetShownText(), _( "Hierarchical Labels" ) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for( const SCH_FIELD& field : m_fields )
|
||||||
|
field.Plot( aPlotter, aBackground );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue