Add DRC suggestions for Shape
This commit is contained in:
parent
05eafdc08b
commit
91d154cd28
|
@ -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_padTypeRegex.Compile( "^Pad_Type\\s*[!=]=\\s*$", wxRE_ADVANCED );
|
||||||
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_compileButton->SetBitmap( KiBitmap( BITMAPS::drc ) );
|
m_compileButton->SetBitmap( KiBitmap( BITMAPS::drc ) );
|
||||||
|
|
||||||
|
@ -528,6 +529,15 @@ void PANEL_SETUP_RULES::onScintillaCharAdded( wxStyledTextEvent &aEvent )
|
||||||
"Heatsink pad|"
|
"Heatsink pad|"
|
||||||
"Castellated pad" );
|
"Castellated pad" );
|
||||||
}
|
}
|
||||||
|
else if( m_shapeRegex.Matches( last ) )
|
||||||
|
{
|
||||||
|
tokens = wxT( "Segment|"
|
||||||
|
"Rectangle|"
|
||||||
|
"Arc|"
|
||||||
|
"Circle|"
|
||||||
|
"Polygon|"
|
||||||
|
"Bezier" );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,7 @@ private:
|
||||||
wxRegEx m_padTypeRegex;
|
wxRegEx m_padTypeRegex;
|
||||||
wxRegEx m_pinTypeRegex;
|
wxRegEx m_pinTypeRegex;
|
||||||
wxRegEx m_fabPropRegex;
|
wxRegEx m_fabPropRegex;
|
||||||
|
wxRegEx m_shapeRegex;
|
||||||
|
|
||||||
HTML_MESSAGE_BOX* m_helpWindow;
|
HTML_MESSAGE_BOX* m_helpWindow;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue