Add DRC suggestions for Shape

This commit is contained in:
Alex 2023-01-22 21:45:06 +03:00
parent 05eafdc08b
commit 91d154cd28
2 changed files with 11 additions and 0 deletions

View File

@ -61,6 +61,7 @@ PANEL_SETUP_RULES::PANEL_SETUP_RULES( PAGED_DIALOG* aParent, PCB_EDIT_FRAME* aFr
m_padTypeRegex.Compile( "^Pad_Type\\s*[!=]=\\s*$", wxRE_ADVANCED );
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_compileButton->SetBitmap( KiBitmap( BITMAPS::drc ) );
@ -528,6 +529,15 @@ void PANEL_SETUP_RULES::onScintillaCharAdded( wxStyledTextEvent &aEvent )
"Heatsink pad|"
"Castellated pad" );
}
else if( m_shapeRegex.Matches( last ) )
{
tokens = wxT( "Segment|"
"Rectangle|"
"Arc|"
"Circle|"
"Polygon|"
"Bezier" );
}
}
}

View File

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