46 wxMenuBar* oldMenuBar = GetMenuBar();
57 openRecentMenu->
SetTitle(
_(
"Open Recent" ) );
60 recentFiles.UseMenu( openRecentMenu );
71 wxMenuItem* item = fileMenu->
Add( openRecentMenu );
78 fileMenu->AppendSeparator();
82 fileMenu->AppendSeparator();
85 fileMenu->AppendSeparator();
95 editMenu->AppendSeparator();
111 viewMenu->AppendSeparator();
121 viewMenu->
Add( unitsSubMenu );
125 viewMenu->AppendSeparator();
130 viewMenu->AppendSeparator();
142 placeMenu->AppendSeparator();
154 preferencesMenu->
Add(
_(
"Preferences..." ) +
"\tCtrl+,",
155 _(
"Show preferences for all open tools" ),
164 menuBar->Append( fileMenu,
_(
"&File" ) );
165 menuBar->Append( editMenu,
_(
"&Edit" ) );
166 menuBar->Append( viewMenu,
_(
"&View" ) );
167 menuBar->Append( placeMenu,
_(
"&Place" ) );
168 menuBar->Append( inspectorMenu,
_(
"&Inspect" ) );
169 menuBar->Append( preferencesMenu,
_(
"P&references" ) );
172 SetMenuBar( menuBar );
void AddFilesToMenu() override
Add the files to all registered menus.
static TOOL_ACTION showInspector
static TOOL_ACTION zoomInCenter
static TOOL_ACTION doDelete
static TOOL_ACTION drawLine
static TOOL_ACTION zoomTool
static TOOL_ACTION placeImage
void ReCreateMenuBar() override
Recreates the menu bar.
static TOOL_ACTION zoomFitScreen
static TOOL_ACTION millimetersUnits
virtual void RegisterUIUpdateHandler(int aID, const ACTION_CONDITIONS &aConditions) override
Register a UI update handler for the control with ID aID.
static TOOL_ACTION placeText
This class implements a file history object to store a list of files, that can then be added to a men...
static TOOL_ACTION zoomOutCenter
ACTION_CONDITIONS & Enable(const SELECTION_CONDITION &aCondition)
static TOOL_ACTION toggleGrid
static TOOL_ACTION inchesUnits
KIFACE_I & Kiface()
Global KIFACE_I "get" accessor.
void AddStandardHelpMenu(wxMenuBar *aMenuBar)
Adds the standard KiCad help menu to the menubar.
static TOOL_ACTION previewSettings
static TOOL_ACTION drawRectangle
static TOOL_ACTION milsUnits
FILE_HISTORY & GetFileHistory()
Get the frame's main file history.
static SELECTION_CONDITION FileHistoryNotEmpty(const FILE_HISTORY &aHistory)
Create a SELECTION_CONDITION that can be used to enable a menu item when the file history has items i...
static TOOL_ACTION saveAs
static TOOL_ACTION zoomRedraw
Functors that can be used to figure out how the action controls should be displayed in the UI and if ...
static TOOL_ACTION appendImportedWorksheet
static TOOL_ACTION toggleCursorStyle