Use "..." uniformly in menus.
See the bug report for some wording changes and a couple of menu restructurings that were also cleaned up. Fixes: lp:1597827 * https://bugs.launchpad.net/kicad/+bug/1597827
This commit is contained in:
parent
e832212d89
commit
1afbfad44a
|
@ -141,29 +141,31 @@ void EDA_3D_VIEWER::CreateMenuBar()
|
||||||
|
|
||||||
wxMenuBar* menuBar = new wxMenuBar;
|
wxMenuBar* menuBar = new wxMenuBar;
|
||||||
wxMenu* fileMenu = new wxMenu;
|
wxMenu* fileMenu = new wxMenu;
|
||||||
|
wxMenu* editMenu = new wxMenu;
|
||||||
wxMenu* prefsMenu = new wxMenu;
|
wxMenu* prefsMenu = new wxMenu;
|
||||||
wxMenu* helpMenu = new wxMenu;
|
wxMenu* helpMenu = new wxMenu;
|
||||||
|
|
||||||
menuBar->Append( fileMenu, _( "&File" ) );
|
menuBar->Append( fileMenu, _( "&File" ) );
|
||||||
|
|
||||||
AddMenuItem( fileMenu, ID_MENU_SCREENCOPY_PNG,
|
AddMenuItem( fileMenu, ID_MENU_SCREENCOPY_PNG,
|
||||||
_( "Create Image (png format)" ),
|
_( "Export Current View as PNG..." ),
|
||||||
KiBitmap( export_xpm ) );
|
KiBitmap( export_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( fileMenu, ID_MENU_SCREENCOPY_JPEG,
|
AddMenuItem( fileMenu, ID_MENU_SCREENCOPY_JPEG,
|
||||||
_( "Create Image (jpeg format)" ),
|
_( "Export Current View as JPEG..." ),
|
||||||
KiBitmap( export_xpm ) );
|
KiBitmap( export_xpm ) );
|
||||||
|
|
||||||
fileMenu->AppendSeparator();
|
|
||||||
AddMenuItem( fileMenu, ID_TOOL_SCREENCOPY_TOCLIBBOARD,
|
|
||||||
_( "Copy 3D Image to Clipboard" ),
|
|
||||||
KiBitmap( copy_xpm ) );
|
|
||||||
|
|
||||||
fileMenu->AppendSeparator();
|
fileMenu->AppendSeparator();
|
||||||
AddMenuItem( fileMenu, wxID_EXIT,
|
AddMenuItem( fileMenu, wxID_EXIT,
|
||||||
_( "&Exit" ),
|
_( "&Exit" ),
|
||||||
KiBitmap( exit_xpm ) );
|
KiBitmap( exit_xpm ) );
|
||||||
|
|
||||||
|
menuBar->Append( editMenu, _( "&Edit" ) );
|
||||||
|
|
||||||
|
AddMenuItem( editMenu, ID_TOOL_SCREENCOPY_TOCLIBBOARD,
|
||||||
|
_( "Copy 3D Image" ),
|
||||||
|
KiBitmap( copy_xpm ) );
|
||||||
|
|
||||||
menuBar->Append( prefsMenu, _( "&Preferences" ) );
|
menuBar->Append( prefsMenu, _( "&Preferences" ) );
|
||||||
|
|
||||||
AddMenuItem( prefsMenu, ID_MENU3D_MOUSEWHEEL_PANNING,
|
AddMenuItem( prefsMenu, ID_MENU3D_MOUSEWHEEL_PANNING,
|
||||||
|
@ -203,15 +205,15 @@ void EDA_3D_VIEWER::CreateMenuBar()
|
||||||
_( "Material Properties" ), KiBitmap( color_materials_xpm ) );
|
_( "Material Properties" ), KiBitmap( color_materials_xpm ) );
|
||||||
|
|
||||||
materialsList->AppendRadioItem( ID_MENU3D_FL_RENDER_MATERIAL_MODE_NORMAL,
|
materialsList->AppendRadioItem( ID_MENU3D_FL_RENDER_MATERIAL_MODE_NORMAL,
|
||||||
_( "Use all properties" ),
|
_( "Use All Properties" ),
|
||||||
_( "Use all material properties from each 3D model file" ) );
|
_( "Use all material properties from each 3D model file" ) );
|
||||||
|
|
||||||
materialsList->AppendRadioItem( ID_MENU3D_FL_RENDER_MATERIAL_MODE_DIFFUSE_ONLY,
|
materialsList->AppendRadioItem( ID_MENU3D_FL_RENDER_MATERIAL_MODE_DIFFUSE_ONLY,
|
||||||
_( "Use diffuse only" ),
|
_( "Use Diffuse Only" ),
|
||||||
_( "Use only the diffuse color property from model 3D model file " ) );
|
_( "Use only the diffuse color property from model 3D model file " ) );
|
||||||
|
|
||||||
materialsList->AppendRadioItem( ID_MENU3D_FL_RENDER_MATERIAL_MODE_CAD_MODE,
|
materialsList->AppendRadioItem( ID_MENU3D_FL_RENDER_MATERIAL_MODE_CAD_MODE,
|
||||||
_( "CAD color style" ),
|
_( "CAD Color Style" ),
|
||||||
_( "Use a CAD color style based on the diffuse color of the material" ) );
|
_( "Use a CAD color style based on the diffuse color of the material" ) );
|
||||||
|
|
||||||
// Add specific preferences for OpenGL
|
// Add specific preferences for OpenGL
|
||||||
|
@ -247,7 +249,7 @@ void EDA_3D_VIEWER::CreateMenuBar()
|
||||||
KiBitmap( green_xpm ), wxITEM_CHECK );
|
KiBitmap( green_xpm ), wxITEM_CHECK );
|
||||||
|
|
||||||
AddMenuItem( renderOptionsMenu_RAYTRACING, ID_MENU3D_FL_RAYTRACING_BACKFLOOR,
|
AddMenuItem( renderOptionsMenu_RAYTRACING, ID_MENU3D_FL_RAYTRACING_BACKFLOOR,
|
||||||
_( "Add floor" ),
|
_( "Add Floor" ),
|
||||||
_( "Adds a floor plane below the board (slow)"),
|
_( "Adds a floor plane below the board (slow)"),
|
||||||
KiBitmap( green_xpm ), wxITEM_CHECK );
|
KiBitmap( green_xpm ), wxITEM_CHECK );
|
||||||
|
|
||||||
|
@ -287,25 +289,25 @@ void EDA_3D_VIEWER::CreateMenuBar()
|
||||||
_( "Background Color" ), KiBitmap( palette_xpm ) );
|
_( "Background Color" ), KiBitmap( palette_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( setBgColorMenu, ID_MENU3D_BGCOLOR_TOP_SELECTION,
|
AddMenuItem( setBgColorMenu, ID_MENU3D_BGCOLOR_TOP_SELECTION,
|
||||||
_( "Background Top Color" ), KiBitmap( setcolor_3d_bg_xpm ) );
|
_( "Background Top Color..." ), KiBitmap( setcolor_3d_bg_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( setBgColorMenu, ID_MENU3D_BGCOLOR_BOTTOM_SELECTION,
|
AddMenuItem( setBgColorMenu, ID_MENU3D_BGCOLOR_BOTTOM_SELECTION,
|
||||||
_( "Background Bottom Color" ), KiBitmap( setcolor_3d_bg_xpm ) );
|
_( "Background Bottom Color..." ), KiBitmap( setcolor_3d_bg_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( setColorMenu, ID_MENU3D_SILKSCREEN_COLOR_SELECTION,
|
AddMenuItem( setColorMenu, ID_MENU3D_SILKSCREEN_COLOR_SELECTION,
|
||||||
_( "Silkscreen Color" ), KiBitmap( setcolor_silkscreen_xpm ) );
|
_( "Silkscreen Color..." ), KiBitmap( setcolor_silkscreen_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( setColorMenu, ID_MENU3D_SOLDERMASK_COLOR_SELECTION,
|
AddMenuItem( setColorMenu, ID_MENU3D_SOLDERMASK_COLOR_SELECTION,
|
||||||
_( "Solder Mask Color" ), KiBitmap( setcolor_soldermask_xpm ) );
|
_( "Solder Mask Color..." ), KiBitmap( setcolor_soldermask_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( setColorMenu, ID_MENU3D_SOLDERPASTE_COLOR_SELECTION,
|
AddMenuItem( setColorMenu, ID_MENU3D_SOLDERPASTE_COLOR_SELECTION,
|
||||||
_( "Solder Paste Color" ), KiBitmap( setcolor_solderpaste_xpm ) );
|
_( "Solder Paste Color..." ), KiBitmap( setcolor_solderpaste_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( setColorMenu, ID_MENU3D_COPPER_COLOR_SELECTION,
|
AddMenuItem( setColorMenu, ID_MENU3D_COPPER_COLOR_SELECTION,
|
||||||
_( "Copper/Surface Finish Color" ), KiBitmap( setcolor_copper_xpm ) );
|
_( "Copper/Surface Finish Color..." ), KiBitmap( setcolor_copper_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( setColorMenu, ID_MENU3D_PCB_BODY_COLOR_SELECTION,
|
AddMenuItem( setColorMenu, ID_MENU3D_PCB_BODY_COLOR_SELECTION,
|
||||||
_( "Board Body Color" ), KiBitmap( setcolor_board_body_xpm ) );
|
_( "Board Body Color..." ), KiBitmap( setcolor_board_body_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( prefsMenu, ID_MENU3D_AXIS_ONOFF,
|
AddMenuItem( prefsMenu, ID_MENU3D_AXIS_ONOFF,
|
||||||
_( "Show 3D &Axis" ), KiBitmap( axis3d_front_xpm ), wxITEM_CHECK );
|
_( "Show 3D &Axis" ), KiBitmap( axis3d_front_xpm ), wxITEM_CHECK );
|
||||||
|
@ -349,11 +351,11 @@ void EDA_3D_VIEWER::CreateMenuBar()
|
||||||
AddMenuItem( prefsMenu, moduleAttributes, ID_MENU3D_MODULE_ONOFF,
|
AddMenuItem( prefsMenu, moduleAttributes, ID_MENU3D_MODULE_ONOFF,
|
||||||
_( "Show 3D M&odels" ), KiBitmap( shape_3d_xpm ) );
|
_( "Show 3D M&odels" ), KiBitmap( shape_3d_xpm ) );
|
||||||
moduleAttributes->AppendCheckItem( ID_MENU3D_MODULE_ONOFF_ATTRIBUTES_NORMAL,
|
moduleAttributes->AppendCheckItem( ID_MENU3D_MODULE_ONOFF_ATTRIBUTES_NORMAL,
|
||||||
_( "Through hole" ),
|
_( "Through Hole" ),
|
||||||
_( "Footprint Properties -> Placement type -> Through hole" ) );
|
_( "Footprint Properties -> Placement type -> Through hole" ) );
|
||||||
|
|
||||||
moduleAttributes->AppendCheckItem( ID_MENU3D_MODULE_ONOFF_ATTRIBUTES_NORMAL_INSERT,
|
moduleAttributes->AppendCheckItem( ID_MENU3D_MODULE_ONOFF_ATTRIBUTES_NORMAL_INSERT,
|
||||||
_( "Surface mount" ),
|
_( "Surface Mount" ),
|
||||||
_( "Footprint Properties -> Placement type -> Surface mount" ) );
|
_( "Footprint Properties -> Placement type -> Surface mount" ) );
|
||||||
|
|
||||||
moduleAttributes->AppendCheckItem( ID_MENU3D_MODULE_ONOFF_ATTRIBUTES_VIRTUAL,
|
moduleAttributes->AppendCheckItem( ID_MENU3D_MODULE_ONOFF_ATTRIBUTES_VIRTUAL,
|
||||||
|
@ -393,7 +395,7 @@ void EDA_3D_VIEWER::CreateMenuBar()
|
||||||
prefsMenu->AppendSeparator();
|
prefsMenu->AppendSeparator();
|
||||||
|
|
||||||
AddMenuItem( prefsMenu, ID_MENU3D_RESET_DEFAULTS,
|
AddMenuItem( prefsMenu, ID_MENU3D_RESET_DEFAULTS,
|
||||||
_( "Reset to default settings" ),
|
_( "Reset to Default Settings" ),
|
||||||
KiBitmap( tools_xpm ) );
|
KiBitmap( tools_xpm ) );
|
||||||
|
|
||||||
// Help menu
|
// Help menu
|
||||||
|
@ -401,7 +403,7 @@ void EDA_3D_VIEWER::CreateMenuBar()
|
||||||
menuBar->Append( helpMenu, _( "&Help" ) );
|
menuBar->Append( helpMenu, _( "&Help" ) );
|
||||||
|
|
||||||
AddMenuItem( helpMenu, ID_MENU3D_HELP_HOTKEY_SHOW_CURRENT_LIST,
|
AddMenuItem( helpMenu, ID_MENU3D_HELP_HOTKEY_SHOW_CURRENT_LIST,
|
||||||
_( "&List Hotkeys" ),
|
_( "&List Hotkeys..." ),
|
||||||
_( "Displays the current hotkeys list and corresponding commands" ),
|
_( "Displays the current hotkeys list and corresponding commands" ),
|
||||||
KiBitmap( hotkeys_xpm ) );
|
KiBitmap( hotkeys_xpm ) );
|
||||||
|
|
||||||
|
|
|
@ -796,7 +796,7 @@ void AddHotkeyConfigMenu( wxMenu* aMenu )
|
||||||
|
|
||||||
// Call hotkeys editor
|
// Call hotkeys editor
|
||||||
AddMenuItem( HotkeySubmenu, ID_PREFERENCES_HOTKEY_SHOW_EDITOR,
|
AddMenuItem( HotkeySubmenu, ID_PREFERENCES_HOTKEY_SHOW_EDITOR,
|
||||||
_( "&Edit Hotkeys" ),
|
_( "&Edit Hotkeys..." ),
|
||||||
_( "Edit hotkeys list" ),
|
_( "Edit hotkeys list" ),
|
||||||
KiBitmap( config_xpm ) );
|
KiBitmap( config_xpm ) );
|
||||||
|
|
||||||
|
@ -804,13 +804,13 @@ void AddHotkeyConfigMenu( wxMenu* aMenu )
|
||||||
|
|
||||||
// create hotkey file to export current hotkeys config
|
// create hotkey file to export current hotkeys config
|
||||||
AddMenuItem( HotkeySubmenu, ID_PREFERENCES_HOTKEY_EXPORT_CONFIG,
|
AddMenuItem( HotkeySubmenu, ID_PREFERENCES_HOTKEY_EXPORT_CONFIG,
|
||||||
_( "E&xport Hotkeys" ),
|
_( "E&xport Hotkeys..." ),
|
||||||
_( "Export current hotkeys into configuration file" ),
|
_( "Export current hotkeys into configuration file" ),
|
||||||
KiBitmap( hotkeys_export_xpm ) );
|
KiBitmap( hotkeys_export_xpm ) );
|
||||||
|
|
||||||
// Reload hotkey file
|
// Reload hotkey file
|
||||||
AddMenuItem( HotkeySubmenu, ID_PREFERENCES_HOTKEY_IMPORT_CONFIG,
|
AddMenuItem( HotkeySubmenu, ID_PREFERENCES_HOTKEY_IMPORT_CONFIG,
|
||||||
_( "&Import Hotkeys" ),
|
_( "&Import Hotkeys..." ),
|
||||||
_( "Load existing hotkey configuration file" ),
|
_( "Load existing hotkey configuration file" ),
|
||||||
KiBitmap( hotkeys_import_xpm ) );
|
KiBitmap( hotkeys_import_xpm ) );
|
||||||
|
|
||||||
|
|
|
@ -251,13 +251,13 @@ void EDA_DRAW_FRAME::AddMenuZoomAndGrid( wxMenu* MasterMenu )
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Center" ), m_hotkeysDescrList, HK_ZOOM_CENTER );
|
msg = AddHotkeyName( _( "Center" ), m_hotkeysDescrList, HK_ZOOM_CENTER );
|
||||||
AddMenuItem( MasterMenu, ID_POPUP_ZOOM_CENTER, msg, KiBitmap( zoom_center_on_screen_xpm ) );
|
AddMenuItem( MasterMenu, ID_POPUP_ZOOM_CENTER, msg, KiBitmap( zoom_center_on_screen_xpm ) );
|
||||||
msg = AddHotkeyName( _( "Zoom in" ), m_hotkeysDescrList, HK_ZOOM_IN );
|
msg = AddHotkeyName( _( "Zoom In" ), m_hotkeysDescrList, HK_ZOOM_IN );
|
||||||
AddMenuItem( MasterMenu, ID_POPUP_ZOOM_IN, msg, KiBitmap( zoom_in_xpm ) );
|
AddMenuItem( MasterMenu, ID_POPUP_ZOOM_IN, msg, KiBitmap( zoom_in_xpm ) );
|
||||||
msg = AddHotkeyName( _( "Zoom out" ), m_hotkeysDescrList, HK_ZOOM_OUT );
|
msg = AddHotkeyName( _( "Zoom Out" ), m_hotkeysDescrList, HK_ZOOM_OUT );
|
||||||
AddMenuItem( MasterMenu, ID_POPUP_ZOOM_OUT, msg, KiBitmap( zoom_out_xpm ) );
|
AddMenuItem( MasterMenu, ID_POPUP_ZOOM_OUT, msg, KiBitmap( zoom_out_xpm ) );
|
||||||
msg = AddHotkeyName( _( "Redraw view" ), m_hotkeysDescrList, HK_ZOOM_REDRAW );
|
msg = AddHotkeyName( _( "Redraw View" ), m_hotkeysDescrList, HK_ZOOM_REDRAW );
|
||||||
AddMenuItem( MasterMenu, ID_POPUP_ZOOM_REDRAW, msg, KiBitmap( zoom_redraw_xpm ) );
|
AddMenuItem( MasterMenu, ID_POPUP_ZOOM_REDRAW, msg, KiBitmap( zoom_redraw_xpm ) );
|
||||||
msg = AddHotkeyName( _( "Zoom auto" ), m_hotkeysDescrList, HK_ZOOM_AUTO );
|
msg = AddHotkeyName( _( "Zoom Auto" ), m_hotkeysDescrList, HK_ZOOM_AUTO );
|
||||||
AddMenuItem( MasterMenu, ID_POPUP_ZOOM_PAGE, msg, KiBitmap( zoom_fit_in_page_xpm ) );
|
AddMenuItem( MasterMenu, ID_POPUP_ZOOM_PAGE, msg, KiBitmap( zoom_fit_in_page_xpm ) );
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -78,19 +78,19 @@ void CVPCB_MAINFRAME::ReCreateMenuBar()
|
||||||
wxMenu* preferencesMenu = new wxMenu;
|
wxMenu* preferencesMenu = new wxMenu;
|
||||||
|
|
||||||
AddMenuItem( preferencesMenu, ID_CVPCB_LIB_TABLE_EDIT,
|
AddMenuItem( preferencesMenu, ID_CVPCB_LIB_TABLE_EDIT,
|
||||||
_( "Manage Footprint &Libraries" ), _( "Manage footprint libraries" ),
|
_( "Manage Footprint &Libraries..." ), _( "Manage footprint libraries" ),
|
||||||
KiBitmap( library_table_xpm ) );
|
KiBitmap( library_table_xpm ) );
|
||||||
|
|
||||||
// Path configuration edit dialog.
|
// Path configuration edit dialog.
|
||||||
AddMenuItem( preferencesMenu,
|
AddMenuItem( preferencesMenu,
|
||||||
ID_PREFERENCES_CONFIGURE_PATHS,
|
ID_PREFERENCES_CONFIGURE_PATHS,
|
||||||
_( "Configure &Paths" ),
|
_( "Configure &Paths..." ),
|
||||||
_( "Edit path configuration environment variables" ),
|
_( "Edit path configuration environment variables" ),
|
||||||
KiBitmap( editor_xpm ) );
|
KiBitmap( editor_xpm ) );
|
||||||
|
|
||||||
preferencesMenu->AppendSeparator();
|
preferencesMenu->AppendSeparator();
|
||||||
AddMenuItem( preferencesMenu, ID_CVPCB_EQUFILES_LIST_EDIT,
|
AddMenuItem( preferencesMenu, ID_CVPCB_EQUFILES_LIST_EDIT,
|
||||||
_( "Footprint &Association Files" ),
|
_( "Footprint &Association Files..." ),
|
||||||
_( "Configure footprint association file (.equ) list."
|
_( "Configure footprint association file (.equ) list."
|
||||||
"These files are used to automatically assign "
|
"These files are used to automatically assign "
|
||||||
"the footprint name from the symbol value" ),
|
"the footprint name from the symbol value" ),
|
||||||
|
|
|
@ -145,7 +145,7 @@ bool LIB_EDIT_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu )
|
||||||
KiBitmap( move_rectangle_xpm ) );
|
KiBitmap( move_rectangle_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Edit Circle Options" ), g_Libedit_Hokeys_Descr, HK_EDIT );
|
msg = AddHotkeyName( _( "Edit Circle Options..." ), g_Libedit_Hokeys_Descr, HK_EDIT );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_LIBEDIT_BODY_EDIT_ITEM, msg,
|
AddMenuItem( PopMenu, ID_POPUP_LIBEDIT_BODY_EDIT_ITEM, msg,
|
||||||
KiBitmap( options_circle_xpm ) );
|
KiBitmap( options_circle_xpm ) );
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ bool LIB_EDIT_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu )
|
||||||
KiBitmap( move_rectangle_xpm ) );
|
KiBitmap( move_rectangle_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Edit Rectangle Options" ), g_Libedit_Hokeys_Descr, HK_EDIT );
|
msg = AddHotkeyName( _( "Edit Rectangle Options..." ), g_Libedit_Hokeys_Descr, HK_EDIT );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_LIBEDIT_BODY_EDIT_ITEM, msg,
|
AddMenuItem( PopMenu, ID_POPUP_LIBEDIT_BODY_EDIT_ITEM, msg,
|
||||||
KiBitmap( options_rectangle_xpm ) );
|
KiBitmap( options_rectangle_xpm ) );
|
||||||
|
|
||||||
|
@ -191,7 +191,7 @@ bool LIB_EDIT_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu )
|
||||||
KiBitmap( move_xpm ) );
|
KiBitmap( move_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Edit" ), g_Libedit_Hokeys_Descr, HK_EDIT );
|
msg = AddHotkeyName( _( "Edit..." ), g_Libedit_Hokeys_Descr, HK_EDIT );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_LIBEDIT_BODY_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_LIBEDIT_BODY_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Rotate Clockwise" ), g_Libedit_Hokeys_Descr, HK_ROTATE );
|
msg = AddHotkeyName( _( "Rotate Clockwise" ), g_Libedit_Hokeys_Descr, HK_ROTATE );
|
||||||
|
@ -221,7 +221,7 @@ bool LIB_EDIT_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu )
|
||||||
KiBitmap( checked_ok_xpm ) );
|
KiBitmap( checked_ok_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Edit Line Options" ), g_Libedit_Hokeys_Descr, HK_EDIT );
|
msg = AddHotkeyName( _( "Edit Line Options..." ), g_Libedit_Hokeys_Descr, HK_EDIT );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_LIBEDIT_BODY_EDIT_ITEM, msg,
|
AddMenuItem( PopMenu, ID_POPUP_LIBEDIT_BODY_EDIT_ITEM, msg,
|
||||||
KiBitmap( options_segment_xpm ) );
|
KiBitmap( options_segment_xpm ) );
|
||||||
|
|
||||||
|
@ -255,7 +255,7 @@ bool LIB_EDIT_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu )
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Rotate Clockwise" ), g_Libedit_Hokeys_Descr, HK_ROTATE );
|
msg = AddHotkeyName( _( "Rotate Clockwise" ), g_Libedit_Hokeys_Descr, HK_ROTATE );
|
||||||
AddMenuItem( PopMenu, ID_LIBEDIT_ROTATE_ITEM, msg, KiBitmap( rotate_cw_xpm ) );
|
AddMenuItem( PopMenu, ID_LIBEDIT_ROTATE_ITEM, msg, KiBitmap( rotate_cw_xpm ) );
|
||||||
msg = AddHotkeyName( _( "Edit" ), g_Libedit_Hokeys_Descr, HK_EDIT );
|
msg = AddHotkeyName( _( "Edit..." ), g_Libedit_Hokeys_Descr, HK_EDIT );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_LIBEDIT_FIELD_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_LIBEDIT_FIELD_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -285,7 +285,7 @@ void AddMenusForPin( wxMenu* PopMenu, LIB_PIN* Pin, LIB_EDIT_FRAME* frame )
|
||||||
AddMenuItem( PopMenu, ID_POPUP_LIBEDIT_MOVE_ITEM_REQUEST, msg, KiBitmap( move_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_LIBEDIT_MOVE_ITEM_REQUEST, msg, KiBitmap( move_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Edit" ), g_Libedit_Hokeys_Descr, HK_EDIT);
|
msg = AddHotkeyName( _( "Edit..." ), g_Libedit_Hokeys_Descr, HK_EDIT);
|
||||||
AddMenuItem( PopMenu, ID_LIBEDIT_EDIT_PIN, msg, KiBitmap( edit_xpm ) );
|
AddMenuItem( PopMenu, ID_LIBEDIT_EDIT_PIN, msg, KiBitmap( edit_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Rotate Clockwise" ), g_Libedit_Hokeys_Descr, HK_ROTATE );
|
msg = AddHotkeyName( _( "Rotate Clockwise" ), g_Libedit_Hokeys_Descr, HK_ROTATE );
|
||||||
|
@ -303,16 +303,16 @@ void AddMenusForPin( wxMenu* PopMenu, LIB_PIN* Pin, LIB_EDIT_FRAME* frame )
|
||||||
_( "Global" ), KiBitmap( pin_to_xpm ) );
|
_( "Global" ), KiBitmap( pin_to_xpm ) );
|
||||||
AddMenuItem( global_pin_change,
|
AddMenuItem( global_pin_change,
|
||||||
ID_POPUP_LIBEDIT_PIN_GLOBAL_CHANGE_PINSIZE_ITEM,
|
ID_POPUP_LIBEDIT_PIN_GLOBAL_CHANGE_PINSIZE_ITEM,
|
||||||
selected ? _( "Pin Size to selected pins" ) :
|
selected ? _( "Push Pin Size to Selected Pin" ) :
|
||||||
_( "Pin Size to Others" ), KiBitmap( pin_size_to_xpm ) );
|
_( "Push Pin Size to Others" ), KiBitmap( pin_size_to_xpm ) );
|
||||||
AddMenuItem( global_pin_change,
|
AddMenuItem( global_pin_change,
|
||||||
ID_POPUP_LIBEDIT_PIN_GLOBAL_CHANGE_PINNAMESIZE_ITEM,
|
ID_POPUP_LIBEDIT_PIN_GLOBAL_CHANGE_PINNAMESIZE_ITEM,
|
||||||
selected ? _( "Pin Name Size to selected pin" ) :
|
selected ? _( "Push Pin Name Size to Selected Pin" ) :
|
||||||
_( "Pin Name Size to Others" ), KiBitmap( pin_name_to_xpm ) );
|
_( "Push Pin Name Size to Others" ), KiBitmap( pin_name_to_xpm ) );
|
||||||
AddMenuItem( global_pin_change,
|
AddMenuItem( global_pin_change,
|
||||||
ID_POPUP_LIBEDIT_PIN_GLOBAL_CHANGE_PINNUMSIZE_ITEM,
|
ID_POPUP_LIBEDIT_PIN_GLOBAL_CHANGE_PINNUMSIZE_ITEM,
|
||||||
selected ? _( "Pin Num Size to selected pin" ) :
|
selected ? _( "Push Pin Num Size to Selected Pin" ) :
|
||||||
_( "Pin Num Size to Others" ), KiBitmap( pin_number_to_xpm ) );
|
_( "Push Pin Num Size to Others" ), KiBitmap( pin_number_to_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -326,7 +326,7 @@ void AddMenusForBlock( wxMenu* PopMenu, LIB_EDIT_FRAME* frame )
|
||||||
|
|
||||||
if( frame->GetScreen()->m_BlockLocate.GetCommand() == BLOCK_MOVE )
|
if( frame->GetScreen()->m_BlockLocate.GetCommand() == BLOCK_MOVE )
|
||||||
AddMenuItem( PopMenu, ID_POPUP_ZOOM_BLOCK,
|
AddMenuItem( PopMenu, ID_POPUP_ZOOM_BLOCK,
|
||||||
_( "Zoom Block (drag middle mouse)" ),
|
_( "Zoom Block" ),
|
||||||
KiBitmap( zoom_area_xpm ) );
|
KiBitmap( zoom_area_xpm ) );
|
||||||
|
|
||||||
PopMenu->AppendSeparator();
|
PopMenu->AppendSeparator();
|
||||||
|
|
|
@ -55,9 +55,6 @@ static void prepareToolsMenu( wxMenu* aParentMenu );
|
||||||
// Build the help menu
|
// Build the help menu
|
||||||
static void prepareHelpMenu( wxMenu* aParentMenu );
|
static void prepareHelpMenu( wxMenu* aParentMenu );
|
||||||
|
|
||||||
// Build the import/export submenu
|
|
||||||
static void prepareImportExportMenu( wxMenu* aParentMenu );
|
|
||||||
|
|
||||||
// Build the edit menu
|
// Build the edit menu
|
||||||
static void prepareEditMenu( wxMenu* aParentMenu );
|
static void prepareEditMenu( wxMenu* aParentMenu );
|
||||||
|
|
||||||
|
@ -304,11 +301,11 @@ void prepareFilesMenu( wxMenu* aParentMenu, bool aIsOutsideProject )
|
||||||
{
|
{
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_NEW_PROJECT,
|
ID_NEW_PROJECT,
|
||||||
_( "&New" ),
|
_( "&New..." ),
|
||||||
_( "Clear current schematic hierarchy and start new schematic root sheet" ),
|
_( "Clear current schematic hierarchy and start new schematic root sheet" ),
|
||||||
KiBitmap( new_document_xpm ) );
|
KiBitmap( new_document_xpm ) );
|
||||||
|
|
||||||
text = AddHotkeyName( _( "&Open" ), g_Schematic_Hokeys_Descr, HK_LOAD_SCH );
|
text = AddHotkeyName( _( "&Open..." ), g_Schematic_Hokeys_Descr, HK_LOAD_SCH );
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_LOAD_PROJECT, text,
|
ID_LOAD_PROJECT, text,
|
||||||
_( "Open existing schematic" ),
|
_( "Open existing schematic" ),
|
||||||
|
@ -338,12 +335,12 @@ void prepareFilesMenu( wxMenu* aParentMenu, bool aIsOutsideProject )
|
||||||
}
|
}
|
||||||
|
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_APPEND_PROJECT, _( "App&end Schematic Sheet" ),
|
ID_APPEND_PROJECT, _( "App&end Schematic Sheet..." ),
|
||||||
_( "Import schematic sheet content from another project to current sheet" ),
|
_( "Import schematic sheet content from another project to current sheet" ),
|
||||||
KiBitmap( add_document_xpm ) );
|
KiBitmap( add_document_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_IMPORT_NON_KICAD_SCH, _( "&Import Non-Kicad Schematic File" ),
|
ID_IMPORT_NON_KICAD_SCH, _( "&Import Non-Kicad Schematic File..." ),
|
||||||
_( "Import schematic file from other applications" ),
|
_( "Import schematic file from other applications" ),
|
||||||
KiBitmap( import_document_xpm ) ); // TODO needs a different icon
|
KiBitmap( import_document_xpm ) ); // TODO needs a different icon
|
||||||
|
|
||||||
|
@ -366,7 +363,7 @@ void prepareFilesMenu( wxMenu* aParentMenu, bool aIsOutsideProject )
|
||||||
{
|
{
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_SAVE_ONE_SHEET_UNDER_NEW_NAME,
|
ID_SAVE_ONE_SHEET_UNDER_NEW_NAME,
|
||||||
_( "Save C&urrent Sheet As" ),
|
_( "Save C&urrent Sheet As..." ),
|
||||||
_( "Save current schematic sheet with new name" ),
|
_( "Save current schematic sheet with new name" ),
|
||||||
KiBitmap( save_as_xpm ) );
|
KiBitmap( save_as_xpm ) );
|
||||||
}
|
}
|
||||||
|
@ -375,35 +372,26 @@ void prepareFilesMenu( wxMenu* aParentMenu, bool aIsOutsideProject )
|
||||||
|
|
||||||
// Edit page layout:
|
// Edit page layout:
|
||||||
AddMenuItem( aParentMenu, ID_SHEET_SET,
|
AddMenuItem( aParentMenu, ID_SHEET_SET,
|
||||||
_( "Pa&ge Settings" ),
|
_( "Pa&ge Settings..." ),
|
||||||
_( "Settings for sheet size and frame references" ),
|
_( "Settings for sheet size and frame references" ),
|
||||||
KiBitmap( sheetset_xpm ) );
|
KiBitmap( sheetset_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
wxID_PRINT,
|
wxID_PRINT,
|
||||||
_( "Pri&nt" ),
|
_( "Pri&nt..." ),
|
||||||
_( "Print schematic sheet" ),
|
_( "Print schematic sheet" ),
|
||||||
KiBitmap( print_button_xpm ) );
|
KiBitmap( print_button_xpm ) );
|
||||||
|
|
||||||
// Plot submenu
|
AddMenuItem( aParentMenu, ID_GEN_PLOT_SCHEMATIC, _( "&Plot..." ),
|
||||||
wxMenu* choice_plot_fmt = new wxMenu;
|
|
||||||
|
|
||||||
AddMenuItem( choice_plot_fmt, ID_GEN_PLOT_SCHEMATIC, _( "&Plot" ),
|
|
||||||
_( "Plot schematic sheet in PostScript, PDF, SVG, DXF or HPGL format" ),
|
_( "Plot schematic sheet in PostScript, PDF, SVG, DXF or HPGL format" ),
|
||||||
KiBitmap( plot_xpm ) );
|
KiBitmap( plot_xpm ) );
|
||||||
|
|
||||||
// Plot to Clipboard
|
// Plot to Clipboard
|
||||||
AddMenuItem( choice_plot_fmt, ID_GEN_COPY_SHEET_TO_CLIPBOARD,
|
AddMenuItem( aParentMenu, ID_GEN_COPY_SHEET_TO_CLIPBOARD,
|
||||||
_( "Plot to C&lipboard" ),
|
_( "Plot to C&lipboard" ),
|
||||||
_( "Export drawings to clipboard" ),
|
_( "Export drawings to clipboard" ),
|
||||||
KiBitmap( copy_xpm ) );
|
KiBitmap( copy_xpm ) );
|
||||||
|
|
||||||
// Add plot submenu
|
|
||||||
AddMenuItem( aParentMenu, choice_plot_fmt,
|
|
||||||
ID_GEN_PLOT, _( "&Plot" ),
|
|
||||||
_( "Plot schematic sheet in HPGL, PostScript or SVG format" ),
|
|
||||||
KiBitmap( plot_xpm ) );
|
|
||||||
|
|
||||||
// Quit
|
// Quit
|
||||||
aParentMenu->AppendSeparator();
|
aParentMenu->AppendSeparator();
|
||||||
AddMenuItem( aParentMenu, wxID_EXIT, _( "&Close" ), _( "Close Eeschema" ),
|
AddMenuItem( aParentMenu, wxID_EXIT, _( "&Close" ), _( "Close Eeschema" ),
|
||||||
|
@ -433,11 +421,11 @@ void prepareEditMenu( wxMenu* aParentMenu )
|
||||||
|
|
||||||
// Find
|
// Find
|
||||||
aParentMenu->AppendSeparator();
|
aParentMenu->AppendSeparator();
|
||||||
text = AddHotkeyName( _( "&Find" ), g_Schematic_Hokeys_Descr, HK_FIND_ITEM );
|
text = AddHotkeyName( _( "&Find..." ), g_Schematic_Hokeys_Descr, HK_FIND_ITEM );
|
||||||
AddMenuItem( aParentMenu, ID_FIND_ITEMS, text, HELP_FIND, KiBitmap( find_xpm ) );
|
AddMenuItem( aParentMenu, ID_FIND_ITEMS, text, HELP_FIND, KiBitmap( find_xpm ) );
|
||||||
|
|
||||||
// Find/Replace
|
// Find/Replace
|
||||||
text = AddHotkeyName( _( "Find and Re&place" ), g_Schematic_Hokeys_Descr,
|
text = AddHotkeyName( _( "Find and Re&place..." ), g_Schematic_Hokeys_Descr,
|
||||||
HK_FIND_REPLACE );
|
HK_FIND_REPLACE );
|
||||||
AddMenuItem( aParentMenu, wxID_REPLACE, text, HELP_REPLACE,
|
AddMenuItem( aParentMenu, wxID_REPLACE, text, HELP_REPLACE,
|
||||||
KiBitmap( find_replace_xpm ) );
|
KiBitmap( find_replace_xpm ) );
|
||||||
|
@ -445,20 +433,20 @@ void prepareEditMenu( wxMenu* aParentMenu )
|
||||||
// Import footprint association .cmp file which can be created by Pcbnew:
|
// Import footprint association .cmp file which can be created by Pcbnew:
|
||||||
aParentMenu->AppendSeparator();
|
aParentMenu->AppendSeparator();
|
||||||
AddMenuItem( aParentMenu, ID_BACKANNO_ITEMS,
|
AddMenuItem( aParentMenu, ID_BACKANNO_ITEMS,
|
||||||
_( "Import Footprint Association File" ),
|
_( "Import Footprint Association File..." ),
|
||||||
HELP_IMPORT_FOOTPRINTS,
|
HELP_IMPORT_FOOTPRINTS,
|
||||||
KiBitmap( import_footprint_names_xpm ) );
|
KiBitmap( import_footprint_names_xpm ) );
|
||||||
|
|
||||||
// Update field values
|
// Update field values
|
||||||
AddMenuItem( aParentMenu, ID_UPDATE_FIELDS,
|
AddMenuItem( aParentMenu, ID_UPDATE_FIELDS,
|
||||||
_( "Update Field Values" ),
|
_( "Update Field Values..." ),
|
||||||
_( "Sets symbol fields to original library values" ),
|
_( "Sets symbol fields to original library values" ),
|
||||||
KiBitmap( update_fields_xpm ) );
|
KiBitmap( update_fields_xpm ) );
|
||||||
|
|
||||||
// Edit components to symbols library links (change LIB_ID values)
|
// Edit components to symbols library links (change LIB_ID values)
|
||||||
aParentMenu->AppendSeparator();
|
aParentMenu->AppendSeparator();
|
||||||
AddMenuItem( aParentMenu, ID_EDIT_COMPONENTS_TO_SYMBOLS_LIB_ID,
|
AddMenuItem( aParentMenu, ID_EDIT_COMPONENTS_TO_SYMBOLS_LIB_ID,
|
||||||
_( "Edit Symbol Library Links" ),
|
_( "Edit Symbol Library Links..." ),
|
||||||
_( "Edit schematic symbol's symbol library links" ),
|
_( "Edit schematic symbol's symbol library links" ),
|
||||||
KiBitmap( edit_cmp_symb_links_xpm ) );
|
KiBitmap( edit_cmp_symb_links_xpm ) );
|
||||||
}
|
}
|
||||||
|
@ -468,7 +456,7 @@ void prepareToolsMenu( wxMenu* aParentMenu )
|
||||||
{
|
{
|
||||||
wxString text;
|
wxString text;
|
||||||
|
|
||||||
text = AddHotkeyName( _( "Update PCB from Schematic" ), g_Schematic_Hokeys_Descr,
|
text = AddHotkeyName( _( "Update PCB from Schematic..." ), g_Schematic_Hokeys_Descr,
|
||||||
HK_UPDATE_PCB_FROM_SCH );
|
HK_UPDATE_PCB_FROM_SCH );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
|
@ -497,13 +485,13 @@ void prepareToolsMenu( wxMenu* aParentMenu )
|
||||||
|
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_RESCUE_CACHED,
|
ID_RESCUE_CACHED,
|
||||||
_( "&Rescue Symbols" ),
|
_( "&Rescue Symbols..." ),
|
||||||
_( "Find old symbols in project and rename/rescue them" ),
|
_( "Find old symbols in project and rename/rescue them" ),
|
||||||
KiBitmap( rescue_xpm ) );
|
KiBitmap( rescue_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_REMAP_SYMBOLS,
|
ID_REMAP_SYMBOLS,
|
||||||
_( "Remap Symbols" ),
|
_( "Remap Symbols..." ),
|
||||||
_( "Remap legacy library symbols to symbol library table" ),
|
_( "Remap legacy library symbols to symbol library table" ),
|
||||||
KiBitmap( rescue_xpm ) );
|
KiBitmap( rescue_xpm ) );
|
||||||
|
|
||||||
|
@ -511,7 +499,7 @@ void prepareToolsMenu( wxMenu* aParentMenu )
|
||||||
|
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_GET_ANNOTATE,
|
ID_GET_ANNOTATE,
|
||||||
_( "&Annotate Schematic" ), HELP_ANNOTATE,
|
_( "&Annotate Schematic..." ), HELP_ANNOTATE,
|
||||||
KiBitmap( annotate_xpm ) );
|
KiBitmap( annotate_xpm ) );
|
||||||
|
|
||||||
// ERC
|
// ERC
|
||||||
|
@ -523,18 +511,18 @@ void prepareToolsMenu( wxMenu* aParentMenu )
|
||||||
|
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_GET_NETLIST,
|
ID_GET_NETLIST,
|
||||||
_( "Generate &Netlist File" ),
|
_( "Generate &Netlist File..." ),
|
||||||
_( "Generate netlist file" ),
|
_( "Generate netlist file" ),
|
||||||
KiBitmap( netlist_xpm ) );
|
KiBitmap( netlist_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_OPEN_CMP_TABLE,
|
ID_OPEN_CMP_TABLE,
|
||||||
_( "Symbol Table &View" ),
|
_( "S&ymbol Table..." ),
|
||||||
KiBitmap( spreadsheet_xpm ) );
|
KiBitmap( spreadsheet_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_GET_TOOLS,
|
ID_GET_TOOLS,
|
||||||
_( "Generate Bill of &Materials" ),
|
_( "Generate Bill of &Materials..." ),
|
||||||
HELP_GENERATE_BOM,
|
HELP_GENERATE_BOM,
|
||||||
KiBitmap( bom_xpm ) );
|
KiBitmap( bom_xpm ) );
|
||||||
|
|
||||||
|
@ -545,7 +533,7 @@ void prepareToolsMenu( wxMenu* aParentMenu )
|
||||||
// Run CvPcb
|
// Run CvPcb
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_RUN_CVPCB,
|
ID_RUN_CVPCB,
|
||||||
_( "A&ssign Footprint" ),
|
_( "A&ssign Footprints" ),
|
||||||
_( "Run CvPcb" ),
|
_( "Run CvPcb" ),
|
||||||
KiBitmap( cvpcb_xpm ) );
|
KiBitmap( cvpcb_xpm ) );
|
||||||
|
|
||||||
|
@ -578,7 +566,7 @@ void prepareHelpMenu( wxMenu* aParentMenu )
|
||||||
|
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_PREFERENCES_HOTKEY_SHOW_CURRENT_LIST,
|
ID_PREFERENCES_HOTKEY_SHOW_CURRENT_LIST,
|
||||||
_( "&List Hotkeys" ),
|
_( "&List Hotkeys..." ),
|
||||||
_( "Displays current hotkeys list and corresponding commands" ),
|
_( "Displays current hotkeys list and corresponding commands" ),
|
||||||
KiBitmap( hotkeys_xpm ) );
|
KiBitmap( hotkeys_xpm ) );
|
||||||
|
|
||||||
|
@ -597,48 +585,19 @@ void prepareHelpMenu( wxMenu* aParentMenu )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void prepareImportExportMenu( wxMenu* aParentMenu )
|
|
||||||
{
|
|
||||||
AddMenuItem( aParentMenu,
|
|
||||||
ID_CONFIG_SAVE,
|
|
||||||
_( "&Save Preferences" ),
|
|
||||||
_( "Save application preferences" ),
|
|
||||||
KiBitmap( save_setup_xpm ) );
|
|
||||||
|
|
||||||
AddMenuItem( aParentMenu,
|
|
||||||
ID_CONFIG_READ,
|
|
||||||
_( "Load Prefe&rences" ),
|
|
||||||
_( "Load application preferences" ),
|
|
||||||
KiBitmap( import_setup_xpm ) );
|
|
||||||
|
|
||||||
aParentMenu->AppendSeparator();
|
|
||||||
|
|
||||||
AddMenuItem( aParentMenu,
|
|
||||||
ID_PREFERENCES_HOTKEY_EXPORT_CONFIG,
|
|
||||||
_( "E&xport Hotkeys" ),
|
|
||||||
_( "Create hotkey configuration file with current hotkeys" ),
|
|
||||||
KiBitmap( hotkeys_export_xpm ) );
|
|
||||||
|
|
||||||
AddMenuItem( aParentMenu,
|
|
||||||
ID_PREFERENCES_HOTKEY_IMPORT_CONFIG,
|
|
||||||
_( "&Import Hotkeys" ),
|
|
||||||
_( "Load existing hotkey configuration file" ),
|
|
||||||
KiBitmap( hotkeys_import_xpm ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
static void preparePreferencesMenu( SCH_EDIT_FRAME* aFrame, wxMenu* aParentMenu )
|
static void preparePreferencesMenu( SCH_EDIT_FRAME* aFrame, wxMenu* aParentMenu )
|
||||||
{
|
{
|
||||||
// Library
|
// Library
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_EDIT_SYM_LIB_TABLE,
|
ID_EDIT_SYM_LIB_TABLE,
|
||||||
_( "Manage Symbol Library Tables" ),
|
_( "Manage Symbol Library Tables..." ),
|
||||||
_( "Edit the global and project symbol library tables (list of active libraries)." ),
|
_( "Edit the global and project symbol library tables (list of active libraries)." ),
|
||||||
KiBitmap( library_table_xpm ) );
|
KiBitmap( library_table_xpm ) );
|
||||||
|
|
||||||
// Path configuration edit dialog.
|
// Path configuration edit dialog.
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_PREFERENCES_CONFIGURE_PATHS,
|
ID_PREFERENCES_CONFIGURE_PATHS,
|
||||||
_( "Configure &Paths" ),
|
_( "Configure &Paths..." ),
|
||||||
_( "Edit path configuration environment variables" ),
|
_( "Edit path configuration environment variables" ),
|
||||||
KiBitmap( path_xpm ) );
|
KiBitmap( path_xpm ) );
|
||||||
|
|
||||||
|
@ -660,14 +619,31 @@ static void preparePreferencesMenu( SCH_EDIT_FRAME* aFrame, wxMenu* aParentMenu
|
||||||
// Icons options submenu
|
// Icons options submenu
|
||||||
aFrame->AddMenuIconsOptions( aParentMenu );
|
aFrame->AddMenuIconsOptions( aParentMenu );
|
||||||
|
|
||||||
// Import/export (submenu in preferences menu)
|
// Import/export
|
||||||
aParentMenu->AppendSeparator();
|
aParentMenu->AppendSeparator();
|
||||||
wxMenu* importExportSubmenu = new wxMenu();
|
AddMenuItem( aParentMenu,
|
||||||
prepareImportExportMenu( importExportSubmenu );
|
ID_CONFIG_SAVE,
|
||||||
|
_( "&Save Preferences..." ),
|
||||||
AddMenuItem( aParentMenu, importExportSubmenu,
|
_( "Save application preferences" ),
|
||||||
wxID_ANY,
|
|
||||||
_( "&Import and Export" ),
|
|
||||||
_( "Import and export settings" ),
|
|
||||||
KiBitmap( save_setup_xpm ) );
|
KiBitmap( save_setup_xpm ) );
|
||||||
|
|
||||||
|
AddMenuItem( aParentMenu,
|
||||||
|
ID_CONFIG_READ,
|
||||||
|
_( "Load Prefe&rences..." ),
|
||||||
|
_( "Load application preferences" ),
|
||||||
|
KiBitmap( import_setup_xpm ) );
|
||||||
|
|
||||||
|
aParentMenu->AppendSeparator();
|
||||||
|
|
||||||
|
AddMenuItem( aParentMenu,
|
||||||
|
ID_PREFERENCES_HOTKEY_EXPORT_CONFIG,
|
||||||
|
_( "E&xport Hotkeys..." ),
|
||||||
|
_( "Create hotkey configuration file with current hotkeys" ),
|
||||||
|
KiBitmap( hotkeys_export_xpm ) );
|
||||||
|
|
||||||
|
AddMenuItem( aParentMenu,
|
||||||
|
ID_PREFERENCES_HOTKEY_IMPORT_CONFIG,
|
||||||
|
_( "&Import Hotkeys..." ),
|
||||||
|
_( "Load existing hotkey configuration file" ),
|
||||||
|
KiBitmap( hotkeys_import_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,13 +65,13 @@ void LIB_EDIT_FRAME::ReCreateMenuBar()
|
||||||
// Creating/loading libraries
|
// Creating/loading libraries
|
||||||
AddMenuItem( fileMenu,
|
AddMenuItem( fileMenu,
|
||||||
ID_LIBEDIT_NEW_LIBRARY,
|
ID_LIBEDIT_NEW_LIBRARY,
|
||||||
_( "&New Library" ),
|
_( "&New Library..." ),
|
||||||
_( "Creates an empty library" ),
|
_( "Creates an empty library" ),
|
||||||
KiBitmap( new_library_xpm ) );
|
KiBitmap( new_library_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( fileMenu,
|
AddMenuItem( fileMenu,
|
||||||
ID_LIBEDIT_ADD_LIBRARY,
|
ID_LIBEDIT_ADD_LIBRARY,
|
||||||
_( "&Add Library" ),
|
_( "&Add Library..." ),
|
||||||
_( "Adds a previously created library" ),
|
_( "Adds a previously created library" ),
|
||||||
KiBitmap( add_library_xpm ) );
|
KiBitmap( add_library_xpm ) );
|
||||||
|
|
||||||
|
@ -103,8 +103,8 @@ void LIB_EDIT_FRAME::ReCreateMenuBar()
|
||||||
// Export as png file
|
// Export as png file
|
||||||
AddMenuItem( fileMenu,
|
AddMenuItem( fileMenu,
|
||||||
ID_LIBEDIT_GEN_PNG_FILE,
|
ID_LIBEDIT_GEN_PNG_FILE,
|
||||||
_( "Create &PNG File from Screen..." ),
|
_( "Export Current View as &PNG..." ),
|
||||||
_( "Create a PNG file from the current symbol" ),
|
_( "Create a PNG file from the current view" ),
|
||||||
KiBitmap( plot_xpm ) );
|
KiBitmap( plot_xpm ) );
|
||||||
|
|
||||||
// Export as SVG file
|
// Export as SVG file
|
||||||
|
@ -190,7 +190,7 @@ void LIB_EDIT_FRAME::ReCreateMenuBar()
|
||||||
|
|
||||||
AddMenuItem( partMenu,
|
AddMenuItem( partMenu,
|
||||||
ID_LIBEDIT_NEW_PART,
|
ID_LIBEDIT_NEW_PART,
|
||||||
_( "&New Symbol" ),
|
_( "&New Symbol..." ),
|
||||||
_( "Create a new empty symbol" ),
|
_( "Create a new empty symbol" ),
|
||||||
KiBitmap( new_component_xpm ) );
|
KiBitmap( new_component_xpm ) );
|
||||||
|
|
||||||
|
@ -205,13 +205,13 @@ void LIB_EDIT_FRAME::ReCreateMenuBar()
|
||||||
|
|
||||||
AddMenuItem( partMenu,
|
AddMenuItem( partMenu,
|
||||||
ID_LIBEDIT_IMPORT_PART,
|
ID_LIBEDIT_IMPORT_PART,
|
||||||
_( "&Import Symbol" ),
|
_( "&Import Symbol..." ),
|
||||||
_( "Import a symbol to the current library" ),
|
_( "Import a symbol to the current library" ),
|
||||||
KiBitmap( import_part_xpm ) );
|
KiBitmap( import_part_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( partMenu,
|
AddMenuItem( partMenu,
|
||||||
ID_LIBEDIT_EXPORT_PART,
|
ID_LIBEDIT_EXPORT_PART,
|
||||||
_( "&Export Symbol" ),
|
_( "&Export Symbol..." ),
|
||||||
_( "Export the current symbol" ),
|
_( "Export the current symbol" ),
|
||||||
KiBitmap( export_part_xpm ) );
|
KiBitmap( export_part_xpm ) );
|
||||||
|
|
||||||
|
@ -219,13 +219,13 @@ void LIB_EDIT_FRAME::ReCreateMenuBar()
|
||||||
|
|
||||||
AddMenuItem( partMenu,
|
AddMenuItem( partMenu,
|
||||||
ID_LIBEDIT_GET_FRAME_EDIT_PART,
|
ID_LIBEDIT_GET_FRAME_EDIT_PART,
|
||||||
_( "&Properties" ),
|
_( "&Properties..." ),
|
||||||
_( "Edit symbol properties" ),
|
_( "Edit symbol properties" ),
|
||||||
KiBitmap( part_properties_xpm ) );
|
KiBitmap( part_properties_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( partMenu,
|
AddMenuItem( partMenu,
|
||||||
ID_LIBEDIT_GET_FRAME_EDIT_FIELDS,
|
ID_LIBEDIT_GET_FRAME_EDIT_FIELDS,
|
||||||
_( "&Fields" ),
|
_( "&Fields..." ),
|
||||||
_( "Edit field properties" ),
|
_( "Edit field properties" ),
|
||||||
KiBitmap( edit_text_xpm ) );
|
KiBitmap( edit_text_xpm ) );
|
||||||
|
|
||||||
|
@ -233,13 +233,13 @@ void LIB_EDIT_FRAME::ReCreateMenuBar()
|
||||||
|
|
||||||
AddMenuItem( partMenu,
|
AddMenuItem( partMenu,
|
||||||
ID_LIBEDIT_EDIT_PIN_BY_TABLE,
|
ID_LIBEDIT_EDIT_PIN_BY_TABLE,
|
||||||
_( "Pi&n Table" ),
|
_( "Pi&n Table..." ),
|
||||||
_( "Show pin table" ),
|
_( "Show pin table" ),
|
||||||
KiBitmap( pin_table_xpm ) );
|
KiBitmap( pin_table_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( partMenu,
|
AddMenuItem( partMenu,
|
||||||
ID_LIBEDIT_CHECK_PART,
|
ID_LIBEDIT_CHECK_PART,
|
||||||
_( "ERC" ),
|
_( "Electrical Rules Checker" ),
|
||||||
_( "Check duplicate and off grid pins" ),
|
_( "Check duplicate and off grid pins" ),
|
||||||
KiBitmap( erc_xpm ) );
|
KiBitmap( erc_xpm ) );
|
||||||
|
|
||||||
|
@ -294,14 +294,14 @@ void LIB_EDIT_FRAME::ReCreateMenuBar()
|
||||||
// Library list
|
// Library list
|
||||||
AddMenuItem( preferencesMenu,
|
AddMenuItem( preferencesMenu,
|
||||||
ID_EDIT_SYM_LIB_TABLE,
|
ID_EDIT_SYM_LIB_TABLE,
|
||||||
_( "Manage Symbol Libraries" ),
|
_( "Manage Symbol Libraries..." ),
|
||||||
_( "Edit the global and project symbol library tables." ),
|
_( "Edit the global and project symbol library tables." ),
|
||||||
KiBitmap( library_table_xpm ) );
|
KiBitmap( library_table_xpm ) );
|
||||||
|
|
||||||
// Default values and options
|
// Default values and options
|
||||||
AddMenuItem( preferencesMenu,
|
AddMenuItem( preferencesMenu,
|
||||||
wxID_PREFERENCES,
|
wxID_PREFERENCES,
|
||||||
_( "General &Options" ),
|
_( "General &Options..." ),
|
||||||
_( "Set Symbol Editor default values and options" ),
|
_( "Set Symbol Editor default values and options" ),
|
||||||
KiBitmap( preference_xpm ) );
|
KiBitmap( preference_xpm ) );
|
||||||
|
|
||||||
|
@ -329,7 +329,7 @@ void LIB_EDIT_FRAME::ReCreateMenuBar()
|
||||||
|
|
||||||
AddMenuItem( helpMenu,
|
AddMenuItem( helpMenu,
|
||||||
ID_PREFERENCES_HOTKEY_SHOW_CURRENT_LIST,
|
ID_PREFERENCES_HOTKEY_SHOW_CURRENT_LIST,
|
||||||
_( "&List Hotkeys" ),
|
_( "&List Hotkeys..." ),
|
||||||
_( "Displays the current hotkeys list and corresponding commands" ),
|
_( "Displays the current hotkeys list and corresponding commands" ),
|
||||||
KiBitmap( hotkeys_xpm ) );
|
KiBitmap( hotkeys_xpm ) );
|
||||||
|
|
||||||
|
|
|
@ -98,33 +98,33 @@ bool SCH_EDIT_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SCH_TEXT_T:
|
case SCH_TEXT_T:
|
||||||
msg = AddHotkeyName( _( "Edit Text" ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
msg = AddHotkeyName( _( "Edit Text..." ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
||||||
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
||||||
PopMenu->AppendSeparator();
|
PopMenu->AppendSeparator();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SCH_LABEL_T:
|
case SCH_LABEL_T:
|
||||||
msg = AddHotkeyName( _( "Edit Label" ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
msg = AddHotkeyName( _( "Edit Label..." ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
||||||
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
||||||
PopMenu->AppendSeparator();
|
PopMenu->AppendSeparator();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SCH_GLOBAL_LABEL_T:
|
case SCH_GLOBAL_LABEL_T:
|
||||||
msg = AddHotkeyName( _( "Edit Global Label" ), g_Schematic_Hokeys_Descr,
|
msg = AddHotkeyName( _( "Edit Global Label..." ), g_Schematic_Hokeys_Descr,
|
||||||
HK_EDIT );
|
HK_EDIT );
|
||||||
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
||||||
PopMenu->AppendSeparator();
|
PopMenu->AppendSeparator();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SCH_HIERARCHICAL_LABEL_T:
|
case SCH_HIERARCHICAL_LABEL_T:
|
||||||
msg = AddHotkeyName( _( "Edit Hierarchical Label" ), g_Schematic_Hokeys_Descr,
|
msg = AddHotkeyName( _( "Edit Hierarchical Label..." ), g_Schematic_Hokeys_Descr,
|
||||||
HK_EDIT );
|
HK_EDIT );
|
||||||
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
||||||
PopMenu->AppendSeparator();
|
PopMenu->AppendSeparator();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SCH_BITMAP_T:
|
case SCH_BITMAP_T:
|
||||||
msg = AddHotkeyName( _( "Edit Image" ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
msg = AddHotkeyName( _( "Edit Image..." ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
||||||
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( image_xpm ) );
|
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( image_xpm ) );
|
||||||
PopMenu->AppendSeparator();
|
PopMenu->AppendSeparator();
|
||||||
break;
|
break;
|
||||||
|
@ -329,19 +329,19 @@ void AddMenusForComponentField( wxMenu* PopMenu, SCH_FIELD* Field )
|
||||||
{
|
{
|
||||||
case REFERENCE:
|
case REFERENCE:
|
||||||
id = HK_EDIT_COMPONENT_REFERENCE;
|
id = HK_EDIT_COMPONENT_REFERENCE;
|
||||||
name = _( "Edit Reference" );
|
name = _( "Edit Reference..." );
|
||||||
break;
|
break;
|
||||||
case VALUE:
|
case VALUE:
|
||||||
id = HK_EDIT_COMPONENT_VALUE;
|
id = HK_EDIT_COMPONENT_VALUE;
|
||||||
name = _( "Edit Value" );
|
name = _( "Edit Value..." );
|
||||||
break;
|
break;
|
||||||
case FOOTPRINT:
|
case FOOTPRINT:
|
||||||
id = HK_EDIT_COMPONENT_FOOTPRINT;
|
id = HK_EDIT_COMPONENT_FOOTPRINT;
|
||||||
name = _( "Edit Footprint Field" );
|
name = _( "Edit Footprint Field..." );
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
id = HK_EDIT;
|
id = HK_EDIT;
|
||||||
name = _( "Edit Field" );
|
name = _( "Edit Field..." );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
msg = AddHotkeyName( name, g_Schematic_Hokeys_Descr, id );
|
msg = AddHotkeyName( name, g_Schematic_Hokeys_Descr, id );
|
||||||
|
@ -430,22 +430,22 @@ void AddMenusForEditComponent( wxMenu* PopMenu, SCH_COMPONENT* Component, SYMBOL
|
||||||
part = alias->GetPart();
|
part = alias->GetPart();
|
||||||
|
|
||||||
wxMenu* editmenu = new wxMenu;
|
wxMenu* editmenu = new wxMenu;
|
||||||
msg = AddHotkeyName( _( "Edit Properties" ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
msg = AddHotkeyName( _( "Edit Properties..." ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
||||||
AddMenuItem( editmenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( config_xpm ) );
|
AddMenuItem( editmenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( config_xpm ) );
|
||||||
|
|
||||||
if( part && part->IsNormal() )
|
if( part && part->IsNormal() )
|
||||||
{
|
{
|
||||||
msg = AddHotkeyName( _( "Edit Value" ), g_Schematic_Hokeys_Descr,
|
msg = AddHotkeyName( _( "Edit Value..." ), g_Schematic_Hokeys_Descr,
|
||||||
HK_EDIT_COMPONENT_VALUE );
|
HK_EDIT_COMPONENT_VALUE );
|
||||||
AddMenuItem( editmenu, ID_SCH_EDIT_COMPONENT_VALUE, msg,
|
AddMenuItem( editmenu, ID_SCH_EDIT_COMPONENT_VALUE, msg,
|
||||||
KiBitmap( edit_comp_value_xpm ) );
|
KiBitmap( edit_comp_value_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Edit Reference" ), g_Schematic_Hokeys_Descr,
|
msg = AddHotkeyName( _( "Edit Reference..." ), g_Schematic_Hokeys_Descr,
|
||||||
HK_EDIT_COMPONENT_REFERENCE );
|
HK_EDIT_COMPONENT_REFERENCE );
|
||||||
AddMenuItem( editmenu, ID_SCH_EDIT_COMPONENT_REFERENCE, msg,
|
AddMenuItem( editmenu, ID_SCH_EDIT_COMPONENT_REFERENCE, msg,
|
||||||
KiBitmap( edit_comp_ref_xpm ) );
|
KiBitmap( edit_comp_ref_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Edit Footprint" ), g_Schematic_Hokeys_Descr,
|
msg = AddHotkeyName( _( "Edit Footprint..." ), g_Schematic_Hokeys_Descr,
|
||||||
HK_EDIT_COMPONENT_FOOTPRINT );
|
HK_EDIT_COMPONENT_FOOTPRINT );
|
||||||
AddMenuItem( editmenu, ID_SCH_EDIT_COMPONENT_FOOTPRINT, msg,
|
AddMenuItem( editmenu, ID_SCH_EDIT_COMPONENT_FOOTPRINT, msg,
|
||||||
KiBitmap( edit_comp_footprint_xpm ) );
|
KiBitmap( edit_comp_footprint_xpm ) );
|
||||||
|
@ -513,7 +513,7 @@ void AddMenusForGLabel( wxMenu* PopMenu, SCH_GLOBALLABEL* GLabel )
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Rotate Clockwise" ), g_Schematic_Hokeys_Descr, HK_ROTATE );
|
msg = AddHotkeyName( _( "Rotate Clockwise" ), g_Schematic_Hokeys_Descr, HK_ROTATE );
|
||||||
AddMenuItem( PopMenu, ID_SCH_ROTATE_CLOCKWISE, msg, KiBitmap( rotate_cw_xpm ) );
|
AddMenuItem( PopMenu, ID_SCH_ROTATE_CLOCKWISE, msg, KiBitmap( rotate_cw_xpm ) );
|
||||||
msg = AddHotkeyName( _( "Edit" ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
msg = AddHotkeyName( _( "Edit..." ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
||||||
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
||||||
msg = AddHotkeyName( _( "Delete" ), g_Schematic_Hokeys_Descr, HK_DELETE );
|
msg = AddHotkeyName( _( "Delete" ), g_Schematic_Hokeys_Descr, HK_DELETE );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_SCH_DELETE, msg, KiBitmap( delete_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_SCH_DELETE, msg, KiBitmap( delete_xpm ) );
|
||||||
|
@ -549,7 +549,7 @@ void AddMenusForHLabel( wxMenu* PopMenu, SCH_HIERLABEL* HLabel )
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Rotate Clockwise" ), g_Schematic_Hokeys_Descr, HK_ROTATE );
|
msg = AddHotkeyName( _( "Rotate Clockwise" ), g_Schematic_Hokeys_Descr, HK_ROTATE );
|
||||||
AddMenuItem( PopMenu, ID_SCH_ROTATE_CLOCKWISE, msg, KiBitmap( rotate_cw_xpm ) );
|
AddMenuItem( PopMenu, ID_SCH_ROTATE_CLOCKWISE, msg, KiBitmap( rotate_cw_xpm ) );
|
||||||
msg = AddHotkeyName( _( "Edit" ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
msg = AddHotkeyName( _( "Edit..." ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
||||||
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
||||||
msg = AddHotkeyName( _( "Delete" ), g_Schematic_Hokeys_Descr, HK_DELETE );
|
msg = AddHotkeyName( _( "Delete" ), g_Schematic_Hokeys_Descr, HK_DELETE );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_SCH_DELETE, msg, KiBitmap( delete_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_SCH_DELETE, msg, KiBitmap( delete_xpm ) );
|
||||||
|
@ -585,7 +585,7 @@ void AddMenusForLabel( wxMenu* PopMenu, SCH_LABEL* Label )
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Rotate Counterclockwise" ), g_Schematic_Hokeys_Descr, HK_ROTATE );
|
msg = AddHotkeyName( _( "Rotate Counterclockwise" ), g_Schematic_Hokeys_Descr, HK_ROTATE );
|
||||||
AddMenuItem( PopMenu, ID_SCH_ROTATE_CLOCKWISE, msg, KiBitmap( rotate_ccw_xpm ) );
|
AddMenuItem( PopMenu, ID_SCH_ROTATE_CLOCKWISE, msg, KiBitmap( rotate_ccw_xpm ) );
|
||||||
msg = AddHotkeyName( _( "Edit" ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
msg = AddHotkeyName( _( "Edit..." ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
||||||
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
||||||
msg = AddHotkeyName( _( "Delete" ), g_Schematic_Hokeys_Descr, HK_DELETE );
|
msg = AddHotkeyName( _( "Delete" ), g_Schematic_Hokeys_Descr, HK_DELETE );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_SCH_DELETE, msg, KiBitmap( delete_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_SCH_DELETE, msg, KiBitmap( delete_xpm ) );
|
||||||
|
@ -619,7 +619,7 @@ void AddMenusForText( wxMenu* PopMenu, SCH_TEXT* Text )
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Rotate Counterclockwise" ), g_Schematic_Hokeys_Descr, HK_ROTATE );
|
msg = AddHotkeyName( _( "Rotate Counterclockwise" ), g_Schematic_Hokeys_Descr, HK_ROTATE );
|
||||||
AddMenuItem( PopMenu, ID_SCH_ROTATE_CLOCKWISE, msg, KiBitmap( rotate_ccw_xpm ) );
|
AddMenuItem( PopMenu, ID_SCH_ROTATE_CLOCKWISE, msg, KiBitmap( rotate_ccw_xpm ) );
|
||||||
msg = AddHotkeyName( _( "Edit" ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
msg = AddHotkeyName( _( "Edit..." ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
||||||
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
|
||||||
msg = AddHotkeyName( _( "Delete" ), g_Schematic_Hokeys_Descr, HK_DELETE );
|
msg = AddHotkeyName( _( "Delete" ), g_Schematic_Hokeys_Descr, HK_DELETE );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_SCH_DELETE, msg, KiBitmap( delete_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_SCH_DELETE, msg, KiBitmap( delete_xpm ) );
|
||||||
|
@ -710,12 +710,12 @@ void AddMenusForWire( wxMenu* PopMenu, SCH_LINE* Wire, SCH_EDIT_FRAME* frame )
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Add Junction" ), g_Schematic_Hokeys_Descr, HK_ADD_JUNCTION );
|
msg = AddHotkeyName( _( "Add Junction" ), g_Schematic_Hokeys_Descr, HK_ADD_JUNCTION );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_SCH_ADD_JUNCTION, msg, KiBitmap( add_junction_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_SCH_ADD_JUNCTION, msg, KiBitmap( add_junction_xpm ) );
|
||||||
msg = AddHotkeyName( _( "Add Label" ), g_Schematic_Hokeys_Descr, HK_ADD_LABEL );
|
msg = AddHotkeyName( _( "Add Label..." ), g_Schematic_Hokeys_Descr, HK_ADD_LABEL );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_SCH_ADD_LABEL, msg, KiBitmap( add_line_label_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_SCH_ADD_LABEL, msg, KiBitmap( add_line_label_xpm ) );
|
||||||
|
|
||||||
// Add global label command only if the cursor is over one end of the wire.
|
// Add global label command only if the cursor is over one end of the wire.
|
||||||
if( Wire->IsEndPoint( pos ) )
|
if( Wire->IsEndPoint( pos ) )
|
||||||
AddMenuItem( PopMenu, ID_POPUP_SCH_ADD_GLABEL, _( "Add Global Label" ),
|
AddMenuItem( PopMenu, ID_POPUP_SCH_ADD_GLABEL, _( "Add Global Label..." ),
|
||||||
KiBitmap( add_glabel_xpm ) );
|
KiBitmap( add_glabel_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -748,12 +748,12 @@ void AddMenusForBus( wxMenu* PopMenu, SCH_LINE* Bus, SCH_EDIT_FRAME* frame )
|
||||||
PopMenu->AppendSeparator();
|
PopMenu->AppendSeparator();
|
||||||
msg = AddHotkeyName( _( "Add Junction" ), g_Schematic_Hokeys_Descr, HK_ADD_JUNCTION );
|
msg = AddHotkeyName( _( "Add Junction" ), g_Schematic_Hokeys_Descr, HK_ADD_JUNCTION );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_SCH_ADD_JUNCTION, msg, KiBitmap( add_junction_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_SCH_ADD_JUNCTION, msg, KiBitmap( add_junction_xpm ) );
|
||||||
msg = AddHotkeyName( _( "Add Label" ), g_Schematic_Hokeys_Descr, HK_ADD_LABEL );
|
msg = AddHotkeyName( _( "Add Label..." ), g_Schematic_Hokeys_Descr, HK_ADD_LABEL );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_SCH_ADD_LABEL, msg, KiBitmap( add_line_label_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_SCH_ADD_LABEL, msg, KiBitmap( add_line_label_xpm ) );
|
||||||
|
|
||||||
// Add global label command only if the cursor is over one end of the bus.
|
// Add global label command only if the cursor is over one end of the bus.
|
||||||
if( Bus->IsEndPoint( pos ) )
|
if( Bus->IsEndPoint( pos ) )
|
||||||
AddMenuItem( PopMenu, ID_POPUP_SCH_ADD_GLABEL, _( "Add Global Label" ),
|
AddMenuItem( PopMenu, ID_POPUP_SCH_ADD_GLABEL, _( "Add Global Label..." ),
|
||||||
KiBitmap( add_glabel_xpm ) );
|
KiBitmap( add_glabel_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -804,7 +804,7 @@ void AddMenusForHierchicalSheet( wxMenu* PopMenu, SCH_SHEET* Sheet )
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
msg = AddHotkeyName( _( "Edit" ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
msg = AddHotkeyName( _( "Edit..." ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
||||||
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( editor_xpm ) );
|
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( editor_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( PopMenu, ID_POPUP_SCH_RESIZE_SHEET, _( "Resize" ),
|
AddMenuItem( PopMenu, ID_POPUP_SCH_RESIZE_SHEET, _( "Resize" ),
|
||||||
|
@ -835,7 +835,7 @@ void AddMenusForSheetPin( wxMenu* PopMenu, SCH_SHEET_PIN* PinSheet )
|
||||||
AddMenuItem( PopMenu, ID_SCH_MOVE_ITEM, msg, KiBitmap( move_xpm ) );
|
AddMenuItem( PopMenu, ID_SCH_MOVE_ITEM, msg, KiBitmap( move_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, _( "Edit" ), KiBitmap( edit_xpm ) );
|
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, _( "Edit..." ), KiBitmap( edit_xpm ) );
|
||||||
|
|
||||||
if( !PinSheet->GetFlags() )
|
if( !PinSheet->GetFlags() )
|
||||||
AddMenuItem( PopMenu, ID_POPUP_SCH_DELETE, _( "Delete" ),
|
AddMenuItem( PopMenu, ID_POPUP_SCH_DELETE, _( "Delete" ),
|
||||||
|
@ -920,7 +920,7 @@ void AddMenusForBitmap( wxMenu* aPopMenu, SCH_BITMAP * aBitmap )
|
||||||
msg = AddHotkeyName( _( "Mirror Around Vertical(Y) Axis" ), g_Schematic_Hokeys_Descr,
|
msg = AddHotkeyName( _( "Mirror Around Vertical(Y) Axis" ), g_Schematic_Hokeys_Descr,
|
||||||
HK_MIRROR_Y );
|
HK_MIRROR_Y );
|
||||||
AddMenuItem( aPopMenu, ID_SCH_MIRROR_Y, msg, KiBitmap( mirror_h_xpm ) );
|
AddMenuItem( aPopMenu, ID_SCH_MIRROR_Y, msg, KiBitmap( mirror_h_xpm ) );
|
||||||
msg = AddHotkeyName( _( "Edit Image" ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
msg = AddHotkeyName( _( "Edit Image..." ), g_Schematic_Hokeys_Descr, HK_EDIT );
|
||||||
AddMenuItem( aPopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( image_xpm ) );
|
AddMenuItem( aPopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( image_xpm ) );
|
||||||
|
|
||||||
if( aBitmap->GetFlags() == 0 )
|
if( aBitmap->GetFlags() == 0 )
|
||||||
|
|
|
@ -1223,17 +1223,17 @@ SIM_PLOT_FRAME::SIGNAL_CONTEXT_MENU::SIGNAL_CONTEXT_MENU( const wxString& aSigna
|
||||||
{
|
{
|
||||||
SIM_PLOT_PANEL* plot = m_plotFrame->CurrentPlot();
|
SIM_PLOT_PANEL* plot = m_plotFrame->CurrentPlot();
|
||||||
|
|
||||||
AddMenuItem( this, HIDE_SIGNAL, _( "Hide signal" ),
|
AddMenuItem( this, HIDE_SIGNAL, _( "Hide Signal" ),
|
||||||
_( "Erase the signal from plot screen" ),
|
_( "Erase the signal from plot screen" ),
|
||||||
KiBitmap( delete_xpm ) );
|
KiBitmap( delete_xpm ) );
|
||||||
|
|
||||||
TRACE* trace = plot->GetTrace( m_signal );
|
TRACE* trace = plot->GetTrace( m_signal );
|
||||||
|
|
||||||
if( trace->HasCursor() )
|
if( trace->HasCursor() )
|
||||||
AddMenuItem( this, HIDE_CURSOR, _( "Hide cursor" ),
|
AddMenuItem( this, HIDE_CURSOR, _( "Hide Cursor" ),
|
||||||
wxEmptyString, KiBitmap( pcb_target_xpm ) );
|
wxEmptyString, KiBitmap( pcb_target_xpm ) );
|
||||||
else
|
else
|
||||||
AddMenuItem( this, SHOW_CURSOR, _( "Show cursor" ),
|
AddMenuItem( this, SHOW_CURSOR, _( "Show Cursor" ),
|
||||||
wxEmptyString, KiBitmap( pcb_target_xpm ) );
|
wxEmptyString, KiBitmap( pcb_target_xpm ) );
|
||||||
|
|
||||||
Connect( wxEVT_COMMAND_MENU_SELECTED, wxMenuEventHandler( SIGNAL_CONTEXT_MENU::onMenuEvent ), NULL, this );
|
Connect( wxEVT_COMMAND_MENU_SELECTED, wxMenuEventHandler( SIGNAL_CONTEXT_MENU::onMenuEvent ), NULL, this );
|
||||||
|
|
|
@ -61,25 +61,25 @@ void GERBVIEW_FRAME::ReCreateMenuBar()
|
||||||
|
|
||||||
// Load Gerber files
|
// Load Gerber files
|
||||||
AddMenuItem( fileMenu, wxID_FILE,
|
AddMenuItem( fileMenu, wxID_FILE,
|
||||||
_( "Load &Gerber File" ),
|
_( "Load &Gerber File..." ),
|
||||||
_( "Load a new Gerber file on the current layer. Previous data will be deleted" ),
|
_( "Load a new Gerber file on the current layer. Previous data will be deleted" ),
|
||||||
KiBitmap( load_gerber_xpm ) );
|
KiBitmap( load_gerber_xpm ) );
|
||||||
|
|
||||||
// Load Excellon drill files
|
// Load Excellon drill files
|
||||||
AddMenuItem( fileMenu, ID_GERBVIEW_LOAD_DRILL_FILE,
|
AddMenuItem( fileMenu, ID_GERBVIEW_LOAD_DRILL_FILE,
|
||||||
_( "Load &EXCELLON Drill File" ),
|
_( "Load &EXCELLON Drill File..." ),
|
||||||
_( "Load excellon drill file" ),
|
_( "Load excellon drill file" ),
|
||||||
KiBitmap( gerbview_drill_file_xpm ) );
|
KiBitmap( gerbview_drill_file_xpm ) );
|
||||||
|
|
||||||
// Load Gerber job files
|
// Load Gerber job files
|
||||||
AddMenuItem( fileMenu, ID_GERBVIEW_LOAD_JOB_FILE,
|
AddMenuItem( fileMenu, ID_GERBVIEW_LOAD_JOB_FILE,
|
||||||
_( "Load Gerber &Job File" ),
|
_( "Load Gerber &Job File..." ),
|
||||||
_( "Load a Gerber job file, and load gerber files depending on the job" ),
|
_( "Load a Gerber job file, and load gerber files depending on the job" ),
|
||||||
KiBitmap( gerber_job_file_xpm ) );
|
KiBitmap( gerber_job_file_xpm ) );
|
||||||
|
|
||||||
// Load Zip archive files
|
// Load Zip archive files
|
||||||
AddMenuItem( fileMenu, ID_GERBVIEW_LOAD_ZIP_ARCHIVE_FILE,
|
AddMenuItem( fileMenu, ID_GERBVIEW_LOAD_ZIP_ARCHIVE_FILE,
|
||||||
_( "Load &Zip Archive File" ),
|
_( "Load &Zip Archive File..." ),
|
||||||
_( "Load a zipped archive (Gerber and drill) file" ),
|
_( "Load a zipped archive (Gerber and drill) file" ),
|
||||||
KiBitmap( zip_xpm ) );
|
KiBitmap( zip_xpm ) );
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ void GERBVIEW_FRAME::ReCreateMenuBar()
|
||||||
// Export to Pcbnew
|
// Export to Pcbnew
|
||||||
AddMenuItem( fileMenu,
|
AddMenuItem( fileMenu,
|
||||||
ID_GERBVIEW_EXPORT_TO_PCBNEW,
|
ID_GERBVIEW_EXPORT_TO_PCBNEW,
|
||||||
_( "E&xport to Pcbnew" ),
|
_( "E&xport to Pcbnew..." ),
|
||||||
_( "Export data in Pcbnew format" ),
|
_( "Export data in Pcbnew format" ),
|
||||||
KiBitmap( export_xpm ) );
|
KiBitmap( export_xpm ) );
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@ void GERBVIEW_FRAME::ReCreateMenuBar()
|
||||||
|
|
||||||
// Print
|
// Print
|
||||||
AddMenuItem( fileMenu, wxID_PRINT,
|
AddMenuItem( fileMenu, wxID_PRINT,
|
||||||
_( "&Print" ), _( "Print gerber" ),
|
_( "&Print..." ), _( "Print gerber" ),
|
||||||
KiBitmap( print_button_xpm ) );
|
KiBitmap( print_button_xpm ) );
|
||||||
|
|
||||||
// Separator
|
// Separator
|
||||||
|
@ -211,7 +211,7 @@ void GERBVIEW_FRAME::ReCreateMenuBar()
|
||||||
// Canvas selection
|
// Canvas selection
|
||||||
configMenu->AppendSeparator();
|
configMenu->AppendSeparator();
|
||||||
|
|
||||||
text = AddHotkeyName( _( "Legacy graphic&s" ), GerbviewHokeysDescr,
|
text = AddHotkeyName( _( "Legacy Graphic&s" ), GerbviewHokeysDescr,
|
||||||
HK_CANVAS_LEGACY );
|
HK_CANVAS_LEGACY );
|
||||||
|
|
||||||
configMenu->Append(
|
configMenu->Append(
|
||||||
|
@ -264,7 +264,7 @@ void GERBVIEW_FRAME::ReCreateMenuBar()
|
||||||
|
|
||||||
// Text editor (usefull to browse source files)
|
// Text editor (usefull to browse source files)
|
||||||
AddMenuItem( miscellaneousMenu, ID_MENU_GERBVIEW_SELECT_PREFERED_EDITOR,
|
AddMenuItem( miscellaneousMenu, ID_MENU_GERBVIEW_SELECT_PREFERED_EDITOR,
|
||||||
_( "&Text Editor" ),
|
_( "Set &Text Editor..." ),
|
||||||
_( "Select your preferred text editor" ),
|
_( "Select your preferred text editor" ),
|
||||||
KiBitmap( editor_xpm ) );
|
KiBitmap( editor_xpm ) );
|
||||||
|
|
||||||
|
@ -277,7 +277,7 @@ void GERBVIEW_FRAME::ReCreateMenuBar()
|
||||||
KiBitmap( online_help_xpm ) );
|
KiBitmap( online_help_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( helpMenu, ID_PREFERENCES_HOTKEY_SHOW_CURRENT_LIST,
|
AddMenuItem( helpMenu, ID_PREFERENCES_HOTKEY_SHOW_CURRENT_LIST,
|
||||||
_( "&List Hotkeys" ),
|
_( "&List Hotkeys..." ),
|
||||||
_( "Displays the current hotkeys list and corresponding commands" ),
|
_( "Displays the current hotkeys list and corresponding commands" ),
|
||||||
KiBitmap( hotkeys_xpm ) );
|
KiBitmap( hotkeys_xpm ) );
|
||||||
|
|
||||||
|
|
|
@ -103,7 +103,7 @@ bool GERBVIEW_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* aPopMenu )
|
||||||
( net_attr.m_NetAttribType & GBR_NETLIST_METADATA::GBR_NETINFO_CMP ) )
|
( net_attr.m_NetAttribType & GBR_NETLIST_METADATA::GBR_NETINFO_CMP ) )
|
||||||
{
|
{
|
||||||
AddMenuItem( aPopMenu, ID_HIGHLIGHT_CMP_ITEMS,
|
AddMenuItem( aPopMenu, ID_HIGHLIGHT_CMP_ITEMS,
|
||||||
wxString::Format( _( "Highlight items of component \"%s\"" ),
|
wxString::Format( _( "Highlight Items of Component \"%s\"" ),
|
||||||
GetChars( net_attr.m_Cmpref ) ),
|
GetChars( net_attr.m_Cmpref ) ),
|
||||||
KiBitmap( file_footprint_xpm ) );
|
KiBitmap( file_footprint_xpm ) );
|
||||||
add_separator = true;
|
add_separator = true;
|
||||||
|
@ -112,7 +112,7 @@ bool GERBVIEW_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* aPopMenu )
|
||||||
if( ( net_attr.m_NetAttribType & GBR_NETLIST_METADATA::GBR_NETINFO_NET ) )
|
if( ( net_attr.m_NetAttribType & GBR_NETLIST_METADATA::GBR_NETINFO_NET ) )
|
||||||
{
|
{
|
||||||
AddMenuItem( aPopMenu, ID_HIGHLIGHT_NET_ITEMS,
|
AddMenuItem( aPopMenu, ID_HIGHLIGHT_NET_ITEMS,
|
||||||
wxString::Format( _( "Highlight items of net \"%s\"" ),
|
wxString::Format( _( "Highlight Items of Net \"%s\"" ),
|
||||||
GetChars( net_attr.m_Netname ) ),
|
GetChars( net_attr.m_Netname ) ),
|
||||||
KiBitmap( general_ratsnest_xpm ) );
|
KiBitmap( general_ratsnest_xpm ) );
|
||||||
add_separator = true;
|
add_separator = true;
|
||||||
|
@ -123,7 +123,7 @@ bool GERBVIEW_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* aPopMenu )
|
||||||
if( apertDescr && !apertDescr->m_AperFunction.IsEmpty() )
|
if( apertDescr && !apertDescr->m_AperFunction.IsEmpty() )
|
||||||
{
|
{
|
||||||
AddMenuItem( aPopMenu, ID_HIGHLIGHT_APER_ATTRIBUTE_ITEMS,
|
AddMenuItem( aPopMenu, ID_HIGHLIGHT_APER_ATTRIBUTE_ITEMS,
|
||||||
wxString::Format( _( "Highlight aperture type \"%s\"" ),
|
wxString::Format( _( "Highlight Aperture Type \"%s\"" ),
|
||||||
GetChars( apertDescr->m_AperFunction ) ),
|
GetChars( apertDescr->m_AperFunction ) ),
|
||||||
KiBitmap( flag_xpm ) );
|
KiBitmap( flag_xpm ) );
|
||||||
add_separator = true;
|
add_separator = true;
|
||||||
|
@ -134,7 +134,7 @@ bool GERBVIEW_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* aPopMenu )
|
||||||
}
|
}
|
||||||
|
|
||||||
AddMenuItem( aPopMenu, ID_HIGHLIGHT_REMOVE_ALL,
|
AddMenuItem( aPopMenu, ID_HIGHLIGHT_REMOVE_ALL,
|
||||||
_( "Clear highlight" ),
|
_( "Clear Highlight" ),
|
||||||
KiBitmap( gerbview_clear_layers_xpm ) );
|
KiBitmap( gerbview_clear_layers_xpm ) );
|
||||||
|
|
||||||
aPopMenu->AppendSeparator();
|
aPopMenu->AppendSeparator();
|
||||||
|
|
|
@ -71,7 +71,7 @@ TOOL_ACTION GERBVIEW_ACTIONS::selectionClear( "gerbview.InteractiveSelection.Cle
|
||||||
|
|
||||||
TOOL_ACTION GERBVIEW_ACTIONS::measureTool( "gerbview.InteractiveSelection.measureTool",
|
TOOL_ACTION GERBVIEW_ACTIONS::measureTool( "gerbview.InteractiveSelection.measureTool",
|
||||||
AS_GLOBAL, MD_CTRL + MD_SHIFT + 'M',
|
AS_GLOBAL, MD_CTRL + MD_SHIFT + 'M',
|
||||||
_( "Measure tool" ), _( "Interactively measure distance between points" ),
|
_( "Measure Tool" ), _( "Interactively measure distance between points" ),
|
||||||
nullptr, AF_ACTIVATE );
|
nullptr, AF_ACTIVATE );
|
||||||
|
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ public:
|
||||||
HIGHLIGHT_MENU()
|
HIGHLIGHT_MENU()
|
||||||
{
|
{
|
||||||
SetIcon( net_highlight_schematic_xpm );
|
SetIcon( net_highlight_schematic_xpm );
|
||||||
SetTitle( _( "Highlight..." ) );
|
SetTitle( _( "Highlight" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -101,7 +101,7 @@ private:
|
||||||
( net_attr.m_NetAttribType & GBR_NETLIST_METADATA::GBR_NETINFO_CMP ) )
|
( net_attr.m_NetAttribType & GBR_NETLIST_METADATA::GBR_NETINFO_CMP ) )
|
||||||
{
|
{
|
||||||
auto menuEntry = Add( GERBVIEW_ACTIONS::highlightComponent );
|
auto menuEntry = Add( GERBVIEW_ACTIONS::highlightComponent );
|
||||||
menuEntry->SetItemLabel( wxString::Format( _( "Highlight items of component \"%s\"" ),
|
menuEntry->SetItemLabel( wxString::Format( _( "Highlight Items of Component \"%s\"" ),
|
||||||
GetChars( net_attr.m_Cmpref ) ) );
|
GetChars( net_attr.m_Cmpref ) ) );
|
||||||
addSeparator = true;
|
addSeparator = true;
|
||||||
}
|
}
|
||||||
|
@ -109,7 +109,7 @@ private:
|
||||||
if( ( net_attr.m_NetAttribType & GBR_NETLIST_METADATA::GBR_NETINFO_NET ) )
|
if( ( net_attr.m_NetAttribType & GBR_NETLIST_METADATA::GBR_NETINFO_NET ) )
|
||||||
{
|
{
|
||||||
auto menuEntry = Add( GERBVIEW_ACTIONS::highlightNet );
|
auto menuEntry = Add( GERBVIEW_ACTIONS::highlightNet );
|
||||||
menuEntry->SetItemLabel( wxString::Format( _( "Highlight items of net \"%s\"" ),
|
menuEntry->SetItemLabel( wxString::Format( _( "Highlight Items of Net \"%s\"" ),
|
||||||
GetChars( net_attr.m_Netname ) ) );
|
GetChars( net_attr.m_Netname ) ) );
|
||||||
addSeparator = true;
|
addSeparator = true;
|
||||||
}
|
}
|
||||||
|
@ -119,7 +119,7 @@ private:
|
||||||
if( apertDescr && !apertDescr->m_AperFunction.IsEmpty() )
|
if( apertDescr && !apertDescr->m_AperFunction.IsEmpty() )
|
||||||
{
|
{
|
||||||
auto menuEntry = Add( GERBVIEW_ACTIONS::highlightAttribute );
|
auto menuEntry = Add( GERBVIEW_ACTIONS::highlightAttribute );
|
||||||
menuEntry->SetItemLabel( wxString::Format( _( "Highlight aperture type \"%s\"" ),
|
menuEntry->SetItemLabel( wxString::Format( _( "Highlight Aperture Type \"%s\"" ),
|
||||||
GetChars( apertDescr->m_AperFunction ) ) );
|
GetChars( apertDescr->m_AperFunction ) ) );
|
||||||
addSeparator = true;
|
addSeparator = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -269,7 +269,7 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
|
||||||
fileMenu->AppendSeparator();
|
fileMenu->AppendSeparator();
|
||||||
wxMenu* importprjSubMenu = new wxMenu();
|
wxMenu* importprjSubMenu = new wxMenu();
|
||||||
|
|
||||||
AddMenuItem( importprjSubMenu, ID_IMPORT_EAGLE_PROJECT, _( "Eagle CAD" ),
|
AddMenuItem( importprjSubMenu, ID_IMPORT_EAGLE_PROJECT, _( "Eagle CAD..." ),
|
||||||
_( "Import Eagle CAD XML schematic and board" ),
|
_( "Import Eagle CAD XML schematic and board" ),
|
||||||
KiBitmap( import_project_xpm ) );
|
KiBitmap( import_project_xpm ) );
|
||||||
|
|
||||||
|
@ -329,7 +329,7 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
|
||||||
// View file
|
// View file
|
||||||
AddMenuItem( browseMenu,
|
AddMenuItem( browseMenu,
|
||||||
ID_BROWSE_AN_SELECT_FILE,
|
ID_BROWSE_AN_SELECT_FILE,
|
||||||
_( "&Open Local File" ),
|
_( "&Open Local File..." ),
|
||||||
_( "Edit local file" ),
|
_( "Edit local file" ),
|
||||||
KiBitmap( browse_files_xpm ) );
|
KiBitmap( browse_files_xpm ) );
|
||||||
|
|
||||||
|
@ -339,14 +339,14 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
|
||||||
// Path configuration edit dialog.
|
// Path configuration edit dialog.
|
||||||
AddMenuItem( preferencesMenu,
|
AddMenuItem( preferencesMenu,
|
||||||
ID_PREFERENCES_CONFIGURE_PATHS,
|
ID_PREFERENCES_CONFIGURE_PATHS,
|
||||||
_( "Configure Pa&ths" ),
|
_( "Configure Pa&ths..." ),
|
||||||
_( "Edit path configuration environment variables" ),
|
_( "Edit path configuration environment variables" ),
|
||||||
KiBitmap( path_xpm ) );
|
KiBitmap( path_xpm ) );
|
||||||
|
|
||||||
// Text editor
|
// Text editor
|
||||||
AddMenuItem( preferencesMenu,
|
AddMenuItem( preferencesMenu,
|
||||||
ID_SELECT_PREFERED_EDITOR,
|
ID_SELECT_PREFERED_EDITOR,
|
||||||
_( "&Set Text Editor" ),
|
_( "&Set Text Editor..." ),
|
||||||
_( "Set your preferred text editor" ),
|
_( "Set your preferred text editor" ),
|
||||||
KiBitmap( editor_xpm ) );
|
KiBitmap( editor_xpm ) );
|
||||||
|
|
||||||
|
@ -375,7 +375,7 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
|
||||||
// Append PDF Viewer submenu to preferences
|
// Append PDF Viewer submenu to preferences
|
||||||
AddMenuItem( SubMenuPdfBrowserChoice,
|
AddMenuItem( SubMenuPdfBrowserChoice,
|
||||||
ID_SELECT_PREFERED_PDF_BROWSER_NAME,
|
ID_SELECT_PREFERED_PDF_BROWSER_NAME,
|
||||||
_( "Set &PDF Viewer" ),
|
_( "Set &PDF Viewer..." ),
|
||||||
_( "Set favourite PDF viewer" ),
|
_( "Set favourite PDF viewer" ),
|
||||||
KiBitmap( datasheet_xpm ) );
|
KiBitmap( datasheet_xpm ) );
|
||||||
|
|
||||||
|
|
|
@ -679,14 +679,14 @@ void TREE_PROJECT_FRAME::OnRight( wxTreeEvent& Event )
|
||||||
{
|
{
|
||||||
case TREE_PROJECT:
|
case TREE_PROJECT:
|
||||||
AddMenuItem( &popupMenu, ID_PROJECT_NEWDIR,
|
AddMenuItem( &popupMenu, ID_PROJECT_NEWDIR,
|
||||||
_( "New D&irectory" ),
|
_( "New D&irectory..." ),
|
||||||
_( "Create a New Directory" ),
|
_( "Create a New Directory" ),
|
||||||
KiBitmap( directory_xpm ) );
|
KiBitmap( directory_xpm ) );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TREE_DIRECTORY:
|
case TREE_DIRECTORY:
|
||||||
AddMenuItem( &popupMenu, ID_PROJECT_NEWDIR,
|
AddMenuItem( &popupMenu, ID_PROJECT_NEWDIR,
|
||||||
_( "New D&irectory" ),
|
_( "New D&irectory..." ),
|
||||||
_( "Create a New Directory" ),
|
_( "Create a New Directory" ),
|
||||||
KiBitmap( directory_xpm ) );
|
KiBitmap( directory_xpm ) );
|
||||||
AddMenuItem( &popupMenu, ID_PROJECT_DELETE,
|
AddMenuItem( &popupMenu, ID_PROJECT_DELETE,
|
||||||
|
@ -697,11 +697,11 @@ void TREE_PROJECT_FRAME::OnRight( wxTreeEvent& Event )
|
||||||
|
|
||||||
default:
|
default:
|
||||||
AddMenuItem( &popupMenu, ID_PROJECT_TXTEDIT,
|
AddMenuItem( &popupMenu, ID_PROJECT_TXTEDIT,
|
||||||
_( "&Edit in a text editor" ),
|
_( "&Edit in a Text Editor" ),
|
||||||
_( "Open the file in a Text Editor" ),
|
_( "Open the file in a Text Editor" ),
|
||||||
KiBitmap( editor_xpm ) );
|
KiBitmap( editor_xpm ) );
|
||||||
AddMenuItem( &popupMenu, ID_PROJECT_RENAME,
|
AddMenuItem( &popupMenu, ID_PROJECT_RENAME,
|
||||||
_( "&Rename file" ),
|
_( "&Rename File..." ),
|
||||||
_( "Rename file" ),
|
_( "Rename file" ),
|
||||||
KiBitmap( right_xpm ) );
|
KiBitmap( right_xpm ) );
|
||||||
AddMenuItem( &popupMenu, ID_PROJECT_DELETE,
|
AddMenuItem( &popupMenu, ID_PROJECT_DELETE,
|
||||||
|
|
|
@ -94,7 +94,7 @@ void PL_EDITOR_FRAME::ReCreateMenuBar()
|
||||||
_( "Save current page layout design file" ),
|
_( "Save current page layout design file" ),
|
||||||
KiBitmap( save_xpm ) );
|
KiBitmap( save_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Save &As" ), PlEditorHokeysDescr, HK_SAVEAS );
|
msg = AddHotkeyName( _( "Save &As..." ), PlEditorHokeysDescr, HK_SAVEAS );
|
||||||
AddMenuItem( fileMenu, wxID_SAVEAS, msg,
|
AddMenuItem( fileMenu, wxID_SAVEAS, msg,
|
||||||
_( "Save current page layout design file with a different name" ),
|
_( "Save current page layout design file with a different name" ),
|
||||||
KiBitmap( save_as_xpm ) );
|
KiBitmap( save_as_xpm ) );
|
||||||
|
@ -131,21 +131,21 @@ void PL_EDITOR_FRAME::ReCreateMenuBar()
|
||||||
// View Menu:
|
// View Menu:
|
||||||
wxMenu* viewMenu = new wxMenu;
|
wxMenu* viewMenu = new wxMenu;
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Zoom in" ), PlEditorHokeysDescr, HK_ZOOM_IN );
|
msg = AddHotkeyName( _( "Zoom In" ), PlEditorHokeysDescr, HK_ZOOM_IN );
|
||||||
AddMenuItem( viewMenu, ID_ZOOM_IN, msg, wxEmptyString, KiBitmap( zoom_in_xpm ) );
|
AddMenuItem( viewMenu, ID_ZOOM_IN, msg, wxEmptyString, KiBitmap( zoom_in_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Zoom out" ), PlEditorHokeysDescr, HK_ZOOM_OUT );
|
msg = AddHotkeyName( _( "Zoom Out" ), PlEditorHokeysDescr, HK_ZOOM_OUT );
|
||||||
AddMenuItem( viewMenu, ID_ZOOM_OUT, msg, wxEmptyString, KiBitmap( zoom_out_xpm ) );
|
AddMenuItem( viewMenu, ID_ZOOM_OUT, msg, wxEmptyString, KiBitmap( zoom_out_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Zoom all" ), PlEditorHokeysDescr, HK_ZOOM_AUTO );
|
msg = AddHotkeyName( _( "Zoom All" ), PlEditorHokeysDescr, HK_ZOOM_AUTO );
|
||||||
AddMenuItem( viewMenu, ID_ZOOM_PAGE, msg, wxEmptyString, KiBitmap( zoom_fit_in_page_xpm ) );
|
AddMenuItem( viewMenu, ID_ZOOM_PAGE, msg, wxEmptyString, KiBitmap( zoom_fit_in_page_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Zoom to selection" ), PlEditorHokeysDescr, HK_ZOOM_SELECTION );
|
msg = AddHotkeyName( _( "Zoom to Selection" ), PlEditorHokeysDescr, HK_ZOOM_SELECTION );
|
||||||
AddMenuItem( viewMenu, ID_ZOOM_SELECTION, msg, wxEmptyString, KiBitmap( zoom_area_xpm ) );
|
AddMenuItem( viewMenu, ID_ZOOM_SELECTION, msg, wxEmptyString, KiBitmap( zoom_area_xpm ) );
|
||||||
|
|
||||||
viewMenu->AppendSeparator();
|
viewMenu->AppendSeparator();
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Redraw view" ), PlEditorHokeysDescr, HK_ZOOM_REDRAW );
|
msg = AddHotkeyName( _( "Redraw View" ), PlEditorHokeysDescr, HK_ZOOM_REDRAW );
|
||||||
AddMenuItem( viewMenu, ID_ZOOM_REDRAW, msg, wxEmptyString, KiBitmap( zoom_redraw_xpm ) );
|
AddMenuItem( viewMenu, ID_ZOOM_REDRAW, msg, wxEmptyString, KiBitmap( zoom_redraw_xpm ) );
|
||||||
|
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ void PL_EDITOR_FRAME::ReCreateMenuBar()
|
||||||
// Text editor selection
|
// Text editor selection
|
||||||
AddMenuItem( preferencesMenu,
|
AddMenuItem( preferencesMenu,
|
||||||
ID_MENU_PL_EDITOR_SELECT_PREFERED_EDITOR,
|
ID_MENU_PL_EDITOR_SELECT_PREFERED_EDITOR,
|
||||||
_( "&Text Editor" ),
|
_( "Set &Text Editor..." ),
|
||||||
_( "Select your preferred text editor" ),
|
_( "Select your preferred text editor" ),
|
||||||
KiBitmap( editor_xpm ) );
|
KiBitmap( editor_xpm ) );
|
||||||
|
|
||||||
|
|
|
@ -42,16 +42,16 @@
|
||||||
// Helper function to add menuitems relative to items creation
|
// Helper function to add menuitems relative to items creation
|
||||||
void AddNewItemsCommand( wxMenu* aMainMenu )
|
void AddNewItemsCommand( wxMenu* aMainMenu )
|
||||||
{
|
{
|
||||||
AddMenuItem( aMainMenu, ID_POPUP_ITEM_ADD_LINE, _( "Add Line" ),
|
AddMenuItem( aMainMenu, ID_POPUP_ITEM_ADD_LINE, _( "Add Line..." ),
|
||||||
KiBitmap( add_dashed_line_xpm ) );
|
KiBitmap( add_dashed_line_xpm ) );
|
||||||
AddMenuItem( aMainMenu, ID_POPUP_ITEM_ADD_RECT, _( "Add Rectangle" ),
|
AddMenuItem( aMainMenu, ID_POPUP_ITEM_ADD_RECT, _( "Add Rectangle..." ),
|
||||||
KiBitmap( add_rectangle_xpm ) );
|
KiBitmap( add_rectangle_xpm ) );
|
||||||
AddMenuItem( aMainMenu, ID_POPUP_ITEM_ADD_TEXT, _( "Add Text" ),
|
AddMenuItem( aMainMenu, ID_POPUP_ITEM_ADD_TEXT, _( "Add Text..." ),
|
||||||
KiBitmap( text_xpm ) );
|
KiBitmap( text_xpm ) );
|
||||||
AddMenuItem( aMainMenu, ID_POPUP_ITEM_ADD_BITMAP, _( "Add Bitmap" ),
|
AddMenuItem( aMainMenu, ID_POPUP_ITEM_ADD_BITMAP, _( "Add Bitmap..." ),
|
||||||
KiBitmap( image_xpm ) );
|
KiBitmap( image_xpm ) );
|
||||||
AddMenuItem( aMainMenu, ID_POPUP_ITEM_APPEND_PAGE_LAYOUT,
|
AddMenuItem( aMainMenu, ID_POPUP_ITEM_APPEND_PAGE_LAYOUT,
|
||||||
_( "Append Existing Page Layout Design File" ),
|
_( "Append Existing Page Layout Design File..." ),
|
||||||
KiBitmap( pagelayout_load_xpm ) );
|
KiBitmap( pagelayout_load_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -248,7 +248,7 @@ bool FOOTPRINT_EDIT_FRAME::OnRightClick( const wxPoint& MousePos, wxMenu* PopMen
|
||||||
AddMenuItem( PopMenu, ID_POPUP_CANCEL_CURRENT_COMMAND,
|
AddMenuItem( PopMenu, ID_POPUP_CANCEL_CURRENT_COMMAND,
|
||||||
_( "Cancel Block" ), KiBitmap( cancel_xpm ) );
|
_( "Cancel Block" ), KiBitmap( cancel_xpm ) );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_ZOOM_BLOCK,
|
AddMenuItem( PopMenu, ID_POPUP_ZOOM_BLOCK,
|
||||||
_( "Zoom Block (drag middle mouse)" ),
|
_( "Zoom Block" ),
|
||||||
KiBitmap( zoom_area_xpm ) );
|
KiBitmap( zoom_area_xpm ) );
|
||||||
PopMenu->AppendSeparator();
|
PopMenu->AppendSeparator();
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PLACE_BLOCK,
|
AddMenuItem( PopMenu, ID_POPUP_PLACE_BLOCK,
|
||||||
|
@ -266,7 +266,7 @@ bool FOOTPRINT_EDIT_FRAME::OnRightClick( const wxPoint& MousePos, wxMenu* PopMen
|
||||||
_( "Delete Block (shift+ctrl + drag mouse)" ),
|
_( "Delete Block (shift+ctrl + drag mouse)" ),
|
||||||
KiBitmap( delete_xpm ) );
|
KiBitmap( delete_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _("Move Block Exactly" ),
|
msg = AddHotkeyName( _("Move Block Exactly..." ),
|
||||||
g_Module_Editor_Hokeys_Descr, HK_MOVE_ITEM_EXACT );
|
g_Module_Editor_Hokeys_Descr, HK_MOVE_ITEM_EXACT );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_MOVE_BLOCK_EXACT,
|
AddMenuItem( PopMenu, ID_POPUP_MOVE_BLOCK_EXACT,
|
||||||
msg, KiBitmap( move_xpm ) );
|
msg, KiBitmap( move_xpm ) );
|
||||||
|
@ -296,7 +296,7 @@ bool FOOTPRINT_EDIT_FRAME::OnRightClick( const wxPoint& MousePos, wxMenu* PopMen
|
||||||
KiBitmap( rotate_ccw_xpm ) );
|
KiBitmap( rotate_ccw_xpm ) );
|
||||||
AddMenuItem( transform_choice, ID_MODEDIT_MODULE_MIRROR, _( "Mirror" ),
|
AddMenuItem( transform_choice, ID_MODEDIT_MODULE_MIRROR, _( "Mirror" ),
|
||||||
KiBitmap( mirror_h_xpm ) );
|
KiBitmap( mirror_h_xpm ) );
|
||||||
AddMenuItem( transform_choice, ID_MODEDIT_MODULE_MOVE_EXACT, _( "Move Exactly" ),
|
AddMenuItem( transform_choice, ID_MODEDIT_MODULE_MOVE_EXACT, _( "Move Exactly..." ),
|
||||||
KiBitmap( move_exactly_xpm ) );
|
KiBitmap( move_exactly_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Edit Footprint" ), g_Module_Editor_Hokeys_Descr, HK_EDIT_ITEM );
|
msg = AddHotkeyName( _( "Edit Footprint" ), g_Module_Editor_Hokeys_Descr, HK_EDIT_ITEM );
|
||||||
|
@ -314,7 +314,7 @@ bool FOOTPRINT_EDIT_FRAME::OnRightClick( const wxPoint& MousePos, wxMenu* PopMen
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_MOVE_PAD_REQUEST, msg, KiBitmap( move_pad_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_PCB_MOVE_PAD_REQUEST, msg, KiBitmap( move_pad_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
msg = AddHotkeyName( _("Edit Pad" ), g_Module_Editor_Hokeys_Descr, HK_EDIT_ITEM );
|
msg = AddHotkeyName( _("Edit Pad..." ), g_Module_Editor_Hokeys_Descr, HK_EDIT_ITEM );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_EDIT_PAD, msg, KiBitmap( options_pad_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_PCB_EDIT_PAD, msg, KiBitmap( options_pad_xpm ) );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_COPY_PAD_SETTINGS,
|
AddMenuItem( PopMenu, ID_POPUP_PCB_COPY_PAD_SETTINGS,
|
||||||
_( "Copy Pad Settings" ), KiBitmap( copy_pad_settings_xpm ) );
|
_( "Copy Pad Settings" ), KiBitmap( copy_pad_settings_xpm ) );
|
||||||
|
@ -326,10 +326,10 @@ bool FOOTPRINT_EDIT_FRAME::OnRightClick( const wxPoint& MousePos, wxMenu* PopMen
|
||||||
msg = AddHotkeyName( _( "Duplicate Pad" ), g_Module_Editor_Hokeys_Descr, HK_DUPLICATE_ITEM );
|
msg = AddHotkeyName( _( "Duplicate Pad" ), g_Module_Editor_Hokeys_Descr, HK_DUPLICATE_ITEM );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_DUPLICATE_ITEM, msg, KiBitmap( duplicate_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_PCB_DUPLICATE_ITEM, msg, KiBitmap( duplicate_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _("Move Pad Exactly" ), g_Module_Editor_Hokeys_Descr, HK_MOVE_ITEM_EXACT );
|
msg = AddHotkeyName( _("Move Pad Exactly..." ), g_Module_Editor_Hokeys_Descr, HK_MOVE_ITEM_EXACT );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_MOVE_EXACT, msg, KiBitmap( move_pad_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_PCB_MOVE_EXACT, msg, KiBitmap( move_pad_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _("Create Pad Array" ), g_Module_Editor_Hokeys_Descr, HK_CREATE_ARRAY );
|
msg = AddHotkeyName( _("Create Pad Array..." ), g_Module_Editor_Hokeys_Descr, HK_CREATE_ARRAY );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_CREATE_ARRAY, msg, KiBitmap( array_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_PCB_CREATE_ARRAY, msg, KiBitmap( array_xpm ) );
|
||||||
|
|
||||||
|
|
||||||
|
@ -337,7 +337,7 @@ bool FOOTPRINT_EDIT_FRAME::OnRightClick( const wxPoint& MousePos, wxMenu* PopMen
|
||||||
{
|
{
|
||||||
PopMenu->AppendSeparator();
|
PopMenu->AppendSeparator();
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_GLOBAL_IMPORT_PAD_SETTINGS,
|
AddMenuItem( PopMenu, ID_POPUP_PCB_GLOBAL_IMPORT_PAD_SETTINGS,
|
||||||
_( "Push Pad Settings" ), KiBitmap( push_pad_settings_xpm ) );
|
_( "Push Pad Settings..." ), KiBitmap( push_pad_settings_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -369,19 +369,19 @@ bool FOOTPRINT_EDIT_FRAME::OnRightClick( const wxPoint& MousePos, wxMenu* PopMen
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_DUPLICATE_ITEM,
|
AddMenuItem( PopMenu, ID_POPUP_PCB_DUPLICATE_ITEM,
|
||||||
msg, KiBitmap( duplicate_xpm ) );
|
msg, KiBitmap( duplicate_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _("Create Array" ),
|
msg = AddHotkeyName( _("Create Array..." ),
|
||||||
g_Module_Editor_Hokeys_Descr, HK_CREATE_ARRAY );
|
g_Module_Editor_Hokeys_Descr, HK_CREATE_ARRAY );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_CREATE_ARRAY,
|
AddMenuItem( PopMenu, ID_POPUP_PCB_CREATE_ARRAY,
|
||||||
msg, KiBitmap( array_xpm ) );
|
msg, KiBitmap( array_xpm ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
msg = AddHotkeyName( _("Move Exactly" ), g_Module_Editor_Hokeys_Descr, HK_MOVE_ITEM_EXACT );
|
msg = AddHotkeyName( _("Move Exactly..." ), g_Module_Editor_Hokeys_Descr, HK_MOVE_ITEM_EXACT );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_MOVE_EXACT, msg, KiBitmap( move_exactly_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_PCB_MOVE_EXACT, msg, KiBitmap( move_exactly_xpm ) );
|
||||||
|
|
||||||
if( !flags )
|
if( !flags )
|
||||||
{
|
{
|
||||||
msg = AddHotkeyName( _("Edit" ), g_Module_Editor_Hokeys_Descr,
|
msg = AddHotkeyName( _("Edit..." ), g_Module_Editor_Hokeys_Descr,
|
||||||
HK_EDIT_ITEM );
|
HK_EDIT_ITEM );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_EDIT_TEXTMODULE, msg, KiBitmap( edit_text_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_PCB_EDIT_TEXTMODULE, msg, KiBitmap( edit_text_xpm ) );
|
||||||
|
|
||||||
|
@ -398,7 +398,7 @@ bool FOOTPRINT_EDIT_FRAME::OnRightClick( const wxPoint& MousePos, wxMenu* PopMen
|
||||||
case PCB_MODULE_EDGE_T:
|
case PCB_MODULE_EDGE_T:
|
||||||
{
|
{
|
||||||
if( (flags & IS_NEW) )
|
if( (flags & IS_NEW) )
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_STOP_CURRENT_DRAWING, _( "End edge" ),
|
AddMenuItem( PopMenu, ID_POPUP_PCB_STOP_CURRENT_DRAWING, _( "End Edge" ),
|
||||||
KiBitmap( checked_ok_xpm ) );
|
KiBitmap( checked_ok_xpm ) );
|
||||||
|
|
||||||
if( !flags )
|
if( !flags )
|
||||||
|
@ -410,17 +410,17 @@ bool FOOTPRINT_EDIT_FRAME::OnRightClick( const wxPoint& MousePos, wxMenu* PopMen
|
||||||
msg = AddHotkeyName( _( "Duplicate" ), g_Module_Editor_Hokeys_Descr, HK_DUPLICATE_ITEM );
|
msg = AddHotkeyName( _( "Duplicate" ), g_Module_Editor_Hokeys_Descr, HK_DUPLICATE_ITEM );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_DUPLICATE_ITEM, msg, KiBitmap( duplicate_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_PCB_DUPLICATE_ITEM, msg, KiBitmap( duplicate_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _("Move Exactly" ), g_Module_Editor_Hokeys_Descr, HK_MOVE_ITEM_EXACT );
|
msg = AddHotkeyName( _("Move Exactly..." ), g_Module_Editor_Hokeys_Descr, HK_MOVE_ITEM_EXACT );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_MOVE_EXACT, msg, KiBitmap( move_exactly_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_PCB_MOVE_EXACT, msg, KiBitmap( move_exactly_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _("Create Array" ), g_Module_Editor_Hokeys_Descr, HK_CREATE_ARRAY );
|
msg = AddHotkeyName( _("Create Array..." ), g_Module_Editor_Hokeys_Descr, HK_CREATE_ARRAY );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_CREATE_ARRAY, msg, KiBitmap( array_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_PCB_CREATE_ARRAY, msg, KiBitmap( array_xpm ) );
|
||||||
|
|
||||||
if( ( flags & (IS_NEW | IS_MOVED) ) == IS_MOVED )
|
if( ( flags & (IS_NEW | IS_MOVED) ) == IS_MOVED )
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_PLACE_EDGE, _( "Place edge" ),
|
AddMenuItem( PopMenu, ID_POPUP_PCB_PLACE_EDGE, _( "Place Edge" ),
|
||||||
KiBitmap( checked_ok_xpm ) );
|
KiBitmap( checked_ok_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _("Edit" ), g_Module_Editor_Hokeys_Descr, HK_EDIT_ITEM );
|
msg = AddHotkeyName( _("Edit..." ), g_Module_Editor_Hokeys_Descr, HK_EDIT_ITEM );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_MODEDIT_EDIT_BODY_ITEM,
|
AddMenuItem( PopMenu, ID_POPUP_MODEDIT_EDIT_BODY_ITEM,
|
||||||
msg, KiBitmap( options_segment_xpm ) );
|
msg, KiBitmap( options_segment_xpm ) );
|
||||||
|
|
||||||
|
@ -433,7 +433,7 @@ bool FOOTPRINT_EDIT_FRAME::OnRightClick( const wxPoint& MousePos, wxMenu* PopMen
|
||||||
AddMenuItem( edit_global_mnu, ID_POPUP_MODEDIT_EDIT_WIDTH_ALL_EDGE,
|
AddMenuItem( edit_global_mnu, ID_POPUP_MODEDIT_EDIT_WIDTH_ALL_EDGE,
|
||||||
_( "Change Body Items Width" ), KiBitmap( width_segment_xpm ) );
|
_( "Change Body Items Width" ), KiBitmap( width_segment_xpm ) );
|
||||||
AddMenuItem( edit_global_mnu, ID_POPUP_MODEDIT_EDIT_LAYER_ALL_EDGE,
|
AddMenuItem( edit_global_mnu, ID_POPUP_MODEDIT_EDIT_LAYER_ALL_EDGE,
|
||||||
_( "Change Body Items Layer" ), KiBitmap( select_layer_pair_xpm ) );
|
_( "Change Body Items Layer..." ), KiBitmap( select_layer_pair_xpm ) );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -471,7 +471,7 @@ bool FOOTPRINT_EDIT_FRAME::OnRightClick( const wxPoint& MousePos, wxMenu* PopMen
|
||||||
( GetToolId() == ID_MODEDIT_CIRCLE_TOOL ) ||
|
( GetToolId() == ID_MODEDIT_CIRCLE_TOOL ) ||
|
||||||
( GetToolId() == ID_MODEDIT_ARC_TOOL ) )
|
( GetToolId() == ID_MODEDIT_ARC_TOOL ) )
|
||||||
{
|
{
|
||||||
AddMenuItem( PopMenu, ID_POPUP_MODEDIT_ENTER_EDGE_WIDTH, _("Set Line Width" ),
|
AddMenuItem( PopMenu, ID_POPUP_MODEDIT_ENTER_EDGE_WIDTH, _("Set Line Width..." ),
|
||||||
KiBitmap( width_segment_xpm ) );
|
KiBitmap( width_segment_xpm ) );
|
||||||
PopMenu->AppendSeparator();
|
PopMenu->AppendSeparator();
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,14 +62,14 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
|
||||||
wxMenu* fileMenu = new wxMenu;
|
wxMenu* fileMenu = new wxMenu;
|
||||||
|
|
||||||
// Active library selection
|
// Active library selection
|
||||||
AddMenuItem( fileMenu, ID_MODEDIT_SELECT_CURRENT_LIB, _("Set Acti&ve Library"),
|
AddMenuItem( fileMenu, ID_MODEDIT_SELECT_CURRENT_LIB, _("Set Acti&ve Library..."),
|
||||||
_( "Select active library" ),
|
_( "Select active library" ),
|
||||||
KiBitmap( open_library_xpm ) );
|
KiBitmap( open_library_xpm ) );
|
||||||
fileMenu->AppendSeparator();
|
fileMenu->AppendSeparator();
|
||||||
|
|
||||||
// New module
|
// New module
|
||||||
AddMenuItem( fileMenu, ID_MODEDIT_NEW_MODULE,
|
AddMenuItem( fileMenu, ID_MODEDIT_NEW_MODULE,
|
||||||
_( "&New Footprint" ), _( "Create new footprint" ),
|
_( "&New Footprint..." ), _( "Create new footprint" ),
|
||||||
KiBitmap( new_footprint_xpm ) );
|
KiBitmap( new_footprint_xpm ) );
|
||||||
|
|
||||||
// Open submenu
|
// Open submenu
|
||||||
|
@ -77,19 +77,19 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
|
||||||
|
|
||||||
// from File
|
// from File
|
||||||
AddMenuItem( openSubmenu, ID_MODEDIT_IMPORT_PART,
|
AddMenuItem( openSubmenu, ID_MODEDIT_IMPORT_PART,
|
||||||
_( "&Import Footprint From File" ),
|
_( "&Import Footprint From File..." ),
|
||||||
_( "Import footprint from an existing file" ),
|
_( "Import footprint from an existing file" ),
|
||||||
KiBitmap( import_module_xpm ) );
|
KiBitmap( import_module_xpm ) );
|
||||||
|
|
||||||
// from Library
|
// from Library
|
||||||
AddMenuItem( openSubmenu, ID_MODEDIT_LOAD_MODULE,
|
AddMenuItem( openSubmenu, ID_MODEDIT_LOAD_MODULE,
|
||||||
_( "Load Footprint From Current Li&brary" ),
|
_( "Load Footprint From Active Li&brary..." ),
|
||||||
_( "Open footprint from library" ),
|
_( "Open footprint from active library" ),
|
||||||
KiBitmap( module_xpm ) );
|
KiBitmap( module_xpm ) );
|
||||||
|
|
||||||
// from current Board
|
// from current Board
|
||||||
AddMenuItem( openSubmenu, ID_MODEDIT_LOAD_MODULE_FROM_BOARD,
|
AddMenuItem( openSubmenu, ID_MODEDIT_LOAD_MODULE_FROM_BOARD,
|
||||||
_( "Load Footprint From &Current Board" ),
|
_( "Load Footprint From &Current Board..." ),
|
||||||
_( "Load footprint from current board" ),
|
_( "Load footprint from current board" ),
|
||||||
KiBitmap( load_module_board_xpm ) );
|
KiBitmap( load_module_board_xpm ) );
|
||||||
|
|
||||||
|
@ -102,8 +102,8 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
|
||||||
|
|
||||||
// Save the currently loaded legacy library as an s-expression library.
|
// Save the currently loaded legacy library as an s-expression library.
|
||||||
AddMenuItem( fileMenu, ID_MODEDIT_SAVE_LIBRARY_AS,
|
AddMenuItem( fileMenu, ID_MODEDIT_SAVE_LIBRARY_AS,
|
||||||
_( "Save &Current Library As..." ),
|
_( "Save A&ctive Library As..." ),
|
||||||
_( "Save entire current library under a new name" ),
|
_( "Save entire active library under a new name" ),
|
||||||
KiBitmap( copy_library_xpm ) );
|
KiBitmap( copy_library_xpm ) );
|
||||||
|
|
||||||
// Save module
|
// Save module
|
||||||
|
@ -116,19 +116,19 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
|
||||||
|
|
||||||
// Save module in new lib
|
// Save module in new lib
|
||||||
AddMenuItem( fileMenu, ID_MODEDIT_CREATE_NEW_LIB_AND_SAVE_CURRENT_PART,
|
AddMenuItem( fileMenu, ID_MODEDIT_CREATE_NEW_LIB_AND_SAVE_CURRENT_PART,
|
||||||
_( "S&ave Footprint in New Library" ),
|
_( "S&ave Footprint in New Library..." ),
|
||||||
_( "Create new library and save current footprint in it" ),
|
_( "Create new library and save current footprint in it" ),
|
||||||
KiBitmap( new_library_xpm ) );
|
KiBitmap( new_library_xpm ) );
|
||||||
|
|
||||||
// Export module
|
// Export module
|
||||||
AddMenuItem( fileMenu, ID_MODEDIT_EXPORT_PART,
|
AddMenuItem( fileMenu, ID_MODEDIT_EXPORT_PART,
|
||||||
_( "&Export Footprint" ),
|
_( "&Export Footprint..." ),
|
||||||
_( "Save currently loaded footprint into file" ),
|
_( "Save currently loaded footprint into file" ),
|
||||||
KiBitmap( export_module_xpm ) );
|
KiBitmap( export_module_xpm ) );
|
||||||
|
|
||||||
// Import DXF File
|
// Import DXF File
|
||||||
AddMenuItem( fileMenu, ID_GEN_IMPORT_DXF_FILE,
|
AddMenuItem( fileMenu, ID_GEN_IMPORT_DXF_FILE,
|
||||||
_( "&Import DXF File" ),
|
_( "&Import DXF File..." ),
|
||||||
_( "Import 2D Drawing DXF file to Pcbnew on Drawings layer" ),
|
_( "Import 2D Drawing DXF file to Pcbnew on Drawings layer" ),
|
||||||
KiBitmap( import_xpm ) );
|
KiBitmap( import_xpm ) );
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
|
||||||
|
|
||||||
// Print
|
// Print
|
||||||
AddMenuItem( fileMenu, wxID_PRINT,
|
AddMenuItem( fileMenu, wxID_PRINT,
|
||||||
_( "&Print" ),
|
_( "&Print..." ),
|
||||||
_( "Print current footprint" ),
|
_( "Print current footprint" ),
|
||||||
KiBitmap( plot_xpm ) );
|
KiBitmap( plot_xpm ) );
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
|
||||||
|
|
||||||
// Properties
|
// Properties
|
||||||
AddMenuItem( editMenu, ID_MODEDIT_EDIT_MODULE_PROPERTIES,
|
AddMenuItem( editMenu, ID_MODEDIT_EDIT_MODULE_PROPERTIES,
|
||||||
_( "Footprint &Properties" ),
|
_( "Footprint &Properties..." ),
|
||||||
_( "Edit footprint properties" ),
|
_( "Edit footprint properties" ),
|
||||||
KiBitmap( module_options_xpm ) );
|
KiBitmap( module_options_xpm ) );
|
||||||
|
|
||||||
|
@ -197,18 +197,18 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
|
||||||
|
|
||||||
// User grid size
|
// User grid size
|
||||||
AddMenuItem( dimensions_Submenu, ID_PCB_USER_GRID_SETUP,
|
AddMenuItem( dimensions_Submenu, ID_PCB_USER_GRID_SETUP,
|
||||||
_( "Set Custom &User Grid" ), _( "Set custom user grid size" ),
|
_( "Set Custom &User Grid..." ), _( "Set custom user grid size" ),
|
||||||
KiBitmap( grid_xpm ) );
|
KiBitmap( grid_xpm ) );
|
||||||
|
|
||||||
// Sizes and Widths
|
// Sizes and Widths
|
||||||
AddMenuItem( dimensions_Submenu, ID_PCB_DRAWINGS_WIDTHS_SETUP,
|
AddMenuItem( dimensions_Submenu, ID_PCB_DRAWINGS_WIDTHS_SETUP,
|
||||||
_( "Text &Size and Width" ),
|
_( "Text &Size and Width..." ),
|
||||||
_( "Adjust width for text and drawing" ),
|
_( "Adjust width for text and drawing" ),
|
||||||
KiBitmap( text_xpm ) );
|
KiBitmap( text_xpm ) );
|
||||||
|
|
||||||
// Pad settings
|
// Pad settings
|
||||||
AddMenuItem( dimensions_Submenu, ID_MODEDIT_PAD_SETTINGS,
|
AddMenuItem( dimensions_Submenu, ID_MODEDIT_PAD_SETTINGS,
|
||||||
_( "&Pad Properties" ), _( "Edit settings for new pads" ),
|
_( "Default &Pad Properties..." ), _( "Edit settings for new pads" ),
|
||||||
KiBitmap( pad_dimensions_xpm ) );
|
KiBitmap( pad_dimensions_xpm ) );
|
||||||
|
|
||||||
//--------- View menu ----------------
|
//--------- View menu ----------------
|
||||||
|
@ -252,7 +252,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
|
||||||
// Add canvas selection
|
// Add canvas selection
|
||||||
viewMenu->AppendSeparator();
|
viewMenu->AppendSeparator();
|
||||||
|
|
||||||
text = AddHotkeyName( _( "Legacy graphic&s" ), m_hotkeysDescrList,
|
text = AddHotkeyName( _( "Legacy Graphic&s" ), m_hotkeysDescrList,
|
||||||
HK_CANVAS_LEGACY );
|
HK_CANVAS_LEGACY );
|
||||||
|
|
||||||
viewMenu->Append(
|
viewMenu->Append(
|
||||||
|
@ -320,27 +320,27 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
|
||||||
wxMenu* prefs_menu = new wxMenu;
|
wxMenu* prefs_menu = new wxMenu;
|
||||||
|
|
||||||
AddMenuItem( prefs_menu, ID_PCB_LIB_WIZARD,
|
AddMenuItem( prefs_menu, ID_PCB_LIB_WIZARD,
|
||||||
_( "&Footprint Library Wizard" ), _( "Add footprint libraries with wizard" ),
|
_( "&Footprint Library Wizard..." ), _( "Add footprint libraries with wizard" ),
|
||||||
KiBitmap( wizard_add_fplib_small_xpm ) );
|
KiBitmap( wizard_add_fplib_small_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( prefs_menu, ID_PCB_LIB_TABLE_EDIT,
|
AddMenuItem( prefs_menu, ID_PCB_LIB_TABLE_EDIT,
|
||||||
_( "Footprint Li&brary Table" ), _( "Configure footprint library table" ),
|
_( "Footprint Li&brary Table..." ), _( "Configure footprint library table" ),
|
||||||
KiBitmap( library_table_xpm ) );
|
KiBitmap( library_table_xpm ) );
|
||||||
|
|
||||||
// Path configuration edit dialog.
|
// Path configuration edit dialog.
|
||||||
AddMenuItem( prefs_menu,
|
AddMenuItem( prefs_menu,
|
||||||
ID_PREFERENCES_CONFIGURE_PATHS,
|
ID_PREFERENCES_CONFIGURE_PATHS,
|
||||||
_( "Configure Pa&ths" ),
|
_( "Configure Pa&ths..." ),
|
||||||
_( "Edit path configuration environment variables" ),
|
_( "Edit path configuration environment variables" ),
|
||||||
KiBitmap( path_xpm ) );
|
KiBitmap( path_xpm ) );
|
||||||
|
|
||||||
// Settings
|
// Settings
|
||||||
AddMenuItem( prefs_menu, wxID_PREFERENCES,
|
AddMenuItem( prefs_menu, wxID_PREFERENCES,
|
||||||
_( "General &Settings" ), _( "Change footprint editor settings." ),
|
_( "General &Settings..." ), _( "Change footprint editor settings." ),
|
||||||
KiBitmap( preference_xpm ) );
|
KiBitmap( preference_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( prefs_menu, ID_PCB_DISPLAY_OPTIONS_SETUP,
|
AddMenuItem( prefs_menu, ID_PCB_DISPLAY_OPTIONS_SETUP,
|
||||||
_( "&Display Settings" ),
|
_( "&Display Settings..." ),
|
||||||
_( "Change footprint editor display settings" ),
|
_( "Change footprint editor display settings" ),
|
||||||
KiBitmap( display_options_xpm ) );
|
KiBitmap( display_options_xpm ) );
|
||||||
|
|
||||||
|
|
|
@ -180,11 +180,11 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
|
||||||
void prepareDesignRulesMenu( wxMenu* aParentMenu )
|
void prepareDesignRulesMenu( wxMenu* aParentMenu )
|
||||||
{
|
{
|
||||||
AddMenuItem( aParentMenu, ID_MENU_PCB_SHOW_DESIGN_RULES_DIALOG,
|
AddMenuItem( aParentMenu, ID_MENU_PCB_SHOW_DESIGN_RULES_DIALOG,
|
||||||
_( "&Design Rules" ),
|
_( "&Design Rules..." ),
|
||||||
_( "Open design rules editor" ), KiBitmap( config_xpm ) );
|
_( "Open design rules editor" ), KiBitmap( config_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_PCB_LAYERS_SETUP,
|
AddMenuItem( aParentMenu, ID_PCB_LAYERS_SETUP,
|
||||||
_( "&Layers Setup" ), _( "Enable and set layer properties" ),
|
_( "&Layers Setup..." ), _( "Enable and set layer properties" ),
|
||||||
KiBitmap( copper_layers_setup_xpm ) );
|
KiBitmap( copper_layers_setup_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -210,12 +210,12 @@ void preparePreferencesMenu( PCB_EDIT_FRAME* aFrame, wxMenu* aParentMenu )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_PCB_DISPLAY_OPTIONS_SETUP,
|
AddMenuItem( aParentMenu, ID_PCB_DISPLAY_OPTIONS_SETUP,
|
||||||
_( "&Display Settings" ),
|
_( "&Display Settings..." ),
|
||||||
_( "Select how items (pads, tracks, texts) are displayed" ),
|
_( "Select how items (pads, tracks, texts) are displayed" ),
|
||||||
KiBitmap( display_options_xpm ) );
|
KiBitmap( display_options_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_MENU_INTERACTIVE_ROUTER_SETTINGS,
|
AddMenuItem( aParentMenu, ID_MENU_INTERACTIVE_ROUTER_SETTINGS,
|
||||||
_( "&Interactive Routing" ),
|
_( "&Interactive Routing..." ),
|
||||||
_( "Configure interactive router" ),
|
_( "Configure interactive router" ),
|
||||||
KiBitmap( add_tracks_xpm ) ); // fixme: icon
|
KiBitmap( add_tracks_xpm ) ); // fixme: icon
|
||||||
|
|
||||||
|
@ -232,12 +232,12 @@ void preparePreferencesMenu( PCB_EDIT_FRAME* aFrame, wxMenu* aParentMenu )
|
||||||
aParentMenu->AppendSeparator();
|
aParentMenu->AppendSeparator();
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_CONFIG_SAVE,
|
AddMenuItem( aParentMenu, ID_CONFIG_SAVE,
|
||||||
_( "&Save Preferences" ),
|
_( "&Save Preferences..." ),
|
||||||
_( "Save application preferences" ),
|
_( "Save application preferences" ),
|
||||||
KiBitmap( save_setup_xpm ) );
|
KiBitmap( save_setup_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_CONFIG_READ,
|
AddMenuItem( aParentMenu, ID_CONFIG_READ,
|
||||||
_( "Load Prefe&rences" ),
|
_( "Load Prefe&rences..." ),
|
||||||
_( "Load application preferences" ),
|
_( "Load application preferences" ),
|
||||||
KiBitmap( read_setup_xpm ) );
|
KiBitmap( read_setup_xpm ) );
|
||||||
}
|
}
|
||||||
|
@ -279,23 +279,23 @@ void prepareRouteMenu( wxMenu* aParentMenu )
|
||||||
void prepareLibraryMenu( wxMenu* aParentMenu )
|
void prepareLibraryMenu( wxMenu* aParentMenu )
|
||||||
{
|
{
|
||||||
AddMenuItem( aParentMenu, ID_PCB_LIB_WIZARD,
|
AddMenuItem( aParentMenu, ID_PCB_LIB_WIZARD,
|
||||||
_( "&Footprint Library Wizard" ), _( "Add footprint library using wizard" ),
|
_( "&Footprint Library Wizard..." ), _( "Add footprint library using wizard" ),
|
||||||
KiBitmap( wizard_add_fplib_small_xpm ) );
|
KiBitmap( wizard_add_fplib_small_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_PCB_LIB_TABLE_EDIT,
|
AddMenuItem( aParentMenu, ID_PCB_LIB_TABLE_EDIT,
|
||||||
_( "Footprint Li&brary Table" ), _( "Configure footprint library table" ),
|
_( "Footprint Li&brary Table..." ), _( "Configure footprint library table" ),
|
||||||
KiBitmap( library_table_xpm ) );
|
KiBitmap( library_table_xpm ) );
|
||||||
|
|
||||||
// Path configuration edit dialog.
|
// Path configuration edit dialog.
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_PREFERENCES_CONFIGURE_PATHS,
|
ID_PREFERENCES_CONFIGURE_PATHS,
|
||||||
_( "Configure Pa&ths" ),
|
_( "Configure Pa&ths..." ),
|
||||||
_( "Edit path configuration environment variables" ),
|
_( "Edit path configuration environment variables" ),
|
||||||
KiBitmap( path_xpm ) );
|
KiBitmap( path_xpm ) );
|
||||||
|
|
||||||
#ifdef BUILD_GITHUB_PLUGIN
|
#ifdef BUILD_GITHUB_PLUGIN
|
||||||
AddMenuItem( aParentMenu, ID_PCB_3DSHAPELIB_WIZARD,
|
AddMenuItem( aParentMenu, ID_PCB_3DSHAPELIB_WIZARD,
|
||||||
_( "&3D Shape Downloader" ),
|
_( "&3D Shape Downloader..." ),
|
||||||
_( "Download from Github 3D shape libraries using wizard" ),
|
_( "Download from Github 3D shape libraries using wizard" ),
|
||||||
KiBitmap( import3d_xpm ) );
|
KiBitmap( import3d_xpm ) );
|
||||||
#endif
|
#endif
|
||||||
|
@ -373,23 +373,23 @@ void prepareToolsMenu( wxMenu* aParentMenu )
|
||||||
{
|
{
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_UPDATE_PCB_FROM_SCH,
|
ID_UPDATE_PCB_FROM_SCH,
|
||||||
_( "Update PCB from Schematic" ),
|
_( "Update PCB from Schematic..." ),
|
||||||
_( "Update PCB design with current schematic (forward annotation)" ),
|
_( "Update PCB design with current schematic (forward annotation)" ),
|
||||||
KiBitmap( import_brd_file_xpm ) );
|
KiBitmap( import_brd_file_xpm ) );
|
||||||
|
|
||||||
aParentMenu->AppendSeparator( );
|
aParentMenu->AppendSeparator( );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_GET_NETLIST,
|
AddMenuItem( aParentMenu, ID_GET_NETLIST,
|
||||||
_( "Load &Netlist" ),
|
_( "Load &Netlist..." ),
|
||||||
_( "Read netlist and update board connectivity" ),
|
_( "Read netlist and update board connectivity" ),
|
||||||
KiBitmap( netlist_xpm ) );
|
KiBitmap( netlist_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_AUX_TOOLBAR_PCB_SELECT_LAYER_PAIR,
|
AddMenuItem( aParentMenu, ID_AUX_TOOLBAR_PCB_SELECT_LAYER_PAIR,
|
||||||
_( "Set &Layer Pair" ), _( "Change active layer pair" ),
|
_( "Set &Layer Pair..." ), _( "Change active layer pair" ),
|
||||||
KiBitmap( select_layer_pair_xpm ) );
|
KiBitmap( select_layer_pair_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_DRC_CONTROL,
|
AddMenuItem( aParentMenu, ID_DRC_CONTROL,
|
||||||
_( "&Design Rules Check" ),
|
_( "&Design Rules Checker" ),
|
||||||
_( "Perform design rules check" ), KiBitmap( erc_xpm ) );
|
_( "Perform design rules check" ), KiBitmap( erc_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_TOOLBARH_PCB_FREEROUTE_ACCESS,
|
AddMenuItem( aParentMenu, ID_TOOLBARH_PCB_FREEROUTE_ACCESS,
|
||||||
|
@ -410,7 +410,7 @@ void prepareToolsMenu( wxMenu* aParentMenu )
|
||||||
wxMenu* submenuActionPluginsMenu = new wxMenu();
|
wxMenu* submenuActionPluginsMenu = new wxMenu();
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, submenuActionPluginsMenu, ID_TOOLBARH_PCB_ACTION_PLUGIN,
|
AddMenuItem( aParentMenu, submenuActionPluginsMenu, ID_TOOLBARH_PCB_ACTION_PLUGIN,
|
||||||
_( "&External Plugins" ),
|
_( "&External Plugins..." ),
|
||||||
_( "Execute or reload python action plugins" ),
|
_( "Execute or reload python action plugins" ),
|
||||||
KiBitmap( hammer_xpm ) );
|
KiBitmap( hammer_xpm ) );
|
||||||
|
|
||||||
|
@ -476,41 +476,41 @@ void prepareEditMenu( wxMenu* aParentMenu, bool aUseGal )
|
||||||
|
|
||||||
aParentMenu->AppendSeparator();
|
aParentMenu->AppendSeparator();
|
||||||
|
|
||||||
text = AddHotkeyName( _( "&Find" ), g_Pcbnew_Editor_Hokeys_Descr, HK_FIND_ITEM );
|
text = AddHotkeyName( _( "&Find..." ), g_Pcbnew_Editor_Hokeys_Descr, HK_FIND_ITEM );
|
||||||
AddMenuItem( aParentMenu, ID_FIND_ITEMS, text, HELP_FIND , KiBitmap( find_xpm ) );
|
AddMenuItem( aParentMenu, ID_FIND_ITEMS, text, HELP_FIND , KiBitmap( find_xpm ) );
|
||||||
|
|
||||||
aParentMenu->AppendSeparator();
|
aParentMenu->AppendSeparator();
|
||||||
AddMenuItem( aParentMenu, ID_PCB_EDIT_ALL_VIAS_AND_TRACK_SIZE,
|
AddMenuItem( aParentMenu, ID_PCB_EDIT_ALL_VIAS_AND_TRACK_SIZE,
|
||||||
_( "Edit All Tracks and Vias" ), KiBitmap( width_track_via_xpm ) );
|
_( "Edit All Tracks and Vias..." ), KiBitmap( width_track_via_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_MENU_PCB_RESET_TEXTMODULE_FIELDS_SIZES,
|
AddMenuItem( aParentMenu, ID_MENU_PCB_RESET_TEXTMODULE_FIELDS_SIZES,
|
||||||
_( "Set Footp&rint Field Sizes" ),
|
_( "Set Footp&rint Field Sizes..." ),
|
||||||
_( "Set text size and width of footprint fields" ),
|
_( "Set text size and width of footprint fields" ),
|
||||||
KiBitmap( reset_text_xpm ) );
|
KiBitmap( reset_text_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_MENU_PCB_UPDATE_FOOTPRINTS,
|
AddMenuItem( aParentMenu, ID_MENU_PCB_UPDATE_FOOTPRINTS,
|
||||||
_( "Update Footprints from Library" ),
|
_( "Update Footprints from Library..." ),
|
||||||
_( "Update footprints to include any changes from the library" ),
|
_( "Update footprints to include any changes from the library" ),
|
||||||
KiBitmap( reload_xpm ) );
|
KiBitmap( reload_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_MENU_PCB_EXCHANGE_FOOTPRINTS,
|
AddMenuItem( aParentMenu, ID_MENU_PCB_EXCHANGE_FOOTPRINTS,
|
||||||
_( "Change Footprints" ),
|
_( "Change Footprints..." ),
|
||||||
_( "Assign different footprints from the library" ),
|
_( "Assign different footprints from the library" ),
|
||||||
KiBitmap( exchange_xpm ) );
|
KiBitmap( exchange_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_MENU_PCB_SWAP_LAYERS,
|
AddMenuItem( aParentMenu, ID_MENU_PCB_SWAP_LAYERS,
|
||||||
_( "&Swap Layers" ),
|
_( "&Swap Layers..." ),
|
||||||
_( "Swap tracks on copper layers or drawings on other layers" ),
|
_( "Swap tracks on copper layers or drawings on other layers" ),
|
||||||
KiBitmap( swap_layer_xpm ) );
|
KiBitmap( swap_layer_xpm ) );
|
||||||
|
|
||||||
aParentMenu->AppendSeparator();
|
aParentMenu->AppendSeparator();
|
||||||
AddMenuItem( aParentMenu, ID_PCB_GLOBAL_DELETE,
|
AddMenuItem( aParentMenu, ID_PCB_GLOBAL_DELETE,
|
||||||
_( "&Global Deletions" ),
|
_( "&Global Deletions..." ),
|
||||||
_( "Delete tracks, footprints and texts on board" ),
|
_( "Delete tracks, footprints and texts on board" ),
|
||||||
KiBitmap( general_deletions_xpm ) );
|
KiBitmap( general_deletions_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_MENU_PCB_CLEAN,
|
AddMenuItem( aParentMenu, ID_MENU_PCB_CLEAN,
|
||||||
_( "&Cleanup Tracks and Vias" ),
|
_( "&Cleanup Tracks and Vias..." ),
|
||||||
_( "Clean stubs, vias, delete break points or unconnected tracks" ),
|
_( "Clean stubs, vias, delete break points or unconnected tracks" ),
|
||||||
KiBitmap( delete_xpm ) );
|
KiBitmap( delete_xpm ) );
|
||||||
}
|
}
|
||||||
|
@ -569,7 +569,7 @@ void prepareViewMenu( wxMenu* aParentMenu )
|
||||||
|
|
||||||
aParentMenu->AppendSeparator();
|
aParentMenu->AppendSeparator();
|
||||||
|
|
||||||
text = AddHotkeyName( _( "Legacy graphic&s" ), g_Pcbnew_Editor_Hokeys_Descr,
|
text = AddHotkeyName( _( "Legacy Graphic&s" ), g_Pcbnew_Editor_Hokeys_Descr,
|
||||||
HK_CANVAS_LEGACY );
|
HK_CANVAS_LEGACY );
|
||||||
|
|
||||||
aParentMenu->Append(
|
aParentMenu->Append(
|
||||||
|
@ -599,31 +599,31 @@ void prepareViewMenu( wxMenu* aParentMenu )
|
||||||
void prepareDimensionsMenu( wxMenu* aParentMenu )
|
void prepareDimensionsMenu( wxMenu* aParentMenu )
|
||||||
{
|
{
|
||||||
AddMenuItem( aParentMenu, ID_PCB_USER_GRID_SETUP,
|
AddMenuItem( aParentMenu, ID_PCB_USER_GRID_SETUP,
|
||||||
_( "User Defined G&rid" ),_( "Adjust custom user-defined grid dimensions" ),
|
_( "User Defined G&rid..." ),_( "Adjust custom user-defined grid dimensions" ),
|
||||||
KiBitmap( grid_xpm ) );
|
KiBitmap( grid_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_PCB_DRAWINGS_WIDTHS_SETUP,
|
AddMenuItem( aParentMenu, ID_PCB_DRAWINGS_WIDTHS_SETUP,
|
||||||
_( "Te&xts and Drawings" ),
|
_( "Te&xts and Drawings..." ),
|
||||||
_( "Adjust dimensions for texts and drawings" ),
|
_( "Adjust dimensions for texts and drawings" ),
|
||||||
KiBitmap( text_xpm ) );
|
KiBitmap( text_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_PCB_PAD_SETUP,
|
AddMenuItem( aParentMenu, ID_PCB_PAD_SETUP,
|
||||||
_( "&Pads Size" ), _( "Adjust default pad characteristics" ),
|
_( "Default &Pad Properties..." ), _( "Adjust default pad characteristics" ),
|
||||||
KiBitmap( pad_dimensions_xpm ) );
|
KiBitmap( pad_dimensions_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_PCB_MASK_CLEARANCE,
|
AddMenuItem( aParentMenu, ID_PCB_MASK_CLEARANCE,
|
||||||
_( "Pads to &Mask Clearance" ),
|
_( "Pads to &Mask Clearance..." ),
|
||||||
_( "Adjust global clearance between pads and solder resist mask" ),
|
_( "Adjust global clearance between pads and solder resist mask" ),
|
||||||
KiBitmap( pads_mask_layers_xpm ) );
|
KiBitmap( pads_mask_layers_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_MENU_DIFF_PAIR_DIMENSIONS,
|
AddMenuItem( aParentMenu, ID_MENU_DIFF_PAIR_DIMENSIONS,
|
||||||
_( "&Differential Pairs" ),
|
_( "&Differential Pairs..." ),
|
||||||
_( "Define global gap/width for differential pairs." ),
|
_( "Define global gap/width for differential pairs." ),
|
||||||
KiBitmap( ps_diff_pair_xpm ) );
|
KiBitmap( ps_diff_pair_xpm ) );
|
||||||
|
|
||||||
aParentMenu->AppendSeparator();
|
aParentMenu->AppendSeparator();
|
||||||
AddMenuItem( aParentMenu, ID_CONFIG_SAVE,
|
AddMenuItem( aParentMenu, ID_CONFIG_SAVE,
|
||||||
_( "&Save Preferences" ), _( "Save dimension preferences" ),
|
_( "&Save Preferences..." ), _( "Save dimension preferences" ),
|
||||||
KiBitmap( save_xpm ) );
|
KiBitmap( save_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -642,7 +642,7 @@ void prepareFilesMenu( wxMenu* aParentMenu, bool aIsOutsideProject )
|
||||||
_( "Create new board" ),
|
_( "Create new board" ),
|
||||||
KiBitmap( new_board_xpm ) );
|
KiBitmap( new_board_xpm ) );
|
||||||
|
|
||||||
text = AddHotkeyName( _( "&Open" ), g_Pcbnew_Editor_Hokeys_Descr, HK_LOAD_BOARD );
|
text = AddHotkeyName( _( "&Open..." ), g_Pcbnew_Editor_Hokeys_Descr, HK_LOAD_BOARD );
|
||||||
AddMenuItem( aParentMenu, ID_LOAD_FILE, text,
|
AddMenuItem( aParentMenu, ID_LOAD_FILE, text,
|
||||||
_( "Open existing board" ),
|
_( "Open existing board" ),
|
||||||
KiBitmap( open_brd_file_xpm ) );
|
KiBitmap( open_brd_file_xpm ) );
|
||||||
|
@ -671,12 +671,12 @@ void prepareFilesMenu( wxMenu* aParentMenu, bool aIsOutsideProject )
|
||||||
KiBitmap( recent_xpm ) );
|
KiBitmap( recent_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_APPEND_FILE,
|
AddMenuItem( aParentMenu, ID_APPEND_FILE,
|
||||||
_( "&Append Board" ),
|
_( "&Append Board..." ),
|
||||||
_( "Append another board to currently loaded board" ),
|
_( "Append another board to currently loaded board" ),
|
||||||
KiBitmap( add_board_xpm ) );
|
KiBitmap( add_board_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_IMPORT_NON_KICAD_BOARD,
|
AddMenuItem( aParentMenu, ID_IMPORT_NON_KICAD_BOARD,
|
||||||
_( "Import Non-Kicad Board File" ),
|
_( "Import Non-Kicad Board File..." ),
|
||||||
_( "Import board file from other applications" ),
|
_( "Import board file from other applications" ),
|
||||||
KiBitmap( import_brd_file_xpm ) );
|
KiBitmap( import_brd_file_xpm ) );
|
||||||
|
|
||||||
|
@ -695,7 +695,7 @@ void prepareFilesMenu( wxMenu* aParentMenu, bool aIsOutsideProject )
|
||||||
// when not under a project mgr, we are free to change filenames, cwd ...
|
// when not under a project mgr, we are free to change filenames, cwd ...
|
||||||
if( Kiface().IsSingle() ) // not when under a project mgr (pcbnew is run as stand alone)
|
if( Kiface().IsSingle() ) // not when under a project mgr (pcbnew is run as stand alone)
|
||||||
{
|
{
|
||||||
text = AddHotkeyName( _( "Sa&ve As" ), g_Pcbnew_Editor_Hokeys_Descr, HK_SAVE_BOARD_AS );
|
text = AddHotkeyName( _( "Sa&ve As..." ), g_Pcbnew_Editor_Hokeys_Descr, HK_SAVE_BOARD_AS );
|
||||||
AddMenuItem( aParentMenu, ID_SAVE_BOARD_AS, text,
|
AddMenuItem( aParentMenu, ID_SAVE_BOARD_AS, text,
|
||||||
_( "Save current board with new name" ),
|
_( "Save current board with new name" ),
|
||||||
KiBitmap( save_as_xpm ) );
|
KiBitmap( save_as_xpm ) );
|
||||||
|
@ -704,7 +704,7 @@ void prepareFilesMenu( wxMenu* aParentMenu, bool aIsOutsideProject )
|
||||||
// but do not change the current board file name
|
// but do not change the current board file name
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
text = AddHotkeyName( _( "Sa&ve Copy As" ), g_Pcbnew_Editor_Hokeys_Descr, HK_SAVE_BOARD_AS );
|
text = AddHotkeyName( _( "Sa&ve Copy As..." ), g_Pcbnew_Editor_Hokeys_Descr, HK_SAVE_BOARD_AS );
|
||||||
AddMenuItem( aParentMenu, ID_COPY_BOARD_AS, text,
|
AddMenuItem( aParentMenu, ID_COPY_BOARD_AS, text,
|
||||||
_( "Save copy of the current board" ),
|
_( "Save copy of the current board" ),
|
||||||
KiBitmap( save_as_xpm ) );
|
KiBitmap( save_as_xpm ) );
|
||||||
|
@ -726,27 +726,27 @@ void prepareFilesMenu( wxMenu* aParentMenu, bool aIsOutsideProject )
|
||||||
//----- Fabrication Outputs submenu -----------------------------------------
|
//----- Fabrication Outputs submenu -----------------------------------------
|
||||||
wxMenu* fabricationOutputsMenu = new wxMenu;
|
wxMenu* fabricationOutputsMenu = new wxMenu;
|
||||||
AddMenuItem( fabricationOutputsMenu, ID_PCB_GEN_POS_MODULES_FILE,
|
AddMenuItem( fabricationOutputsMenu, ID_PCB_GEN_POS_MODULES_FILE,
|
||||||
_( "Footprint &Position (.pos) File" ),
|
_( "Footprint &Position (.pos) File..." ),
|
||||||
_( "Generate footprint position file for pick and place" ),
|
_( "Generate footprint position file for pick and place" ),
|
||||||
KiBitmap( post_compo_xpm ) );
|
KiBitmap( post_compo_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( fabricationOutputsMenu, ID_PCB_GEN_DRILL_FILE,
|
AddMenuItem( fabricationOutputsMenu, ID_PCB_GEN_DRILL_FILE,
|
||||||
_( "&Drill (.drl) File" ),
|
_( "&Drill (.drl) File..." ),
|
||||||
_( "Generate excellon2 drill file" ),
|
_( "Generate excellon2 drill file" ),
|
||||||
KiBitmap( post_drill_xpm ) );
|
KiBitmap( post_drill_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( fabricationOutputsMenu, ID_GEN_EXPORT_FILE_MODULE_REPORT,
|
AddMenuItem( fabricationOutputsMenu, ID_GEN_EXPORT_FILE_MODULE_REPORT,
|
||||||
_( "&Footprint (.rpt) Report.." ),
|
_( "&Footprint (.rpt) Report..." ),
|
||||||
_( "Create report of all footprints from current board" ),
|
_( "Create report of all footprints from current board" ),
|
||||||
KiBitmap( tools_xpm ) );
|
KiBitmap( tools_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( fabricationOutputsMenu, ID_PCB_GEN_D356_FILE,
|
AddMenuItem( fabricationOutputsMenu, ID_PCB_GEN_D356_FILE,
|
||||||
_( "IPC-D-356 Netlist File" ),
|
_( "IPC-D-356 Netlist File..." ),
|
||||||
_( "Generate IPC-D-356 netlist file" ),
|
_( "Generate IPC-D-356 netlist file" ),
|
||||||
KiBitmap( netlist_xpm ) );
|
KiBitmap( netlist_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( fabricationOutputsMenu, ID_PCB_GEN_BOM_FILE_FROM_BOARD,
|
AddMenuItem( fabricationOutputsMenu, ID_PCB_GEN_BOM_FILE_FROM_BOARD,
|
||||||
_( "&BOM File" ),
|
_( "&BOM File..." ),
|
||||||
_( "Create bill of materials from current schematic" ),
|
_( "Create bill of materials from current schematic" ),
|
||||||
KiBitmap( bom_xpm ) );
|
KiBitmap( bom_xpm ) );
|
||||||
|
|
||||||
|
@ -759,12 +759,12 @@ void prepareFilesMenu( wxMenu* aParentMenu, bool aIsOutsideProject )
|
||||||
wxMenu* submenuImport = new wxMenu();
|
wxMenu* submenuImport = new wxMenu();
|
||||||
|
|
||||||
AddMenuItem( submenuImport, ID_GEN_IMPORT_SPECCTRA_SESSION,
|
AddMenuItem( submenuImport, ID_GEN_IMPORT_SPECCTRA_SESSION,
|
||||||
_( "&Specctra Session" ),
|
_( "&Specctra Session..." ),
|
||||||
_( "Import routed \"Specctra Session\" (*.ses) file" ),
|
_( "Import routed \"Specctra Session\" (*.ses) file" ),
|
||||||
KiBitmap( import_xpm ) );
|
KiBitmap( import_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( submenuImport, ID_GEN_IMPORT_DXF_FILE,
|
AddMenuItem( submenuImport, ID_GEN_IMPORT_DXF_FILE,
|
||||||
_( "&DXF File" ),
|
_( "&DXF File..." ),
|
||||||
_( "Import 2D Drawing DXF file to Pcbnew on Drawings layer" ),
|
_( "Import 2D Drawing DXF file to Pcbnew on Drawings layer" ),
|
||||||
KiBitmap( import_xpm ) );
|
KiBitmap( import_xpm ) );
|
||||||
|
|
||||||
|
@ -784,21 +784,21 @@ void prepareFilesMenu( wxMenu* aParentMenu, bool aIsOutsideProject )
|
||||||
aParentMenu->AppendSeparator();
|
aParentMenu->AppendSeparator();
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_SHEET_SET,
|
AddMenuItem( aParentMenu, ID_SHEET_SET,
|
||||||
_( "Page S&ettings" ),
|
_( "Page S&ettings..." ),
|
||||||
_( "Settings for sheet size and frame references" ),
|
_( "Settings for sheet size and frame references" ),
|
||||||
KiBitmap( sheetset_xpm ) );
|
KiBitmap( sheetset_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, wxID_PRINT,
|
AddMenuItem( aParentMenu, wxID_PRINT,
|
||||||
_( "&Print" ), _( "Print board" ),
|
_( "&Print..." ), _( "Print board" ),
|
||||||
KiBitmap( print_button_xpm ) );
|
KiBitmap( print_button_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_GEN_PLOT_SVG,
|
AddMenuItem( aParentMenu, ID_GEN_PLOT_SVG,
|
||||||
_( "Export SV&G" ),
|
_( "Export SV&G..." ),
|
||||||
_( "Export board file in Scalable Vector Graphics format" ),
|
_( "Export board file in Scalable Vector Graphics format" ),
|
||||||
KiBitmap( plot_svg_xpm ) );
|
KiBitmap( plot_svg_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_GEN_PLOT,
|
AddMenuItem( aParentMenu, ID_GEN_PLOT,
|
||||||
_( "P&lot" ),
|
_( "P&lot..." ),
|
||||||
_( "Plot board in HPGL, PostScript or Gerber RS-274X format)" ),
|
_( "Plot board in HPGL, PostScript or Gerber RS-274X format)" ),
|
||||||
KiBitmap( plot_xpm ) );
|
KiBitmap( plot_xpm ) );
|
||||||
|
|
||||||
|
@ -808,13 +808,13 @@ void prepareFilesMenu( wxMenu* aParentMenu, bool aIsOutsideProject )
|
||||||
wxMenu* submenuarchive = new wxMenu();
|
wxMenu* submenuarchive = new wxMenu();
|
||||||
|
|
||||||
AddMenuItem( submenuarchive, ID_MENU_ARCHIVE_MODULES_IN_LIBRARY,
|
AddMenuItem( submenuarchive, ID_MENU_ARCHIVE_MODULES_IN_LIBRARY,
|
||||||
_( "&Archive Footprints in Project Library" ),
|
_( "&Archive Footprints in Existing Library..." ),
|
||||||
_( "Archive all footprints in existing library in footprint Lib table"
|
_( "Archive all footprints in existing library in footprint Lib table"
|
||||||
"(does not remove other footprints in this library)" ),
|
"(does not remove other footprints in this library)" ),
|
||||||
KiBitmap( library_archive_xpm ) );
|
KiBitmap( library_archive_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( submenuarchive, ID_MENU_CREATE_LIBRARY_AND_ARCHIVE_MODULES,
|
AddMenuItem( submenuarchive, ID_MENU_CREATE_LIBRARY_AND_ARCHIVE_MODULES,
|
||||||
_( "&Create New Library and Archive Footprints" ),
|
_( "&Create New Library and Archive Footprints..." ),
|
||||||
_( "Archive all footprints in new library\n"
|
_( "Archive all footprints in new library\n"
|
||||||
"(if the library already exists it will be deleted)" ),
|
"(if the library already exists it will be deleted)" ),
|
||||||
KiBitmap( library_archive_as_xpm ) );
|
KiBitmap( library_archive_as_xpm ) );
|
||||||
|
@ -834,29 +834,29 @@ void prepareFilesMenu( wxMenu* aParentMenu, bool aIsOutsideProject )
|
||||||
void prepareExportMenu( wxMenu* aParentMenu )
|
void prepareExportMenu( wxMenu* aParentMenu )
|
||||||
{
|
{
|
||||||
AddMenuItem( aParentMenu, ID_GEN_EXPORT_SPECCTRA,
|
AddMenuItem( aParentMenu, ID_GEN_EXPORT_SPECCTRA,
|
||||||
_( "&Specctra DSN" ),
|
_( "&Specctra DSN..." ),
|
||||||
_( "Export current board to \"Specctra DSN\" file" ),
|
_( "Export current board to \"Specctra DSN\" file" ),
|
||||||
KiBitmap( export_dsn_xpm ) );
|
KiBitmap( export_dsn_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_GEN_EXPORT_FILE_GENCADFORMAT,
|
AddMenuItem( aParentMenu, ID_GEN_EXPORT_FILE_GENCADFORMAT,
|
||||||
_( "&GenCAD" ), _( "Export GenCAD format" ),
|
_( "&GenCAD..." ), _( "Export GenCAD format" ),
|
||||||
KiBitmap( export_xpm ) );
|
KiBitmap( export_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_GEN_EXPORT_FILE_VRML,
|
AddMenuItem( aParentMenu, ID_GEN_EXPORT_FILE_VRML,
|
||||||
_( "&VRML" ),
|
_( "&VRML..." ),
|
||||||
_( "Export VRML board representation" ),
|
_( "Export VRML board representation" ),
|
||||||
KiBitmap( export3d_xpm ) );
|
KiBitmap( export3d_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_GEN_EXPORT_FILE_IDF3,
|
AddMenuItem( aParentMenu, ID_GEN_EXPORT_FILE_IDF3,
|
||||||
_( "I&DFv3" ), _( "IDFv3 board and symbol export" ),
|
_( "I&DFv3..." ), _( "IDFv3 board and symbol export" ),
|
||||||
KiBitmap( export_idf_xpm ) );
|
KiBitmap( export_idf_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_GEN_EXPORT_FILE_STEP,
|
AddMenuItem( aParentMenu, ID_GEN_EXPORT_FILE_STEP,
|
||||||
_( "S&TEP" ), _( "STEP export" ),
|
_( "S&TEP..." ), _( "STEP export" ),
|
||||||
KiBitmap( export_step_xpm ) );
|
KiBitmap( export_step_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_PCB_GEN_CMP_FILE,
|
AddMenuItem( aParentMenu, ID_PCB_GEN_CMP_FILE,
|
||||||
_( "&Footprint Association (.cmp) File" ),
|
_( "&Footprint Association (.cmp) File..." ),
|
||||||
_( "Export footprint association file (*.cmp) for schematic back annotation" ),
|
_( "Export footprint association file (*.cmp) for schematic back annotation" ),
|
||||||
KiBitmap( create_cmp_file_xpm ) );
|
KiBitmap( create_cmp_file_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
|
@ -202,17 +202,17 @@ bool PCB_EDIT_FRAME::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
|
||||||
AddMenuItem( aPopMenu, ID_POPUP_PCB_DUPLICATE_ITEM,
|
AddMenuItem( aPopMenu, ID_POPUP_PCB_DUPLICATE_ITEM,
|
||||||
msg, KiBitmap( duplicate_xpm ) );
|
msg, KiBitmap( duplicate_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _("Move Exactly" ), g_Board_Editor_Hokeys_Descr,
|
msg = AddHotkeyName( _("Move Exactly..." ), g_Board_Editor_Hokeys_Descr,
|
||||||
HK_MOVE_ITEM_EXACT );
|
HK_MOVE_ITEM_EXACT );
|
||||||
AddMenuItem( aPopMenu, ID_POPUP_PCB_MOVE_EXACT,
|
AddMenuItem( aPopMenu, ID_POPUP_PCB_MOVE_EXACT,
|
||||||
msg, KiBitmap( move_exactly_xpm ) );
|
msg, KiBitmap( move_exactly_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _("Create Array" ), g_Board_Editor_Hokeys_Descr,
|
msg = AddHotkeyName( _("Create Array..." ), g_Board_Editor_Hokeys_Descr,
|
||||||
HK_CREATE_ARRAY );
|
HK_CREATE_ARRAY );
|
||||||
AddMenuItem( aPopMenu, ID_POPUP_PCB_CREATE_ARRAY,
|
AddMenuItem( aPopMenu, ID_POPUP_PCB_CREATE_ARRAY,
|
||||||
msg, KiBitmap( array_xpm ) );
|
msg, KiBitmap( array_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Edit" ), g_Board_Editor_Hokeys_Descr,
|
msg = AddHotkeyName( _( "Edit..." ), g_Board_Editor_Hokeys_Descr,
|
||||||
HK_EDIT_ITEM );
|
HK_EDIT_ITEM );
|
||||||
AddMenuItem( aPopMenu, ID_POPUP_PCB_EDIT_DRAWING,
|
AddMenuItem( aPopMenu, ID_POPUP_PCB_EDIT_DRAWING,
|
||||||
msg, KiBitmap( edit_xpm ) );
|
msg, KiBitmap( edit_xpm ) );
|
||||||
|
@ -264,7 +264,7 @@ bool PCB_EDIT_FRAME::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
|
||||||
case PCB_DIMENSION_T:
|
case PCB_DIMENSION_T:
|
||||||
if( !flags )
|
if( !flags )
|
||||||
{
|
{
|
||||||
msg = AddHotkeyName( _( "Edit" ), g_Board_Editor_Hokeys_Descr,
|
msg = AddHotkeyName( _( "Edit..." ), g_Board_Editor_Hokeys_Descr,
|
||||||
HK_EDIT_ITEM );
|
HK_EDIT_ITEM );
|
||||||
AddMenuItem( aPopMenu, ID_POPUP_PCB_EDIT_DIMENSION, msg, KiBitmap( edit_xpm ) );
|
AddMenuItem( aPopMenu, ID_POPUP_PCB_EDIT_DIMENSION, msg, KiBitmap( edit_xpm ) );
|
||||||
|
|
||||||
|
@ -278,7 +278,7 @@ bool PCB_EDIT_FRAME::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
|
||||||
AddMenuItem( aPopMenu, ID_POPUP_PCB_DUPLICATE_ITEM,
|
AddMenuItem( aPopMenu, ID_POPUP_PCB_DUPLICATE_ITEM,
|
||||||
msg, KiBitmap( duplicate_xpm ) );
|
msg, KiBitmap( duplicate_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _("Move Exactly" ), g_Board_Editor_Hokeys_Descr,
|
msg = AddHotkeyName( _("Move Exactly..." ), g_Board_Editor_Hokeys_Descr,
|
||||||
HK_MOVE_ITEM_EXACT );
|
HK_MOVE_ITEM_EXACT );
|
||||||
AddMenuItem( aPopMenu, ID_POPUP_PCB_MOVE_EXACT,
|
AddMenuItem( aPopMenu, ID_POPUP_PCB_MOVE_EXACT,
|
||||||
msg, KiBitmap( move_exactly_xpm ) );
|
msg, KiBitmap( move_exactly_xpm ) );
|
||||||
|
@ -299,7 +299,7 @@ bool PCB_EDIT_FRAME::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
|
||||||
AddMenuItem( aPopMenu, ID_POPUP_PCB_MOVE_PCB_TARGET_REQUEST,
|
AddMenuItem( aPopMenu, ID_POPUP_PCB_MOVE_PCB_TARGET_REQUEST,
|
||||||
msg, KiBitmap( move_target_xpm ) );
|
msg, KiBitmap( move_target_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _("Move Exactly" ), g_Board_Editor_Hokeys_Descr,
|
msg = AddHotkeyName( _("Move Exactly..." ), g_Board_Editor_Hokeys_Descr,
|
||||||
HK_MOVE_ITEM_EXACT );
|
HK_MOVE_ITEM_EXACT );
|
||||||
AddMenuItem( aPopMenu, ID_POPUP_PCB_MOVE_EXACT,
|
AddMenuItem( aPopMenu, ID_POPUP_PCB_MOVE_EXACT,
|
||||||
msg, KiBitmap( move_exactly_xpm ) );
|
msg, KiBitmap( move_exactly_xpm ) );
|
||||||
|
@ -309,7 +309,7 @@ bool PCB_EDIT_FRAME::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
|
||||||
AddMenuItem( aPopMenu, ID_POPUP_PCB_DUPLICATE_ITEM,
|
AddMenuItem( aPopMenu, ID_POPUP_PCB_DUPLICATE_ITEM,
|
||||||
msg, KiBitmap( duplicate_xpm ) );
|
msg, KiBitmap( duplicate_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Edit" ), g_Board_Editor_Hokeys_Descr,
|
msg = AddHotkeyName( _( "Edit..." ), g_Board_Editor_Hokeys_Descr,
|
||||||
HK_EDIT_ITEM );
|
HK_EDIT_ITEM );
|
||||||
AddMenuItem( aPopMenu, ID_POPUP_PCB_EDIT_PCB_TARGET, msg, KiBitmap( edit_xpm ) );
|
AddMenuItem( aPopMenu, ID_POPUP_PCB_EDIT_PCB_TARGET, msg, KiBitmap( edit_xpm ) );
|
||||||
|
|
||||||
|
@ -347,7 +347,7 @@ bool PCB_EDIT_FRAME::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
|
||||||
|
|
||||||
if( !flags )
|
if( !flags )
|
||||||
{
|
{
|
||||||
msg = AddHotkeyName( _( "Get and Move Footprint" ),
|
msg = AddHotkeyName( _( "Get and Move Footprint..." ),
|
||||||
g_Board_Editor_Hokeys_Descr, HK_GET_AND_MOVE_FOOTPRINT );
|
g_Board_Editor_Hokeys_Descr, HK_GET_AND_MOVE_FOOTPRINT );
|
||||||
AddMenuItem( aPopMenu, ID_POPUP_PCB_GET_AND_MOVE_MODULE_REQUEST,
|
AddMenuItem( aPopMenu, ID_POPUP_PCB_GET_AND_MOVE_MODULE_REQUEST,
|
||||||
msg, KiBitmap( move_xpm ) );
|
msg, KiBitmap( move_xpm ) );
|
||||||
|
@ -372,13 +372,13 @@ bool PCB_EDIT_FRAME::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
|
||||||
}
|
}
|
||||||
|
|
||||||
AddMenuItem( aPopMenu, ID_POPUP_PCB_SELECT_LAYER,
|
AddMenuItem( aPopMenu, ID_POPUP_PCB_SELECT_LAYER,
|
||||||
_( "Select Working Layer" ), KiBitmap( select_w_layer_xpm ) );
|
_( "Select Working Layer..." ), KiBitmap( select_w_layer_xpm ) );
|
||||||
aPopMenu->AppendSeparator();
|
aPopMenu->AppendSeparator();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ID_PCB_KEEPOUT_AREA_BUTT:
|
case ID_PCB_KEEPOUT_AREA_BUTT:
|
||||||
AddMenuItem( aPopMenu, ID_POPUP_PCB_SELECT_LAYER,
|
AddMenuItem( aPopMenu, ID_POPUP_PCB_SELECT_LAYER,
|
||||||
_( "Select Working Layer" ), KiBitmap( select_w_layer_xpm ) );
|
_( "Select Working Layer..." ), KiBitmap( select_w_layer_xpm ) );
|
||||||
aPopMenu->AppendSeparator();
|
aPopMenu->AppendSeparator();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -396,9 +396,9 @@ bool PCB_EDIT_FRAME::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
|
||||||
KiBitmap( width_track_xpm ) );
|
KiBitmap( width_track_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aPopMenu, ID_POPUP_PCB_SELECT_CU_LAYER,
|
AddMenuItem( aPopMenu, ID_POPUP_PCB_SELECT_CU_LAYER,
|
||||||
_( "Select Working Layer" ), KiBitmap( select_w_layer_xpm ) );
|
_( "Select Working Layer..." ), KiBitmap( select_w_layer_xpm ) );
|
||||||
AddMenuItem( aPopMenu, ID_POPUP_PCB_SELECT_LAYER_PAIR,
|
AddMenuItem( aPopMenu, ID_POPUP_PCB_SELECT_LAYER_PAIR,
|
||||||
_( "Select Layer Pair for Vias" ), KiBitmap( select_layer_pair_xpm ) );
|
_( "Select Layer Pair for Vias..." ), KiBitmap( select_layer_pair_xpm ) );
|
||||||
aPopMenu->AppendSeparator();
|
aPopMenu->AppendSeparator();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -409,7 +409,7 @@ bool PCB_EDIT_FRAME::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
|
||||||
case ID_PCB_ADD_LINE_BUTT:
|
case ID_PCB_ADD_LINE_BUTT:
|
||||||
case ID_PCB_DIMENSION_BUTT:
|
case ID_PCB_DIMENSION_BUTT:
|
||||||
AddMenuItem( aPopMenu, ID_POPUP_PCB_SELECT_NO_CU_LAYER,
|
AddMenuItem( aPopMenu, ID_POPUP_PCB_SELECT_NO_CU_LAYER,
|
||||||
_( "Select Working Layer" ), KiBitmap( select_w_layer_xpm ) );
|
_( "Select Working Layer..." ), KiBitmap( select_w_layer_xpm ) );
|
||||||
aPopMenu->AppendSeparator();
|
aPopMenu->AppendSeparator();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -451,7 +451,7 @@ bool PCB_EDIT_FRAME::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
|
||||||
wxMenu* commands = new wxMenu;
|
wxMenu* commands = new wxMenu;
|
||||||
aPopMenu->Append( ID_POPUP_PCB_AUTOROUTE_COMMANDS, _( "Autoroute" ), commands );
|
aPopMenu->Append( ID_POPUP_PCB_AUTOROUTE_COMMANDS, _( "Autoroute" ), commands );
|
||||||
AddMenuItem( commands, ID_POPUP_PCB_SELECT_LAYER_PAIR,
|
AddMenuItem( commands, ID_POPUP_PCB_SELECT_LAYER_PAIR,
|
||||||
_( "Select Layer Pair" ), KiBitmap( select_layer_pair_xpm ) );
|
_( "Select Layer Pair..." ), KiBitmap( select_layer_pair_xpm ) );
|
||||||
commands->AppendSeparator();
|
commands->AppendSeparator();
|
||||||
commands->Append( ID_POPUP_PCB_AUTOROUTE_ALL_MODULES,
|
commands->Append( ID_POPUP_PCB_AUTOROUTE_ALL_MODULES,
|
||||||
_( "Automatically Route All Footprints" ) );
|
_( "Automatically Route All Footprints" ) );
|
||||||
|
@ -470,7 +470,7 @@ bool PCB_EDIT_FRAME::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
|
||||||
KiBitmap( width_track_xpm ) );
|
KiBitmap( width_track_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aPopMenu, ID_POPUP_PCB_SELECT_LAYER,
|
AddMenuItem( aPopMenu, ID_POPUP_PCB_SELECT_LAYER,
|
||||||
_( "Select Working Layer" ), KiBitmap( select_w_layer_xpm ) );
|
_( "Select Working Layer..." ), KiBitmap( select_w_layer_xpm ) );
|
||||||
aPopMenu->AppendSeparator();
|
aPopMenu->AppendSeparator();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -547,12 +547,12 @@ void PCB_EDIT_FRAME::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_DUPLICATE_ITEM,
|
AddMenuItem( PopMenu, ID_POPUP_PCB_DUPLICATE_ITEM,
|
||||||
msg, KiBitmap( duplicate_xpm ) );
|
msg, KiBitmap( duplicate_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _("Move Exactly" ), g_Board_Editor_Hokeys_Descr,
|
msg = AddHotkeyName( _("Move Exactly..." ), g_Board_Editor_Hokeys_Descr,
|
||||||
HK_MOVE_ITEM_EXACT );
|
HK_MOVE_ITEM_EXACT );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_MOVE_EXACT,
|
AddMenuItem( PopMenu, ID_POPUP_PCB_MOVE_EXACT,
|
||||||
msg, KiBitmap( move_exactly_xpm ) );
|
msg, KiBitmap( move_exactly_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _("Create Track Array" ), g_Board_Editor_Hokeys_Descr,
|
msg = AddHotkeyName( _("Create Track Array..." ), g_Board_Editor_Hokeys_Descr,
|
||||||
HK_CREATE_ARRAY );
|
HK_CREATE_ARRAY );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_CREATE_ARRAY,
|
AddMenuItem( PopMenu, ID_POPUP_PCB_CREATE_ARRAY,
|
||||||
msg, KiBitmap( array_xpm ) );
|
msg, KiBitmap( array_xpm ) );
|
||||||
|
@ -563,7 +563,7 @@ void PCB_EDIT_FRAME::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
|
||||||
}
|
}
|
||||||
|
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_SELECT_CU_LAYER,
|
AddMenuItem( PopMenu, ID_POPUP_PCB_SELECT_CU_LAYER,
|
||||||
_( "Select Working Layer" ), KiBitmap( select_w_layer_xpm ) );
|
_( "Select Working Layer..." ), KiBitmap( select_w_layer_xpm ) );
|
||||||
}
|
}
|
||||||
else if( flags & IS_DRAGGED ) // Drag via or node in progress
|
else if( flags & IS_DRAGGED ) // Drag via or node in progress
|
||||||
{
|
{
|
||||||
|
@ -582,7 +582,7 @@ void PCB_EDIT_FRAME::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
|
||||||
msg = AddHotkeyName( _( "Place Through Via" ), g_Board_Editor_Hokeys_Descr, HK_ADD_THROUGH_VIA );
|
msg = AddHotkeyName( _( "Place Through Via" ), g_Board_Editor_Hokeys_Descr, HK_ADD_THROUGH_VIA );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_PLACE_THROUGH_VIA, msg, KiBitmap( via_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_PCB_PLACE_THROUGH_VIA, msg, KiBitmap( via_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Select Layer and Place Through Via" ),
|
msg = AddHotkeyName( _( "Select Layer and Place Through Via..." ),
|
||||||
g_Board_Editor_Hokeys_Descr, HK_SEL_LAYER_AND_ADD_THROUGH_VIA );
|
g_Board_Editor_Hokeys_Descr, HK_SEL_LAYER_AND_ADD_THROUGH_VIA );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_SELECT_CU_LAYER_AND_PLACE_THROUGH_VIA,
|
AddMenuItem( PopMenu, ID_POPUP_PCB_SELECT_CU_LAYER_AND_PLACE_THROUGH_VIA,
|
||||||
msg, KiBitmap( select_w_layer_xpm ) );
|
msg, KiBitmap( select_w_layer_xpm ) );
|
||||||
|
@ -593,7 +593,7 @@ void PCB_EDIT_FRAME::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
|
||||||
g_Board_Editor_Hokeys_Descr, HK_ADD_BLIND_BURIED_VIA );
|
g_Board_Editor_Hokeys_Descr, HK_ADD_BLIND_BURIED_VIA );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_PLACE_BLIND_BURIED_VIA, msg, KiBitmap( via_buried_xpm ) );
|
AddMenuItem( PopMenu, ID_POPUP_PCB_PLACE_BLIND_BURIED_VIA, msg, KiBitmap( via_buried_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Select Layer and Place Blind/Buried Via" ),
|
msg = AddHotkeyName( _( "Select Layer and Place Blind/Buried Via..." ),
|
||||||
g_Board_Editor_Hokeys_Descr, HK_SEL_LAYER_AND_ADD_BLIND_BURIED_VIA );
|
g_Board_Editor_Hokeys_Descr, HK_SEL_LAYER_AND_ADD_BLIND_BURIED_VIA );
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_SELECT_CU_LAYER_AND_PLACE_BLIND_BURIED_VIA,
|
AddMenuItem( PopMenu, ID_POPUP_PCB_SELECT_CU_LAYER_AND_PLACE_BLIND_BURIED_VIA,
|
||||||
msg, KiBitmap( select_w_layer_xpm ) );
|
msg, KiBitmap( select_w_layer_xpm ) );
|
||||||
|
@ -661,7 +661,7 @@ void PCB_EDIT_FRAME::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
|
||||||
{
|
{
|
||||||
PopMenu->AppendSeparator();
|
PopMenu->AppendSeparator();
|
||||||
AddMenuItem( PopMenu, ID_POPUP_PCB_EDIT_ALL_VIAS_AND_TRACK_SIZE,
|
AddMenuItem( PopMenu, ID_POPUP_PCB_EDIT_ALL_VIAS_AND_TRACK_SIZE,
|
||||||
_( "Edit All Tracks and Vias" ), KiBitmap( width_track_via_xpm ) );
|
_( "Edit All Tracks and Vias..." ), KiBitmap( width_track_via_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add lock/unlock flags menu:
|
// Add lock/unlock flags menu:
|
||||||
|
@ -741,7 +741,7 @@ void PCB_EDIT_FRAME::createPopUpMenuForZones( ZONE_CONTAINER* edge_zone, wxMenu*
|
||||||
_( "Add Cutout Area" ), KiBitmap( add_zone_cutout_xpm ) );
|
_( "Add Cutout Area" ), KiBitmap( add_zone_cutout_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( zones_menu, ID_POPUP_PCB_ZONE_DUPLICATE,
|
AddMenuItem( zones_menu, ID_POPUP_PCB_ZONE_DUPLICATE,
|
||||||
_( "Duplicate Zone Onto Layer" ), KiBitmap( zone_duplicate_xpm ) );
|
_( "Duplicate Zone Onto Layer..." ), KiBitmap( zone_duplicate_xpm ) );
|
||||||
|
|
||||||
zones_menu->AppendSeparator();
|
zones_menu->AppendSeparator();
|
||||||
|
|
||||||
|
@ -758,12 +758,12 @@ void PCB_EDIT_FRAME::createPopUpMenuForZones( ZONE_CONTAINER* edge_zone, wxMenu*
|
||||||
msg = AddHotkeyName( _( "Move Zone" ), g_Board_Editor_Hokeys_Descr, HK_MOVE_ITEM );
|
msg = AddHotkeyName( _( "Move Zone" ), g_Board_Editor_Hokeys_Descr, HK_MOVE_ITEM );
|
||||||
AddMenuItem( zones_menu, ID_POPUP_PCB_MOVE_ZONE_OUTLINES, msg, KiBitmap( move_xpm ) );
|
AddMenuItem( zones_menu, ID_POPUP_PCB_MOVE_ZONE_OUTLINES, msg, KiBitmap( move_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _("Move Zone Exactly" ), g_Board_Editor_Hokeys_Descr,
|
msg = AddHotkeyName( _("Move Zone Exactly..." ), g_Board_Editor_Hokeys_Descr,
|
||||||
HK_MOVE_ITEM_EXACT );
|
HK_MOVE_ITEM_EXACT );
|
||||||
AddMenuItem( zones_menu, ID_POPUP_PCB_MOVE_EXACT,
|
AddMenuItem( zones_menu, ID_POPUP_PCB_MOVE_EXACT,
|
||||||
msg, KiBitmap( move_xpm ) );
|
msg, KiBitmap( move_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Edit Zone Properties" ), g_Board_Editor_Hokeys_Descr,
|
msg = AddHotkeyName( _( "Edit Zone Properties..." ), g_Board_Editor_Hokeys_Descr,
|
||||||
HK_EDIT_ITEM );
|
HK_EDIT_ITEM );
|
||||||
AddMenuItem( zones_menu, ID_POPUP_PCB_EDIT_ZONE_PARAMS,
|
AddMenuItem( zones_menu, ID_POPUP_PCB_EDIT_ZONE_PARAMS,
|
||||||
msg, KiBitmap( edit_xpm ) );
|
msg, KiBitmap( edit_xpm ) );
|
||||||
|
@ -816,7 +816,7 @@ void PCB_EDIT_FRAME::createPopUpMenuForFootprints( MODULE* aModule, wxMenu* menu
|
||||||
|
|
||||||
if( !flags )
|
if( !flags )
|
||||||
{
|
{
|
||||||
msg = AddHotkeyName( _( "Edit Parameters" ),
|
msg = AddHotkeyName( _( "Edit Parameters..." ),
|
||||||
g_Board_Editor_Hokeys_Descr, HK_EDIT_ITEM );
|
g_Board_Editor_Hokeys_Descr, HK_EDIT_ITEM );
|
||||||
AddMenuItem( sub_menu_footprint, ID_POPUP_PCB_EDIT_MODULE_PRMS, msg,
|
AddMenuItem( sub_menu_footprint, ID_POPUP_PCB_EDIT_MODULE_PRMS, msg,
|
||||||
KiBitmap( edit_module_xpm ) );
|
KiBitmap( edit_module_xpm ) );
|
||||||
|
@ -835,7 +835,7 @@ void PCB_EDIT_FRAME::createPopUpMenuForFootprints( MODULE* aModule, wxMenu* menu
|
||||||
|
|
||||||
sub_menu_footprint->AppendSeparator();
|
sub_menu_footprint->AppendSeparator();
|
||||||
|
|
||||||
msg = AddHotkeyName( _("Move Exactly" ), g_Board_Editor_Hokeys_Descr,
|
msg = AddHotkeyName( _("Move Exactly..." ), g_Board_Editor_Hokeys_Descr,
|
||||||
HK_MOVE_ITEM_EXACT );
|
HK_MOVE_ITEM_EXACT );
|
||||||
AddMenuItem( sub_menu_footprint, ID_POPUP_PCB_MOVE_EXACT,
|
AddMenuItem( sub_menu_footprint, ID_POPUP_PCB_MOVE_EXACT,
|
||||||
msg, KiBitmap( move_exactly_xpm ) );
|
msg, KiBitmap( move_exactly_xpm ) );
|
||||||
|
@ -845,16 +845,16 @@ void PCB_EDIT_FRAME::createPopUpMenuForFootprints( MODULE* aModule, wxMenu* menu
|
||||||
AddMenuItem( sub_menu_footprint, ID_POPUP_PCB_DUPLICATE_ITEM,
|
AddMenuItem( sub_menu_footprint, ID_POPUP_PCB_DUPLICATE_ITEM,
|
||||||
msg, KiBitmap( duplicate_xpm ) );
|
msg, KiBitmap( duplicate_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _("Create Array" ), g_Board_Editor_Hokeys_Descr,
|
msg = AddHotkeyName( _("Create Array..." ), g_Board_Editor_Hokeys_Descr,
|
||||||
HK_CREATE_ARRAY );
|
HK_CREATE_ARRAY );
|
||||||
AddMenuItem( sub_menu_footprint, ID_POPUP_PCB_CREATE_ARRAY,
|
AddMenuItem( sub_menu_footprint, ID_POPUP_PCB_CREATE_ARRAY,
|
||||||
msg, KiBitmap( array_xpm ) );
|
msg, KiBitmap( array_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( sub_menu_footprint, ID_POPUP_PCB_UPDATE_FOOTPRINTS,
|
AddMenuItem( sub_menu_footprint, ID_POPUP_PCB_UPDATE_FOOTPRINTS,
|
||||||
_( "Update Footprint" ), KiBitmap( reload_xpm ) );
|
_( "Update Footprint..." ), KiBitmap( reload_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( sub_menu_footprint, ID_POPUP_PCB_EXCHANGE_FOOTPRINTS,
|
AddMenuItem( sub_menu_footprint, ID_POPUP_PCB_EXCHANGE_FOOTPRINTS,
|
||||||
_( "Change Footprint" ), KiBitmap( exchange_xpm ) );
|
_( "Change Footprint..." ), KiBitmap( exchange_xpm ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -878,7 +878,7 @@ void PCB_EDIT_FRAME::createPopUpMenuForFpTexts( TEXTE_MODULE* FpText, wxMenu* me
|
||||||
AddMenuItem( sub_menu_Fp_text, ID_POPUP_PCB_MOVE_TEXTMODULE_REQUEST,
|
AddMenuItem( sub_menu_Fp_text, ID_POPUP_PCB_MOVE_TEXTMODULE_REQUEST,
|
||||||
msg, KiBitmap( move_xpm ) );
|
msg, KiBitmap( move_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _("Move Exactly" ), g_Board_Editor_Hokeys_Descr,
|
msg = AddHotkeyName( _("Move Exactly..." ), g_Board_Editor_Hokeys_Descr,
|
||||||
HK_MOVE_ITEM_EXACT );
|
HK_MOVE_ITEM_EXACT );
|
||||||
AddMenuItem( sub_menu_Fp_text, ID_POPUP_PCB_MOVE_EXACT,
|
AddMenuItem( sub_menu_Fp_text, ID_POPUP_PCB_MOVE_EXACT,
|
||||||
msg, KiBitmap( move_exactly_xpm ) );
|
msg, KiBitmap( move_exactly_xpm ) );
|
||||||
|
@ -890,7 +890,7 @@ void PCB_EDIT_FRAME::createPopUpMenuForFpTexts( TEXTE_MODULE* FpText, wxMenu* me
|
||||||
|
|
||||||
if( !flags )
|
if( !flags )
|
||||||
{
|
{
|
||||||
msg = AddHotkeyName( _( "Edit" ), g_Board_Editor_Hokeys_Descr, HK_EDIT_ITEM );
|
msg = AddHotkeyName( _( "Edit..." ), g_Board_Editor_Hokeys_Descr, HK_EDIT_ITEM );
|
||||||
AddMenuItem( sub_menu_Fp_text, ID_POPUP_PCB_EDIT_TEXTMODULE,
|
AddMenuItem( sub_menu_Fp_text, ID_POPUP_PCB_EDIT_TEXTMODULE,
|
||||||
msg, KiBitmap( edit_text_xpm ) );
|
msg, KiBitmap( edit_text_xpm ) );
|
||||||
AddMenuItem( sub_menu_Fp_text, ID_POPUP_PCB_RESET_TEXT_SIZE,
|
AddMenuItem( sub_menu_Fp_text, ID_POPUP_PCB_RESET_TEXT_SIZE,
|
||||||
|
@ -940,7 +940,7 @@ void PCB_EDIT_FRAME::createPopUpMenuForFpPads( D_PAD* Pad, wxMenu* menu )
|
||||||
AddMenuItem( sub_menu_Pad, ID_POPUP_PCB_DRAG_PAD_REQUEST, _( "Drag Pad" ),
|
AddMenuItem( sub_menu_Pad, ID_POPUP_PCB_DRAG_PAD_REQUEST, _( "Drag Pad" ),
|
||||||
KiBitmap( drag_pad_xpm ) );
|
KiBitmap( drag_pad_xpm ) );
|
||||||
|
|
||||||
msg = AddHotkeyName( _( "Edit Pad" ), g_Board_Editor_Hokeys_Descr, HK_EDIT_ITEM );
|
msg = AddHotkeyName( _( "Edit Pad..." ), g_Board_Editor_Hokeys_Descr, HK_EDIT_ITEM );
|
||||||
AddMenuItem( sub_menu_Pad, ID_POPUP_PCB_EDIT_PAD, msg, KiBitmap( options_pad_xpm ) );
|
AddMenuItem( sub_menu_Pad, ID_POPUP_PCB_EDIT_PAD, msg, KiBitmap( options_pad_xpm ) );
|
||||||
sub_menu_Pad->AppendSeparator();
|
sub_menu_Pad->AppendSeparator();
|
||||||
|
|
||||||
|
@ -953,7 +953,7 @@ void PCB_EDIT_FRAME::createPopUpMenuForFpPads( D_PAD* Pad, wxMenu* menu )
|
||||||
wxEmptyString,
|
wxEmptyString,
|
||||||
KiBitmap( apply_pad_settings_xpm ) );
|
KiBitmap( apply_pad_settings_xpm ) );
|
||||||
AddMenuItem( sub_menu_Pad, ID_POPUP_PCB_GLOBAL_IMPORT_PAD_SETTINGS,
|
AddMenuItem( sub_menu_Pad, ID_POPUP_PCB_GLOBAL_IMPORT_PAD_SETTINGS,
|
||||||
_( "Push Pad Settings" ),
|
_( "Push Pad Settings..." ),
|
||||||
_( "Copy this pad's settings to all pads in this footprint (or similar footprints)" ),
|
_( "Copy this pad's settings to all pads in this footprint (or similar footprints)" ),
|
||||||
KiBitmap( push_pad_settings_xpm ) );
|
KiBitmap( push_pad_settings_xpm ) );
|
||||||
sub_menu_Pad->AppendSeparator();
|
sub_menu_Pad->AppendSeparator();
|
||||||
|
@ -1002,7 +1002,7 @@ void PCB_EDIT_FRAME::createPopUpMenuForTexts( TEXTE_PCB* Text, wxMenu* menu )
|
||||||
AddMenuItem( sub_menu_Text, ID_POPUP_PCB_ROTATE_TEXTEPCB, msg, KiBitmap( rotate_ccw_xpm ) );
|
AddMenuItem( sub_menu_Text, ID_POPUP_PCB_ROTATE_TEXTEPCB, msg, KiBitmap( rotate_ccw_xpm ) );
|
||||||
msg = AddHotkeyName( _( "Flip" ), g_Board_Editor_Hokeys_Descr, HK_FLIP_ITEM );
|
msg = AddHotkeyName( _( "Flip" ), g_Board_Editor_Hokeys_Descr, HK_FLIP_ITEM );
|
||||||
AddMenuItem( sub_menu_Text, ID_POPUP_PCB_FLIP_TEXTEPCB, msg, KiBitmap( mirror_h_xpm ) );
|
AddMenuItem( sub_menu_Text, ID_POPUP_PCB_FLIP_TEXTEPCB, msg, KiBitmap( mirror_h_xpm ) );
|
||||||
msg = AddHotkeyName( _( "Edit" ), g_Board_Editor_Hokeys_Descr, HK_EDIT_ITEM );
|
msg = AddHotkeyName( _( "Edit..." ), g_Board_Editor_Hokeys_Descr, HK_EDIT_ITEM );
|
||||||
AddMenuItem( sub_menu_Text, ID_POPUP_PCB_EDIT_TEXTEPCB, msg, KiBitmap( edit_text_xpm ) );
|
AddMenuItem( sub_menu_Text, ID_POPUP_PCB_EDIT_TEXTEPCB, msg, KiBitmap( edit_text_xpm ) );
|
||||||
if( !flags )
|
if( !flags )
|
||||||
{
|
{
|
||||||
|
|
|
@ -52,23 +52,23 @@ static TOOL_ACTION ACT_EndTuning( "pcbnew.LengthTuner.EndTuning", AS_CONTEXT, WX
|
||||||
_( "End Track" ), _( "Stops laying the current meander." ) );
|
_( "End Track" ), _( "Stops laying the current meander." ) );
|
||||||
|
|
||||||
static TOOL_ACTION ACT_Settings( "pcbnew.LengthTuner.Settings", AS_CONTEXT, 'L',
|
static TOOL_ACTION ACT_Settings( "pcbnew.LengthTuner.Settings", AS_CONTEXT, 'L',
|
||||||
_( "Length Tuning Settings" ), _( "Sets the length tuning parameters for currently routed item." ),
|
_( "Length Tuning Settings..." ), _( "Sets the length tuning parameters for currently routed item." ),
|
||||||
router_len_tuner_setup_xpm );
|
router_len_tuner_setup_xpm );
|
||||||
|
|
||||||
static TOOL_ACTION ACT_SpacingIncrease( "pcbnew.LengthTuner.SpacingIncrease", AS_CONTEXT, '1',
|
static TOOL_ACTION ACT_SpacingIncrease( "pcbnew.LengthTuner.SpacingIncrease", AS_CONTEXT, '1',
|
||||||
_( "Increase spacing" ), _( "Increase meander spacing by one step." ),
|
_( "Increase Spacing" ), _( "Increase meander spacing by one step." ),
|
||||||
router_len_tuner_dist_incr_xpm );
|
router_len_tuner_dist_incr_xpm );
|
||||||
|
|
||||||
static TOOL_ACTION ACT_SpacingDecrease( "pcbnew.LengthTuner.SpacingDecrease", AS_CONTEXT, '2',
|
static TOOL_ACTION ACT_SpacingDecrease( "pcbnew.LengthTuner.SpacingDecrease", AS_CONTEXT, '2',
|
||||||
_( "Decrease spacing" ), _( "Decrease meander spacing by one step." ),
|
_( "Decrease Spacing" ), _( "Decrease meander spacing by one step." ),
|
||||||
router_len_tuner_dist_decr_xpm );
|
router_len_tuner_dist_decr_xpm );
|
||||||
|
|
||||||
static TOOL_ACTION ACT_AmplIncrease( "pcbnew.LengthTuner.AmplIncrease", AS_CONTEXT, '3',
|
static TOOL_ACTION ACT_AmplIncrease( "pcbnew.LengthTuner.AmplIncrease", AS_CONTEXT, '3',
|
||||||
_( "Increase amplitude" ), _( "Increase meander amplitude by one step." ),
|
_( "Increase Amplitude" ), _( "Increase meander amplitude by one step." ),
|
||||||
router_len_tuner_amplitude_incr_xpm );
|
router_len_tuner_amplitude_incr_xpm );
|
||||||
|
|
||||||
static TOOL_ACTION ACT_AmplDecrease( "pcbnew.LengthTuner.AmplDecrease", AS_CONTEXT, '4',
|
static TOOL_ACTION ACT_AmplDecrease( "pcbnew.LengthTuner.AmplDecrease", AS_CONTEXT, '4',
|
||||||
_( "Decrease amplitude" ), _( "Decrease meander amplitude by one step." ),
|
_( "Decrease Amplitude" ), _( "Decrease meander amplitude by one step." ),
|
||||||
router_len_tuner_amplitude_decr_xpm );
|
router_len_tuner_amplitude_decr_xpm );
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -90,12 +90,12 @@ TOOL_ACTION PCB_ACTIONS::routerActivateDiffPair( "pcbnew.InteractiveRouter.DiffP
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::routerActivateSettingsDialog( "pcbnew.InteractiveRouter.SettingsDialog",
|
TOOL_ACTION PCB_ACTIONS::routerActivateSettingsDialog( "pcbnew.InteractiveRouter.SettingsDialog",
|
||||||
AS_GLOBAL, 0,
|
AS_GLOBAL, 0,
|
||||||
_( "Interactive Router Settings" ),
|
_( "Interactive Router Settings..." ),
|
||||||
_( "Open Interactive Router settings" ), NULL, AF_ACTIVATE );
|
_( "Open Interactive Router settings" ), NULL, AF_ACTIVATE );
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::routerActivateDpDimensionsDialog( "pcbnew.InteractiveRouter.DpDimensionsDialog",
|
TOOL_ACTION PCB_ACTIONS::routerActivateDpDimensionsDialog( "pcbnew.InteractiveRouter.DpDimensionsDialog",
|
||||||
AS_GLOBAL, 0,
|
AS_GLOBAL, 0,
|
||||||
_( "Differential Pair Dimension settings" ),
|
_( "Differential Pair Dimension Settings..." ),
|
||||||
_( "Open Differential Pair Dimension settings" ), ps_diff_pair_gap_xpm, AF_ACTIVATE );
|
_( "Open Differential Pair Dimension settings" ), ps_diff_pair_gap_xpm, AF_ACTIVATE );
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::routerActivateTuneSingleTrace( "pcbnew.LengthTuner.TuneSingleTrack",
|
TOOL_ACTION PCB_ACTIONS::routerActivateTuneSingleTrace( "pcbnew.LengthTuner.TuneSingleTrack",
|
||||||
|
@ -166,7 +166,7 @@ static const TOOL_ACTION ACT_PlaceMicroVia( "pcbnew.InteractiveRouter.PlaceMicro
|
||||||
static const TOOL_ACTION ACT_SelLayerAndPlaceThroughVia(
|
static const TOOL_ACTION ACT_SelLayerAndPlaceThroughVia(
|
||||||
"pcbnew.InteractiveRouter.SelLayerAndPlaceVia",
|
"pcbnew.InteractiveRouter.SelLayerAndPlaceVia",
|
||||||
AS_CONTEXT, TOOL_ACTION::LegacyHotKey( HK_SEL_LAYER_AND_ADD_THROUGH_VIA ),
|
AS_CONTEXT, TOOL_ACTION::LegacyHotKey( HK_SEL_LAYER_AND_ADD_THROUGH_VIA ),
|
||||||
_( "Select Layer and Place Through Via" ),
|
_( "Select Layer and Place Through Via..." ),
|
||||||
_( "Select a layer, then add a through-hole via at the end of currently routed track." ),
|
_( "Select a layer, then add a through-hole via at the end of currently routed track." ),
|
||||||
select_w_layer_xpm, AF_NONE,
|
select_w_layer_xpm, AF_NONE,
|
||||||
(void*) ( VIA_ACTION_FLAGS::VIA | VIA_ACTION_FLAGS::SELECT_LAYER ) );
|
(void*) ( VIA_ACTION_FLAGS::VIA | VIA_ACTION_FLAGS::SELECT_LAYER ) );
|
||||||
|
@ -174,14 +174,14 @@ static const TOOL_ACTION ACT_SelLayerAndPlaceThroughVia(
|
||||||
static const TOOL_ACTION ACT_SelLayerAndPlaceBlindVia(
|
static const TOOL_ACTION ACT_SelLayerAndPlaceBlindVia(
|
||||||
"pcbnew.InteractiveRouter.SelLayerAndPlaceBlindVia",
|
"pcbnew.InteractiveRouter.SelLayerAndPlaceBlindVia",
|
||||||
AS_CONTEXT, TOOL_ACTION::LegacyHotKey( HK_SEL_LAYER_AND_ADD_BLIND_BURIED_VIA ),
|
AS_CONTEXT, TOOL_ACTION::LegacyHotKey( HK_SEL_LAYER_AND_ADD_BLIND_BURIED_VIA ),
|
||||||
_( "Select Layer and Place Blind/Buried Via" ),
|
_( "Select Layer and Place Blind/Buried Via..." ),
|
||||||
_( "Select a layer, then add a blind or buried via at the end of currently routed track."),
|
_( "Select a layer, then add a blind or buried via at the end of currently routed track."),
|
||||||
select_w_layer_xpm, AF_NONE,
|
select_w_layer_xpm, AF_NONE,
|
||||||
(void*) ( VIA_ACTION_FLAGS::BLIND_VIA | VIA_ACTION_FLAGS::SELECT_LAYER ) );
|
(void*) ( VIA_ACTION_FLAGS::BLIND_VIA | VIA_ACTION_FLAGS::SELECT_LAYER ) );
|
||||||
|
|
||||||
static const TOOL_ACTION ACT_CustomTrackWidth( "pcbnew.InteractiveRouter.CustomTrackViaSize",
|
static const TOOL_ACTION ACT_CustomTrackWidth( "pcbnew.InteractiveRouter.CustomTrackViaSize",
|
||||||
AS_CONTEXT, TOOL_ACTION::LegacyHotKey( HK_CUSTOM_TRACK_WIDTH ),
|
AS_CONTEXT, TOOL_ACTION::LegacyHotKey( HK_CUSTOM_TRACK_WIDTH ),
|
||||||
_( "Custom Track/Via Size" ),
|
_( "Custom Track/Via Size..." ),
|
||||||
_( "Shows a dialog for changing the track width and via size." ),
|
_( "Shows a dialog for changing the track width and via size." ),
|
||||||
width_track_xpm );
|
width_track_xpm );
|
||||||
|
|
||||||
|
@ -219,13 +219,13 @@ public:
|
||||||
|
|
||||||
Clear();
|
Clear();
|
||||||
|
|
||||||
Append( ID_POPUP_PCB_SELECT_CUSTOM_WIDTH, _( "Custom size" ),
|
Append( ID_POPUP_PCB_SELECT_CUSTOM_WIDTH, _( "Custom Size" ),
|
||||||
wxEmptyString, wxITEM_CHECK );
|
wxEmptyString, wxITEM_CHECK );
|
||||||
|
|
||||||
Append( ID_POPUP_PCB_SELECT_AUTO_WIDTH, _( "Use the starting track width" ),
|
Append( ID_POPUP_PCB_SELECT_AUTO_WIDTH, _( "Use Starting Track Width" ),
|
||||||
_( "Route using the width of the starting track." ), wxITEM_CHECK );
|
_( "Route using the width of the starting track." ), wxITEM_CHECK );
|
||||||
|
|
||||||
Append( ID_POPUP_PCB_SELECT_USE_NETCLASS_VALUES, _( "Use net class values" ),
|
Append( ID_POPUP_PCB_SELECT_USE_NETCLASS_VALUES, _( "Use Net Class Values" ),
|
||||||
_( "Use track and via sizes from the net class" ), wxITEM_CHECK );
|
_( "Use track and via sizes from the net class" ), wxITEM_CHECK );
|
||||||
|
|
||||||
AppendSeparator();
|
AppendSeparator();
|
||||||
|
|
|
@ -138,7 +138,7 @@ void FOOTPRINT_VIEWER_FRAME::ReCreateMenuBar( void )
|
||||||
wxMenu* fileMenu = new wxMenu;
|
wxMenu* fileMenu = new wxMenu;
|
||||||
|
|
||||||
// Active library selection
|
// Active library selection
|
||||||
AddMenuItem( fileMenu, ID_MODVIEW_SELECT_LIB, _("Set Current Library"),
|
AddMenuItem( fileMenu, ID_MODVIEW_SELECT_LIB, _("Set Active Library..."),
|
||||||
_( "Select library to be displayed" ), KiBitmap( open_library_xpm ) );
|
_( "Select library to be displayed" ), KiBitmap( open_library_xpm ) );
|
||||||
fileMenu->AppendSeparator();
|
fileMenu->AppendSeparator();
|
||||||
|
|
||||||
|
|
|
@ -111,12 +111,12 @@ TOOL_ACTION PCB_ACTIONS::duplicateIncrement( "pcbnew.InteractiveEdit.duplicateIn
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::moveExact( "pcbnew.InteractiveEdit.moveExact",
|
TOOL_ACTION PCB_ACTIONS::moveExact( "pcbnew.InteractiveEdit.moveExact",
|
||||||
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_MOVE_ITEM_EXACT ),
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_MOVE_ITEM_EXACT ),
|
||||||
_( "Move Exactly" ), _( "Moves the selected item(s) by an exact amount" ),
|
_( "Move Exactly..." ), _( "Moves the selected item(s) by an exact amount" ),
|
||||||
move_exactly_xpm );
|
move_exactly_xpm );
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::createArray( "pcbnew.InteractiveEdit.createArray",
|
TOOL_ACTION PCB_ACTIONS::createArray( "pcbnew.InteractiveEdit.createArray",
|
||||||
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_CREATE_ARRAY ),
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_CREATE_ARRAY ),
|
||||||
_( "Create Array" ), _( "Create array" ), array_xpm, AF_ACTIVATE );
|
_( "Create Array..." ), _( "Create array" ), array_xpm, AF_ACTIVATE );
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::rotateCw( "pcbnew.InteractiveEdit.rotateCw",
|
TOOL_ACTION PCB_ACTIONS::rotateCw( "pcbnew.InteractiveEdit.rotateCw",
|
||||||
AS_GLOBAL, MD_SHIFT + 'R',
|
AS_GLOBAL, MD_SHIFT + 'R',
|
||||||
|
@ -148,17 +148,17 @@ TOOL_ACTION PCB_ACTIONS::removeAlt( "pcbnew.InteractiveEdit.removeAlt",
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::updateFootprints( "pcbnew.InteractiveEdit.updateFootprints",
|
TOOL_ACTION PCB_ACTIONS::updateFootprints( "pcbnew.InteractiveEdit.updateFootprints",
|
||||||
AS_GLOBAL, 0,
|
AS_GLOBAL, 0,
|
||||||
_( "Update Footprint" ), _( "Update the footprint from the library" ),
|
_( "Update Footprint..." ), _( "Update the footprint from the library" ),
|
||||||
reload_xpm );
|
reload_xpm );
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::exchangeFootprints( "pcbnew.InteractiveEdit.ExchangeFootprints",
|
TOOL_ACTION PCB_ACTIONS::exchangeFootprints( "pcbnew.InteractiveEdit.ExchangeFootprints",
|
||||||
AS_GLOBAL, 0,
|
AS_GLOBAL, 0,
|
||||||
_( "Change Footprint" ), _( "Assign a different footprint from the library" ),
|
_( "Change Footprint..." ), _( "Assign a different footprint from the library" ),
|
||||||
exchange_xpm );
|
exchange_xpm );
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::properties( "pcbnew.InteractiveEdit.properties",
|
TOOL_ACTION PCB_ACTIONS::properties( "pcbnew.InteractiveEdit.properties",
|
||||||
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_EDIT_ITEM ),
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_EDIT_ITEM ),
|
||||||
_( "Properties" ), _( "Displays item properties dialog" ), config_xpm );
|
_( "Properties..." ), _( "Displays item properties dialog" ), config_xpm );
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::selectionModified( "pcbnew.InteractiveEdit.ModifiedSelection",
|
TOOL_ACTION PCB_ACTIONS::selectionModified( "pcbnew.InteractiveEdit.ModifiedSelection",
|
||||||
AS_GLOBAL, 0,
|
AS_GLOBAL, 0,
|
||||||
|
@ -166,7 +166,7 @@ TOOL_ACTION PCB_ACTIONS::selectionModified( "pcbnew.InteractiveEdit.ModifiedSele
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::measureTool( "pcbnew.InteractiveEdit.measureTool",
|
TOOL_ACTION PCB_ACTIONS::measureTool( "pcbnew.InteractiveEdit.measureTool",
|
||||||
AS_GLOBAL, MD_CTRL + MD_SHIFT + 'M',
|
AS_GLOBAL, MD_CTRL + MD_SHIFT + 'M',
|
||||||
_( "Measuring tool" ), _( "Interactively measure distance between points" ),
|
_( "Measuring Tool" ), _( "Interactively measure distance between points" ),
|
||||||
nullptr, AF_ACTIVATE );
|
nullptr, AF_ACTIVATE );
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::copyToClipboard( "pcbnew.InteractiveEdit.CopyToClipboard",
|
TOOL_ACTION PCB_ACTIONS::copyToClipboard( "pcbnew.InteractiveEdit.CopyToClipboard",
|
||||||
|
|
|
@ -70,13 +70,13 @@ TOOL_ACTION PCB_ACTIONS::createPadFromShapes( "pcbnew.ModuleEditor.createPadFrom
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::explodePadToShapes( "pcbnew.ModuleEditor.explodePadToShapes",
|
TOOL_ACTION PCB_ACTIONS::explodePadToShapes( "pcbnew.ModuleEditor.explodePadToShapes",
|
||||||
AS_CONTEXT, 0,
|
AS_CONTEXT, 0,
|
||||||
_( "Explode Selected Pad to Graphical Shapes" ),
|
_( "Explode Pad to Graphic Shapes" ),
|
||||||
_( "Converts a custom-shaped pads to a set of graphical shapes" ),
|
_( "Converts a custom-shaped pads to a set of graphical shapes" ),
|
||||||
custom_pad_to_primitives_xpm );
|
custom_pad_to_primitives_xpm );
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::enumeratePads( "pcbnew.ModuleEditor.enumeratePads",
|
TOOL_ACTION PCB_ACTIONS::enumeratePads( "pcbnew.ModuleEditor.enumeratePads",
|
||||||
AS_GLOBAL, 0,
|
AS_GLOBAL, 0,
|
||||||
_( "Enumerate Pads" ), _( "Enumerate pads" ), pad_enumerate_xpm, AF_ACTIVATE );
|
_( "Renumber Pads..." ), _( "Renumber pads by clicking on them in the desired order" ), pad_enumerate_xpm, AF_ACTIVATE );
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::moduleEdgeOutlines( "pcbnew.ModuleEditor.graphicOutlines",
|
TOOL_ACTION PCB_ACTIONS::moduleEdgeOutlines( "pcbnew.ModuleEditor.graphicOutlines",
|
||||||
AS_GLOBAL, 0,
|
AS_GLOBAL, 0,
|
||||||
|
|
|
@ -60,7 +60,7 @@ TOOL_ACTION PCB_ACTIONS::applyPadSettings(
|
||||||
TOOL_ACTION PCB_ACTIONS::pushPadSettings(
|
TOOL_ACTION PCB_ACTIONS::pushPadSettings(
|
||||||
"pcbnew.PadTool.PushPadSettings",
|
"pcbnew.PadTool.PushPadSettings",
|
||||||
AS_GLOBAL, 0,
|
AS_GLOBAL, 0,
|
||||||
_( "Push Pad Settings" ), _( "Copy the current pad settings to other pads" ),
|
_( "Push Pad Settings..." ), _( "Copy the current pad settings to other pads" ),
|
||||||
push_pad_settings_xpm );
|
push_pad_settings_xpm );
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ TOOL_ACTION PCB_ACTIONS::zoneMerge( "pcbnew.EditorControl.zoneMerge",
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::zoneDuplicate( "pcbnew.EditorControl.zoneDuplicate",
|
TOOL_ACTION PCB_ACTIONS::zoneDuplicate( "pcbnew.EditorControl.zoneDuplicate",
|
||||||
AS_GLOBAL, 0,
|
AS_GLOBAL, 0,
|
||||||
_( "Duplicate Zone onto Layer" ), _( "Duplicate zone outline onto a different layer" ),
|
_( "Duplicate Zone onto Layer..." ), _( "Duplicate zone outline onto a different layer" ),
|
||||||
zone_duplicate_xpm );
|
zone_duplicate_xpm );
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,7 @@ bool ALIGN_DISTRIBUTE_TOOL::Init()
|
||||||
// Create a context menu and make it available through selection tool
|
// Create a context menu and make it available through selection tool
|
||||||
m_placementMenu = new CONTEXT_MENU;
|
m_placementMenu = new CONTEXT_MENU;
|
||||||
m_placementMenu->SetIcon( align_items_xpm );
|
m_placementMenu->SetIcon( align_items_xpm );
|
||||||
m_placementMenu->SetTitle( _( "Align/distribute" ) );
|
m_placementMenu->SetTitle( _( "Align/Distribute" ) );
|
||||||
|
|
||||||
// Add all align/distribute commands
|
// Add all align/distribute commands
|
||||||
m_placementMenu->Add( PCB_ACTIONS::alignTop );
|
m_placementMenu->Add( PCB_ACTIONS::alignTop );
|
||||||
|
|
|
@ -41,7 +41,7 @@ using namespace std::placeholders;
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::positionRelative( "pcbnew.PositionRelative.positionRelative",
|
TOOL_ACTION PCB_ACTIONS::positionRelative( "pcbnew.PositionRelative.positionRelative",
|
||||||
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_POSITION_RELATIVE ),
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_POSITION_RELATIVE ),
|
||||||
_( "Position Relative to..." ), _(
|
_( "Position Relative To..." ), _(
|
||||||
"Positions the selected item(s) by an exact amount relative to another" ),
|
"Positions the selected item(s) by an exact amount relative to another" ),
|
||||||
move_relative_xpm );
|
move_relative_xpm );
|
||||||
|
|
||||||
|
|
|
@ -114,14 +114,14 @@ TOOL_ACTION PCB_ACTIONS::selectSameSheet( "pcbnew.InteractiveSelection.SelectSam
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::find( "pcbnew.InteractiveSelection.Find",
|
TOOL_ACTION PCB_ACTIONS::find( "pcbnew.InteractiveSelection.Find",
|
||||||
AS_GLOBAL, 0, //TOOL_ACTION::LegacyHotKey( HK_FIND_ITEM ), // handled by wxWidgets
|
AS_GLOBAL, 0, //TOOL_ACTION::LegacyHotKey( HK_FIND_ITEM ), // handled by wxWidgets
|
||||||
_( "Find Item" ),_( "Searches the document for an item" ), find_xpm );
|
_( "Find Item..." ),_( "Searches the document for an item" ), find_xpm );
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::findMove( "pcbnew.InteractiveSelection.FindMove",
|
TOOL_ACTION PCB_ACTIONS::findMove( "pcbnew.InteractiveSelection.FindMove",
|
||||||
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_GET_AND_MOVE_FOOTPRINT ) );
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_GET_AND_MOVE_FOOTPRINT ) );
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::filterSelection( "pcbnew.InteractiveSelection.FilterSelection",
|
TOOL_ACTION PCB_ACTIONS::filterSelection( "pcbnew.InteractiveSelection.FilterSelection",
|
||||||
AS_GLOBAL, 0,
|
AS_GLOBAL, 0,
|
||||||
_( "Filter Selection" ), _( "Filter the types of items in the selection" ),
|
_( "Filter Selection..." ), _( "Filter the types of items in the selection" ),
|
||||||
nullptr );
|
nullptr );
|
||||||
|
|
||||||
class SELECT_MENU: public CONTEXT_MENU
|
class SELECT_MENU: public CONTEXT_MENU
|
||||||
|
@ -129,7 +129,7 @@ class SELECT_MENU: public CONTEXT_MENU
|
||||||
public:
|
public:
|
||||||
SELECT_MENU()
|
SELECT_MENU()
|
||||||
{
|
{
|
||||||
SetTitle( _( "Select..." ) );
|
SetTitle( _( "Select" ) );
|
||||||
|
|
||||||
Add( PCB_ACTIONS::filterSelection );
|
Add( PCB_ACTIONS::filterSelection );
|
||||||
|
|
||||||
|
|
|
@ -275,7 +275,7 @@ TOOL_ACTION PCB_ACTIONS::flip( "pcbnew.InteractiveEdit.flip",
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::properties( "pcbnew.InteractiveEdit.properties",
|
TOOL_ACTION PCB_ACTIONS::properties( "pcbnew.InteractiveEdit.properties",
|
||||||
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_EDIT_ITEM ),
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_EDIT_ITEM ),
|
||||||
_( "Properties" ), _( "Displays item properties dialog" ), nullptr );
|
_( "Properties..." ), _( "Displays item properties dialog" ), nullptr );
|
||||||
|
|
||||||
TOOL_ACTION PCB_ACTIONS::highlightNet( "pcbnew.EditorControl.highlightNet",
|
TOOL_ACTION PCB_ACTIONS::highlightNet( "pcbnew.EditorControl.highlightNet",
|
||||||
AS_GLOBAL, 0,
|
AS_GLOBAL, 0,
|
||||||
|
|
Loading…
Reference in New Issue