PCB_LAYER_WIDGET became able to cooperate with PCB_BASE_FRAME.

This commit is contained in:
Maciej Suminski
2014-07-09 11:59:23 +02:00
parent 0306ec7efe
commit dca4667e66
6 changed files with 22 additions and 5 deletions
+6
View File
@@ -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();