DRC rule syntax help improvements.

This commit is contained in:
Jeff Young 2020-05-26 15:55:40 +01:00
parent 8226e5f0e2
commit 3ea093539b
1 changed files with 31 additions and 30 deletions

View File

@ -263,44 +263,45 @@ void PANEL_SETUP_RULES::OnSyntaxHelp( wxHyperlinkEvent& aEvent )
// Do not make this full sentence translatable: it contains keywords // Do not make this full sentence translatable: it contains keywords
// Only a few titles can be traslated. // Only a few titles can be traslated.
wxString msg = wxString msg =
"<b>Top-level Expressions</b>" "<b>Top-level Clauses</b>"
"<pre>" "<pre>"
"(version &lt;number>)<br>" "(version &lt;number>)\r"
"(rule &lt;rule_name> &lt;rule_expression> ...)<br>" "(rule &lt;rule_name> &lt;rule_clause> ...)\r"
"<br></pre>" "\r</pre>"
"<b>Rule Expressions</b>" "<b>Rule Clauses</b>"
"<pre>" "<pre>"
"(disallow &lt;item_type>)<br>" "(disallow &lt;item_type>)\r"
"(constraint &lt;constraint_type> ...)<br>" "(constraint &lt;constraint_type> ...)\r"
"(condition \"&lt;expression>\")<br>" "(condition \"&lt;expression>\")\r"
"<br></pre>" "\r</pre>"
"<b>Item Types</b>" "<b>Item Types</b>"
"<pre>" "<pre>"
"track via zone<br>" "track via zone\r"
"pad micro_via text<br>" "pad micro_via text\r"
"hole buried_via graphic<br>" "hole buried_via graphic\r"
"<br></pre>" "\r</pre>"
"<b>Constraint Types</b>" "<b>Constraint Types</b>"
"<pre>" "<pre>"
"clearance annulus_width track_width hole<br>" "clearance annulus_width track_width hole\r"
"<br></pre>" "\r</pre>"
"<b>Examples</b>" "<b>Examples</b>"
"<pre>" "<pre>"
"(rule \"copper keepout\"<br>" "(rule \"copper keepout\"\r"
" (disallow track) (disallow via) (disallow zone)<br>" " (disallow track) (disallow via) (disallow zone)\r"
" (condition \"a.name == no_copper\"))<br>" " (condition \"A.name == no_copper\"))\r"
"<br>" "\r"
"(rule neckdown<br>" "(rule \"BGA neckdown\"\r"
" (constraint track_width (min 0.2mm) (opt 0.25mm) (max 1.0mm)<br>" " (constraint track_width (min 0.2mm) (opt 0.25mm))\r"
" (condition \"a.name == BGA\"))<br>" " (constraint clearance (min 0.05) (opt 0.08mm))\r"
"<br>" " (condition \"A.insideCourtyard('U3')\"))\r"
"(rule HV<br>" "\r"
" (constraint clearance (min 1.5mm)<br>" "(rule HV\r"
" (condition \"a.netclass == HV\"))<br>" " (constraint clearance (min 1.5mm))\r"
"<br>" " (condition \"A.netclass == HV\"))\r"
"(rule HV-HV<br>" "\r"
" (constraint clearance (min 2.0mm)<br>" "(rule HV_HV\r"
" (condition \"a.netclass == HV && b.netclass == HV\"))<br>" " (constraint clearance (min 2.0mm))\r"
" (condition \"A.netclass == HV && B.netclass == HV\"))\r"
"</pre>"; "</pre>";
HTML_MESSAGE_BOX dlg( m_parent, _( "Syntax Help" ) ); HTML_MESSAGE_BOX dlg( m_parent, _( "Syntax Help" ) );