From 95754632c2e6f2915939fc06597d196496e650a4 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 14 Nov 2017 13:47:44 +0100 Subject: [PATCH] Library Editor: renamed 'component' to 'part' --- eeschema/menubar_libedit.cpp | 52 +++++++++++++++--------------- eeschema/tool_lib.cpp | 10 +++--- eeschema/widgets/cmp_tree_pane.cpp | 14 ++++---- 3 files changed, 38 insertions(+), 38 deletions(-) diff --git a/eeschema/menubar_libedit.cpp b/eeschema/menubar_libedit.cpp index aeb9becf4d..8cca3546ef 100644 --- a/eeschema/menubar_libedit.cpp +++ b/eeschema/menubar_libedit.cpp @@ -25,7 +25,7 @@ /** * @file eeschema/menubar_libedit.cpp - * @brief (Re)Create the main menubar for the component editor frame (LibEdit) + * @brief (Re)Create the main menubar for the part editor frame (LibEdit) */ #include @@ -39,7 +39,7 @@ /** - * @brief (Re)Create the menubar for the component editor frame + * @brief (Re)Create the menubar for the part editor frame */ void LIB_EDIT_FRAME::ReCreateMenuBar() { @@ -104,14 +104,14 @@ void LIB_EDIT_FRAME::ReCreateMenuBar() AddMenuItem( fileMenu, ID_LIBEDIT_GEN_PNG_FILE, _( "Create &PNG File from Screen..." ), - _( "Create a PNG file from the component displayed on screen" ), + _( "Create a PNG file from the part displayed on screen" ), KiBitmap( plot_xpm ) ); // Export as SVG file AddMenuItem( fileMenu, ID_LIBEDIT_GEN_SVG_FILE, _( "Create S&VG File..." ), - _( "Create a SVG file from the current loaded component" ), + _( "Create a SVG file from the current loaded part" ), KiBitmap( plot_svg_xpm ) ); // Separator @@ -185,59 +185,59 @@ void LIB_EDIT_FRAME::ReCreateMenuBar() _( "Toggles the search tree visibility" ), KiBitmap( search_tree_xpm ) ); - // Menu Component: - wxMenu* componentMenu = new wxMenu; + // Menu Part: + wxMenu* partMenu = new wxMenu; - AddMenuItem( componentMenu, + AddMenuItem( partMenu, ID_LIBEDIT_NEW_PART, - _( "Create &New Component" ), - _( "Create a new empty component" ), + _( "Create &New" ), + _( "Create a new empty part" ), KiBitmap( new_component_xpm ) ); - text = AddHotkeyName( _( "&Save Component" ), g_Libedit_Hokeys_Descr, HK_SAVE_PART ); - AddMenuItem( componentMenu, + text = AddHotkeyName( _( "&Save Part" ), g_Libedit_Hokeys_Descr, HK_SAVE_PART ); + AddMenuItem( partMenu, ID_LIBEDIT_SAVE_PART, text, - _( "Saves the current component to the library" ), + _( "Saves the current part to the library" ), KiBitmap( save_part_xpm ) ); - componentMenu->AppendSeparator(); + partMenu->AppendSeparator(); - AddMenuItem( componentMenu, + AddMenuItem( partMenu, ID_LIBEDIT_IMPORT_PART, _( "&Import" ), - _( "Import a component to the current library" ), + _( "Import a part to the current library" ), KiBitmap( export_xpm ) ); - AddMenuItem( componentMenu, + AddMenuItem( partMenu, ID_LIBEDIT_EXPORT_PART, _( "&Export" ), - _( "Export the current component" ), + _( "Export the current part" ), KiBitmap( import_xpm ) ); - componentMenu->AppendSeparator(); + partMenu->AppendSeparator(); - AddMenuItem( componentMenu, + AddMenuItem( partMenu, ID_LIBEDIT_GET_FRAME_EDIT_PART, _( "&Properties" ), _( "Edit part properties" ), KiBitmap( part_properties_xpm ) ); - AddMenuItem( componentMenu, + AddMenuItem( partMenu, ID_LIBEDIT_GET_FRAME_EDIT_FIELDS, _( "&Fields" ), _( "Edit field properties" ), KiBitmap( edit_text_xpm ) ); - componentMenu->AppendSeparator(); + partMenu->AppendSeparator(); - AddMenuItem( componentMenu, + AddMenuItem( partMenu, ID_LIBEDIT_EDIT_PIN_BY_TABLE, - _( "Pi&n table" ), + _( "Pi&n Table" ), _( "Show pin table" ), KiBitmap( pin_table_xpm ) ); - AddMenuItem( componentMenu, + AddMenuItem( partMenu, ID_LIBEDIT_CHECK_PART, _( "ERC" ), _( "Check duplicate and off grid pins" ), @@ -302,7 +302,7 @@ void LIB_EDIT_FRAME::ReCreateMenuBar() AddMenuItem( preferencesMenu, wxID_PREFERENCES, _( "General &Options" ), - _( "Set Component Editor default values and options" ), + _( "Set Part Editor default values and options" ), KiBitmap( preference_xpm ) ); // Language submenu @@ -352,7 +352,7 @@ void LIB_EDIT_FRAME::ReCreateMenuBar() menuBar->Append( fileMenu, _( "&File" ) ); menuBar->Append( editMenu, _( "&Edit" ) ); menuBar->Append( viewMenu, _( "&View" ) ); - menuBar->Append( componentMenu, _( "&Component" ) ); + menuBar->Append( partMenu, _( "&Part" ) ); menuBar->Append( placeMenu, _( "&Place" ) ); menuBar->Append( preferencesMenu, _( "P&references" ) ); menuBar->Append( helpMenu, _( "&Help" ) ); diff --git a/eeschema/tool_lib.cpp b/eeschema/tool_lib.cpp index 0f294ecef8..0981393d23 100644 --- a/eeschema/tool_lib.cpp +++ b/eeschema/tool_lib.cpp @@ -117,17 +117,17 @@ void LIB_EDIT_FRAME::ReCreateHToolbar() m_mainToolBar->AddSeparator(); m_mainToolBar->AddTool( ID_LIBEDIT_NEW_PART, wxEmptyString, KiBitmap( new_component_xpm ), - _( "Create new component" ) ); + _( "Create new part" ) ); m_mainToolBar->AddTool( ID_LIBEDIT_SAVE_PART, wxEmptyString, KiBitmap( save_part_xpm ), - _( "Save current component" ) ); + _( "Save current part" ) ); m_mainToolBar->AddTool( ID_LIBEDIT_IMPORT_PART, wxEmptyString, KiBitmap( import_xpm ), - _( "Import component" ) ); + _( "Import part" ) ); m_mainToolBar->AddTool( ID_LIBEDIT_EXPORT_PART, wxEmptyString, KiBitmap( export_xpm ), - _( "Export component" ) ); + _( "Export part" ) ); m_mainToolBar->AddSeparator(); msg = AddHotkeyName( _( "Undo last command" ), g_Libedit_Hokeys_Descr, HK_UNDO, IS_COMMENT ); @@ -138,7 +138,7 @@ void LIB_EDIT_FRAME::ReCreateHToolbar() m_mainToolBar->AddSeparator(); m_mainToolBar->AddTool( ID_LIBEDIT_GET_FRAME_EDIT_PART, wxEmptyString, - KiBitmap( part_properties_xpm ), _( "Edit component properties" ) ); + KiBitmap( part_properties_xpm ), _( "Edit part properties" ) ); m_mainToolBar->AddTool( ID_LIBEDIT_GET_FRAME_EDIT_FIELDS, wxEmptyString, KiBitmap( text_xpm ), diff --git a/eeschema/widgets/cmp_tree_pane.cpp b/eeschema/widgets/cmp_tree_pane.cpp index 61fa9634b0..bc2524f595 100644 --- a/eeschema/widgets/cmp_tree_pane.cpp +++ b/eeschema/widgets/cmp_tree_pane.cpp @@ -54,9 +54,9 @@ CMP_TREE_PANE::CMP_TREE_PANE( LIB_EDIT_FRAME* aParent, LIB_MANAGER* aLibMgr ) menuLibrary->Append( ID_LIBEDIT_SAVE_LIBRARY_AS, _( "Save library as..." ) ); menuLibrary->Append( ID_LIBEDIT_REVERT_LIBRARY, _( "Revert library" ) ); menuLibrary->AppendSeparator(); - menuLibrary->Append( ID_LIBEDIT_NEW_PART, _( "New component..." ) ); - menuLibrary->Append( ID_LIBEDIT_IMPORT_PART, _( "Import component..." ) ); - menuLibrary->Append( ID_LIBEDIT_PASTE_PART, _( "Paste component" ) ); + menuLibrary->Append( ID_LIBEDIT_NEW_PART, _( "New part..." ) ); + menuLibrary->Append( ID_LIBEDIT_IMPORT_PART, _( "Import part..." ) ); + menuLibrary->Append( ID_LIBEDIT_PASTE_PART, _( "Paste part" ) ); std::unique_ptr menuPart = std::make_unique(); menuPart->Append( ID_LIBEDIT_EDIT_PART, _( "Edit" ) ); @@ -65,12 +65,12 @@ CMP_TREE_PANE::CMP_TREE_PANE( LIB_EDIT_FRAME* aParent, LIB_MANAGER* aLibMgr ) menuPart->Append( ID_LIBEDIT_SAVE_PART, _( "Save" ) ); menuPart->Append( ID_LIBEDIT_REVERT_PART, _( "Revert" ) ); menuPart->AppendSeparator(); - menuPart->Append( ID_LIBEDIT_CUT_PART, _( "Cut component" ) ); - menuPart->Append( ID_LIBEDIT_COPY_PART, _( "Copy component" ) ); - menuPart->Append( ID_LIBEDIT_DUPLICATE_PART, _( "Duplicate component" ) ); + menuPart->Append( ID_LIBEDIT_CUT_PART, _( "Cut part" ) ); + menuPart->Append( ID_LIBEDIT_COPY_PART, _( "Copy part" ) ); + menuPart->Append( ID_LIBEDIT_DUPLICATE_PART, _( "Duplicate part" ) ); menuPart->AppendSeparator(); - // Append the library menu to the component menu + // Append the library menu to the part menu for( size_t i = 0; i < menuLibrary->GetMenuItemCount(); ++i ) { wxMenuItem* menuItem = menuLibrary->FindItemByPosition( i );