← Back to team overview

kicad-developers team mailing list archive

[PATCH] Rearranged Part Editor Icon Positions

 

Attached is a patch for rearranging part editor icon positions.

The changes were made to rearrange the positions of the first 5 icons in the part editor so that they are consistent with footprint editor.


--Joe Chen

>From c450e877e65a57a95733f0ff93f53fc281b8e999 Mon Sep 17 00:00:00 2001
From: "Joseph Y. Chen" <joseph.chen59@xxxxxxxxx>
Date: Tue, 21 Feb 2017 00:04:33 -0700
Subject: [PATCH] Rearranged Part Editor Icon Positions

The changes were made to rearrange the positions of the first 5
icons in the part editor so that they are consistent with footprint
editor.

Signed-off-by: Joseph Y. Chen <joseph.chen59@xxxxxxxxx>
---
 eeschema/tool_lib.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/eeschema/tool_lib.cpp b/eeschema/tool_lib.cpp
index acbe4b7..cdece7f 100644
--- a/eeschema/tool_lib.cpp
+++ b/eeschema/tool_lib.cpp
@@ -117,14 +117,17 @@ void LIB_EDIT_FRAME::ReCreateHToolbar()
                             KiBitmap( save_library_xpm ),
                             _( "Save current library to disk" ) );
 
-    m_mainToolBar->AddTool( ID_LIBEDIT_DELETE_PART, wxEmptyString, KiBitmap( delete_xpm ),
-                            _( "Delete component in current library" ) );
+    m_mainToolBar->AddTool( CreateNewLibAndSavePartId, wxEmptyString, KiBitmap( new_library_xpm ),
+                            _( "Save current component to new library" ) );
 
-    m_mainToolBar->AddSeparator();
     m_mainToolBar->AddTool( ID_TO_LIBVIEW, wxEmptyString, KiBitmap( library_browse_xpm ),
                             HELP_RUN_LIB_VIEWER );
 
     m_mainToolBar->AddSeparator();
+    m_mainToolBar->AddTool( ID_LIBEDIT_DELETE_PART, wxEmptyString, KiBitmap( delete_xpm ),
+                            _( "Delete component in current library" ) );
+
+    m_mainToolBar->AddSeparator();
     m_mainToolBar->AddTool( ID_LIBEDIT_NEW_PART, wxEmptyString, KiBitmap( new_component_xpm ),
                             _( "Create a new component" ) );
 
@@ -146,9 +149,6 @@ void LIB_EDIT_FRAME::ReCreateHToolbar()
     m_mainToolBar->AddTool( ExportPartId, wxEmptyString, KiBitmap( export_xpm ),
                             _( "Export component" ) );
 
-    m_mainToolBar->AddTool( CreateNewLibAndSavePartId, wxEmptyString, KiBitmap( new_library_xpm ),
-                            _( "Save current component to new library" ) );
-
     m_mainToolBar->AddSeparator();
     msg = AddHotkeyName( _( "Undo last command" ), g_Libedit_Hokeys_Descr, HK_UNDO, IS_COMMENT );
     m_mainToolBar->AddTool( wxID_UNDO, wxEmptyString, KiBitmap( undo_xpm ), msg );
-- 
2.7.4


Follow ups