Commit 16c404ac authored by jean-pierre charras's avatar jean-pierre charras

Pcbnew: hot key move in board editor: minor fixes and enhancements

parent 199ad641
...@@ -765,22 +765,29 @@ bool WinEDA_PcbFrame::OnHotkeyMoveItem( int aIdCommand ) ...@@ -765,22 +765,29 @@ bool WinEDA_PcbFrame::OnHotkeyMoveItem( int aIdCommand )
break; break;
case TYPE_TEXTE: case TYPE_TEXTE:
if( aIdCommand == HK_MOVE_ITEM )
evt_type = ID_POPUP_PCB_MOVE_TEXTEPCB_REQUEST; evt_type = ID_POPUP_PCB_MOVE_TEXTEPCB_REQUEST;
break; break;
case TYPE_MIRE: case TYPE_MIRE:
if( aIdCommand == HK_MOVE_ITEM )
evt_type = ID_POPUP_PCB_MOVE_MIRE_REQUEST; evt_type = ID_POPUP_PCB_MOVE_MIRE_REQUEST;
break; break;
case TYPE_ZONE_CONTAINER: case TYPE_ZONE_CONTAINER:
if( aIdCommand == HK_MOVE_ITEM )
evt_type = ID_POPUP_PCB_MOVE_ZONE_OUTLINES; evt_type = ID_POPUP_PCB_MOVE_ZONE_OUTLINES;
if( aIdCommand == HK_DRAG_ITEM )
evt_type = ID_POPUP_PCB_DRAG_ZONE_OUTLINE_SEGMENT;
break; break;
case TYPE_TEXTE_MODULE: case TYPE_TEXTE_MODULE:
if( aIdCommand == HK_MOVE_ITEM )
evt_type = ID_POPUP_PCB_MOVE_TEXTMODULE_REQUEST; evt_type = ID_POPUP_PCB_MOVE_TEXTMODULE_REQUEST;
break; break;
case TYPE_DRAWSEGMENT: case TYPE_DRAWSEGMENT:
if( aIdCommand == HK_MOVE_ITEM )
evt_type = ID_POPUP_PCB_MOVE_DRAWING_REQUEST; evt_type = ID_POPUP_PCB_MOVE_DRAWING_REQUEST;
break; break;
...@@ -844,10 +851,12 @@ bool WinEDA_PcbFrame::OnHotkeyRotateItem( int aIdCommand ) ...@@ -844,10 +851,12 @@ bool WinEDA_PcbFrame::OnHotkeyRotateItem( int aIdCommand )
break; break;
case TYPE_TEXTE: case TYPE_TEXTE:
if( aIdCommand == HK_ROTATE_ITEM ) // Rotation
evt_type = ID_POPUP_PCB_ROTATE_TEXTEPCB; evt_type = ID_POPUP_PCB_ROTATE_TEXTEPCB;
break; break;
case TYPE_TEXTE_MODULE: case TYPE_TEXTE_MODULE:
if( aIdCommand == HK_ROTATE_ITEM ) // Rotation
evt_type = ID_POPUP_PCB_ROTATE_TEXTMODULE; evt_type = ID_POPUP_PCB_ROTATE_TEXTMODULE;
break; break;
......
...@@ -581,8 +581,9 @@ void WinEDA_PcbFrame::createPopUpMenuForZones( ZONE_CONTAINER* edge_zone, wxMenu ...@@ -581,8 +581,9 @@ void WinEDA_PcbFrame::createPopUpMenuForZones( ZONE_CONTAINER* edge_zone, wxMenu
{ {
ADD_MENUITEM( zones_menu, ID_POPUP_PCB_ADD_ZONE_CORNER, ADD_MENUITEM( zones_menu, ID_POPUP_PCB_ADD_ZONE_CORNER,
_( "Create Corner" ), add_corner_xpm ); _( "Create Corner" ), add_corner_xpm );
msg = AddHotkeyName( _( "Drag Outline Segment" ), s_Board_Editor_Hokeys_Descr, HK_DRAG_ITEM );
ADD_MENUITEM( zones_menu, ID_POPUP_PCB_DRAG_ZONE_OUTLINE_SEGMENT, ADD_MENUITEM( zones_menu, ID_POPUP_PCB_DRAG_ZONE_OUTLINE_SEGMENT,
_( "Drag Outline Segment" ), drag_outline_segment_xpm ); msg, drag_outline_segment_xpm );
} }
zones_menu->AppendSeparator(); zones_menu->AppendSeparator();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment