|
|
@ -1473,7 +1473,10 @@ int BOARD_EDITOR_CONTROL::EditFpInFpEditor( const TOOL_EVENT& aEvent ) |
|
|
|
|
|
|
|
|
auto editor = (FOOTPRINT_EDIT_FRAME*) editFrame->Kiway().Player( FRAME_FOOTPRINT_EDITOR, true ); |
|
|
auto editor = (FOOTPRINT_EDIT_FRAME*) editFrame->Kiway().Player( FRAME_FOOTPRINT_EDITOR, true ); |
|
|
|
|
|
|
|
|
editor->LoadFootprintFromBoard( fp ); |
|
|
|
|
|
|
|
|
if( aEvent.IsAction( &PCB_ACTIONS::editFpInFpEditor ) ) |
|
|
|
|
|
editor->LoadFootprintFromBoard( fp ); |
|
|
|
|
|
else if( aEvent.IsAction( &PCB_ACTIONS::editLibFpInFpEditor ) ) |
|
|
|
|
|
editor->LoadFootprintFromLibrary( fp->GetFPID() ); |
|
|
|
|
|
|
|
|
editor->Show( true ); |
|
|
editor->Show( true ); |
|
|
editor->Raise(); // Iconize( false );
|
|
|
editor->Raise(); // Iconize( false );
|
|
|
@ -1565,6 +1568,7 @@ void BOARD_EDITOR_CONTROL::setTransitions() |
|
|
Go( &BOARD_EDITOR_CONTROL::DrillOrigin, PCB_ACTIONS::drillOrigin.MakeEvent() ); |
|
|
Go( &BOARD_EDITOR_CONTROL::DrillOrigin, PCB_ACTIONS::drillOrigin.MakeEvent() ); |
|
|
|
|
|
|
|
|
Go( &BOARD_EDITOR_CONTROL::EditFpInFpEditor, PCB_ACTIONS::editFpInFpEditor.MakeEvent() ); |
|
|
Go( &BOARD_EDITOR_CONTROL::EditFpInFpEditor, PCB_ACTIONS::editFpInFpEditor.MakeEvent() ); |
|
|
|
|
|
Go( &BOARD_EDITOR_CONTROL::EditFpInFpEditor, PCB_ACTIONS::editLibFpInFpEditor.MakeEvent() ); |
|
|
|
|
|
|
|
|
// Other
|
|
|
// Other
|
|
|
Go( &BOARD_EDITOR_CONTROL::ToggleLockSelected, PCB_ACTIONS::toggleLock.MakeEvent() ); |
|
|
Go( &BOARD_EDITOR_CONTROL::ToggleLockSelected, PCB_ACTIONS::toggleLock.MakeEvent() ); |
|
|
|