46 wxMenuBar* oldMenuBar = GetMenuBar();
59 recentFiles.UseMenu( openRecentMenu );
64 openRecentMenu->
SetTitle(
_(
"Open Recent" ) );
74 wxMenuItem* item = fileMenu->
Add( openRecentMenu->
Clone() );
81 fileMenu->AppendSeparator();
85 fileMenu->AppendSeparator();
88 fileMenu->AppendSeparator();
98 editMenu->AppendSeparator();
114 viewMenu->AppendSeparator();
124 viewMenu->
Add( unitsSubMenu );
128 viewMenu->AppendSeparator();
133 viewMenu->AppendSeparator();
145 placeMenu->AppendSeparator();
159 preferencesMenu->
Add(
_(
"Preferences..." ) +
"\tCtrl+,",
160 _(
"Show preferences for all open tools" ),
169 menuBar->Append( fileMenu,
_(
"&File" ) );
170 menuBar->Append( editMenu,
_(
"&Edit" ) );
171 menuBar->Append( viewMenu,
_(
"&View" ) );
172 menuBar->Append( placeMenu,
_(
"&Place" ) );
173 menuBar->Append( inspectorMenu,
_(
"&Inspect" ) );
174 menuBar->Append( preferencesMenu,
_(
"P&references" ) );
177 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 saveAs
static TOOL_ACTION milsUnits
static TOOL_ACTION inchesUnits
static TOOL_ACTION toggleCursorStyle
static TOOL_ACTION doDelete
static TOOL_ACTION zoomFitScreen
static TOOL_ACTION zoomTool
static TOOL_ACTION zoomInCenter
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)
Adds 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...
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...
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 placeImage
static TOOL_ACTION drawRectangle
static TOOL_ACTION showInspector
static TOOL_ACTION previewSettings
static TOOL_ACTION placeText
static TOOL_ACTION appendImportedDrawingSheet
static TOOL_ACTION drawLine
void doReCreateMenuBar() override
Functors that can be used to figure out how the action controls should be displayed in the UI and if ...
ACTION_CONDITIONS & Enable(const SELECTION_CONDITION &aCondition)