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

This commit is contained in:
jean-pierre charras 2010-08-17 19:45:45 +02:00
parent 199ad6418f
commit 16c404acd0
2 changed files with 18 additions and 8 deletions

View File

@ -765,23 +765,30 @@ bool WinEDA_PcbFrame::OnHotkeyMoveItem( int aIdCommand )
break;
case TYPE_TEXTE:
evt_type = ID_POPUP_PCB_MOVE_TEXTEPCB_REQUEST;
if( aIdCommand == HK_MOVE_ITEM )
evt_type = ID_POPUP_PCB_MOVE_TEXTEPCB_REQUEST;
break;
case TYPE_MIRE:
evt_type = ID_POPUP_PCB_MOVE_MIRE_REQUEST;
if( aIdCommand == HK_MOVE_ITEM )
evt_type = ID_POPUP_PCB_MOVE_MIRE_REQUEST;
break;
case TYPE_ZONE_CONTAINER:
evt_type = ID_POPUP_PCB_MOVE_ZONE_OUTLINES;
if( aIdCommand == HK_MOVE_ITEM )
evt_type = ID_POPUP_PCB_MOVE_ZONE_OUTLINES;
if( aIdCommand == HK_DRAG_ITEM )
evt_type = ID_POPUP_PCB_DRAG_ZONE_OUTLINE_SEGMENT;
break;
case TYPE_TEXTE_MODULE:
evt_type = ID_POPUP_PCB_MOVE_TEXTMODULE_REQUEST;
if( aIdCommand == HK_MOVE_ITEM )
evt_type = ID_POPUP_PCB_MOVE_TEXTMODULE_REQUEST;
break;
case TYPE_DRAWSEGMENT:
evt_type = ID_POPUP_PCB_MOVE_DRAWING_REQUEST;
if( aIdCommand == HK_MOVE_ITEM )
evt_type = ID_POPUP_PCB_MOVE_DRAWING_REQUEST;
break;
default:
@ -844,11 +851,13 @@ bool WinEDA_PcbFrame::OnHotkeyRotateItem( int aIdCommand )
break;
case TYPE_TEXTE:
evt_type = ID_POPUP_PCB_ROTATE_TEXTEPCB;
if( aIdCommand == HK_ROTATE_ITEM ) // Rotation
evt_type = ID_POPUP_PCB_ROTATE_TEXTEPCB;
break;
case TYPE_TEXTE_MODULE:
evt_type = ID_POPUP_PCB_ROTATE_TEXTMODULE;
if( aIdCommand == HK_ROTATE_ITEM ) // Rotation
evt_type = ID_POPUP_PCB_ROTATE_TEXTMODULE;
break;
default:

View File

@ -581,8 +581,9 @@ void WinEDA_PcbFrame::createPopUpMenuForZones( ZONE_CONTAINER* edge_zone, wxMenu
{
ADD_MENUITEM( zones_menu, ID_POPUP_PCB_ADD_ZONE_CORNER,
_( "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,
_( "Drag Outline Segment" ), drag_outline_segment_xpm );
msg, drag_outline_segment_xpm );
}
zones_menu->AppendSeparator();