45 wxMenuBar* oldMenuBar = GetMenuBar();
56 openRecentMenu->
SetIcon( BITMAPS::recent );
58 recentFiles.UseMenu( openRecentMenu );
63 openRecentMenu->
SetTitle(
_(
"Open Recent" ) );
73 wxMenuItem* item = fileMenu->
Add( openRecentMenu->
Clone() );
80 fileMenu->AppendSeparator();
84 fileMenu->AppendSeparator();
87 fileMenu->AppendSeparator();
88 fileMenu->
AddClose(
_(
"Drawing Sheet Editor" ) );
89 fileMenu->
AddQuit(
_(
"Drawing Sheet Editor" ) );
98 editMenu->AppendSeparator();
114 viewMenu->AppendSeparator();
119 viewMenu->AppendSeparator();
131 placeMenu->AppendSeparator();
150 menuBar->Append( fileMenu,
_(
"&File" ) );
151 menuBar->Append( editMenu,
_(
"&Edit" ) );
152 menuBar->Append( viewMenu,
_(
"&View" ) );
153 menuBar->Append( placeMenu,
_(
"&Place" ) );
154 menuBar->Append( inspectorMenu,
_(
"&Inspect" ) );
155 menuBar->Append( preferencesMenu,
_(
"P&references" ) );
static TOOL_ACTION zoomRedraw
static TOOL_ACTION zoomOutCenter
static TOOL_ACTION saveAs
static TOOL_ACTION openPreferences
static TOOL_ACTION doDelete
static TOOL_ACTION zoomFitScreen
static TOOL_ACTION zoomTool
static TOOL_ACTION zoomInCenter
void AddMenuLanguageList(ACTION_MENU *aMasterMenu, TOOL_INTERACTIVE *aControlTool)
Function AddMenuLanguageList creates a menu list for language choice, and add it as submenu to Master...
void SetMenuBar(wxMenuBar *menu_bar) override
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)