PCB_LAYER_WIDGET became able to cooperate with PCB_BASE_FRAME.
This commit is contained in:
@@ -44,6 +44,8 @@
|
||||
#define BUTT_SIZE_Y 18
|
||||
#define BUTT_VOID 4
|
||||
|
||||
const wxEventType LAYER_WIDGET::EVT_LAYER_COLOR_CHANGE = wxNewEventType();
|
||||
|
||||
/* XPM
|
||||
* This bitmap is used for not selected layers
|
||||
*/
|
||||
@@ -294,6 +296,10 @@ void LAYER_WIDGET::OnMiddleDownLayerColor( wxMouseEvent& event )
|
||||
|
||||
// tell the client code.
|
||||
OnLayerColorChange( layer, newColor );
|
||||
|
||||
// notify others
|
||||
wxCommandEvent event( EVT_LAYER_COLOR_CHANGE );
|
||||
wxPostEvent( this, event );
|
||||
}
|
||||
|
||||
passOnFocus();
|
||||
|
||||
Reference in New Issue
Block a user