Gerbview: Add missing file histories to the Files menu.
This commit is contained in:
parent
41a9546b3d
commit
15e6787596
|
@ -65,6 +65,7 @@ void GERBVIEW_FRAME::ReCreateMenuBar()
|
||||||
Kiface().GetFileHistory().UseMenu( openRecentGbrMenu );
|
Kiface().GetFileHistory().UseMenu( openRecentGbrMenu );
|
||||||
Kiface().GetFileHistory().AddFilesToMenu();
|
Kiface().GetFileHistory().AddFilesToMenu();
|
||||||
|
|
||||||
|
// Add drill file menu and the drill file history
|
||||||
if( openRecentDrlMenu )
|
if( openRecentDrlMenu )
|
||||||
m_drillFileHistory.RemoveMenu( openRecentDrlMenu );
|
m_drillFileHistory.RemoveMenu( openRecentDrlMenu );
|
||||||
|
|
||||||
|
@ -73,14 +74,22 @@ void GERBVIEW_FRAME::ReCreateMenuBar()
|
||||||
openRecentDrlMenu->SetTitle( _( "Open Recent Drill File" ) );
|
openRecentDrlMenu->SetTitle( _( "Open Recent Drill File" ) );
|
||||||
openRecentDrlMenu->SetIcon( recent_xpm );
|
openRecentDrlMenu->SetIcon( recent_xpm );
|
||||||
|
|
||||||
|
m_drillFileHistory.UseMenu( openRecentDrlMenu );
|
||||||
|
m_drillFileHistory.AddFilesToMenu( );
|
||||||
|
|
||||||
|
// Add job file menu and the job file history
|
||||||
if( openRecentJobMenu )
|
if( openRecentJobMenu )
|
||||||
m_jobFileHistory.RemoveMenu( openRecentJobMenu );
|
m_jobFileHistory.RemoveMenu( openRecentJobMenu );
|
||||||
|
|
||||||
openRecentJobMenu = new ACTION_MENU();
|
openRecentJobMenu = new ACTION_MENU();
|
||||||
openRecentJobMenu->SetTool( selTool );
|
openRecentJobMenu->SetTool( selTool );
|
||||||
openRecentJobMenu->SetTitle( _( "Open Recent Job" ) );
|
openRecentJobMenu->SetTitle( _( "Open Recent Job" ) );
|
||||||
openRecentJobMenu->SetIcon( recent_xpm );
|
|
||||||
|
|
||||||
|
openRecentJobMenu->SetIcon( recent_xpm );
|
||||||
|
m_jobFileHistory.UseMenu( openRecentJobMenu );
|
||||||
|
m_jobFileHistory.AddFilesToMenu( );
|
||||||
|
|
||||||
|
// Add zip file menu and the zip file history
|
||||||
if( openRecentZipMenu )
|
if( openRecentZipMenu )
|
||||||
m_zipFileHistory.RemoveMenu( openRecentZipMenu );
|
m_zipFileHistory.RemoveMenu( openRecentZipMenu );
|
||||||
|
|
||||||
|
@ -89,6 +98,9 @@ void GERBVIEW_FRAME::ReCreateMenuBar()
|
||||||
openRecentZipMenu->SetTitle( _( "Open Recent Zip" ) );
|
openRecentZipMenu->SetTitle( _( "Open Recent Zip" ) );
|
||||||
openRecentZipMenu->SetIcon( recent_xpm );
|
openRecentZipMenu->SetIcon( recent_xpm );
|
||||||
|
|
||||||
|
m_zipFileHistory.UseMenu( openRecentZipMenu );
|
||||||
|
m_zipFileHistory.AddFilesToMenu( );
|
||||||
|
|
||||||
fileMenu->AddItem( wxID_FILE, _( "Open &Gerber File(s)..." ),
|
fileMenu->AddItem( wxID_FILE, _( "Open &Gerber File(s)..." ),
|
||||||
_( "Open Gerber file(s) on the current layer. Previous data will be deleted" ),
|
_( "Open Gerber file(s) on the current layer. Previous data will be deleted" ),
|
||||||
load_gerber_xpm, SELECTION_CONDITIONS::ShowAlways );
|
load_gerber_xpm, SELECTION_CONDITIONS::ShowAlways );
|
||||||
|
|
Loading…
Reference in New Issue