diff --git a/eeschema/sch_text.cpp b/eeschema/sch_text.cpp index bf2a8523b8..550a40db20 100644 --- a/eeschema/sch_text.cpp +++ b/eeschema/sch_text.cpp @@ -32,21 +32,17 @@ #include #include #include -#include #include -#include #include #include #include #include #include -#include #include // for KiROUND #include #include #include #include -#include #include #include #include @@ -1207,18 +1203,10 @@ wxPoint SCH_HIERLABEL::GetSchematicTextOffset( RENDER_SETTINGS* aSettings ) cons switch( GetLabelSpinStyle() ) { default: - case LABEL_SPIN_STYLE::LEFT: - text_offset.x = -dist; - break; // Orientation horiz normale - case LABEL_SPIN_STYLE::UP: - text_offset.y = -dist; - break; // Orientation vert UP - case LABEL_SPIN_STYLE::RIGHT: - text_offset.x = dist; - break; // Orientation horiz inverse - case LABEL_SPIN_STYLE::BOTTOM: - text_offset.y = dist; - break; // Orientation vert BOTTOM + case LABEL_SPIN_STYLE::LEFT: text_offset.x = -dist; break; // Orientation horiz normale + case LABEL_SPIN_STYLE::UP: text_offset.y = -dist; break; // Orientation vert UP + case LABEL_SPIN_STYLE::RIGHT: text_offset.x = dist; break; // Orientation horiz inverse + case LABEL_SPIN_STYLE::BOTTOM: text_offset.y = dist; break; // Orientation vert BOTTOM } return text_offset; @@ -1247,59 +1235,61 @@ void SCH_TEXT::ShowSyntaxHelp( wxWindow* aParentWindow ) " Result" " " "
" - "  

^{superscript}" + "  
^{superscript}" " " - "  
superscript " + "  
superscript " " " " " - "  
Driver Board^{Rev A}" + "  
Driver Board^{Rev A}" " " - "  
Driver BoardRev A" + "  
Driver BoardRev A" " " "
" " " - "  
_{subscript}" + "  
_{subscript}" " " - "  
subscript " + "  
subscript " " " " " - "  
D_{0} - D_{15}" + "  
D_{0} - D_{15}" " " - "  
D0 - D31" + "  
D0 - D31" " " " " " " " " - "  
~overbar
" - "  
~CLK" + "  
~overbar
" + "  
~CLK" " " " " " " - "             
overbar
" - "        
CLK" + "        
" + " overbar
" + "    
" + " CLK" " " " " "
" " " - "  
${variable}" + "  
${variable}" " " - "  
variable_value" + "  
variable_value" " " " " - "  
${REVISION}" + "  
${REVISION}" " " - "  
2020.1" + "  
2020.1" " " "
" " " - "  
${refdes:field}" + "  
${refdes:field}" " " - "  
field_value of symbol refdes" + "  
field_value of symbol refdes" " " " " - "  
${R3:VALUE}" + "  
${R3:VALUE}" " " - "  
150K" + "  
150K" " " "
" "
" @@ -1309,53 +1299,59 @@ void SCH_TEXT::ShowSyntaxHelp( wxWindow* aParentWindow ) " Resultant Nets" " " " " - "  
prefix[m..n]" + "  
prefix[m..n]" " " - "  
prefixm to prefixn" + "  
prefixm to prefixn" " " " " - "  
D[0..7]" + "  
D[0..7]" " " - "  
D0, D1, D2, D3, D4, D5, D6, D7" + "  
D0, D1, D2, D3, D4, D5, D6, D7" + " " + "
" + " " + "  
{net1 net2 ...}" + " " + "  
net1, net2, ..." + " " + " " + "  
{SCL SDA}" + " " + "  
SCL, SDA" + "
" + "
" + " " + "  
prefix{net1 net2 ...}" + " " + "  
prefix.net1, prefix.net2, ..." + " " + " " + "  
USB1{DP DM}" + " " + "  
USB1.DP, USB1.DM" " " "
" " " - "  
{net1 net2 ...}" + "  
MEM{D[1..2] LATCH}" " " - "  
net1, net2, ..." + "  
" + " MEM.D1, MEM.D2, MEM.LATCH" + " " " " " " - "  
{SCL SDA}" - " " - "  
SCL, SDA" - " " - "
" - " " - "  
prefix{net1 net2 ...}" - " " - "  
prefix.net1, prefix.net2, ..." - " " - " " - "  
USB1{DP DM}" - " " - "  
USB1.DP, USB1.DM" - " " - "
" - " " - "  
MEM{D_{[1..2]} ~LATCH}" + "  
MEM{D_{[1..2]} ~LATCH}" " " " " - "             " - "             " - "              " - "            
" - " MEM.D1, MEM.D2, MEM.LATCH" + "            " + "       " + "      
" + " MEM.D1, MEM.D2, MEM.LATCH" " " " " "" ); HTML_MESSAGE_BOX dlg( aParentWindow, _( "Syntax Help" ) ); - dlg.SetDialogSizeInDU( 240, 280 ); + dlg.SetDialogSizeInDU( 280, 280 ); dlg.AddHTML_Text( msg ); dlg.ShowModal();