add tool to open system file browser to main toolbar

This commit is contained in:
jean-pierre charras 2018-11-02 13:51:13 +01:00
parent d3dc56a42f
commit 54fe060b5a
1 changed files with 7 additions and 0 deletions

View File

@ -321,6 +321,7 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
KiBitmap( browse_files_xpm ) );
// Browse in file explorer
browseMenu->AppendSeparator();
AddMenuItem( browseMenu,
ID_BROWSE_IN_FILE_EXPLORER,
_( "&Browse Project Files" ),
@ -507,6 +508,12 @@ void KICAD_MANAGER_FRAME::RecreateBaseHToolbar()
KiScaledBitmap( reload_xpm, this ),
_( "Refresh project tree" ) );
// Acces to the system file manager
KiScaledSeparator( m_mainToolBar, this );
m_mainToolBar->AddTool( ID_BROWSE_IN_FILE_EXPLORER, wxEmptyString,
KiScaledBitmap( directory_browser_xpm, this ),
_( "Open project directory in file explorer" ) );
// Create m_mainToolBar
m_mainToolBar->Realize();
}