45    wxMenuBar*  oldMenuBar = GetMenuBar();
 
   58#define FileHistoryCond( x ) ACTION_CONDITIONS().Enable( FILE_HISTORY::FileHistoryNotEmpty( x ) ) 
   63    if( !openRecentGbrMenu )
 
   65        openRecentGbrMenu = 
new ACTION_MENU( 
false, selTool );
 
   68        recentGbrFiles.
SetClearText( 
_( 
"Clear Recent Gerber Files" ) );
 
   69        recentGbrFiles.UseMenu( openRecentGbrMenu );
 
   74    openRecentGbrMenu->
SetTitle( 
_( 
"Open Recent Gerber File" ) );
 
   75    recentGbrFiles.
UpdateClearText( openRecentGbrMenu, 
_( 
"Clear Recent Gerber Files" ) );
 
   79    wxMenuItem* gbrItem = fileMenu->
Add( openRecentGbrMenu->
Clone() );
 
   85    if( !openRecentDrlMenu )
 
   87        openRecentDrlMenu = 
new ACTION_MENU( 
false, selTool );
 
   88        openRecentDrlMenu->
SetTitle( 
_( 
"Open Recent Drill File" ) );
 
   97    openRecentGbrMenu->
SetTitle( 
_( 
"Open Recent Gerber File" ) );
 
  101    wxMenuItem* drillItem = fileMenu->
Add( openRecentDrlMenu->
Clone() );
 
  107    if( !openRecentJobMenu )
 
  109        openRecentJobMenu = 
new ACTION_MENU( 
false, selTool );
 
  118    openRecentJobMenu->
SetTitle( 
_( 
"Open Recent Job File" ) );
 
  119    m_jobFileHistory.UpdateClearText( openRecentJobMenu, 
_( 
"Clear Recent Job Files" ) );
 
  122    wxMenuItem* jobItem = fileMenu->
Add( openRecentJobMenu->
Clone() );
 
  128    if( !openRecentZipMenu )
 
  130        openRecentZipMenu = 
new ACTION_MENU( 
false, selTool );
 
  139    openRecentZipMenu->
SetTitle( 
_( 
"Open Recent Zip File" ) );
 
  140    m_zipFileHistory.UpdateClearText( openRecentZipMenu, 
_( 
"Clear Recent Zip Files" ) );
 
  143    wxMenuItem* zipItem = fileMenu->
Add( openRecentZipMenu->
Clone() );
 
  146#undef FileHistoryCond 
  148    fileMenu->AppendSeparator();
 
  152    fileMenu->AppendSeparator();
 
  155    fileMenu->AppendSeparator();
 
  158    fileMenu->AppendSeparator();
 
  172    viewMenu->AppendSeparator();
 
  178    viewMenu->AppendSeparator();
 
  190    viewMenu->
Add( unitsSubMenu );
 
  192    viewMenu->AppendSeparator();
 
  203    viewMenu->AppendSeparator();
 
  215    toolsMenu->AppendSeparator();
 
  225    preferencesMenu->AppendSeparator();
 
  231    menuBar->Append( fileMenu,        
_( 
"&File" ) );
 
  232    menuBar->Append( viewMenu,        
_( 
"&View" ) );
 
  233    menuBar->Append( toolsMenu,       
_( 
"&Tools" ) );
 
  234    menuBar->Append( preferencesMenu, 
_( 
"&Preferences" ) );
 
  238    SetMenuBar( menuBar );
 
 
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
 
static TOOL_ACTION toggleGrid
 
static TOOL_ACTION zoomRedraw
 
static TOOL_ACTION millimetersUnits
 
static TOOL_ACTION zoomOutCenter
 
static TOOL_ACTION togglePolarCoords
 
static TOOL_ACTION milsUnits
 
static TOOL_ACTION openPreferences
 
static TOOL_ACTION inchesUnits
 
static TOOL_ACTION highContrastMode
 
static TOOL_ACTION measureTool
 
static TOOL_ACTION zoomFitScreen
 
static TOOL_ACTION zoomTool
 
static TOOL_ACTION zoomInCenter
 
void AddMenuLanguageList(ACTION_MENU *aMasterMenu, TOOL_INTERACTIVE *aControlTool)
Create a menu list for language choice, and add it as submenu to MasterMenu.
 
FILE_HISTORY & GetFileHistory()
Get the frame's main file history.
 
virtual void RegisterUIUpdateHandler(int aID, const ACTION_CONDITIONS &aConditions) override
Register a UI update handler for the control with ID aID.
 
void AddStandardHelpMenu(wxMenuBar *aMenuBar)
Add the standard KiCad help menu to the menubar.
 
This class implements a file history object to store a list of files, that can then be added to a men...
 
void SetClearText(wxString aClearText)
Set the text displayed on the menu item that clears the entire menu.
 
void UpdateClearText(wxMenu *aMenu, wxString aClearText)
Update the text displayed on the menu item that clears the entire menu.
 
void AddFilesToMenu() override
Add the files to all registered menus.
 
static TOOL_ACTION dcodeDisplay
 
static TOOL_ACTION negativeObjectDisplay
 
static TOOL_ACTION flashedDisplayOutlines
 
static TOOL_ACTION exportToPcbnew
 
static TOOL_ACTION showDCodes
 
static TOOL_ACTION toggleXORMode
 
static TOOL_ACTION toggleLayerManager
 
static TOOL_ACTION openGerber
 
static TOOL_ACTION clearAllLayers
 
static TOOL_ACTION flipGerberView
 
static TOOL_ACTION openAutodetected
 
static TOOL_ACTION reloadAllLayers
 
static TOOL_ACTION toggleForceOpacityMode
 
static TOOL_ACTION linesDisplayOutlines
 
static TOOL_ACTION openDrillFile
 
static TOOL_ACTION polygonsDisplayOutlines
 
static TOOL_ACTION openZipFile
 
static TOOL_ACTION showSource
 
static TOOL_ACTION openJobFile
 
static TOOL_ACTION clearLayer
 
FILE_HISTORY m_jobFileHistory
 
FILE_HISTORY m_zipFileHistory
 
FILE_HISTORY m_drillFileHistory
 
void doReCreateMenuBar() override