Add some missing autocomplete clauses.
We really need to figure out how to auto-generate these.... Fixes https://gitlab.com/kicad/code/kicad/-/issues/16565
This commit is contained in:
parent
e04cd8743c
commit
3836194cc6
|
@ -69,7 +69,11 @@ PANEL_SETUP_RULES::PANEL_SETUP_RULES( wxWindow* aParentWindow, PCB_EDIT_FRAME* a
|
|||
m_fabPropRegex.Compile( "^Fabrication_Property\\s*[!=]=\\s*$", wxRE_ADVANCED );
|
||||
m_shapeRegex.Compile( "^Shape\\s*[!=]=\\s*$", wxRE_ADVANCED );
|
||||
m_padShapeRegex.Compile( "^Pad_Shape\\s*[!=]=\\s*$", wxRE_ADVANCED );
|
||||
m_padConnectionsRegex.Compile( "^Pad_Connections\\s*[!=]=\\s*$", wxRE_ADVANCED );
|
||||
m_zoneConnStyleRegex.Compile( "^Zone_Connection_Style\\s*[!=]=\\s*$", wxRE_ADVANCED );
|
||||
m_lineStyleRegex.Compile( "^Line_Style\\s*[!=]=\\s*$", wxRE_ADVANCED );
|
||||
m_hJustRegex.Compile( "^Horizontal_Justification\\s*[!=]=\\s*$", wxRE_ADVANCED );
|
||||
m_vJustRegex.Compile( "^Vertical_Justification\\s*[!=]=\\s*$", wxRE_ADVANCED );
|
||||
|
||||
m_compileButton->SetBitmap( KiBitmapBundle( BITMAPS::drc ) );
|
||||
|
||||
|
@ -585,6 +589,14 @@ void PANEL_SETUP_RULES::onScintillaCharAdded( wxStyledTextEvent &aEvent )
|
|||
"Chamfered rectangle|"
|
||||
"Custom" );
|
||||
}
|
||||
else if( m_padConnectionsRegex.Matches( last ) )
|
||||
{
|
||||
tokens = wxT( "Inherited|"
|
||||
"None|"
|
||||
"Solid|"
|
||||
"Thermal reliefs|"
|
||||
"Thermal reliefs for PTH" );
|
||||
}
|
||||
else if( m_zoneConnStyleRegex.Matches( last ) )
|
||||
{
|
||||
tokens = wxT( "Inherited|"
|
||||
|
@ -592,6 +604,27 @@ void PANEL_SETUP_RULES::onScintillaCharAdded( wxStyledTextEvent &aEvent )
|
|||
"Solid|"
|
||||
"Thermal reliefs" );
|
||||
}
|
||||
else if( m_lineStyleRegex.Matches( last ) )
|
||||
{
|
||||
tokens = wxT( "Default|"
|
||||
"Solid|"
|
||||
"Dashed|"
|
||||
"Dotted|"
|
||||
"Dash-Dot|"
|
||||
"Dash-Dot-Dot" );
|
||||
}
|
||||
else if( m_hJustRegex.Matches( last ) )
|
||||
{
|
||||
tokens = wxT( "Left|"
|
||||
"Center|"
|
||||
"Right" );
|
||||
}
|
||||
else if( m_vJustRegex.Matches( last ) )
|
||||
{
|
||||
tokens = wxT( "Top|"
|
||||
"Center|"
|
||||
"Bottom" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -68,7 +68,11 @@ private:
|
|||
wxRegEx m_fabPropRegex;
|
||||
wxRegEx m_shapeRegex;
|
||||
wxRegEx m_padShapeRegex;
|
||||
wxRegEx m_padConnectionsRegex;
|
||||
wxRegEx m_zoneConnStyleRegex;
|
||||
wxRegEx m_lineStyleRegex;
|
||||
wxRegEx m_hJustRegex;
|
||||
wxRegEx m_vJustRegex;
|
||||
|
||||
HTML_MESSAGE_BOX* m_helpWindow;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue