Add autocomplete for zone connection style property

This commit is contained in:
Seth Hillbrand 2023-08-16 11:05:17 -07:00
parent 25b9a9de7e
commit 75f9a5bda8
2 changed files with 9 additions and 0 deletions

View File

@ -62,6 +62,7 @@ PANEL_SETUP_RULES::PANEL_SETUP_RULES( wxWindow* aParentWindow, PCB_EDIT_FRAME* a
m_pinTypeRegex.Compile( "^Pin_Type\\s*[!=]=\\s*$", wxRE_ADVANCED );
m_fabPropRegex.Compile( "^Fabrication_Property\\s*[!=]=\\s*$", wxRE_ADVANCED );
m_shapeRegex.Compile( "^Shape\\s*[!=]=\\s*$", wxRE_ADVANCED );
m_zoneConnStyleRegex.Compile( "^Zone_Connection_Style\\s*[!=]=\\s*$", wxRE_ADVANCED );
m_compileButton->SetBitmap( KiBitmap( BITMAPS::drc ) );
@ -544,6 +545,13 @@ void PANEL_SETUP_RULES::onScintillaCharAdded( wxStyledTextEvent &aEvent )
"Polygon|"
"Bezier" );
}
else if( m_zoneConnStyleRegex.Matches( last ) )
{
tokens = wxT( "Inherited|"
"None|"
"Solid|"
"Thermal reliefs" );
}
}
}

View File

@ -65,6 +65,7 @@ private:
wxRegEx m_pinTypeRegex;
wxRegEx m_fabPropRegex;
wxRegEx m_shapeRegex;
wxRegEx m_zoneConnStyleRegex;
HTML_MESSAGE_BOX* m_helpWindow;
};