Add autocomplete for zone connection style property
This commit is contained in:
parent
25b9a9de7e
commit
75f9a5bda8
|
@ -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_pinTypeRegex.Compile( "^Pin_Type\\s*[!=]=\\s*$", wxRE_ADVANCED );
|
||||||
m_fabPropRegex.Compile( "^Fabrication_Property\\s*[!=]=\\s*$", wxRE_ADVANCED );
|
m_fabPropRegex.Compile( "^Fabrication_Property\\s*[!=]=\\s*$", wxRE_ADVANCED );
|
||||||
m_shapeRegex.Compile( "^Shape\\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 ) );
|
m_compileButton->SetBitmap( KiBitmap( BITMAPS::drc ) );
|
||||||
|
|
||||||
|
@ -544,6 +545,13 @@ void PANEL_SETUP_RULES::onScintillaCharAdded( wxStyledTextEvent &aEvent )
|
||||||
"Polygon|"
|
"Polygon|"
|
||||||
"Bezier" );
|
"Bezier" );
|
||||||
}
|
}
|
||||||
|
else if( m_zoneConnStyleRegex.Matches( last ) )
|
||||||
|
{
|
||||||
|
tokens = wxT( "Inherited|"
|
||||||
|
"None|"
|
||||||
|
"Solid|"
|
||||||
|
"Thermal reliefs" );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,7 @@ private:
|
||||||
wxRegEx m_pinTypeRegex;
|
wxRegEx m_pinTypeRegex;
|
||||||
wxRegEx m_fabPropRegex;
|
wxRegEx m_fabPropRegex;
|
||||||
wxRegEx m_shapeRegex;
|
wxRegEx m_shapeRegex;
|
||||||
|
wxRegEx m_zoneConnStyleRegex;
|
||||||
|
|
||||||
HTML_MESSAGE_BOX* m_helpWindow;
|
HTML_MESSAGE_BOX* m_helpWindow;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue