Modedit: very minor enhancements.

This commit is contained in:
jean-pierre charras 2012-08-31 21:19:48 +02:00
parent eaf4919ef8
commit f301b196ab
2 changed files with 16 additions and 8 deletions

View File

@ -59,6 +59,12 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
// Menu File:
wxMenu* fileMenu = new wxMenu;
// Active library selection
AddMenuItem( fileMenu, ID_MODEDIT_SELECT_CURRENT_LIB, _("Current Library"),
_( "Select active library" ),
KiBitmap( open_library_xpm ) );
fileMenu->AppendSeparator();
// New module
AddMenuItem( fileMenu, ID_MODEDIT_NEW_MODULE,
_( "&New Module" ), _( "Create new module" ),
@ -90,6 +96,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
_( "&Load Module" ),
_( "Load a footprint module" ),
KiBitmap( open_document_xpm ) );
fileMenu->AppendSeparator();
// Save module
AddMenuItem( fileMenu, ID_MODEDIT_SAVE_LIBMODULE,
@ -108,8 +115,6 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
_( "&Export Module" ),
_( "Save the current loaded module to a file" ),
KiBitmap( export_module_xpm ) );
// Separator
fileMenu->AppendSeparator();
// Print

View File

@ -195,6 +195,9 @@ void FOOTPRINT_EDIT_FRAME::Process_Special_Functions( wxCommandEvent& event )
case ID_POPUP_MODEDIT_EDIT_LAYER_CURRENT_EDGE:
case ID_POPUP_MODEDIT_EDIT_LAYER_ALL_EDGE:
case ID_POPUP_MODEDIT_ENTER_EDGE_WIDTH:
case ID_POPUP_PCB_DELETE_EDGE:
case ID_POPUP_PCB_DELETE_TEXTMODULE:
case ID_POPUP_PCB_DELETE_PAD:
case ID_POPUP_DELETE_BLOCK:
case ID_POPUP_PLACE_BLOCK:
case ID_POPUP_ZOOM_BLOCK: