From 3f104448dff8887d188f9d6ca412a1ac93f5a705 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 20 Sep 2016 13:22:42 +0200 Subject: [PATCH] Rename libedit_icon to icon_libedit, bo be consistent with other icon names. --- bitmaps_png/CMakeLists.txt | 2 +- bitmaps_png/cpp_48/{libedit_icon.cpp => icon_libedit.cpp} | 2 +- bitmaps_png/sources/{libedit_icon.svg => icon_libedit.svg} | 0 eeschema/libeditframe.cpp | 2 +- include/bitmaps.h | 2 +- kicad/commandframe.cpp | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename bitmaps_png/cpp_48/{libedit_icon.cpp => icon_libedit.cpp} (99%) rename bitmaps_png/sources/{libedit_icon.svg => icon_libedit.svg} (100%) diff --git a/bitmaps_png/CMakeLists.txt b/bitmaps_png/CMakeLists.txt index 8d3ae82fc5..dd45c2e8b1 100644 --- a/bitmaps_png/CMakeLists.txt +++ b/bitmaps_png/CMakeLists.txt @@ -571,11 +571,11 @@ set( BMAPS_BIG icon_eeschema icon_gerbview icon_kicad + icon_libedit icon_modedit icon_pcbnew icon_bitmap2component icon_pcbcalculator - libedit_icon viewlibs_icon icon_pagelayout_editor wizard_add_fplib_icon diff --git a/bitmaps_png/cpp_48/libedit_icon.cpp b/bitmaps_png/cpp_48/icon_libedit.cpp similarity index 99% rename from bitmaps_png/cpp_48/libedit_icon.cpp rename to bitmaps_png/cpp_48/icon_libedit.cpp index 9048c990f7..5c6793ae3d 100644 --- a/bitmaps_png/cpp_48/libedit_icon.cpp +++ b/bitmaps_png/cpp_48/icon_libedit.cpp @@ -276,6 +276,6 @@ static const unsigned char png[] = { 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82, }; -const BITMAP_OPAQUE libedit_icon_xpm[1] = {{ png, sizeof( png ), "libedit_icon_xpm" }}; +const BITMAP_OPAQUE icon_libedit_xpm[1] = {{ png, sizeof( png ), "icon_libedit_xpm" }}; //EOF diff --git a/bitmaps_png/sources/libedit_icon.svg b/bitmaps_png/sources/icon_libedit.svg similarity index 100% rename from bitmaps_png/sources/libedit_icon.svg rename to bitmaps_png/sources/icon_libedit.svg diff --git a/eeschema/libeditframe.cpp b/eeschema/libeditframe.cpp index 4e67d4e6ff..e9256a6ecd 100644 --- a/eeschema/libeditframe.cpp +++ b/eeschema/libeditframe.cpp @@ -200,7 +200,7 @@ LIB_EDIT_FRAME::LIB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) : m_LastGridSizeId = ID_POPUP_GRID_LEVEL_50 - ID_POPUP_GRID_LEVEL_1000; wxIcon icon; - icon.CopyFromBitmap( KiBitmap( libedit_icon_xpm ) ); + icon.CopyFromBitmap( KiBitmap( icon_libedit_xpm ) ); SetIcon( icon ); LoadSettings( config() ); diff --git a/include/bitmaps.h b/include/bitmaps.h index 151c9cd9fa..15c8a82054 100644 --- a/include/bitmaps.h +++ b/include/bitmaps.h @@ -258,6 +258,7 @@ EXTERN_BITMAP( icon_pcbnew_xpm ) EXTERN_BITMAP( icon_txt_xpm ) EXTERN_BITMAP( icon_3d_xpm ) EXTERN_BITMAP( icon_bitmap2component_xpm ) +EXTERN_BITMAP( icon_libedit_xpm ) EXTERN_BITMAP( icon_pcbcalculator_xpm ) EXTERN_BITMAP( icon_pagelayout_editor_xpm ) EXTERN_BITMAP( image_xpm ) @@ -301,7 +302,6 @@ EXTERN_BITMAP( language_xpm ) EXTERN_BITMAP( layers_manager_xpm ) EXTERN_BITMAP( leave_sheet_xpm ) EXTERN_BITMAP( left_xpm ) -EXTERN_BITMAP( libedit_icon_xpm ) EXTERN_BITMAP( libedit_xpm ) EXTERN_BITMAP( libedprt_xpm ) EXTERN_BITMAP( lib_next_xpm ) diff --git a/kicad/commandframe.cpp b/kicad/commandframe.cpp index 60041d3829..21ad7bbafb 100644 --- a/kicad/commandframe.cpp +++ b/kicad/commandframe.cpp @@ -64,7 +64,7 @@ void LAUNCHER_PANEL::CreateCommandToolbar() btn = AddBitmapButton( ID_TO_SCH, KiBitmap( icon_eeschema_xpm ) ); btn->SetToolTip( _( "Eeschema - Electronic schematic editor" ) ); - btn = AddBitmapButton( ID_TO_SCH_LIB_EDITOR, KiBitmap( libedit_icon_xpm ) ); + btn = AddBitmapButton( ID_TO_SCH_LIB_EDITOR, KiBitmap( icon_libedit_xpm ) ); btn->SetToolTip( _( "Schematic library editor" ) ); btn = AddBitmapButton( ID_TO_PCB, KiBitmap( icon_pcbnew_xpm ) );