50 wxMenuBar* oldMenuBar = GetMenuBar();
66 openRecentMenu =
new ACTION_MENU(
false, controlTool );
67 openRecentMenu->
SetIcon( BITMAPS::recent );
69 fileHistory.UseMenu( openRecentMenu );
74 openRecentMenu->
SetTitle(
_(
"Open Recent" ) );
96 wxMenuItem* item = fileMenu->
Add( openRecentMenu->
Clone() );
103 fileMenu->AppendSeparator();
106 fileMenu->AppendSeparator();
109 fileMenu->AppendSeparator();
113 importMenu->
SetTitle(
_(
"Import Non-KiCad Project..." ) );
114 importMenu->
SetIcon( BITMAPS::import_project );
116 importMenu->
Add(
_(
"CADSTAR Project..." ),
117 _(
"Import CADSTAR Archive Schematic and PCB (*.csa, *.cpa)" ),
119 BITMAPS::import_project );
121 importMenu->
Add(
_(
"EAGLE Project..." ),
122 _(
"Import EAGLE CAD XML schematic and board" ),
124 BITMAPS::import_project );
126 importMenu->
Add(
_(
"EasyEDA (JLCEDA) Std Backup..." ),
127 _(
"Import EasyEDA (JLCEDA) Standard schematic and board" ),
129 BITMAPS::import_project );
131 importMenu->
Add(
_(
"EasyEDA (JLCEDA) Pro Project..." ),
132 _(
"Import EasyEDA (JLCEDA) Professional schematic and board" ),
135 fileMenu->
Add( importMenu );
137 fileMenu->AppendSeparator();
138 fileMenu->
Add(
_(
"&Archive Project..." ),
139 _(
"Archive all needed project files into zip archive" ),
143 fileMenu->
Add(
_(
"&Unarchive Project..." ),
144 _(
"Unarchive project files from zip archive" ),
148 fileMenu->AppendSeparator();
170 viewMenu->AppendSeparator();
172 viewMenu->
Add(
_(
"Browse Project Files" ),
173 _(
"Open project directory in file browser" ),
175 BITMAPS::directory_browser );
179 viewMenu->AppendSeparator();
191 toolsMenu->AppendSeparator();
202 pcmMenuItem->Enable(
false );
205 toolsMenu->AppendSeparator();
206 toolsMenu->
Add(
_(
"Edit Local File..." ),
207 _(
"Edit local file in text editor" ),
222 prefsMenu->AppendSeparator();
228 menuBar->Append( fileMenu,
_(
"&File" ) );
229 menuBar->Append( editMenu,
_(
"&Edit" ) );
230 menuBar->Append( viewMenu,
_(
"&View" ) );
231 menuBar->Append( toolsMenu,
_(
"&Tools" ) );
232 menuBar->Append( prefsMenu,
_(
"&Preferences" ) );
265 _(
"Archive all project files" ),
266 wxEmptyString,
nullptr );
272 _(
"Unarchive project files from zip archive" ),
273 wxEmptyString,
nullptr );
282 _(
"Reveal project folder in Finder" ) );
284 _(
"Open project directory in file explorer" ) );
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap)
wxBitmapBundle KiDisabledBitmapBundle(BITMAPS aBitmap)
static TOOL_ACTION zoomRedraw
static TOOL_ACTION saveAs
static TOOL_ACTION showSymbolLibTable
static TOOL_ACTION openPreferences
static TOOL_ACTION showFootprintLibTable
static TOOL_ACTION showDesignBlockLibTable
static TOOL_ACTION configurePaths
static const ADVANCED_CFG & GetCfg()
Get the singleton instance's config, which is shared by all consumers.
static constexpr int KICAD_AUI_TB_STYLE
< Default style flags used for wxAUI toolbars.
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...
void SetClearText(wxString aClearText)
Set the text displayed on the menu item that clears the entire menu.
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 AddFilesToMenu() override
Add the files to all registered menus.
static TOOL_ACTION openDemoProject
static TOOL_ACTION editPCB
static TOOL_ACTION newProject
static TOOL_ACTION editSchematic
static TOOL_ACTION openTextEditor
static TOOL_ACTION openProject
static TOOL_ACTION closeProject
static TOOL_ACTION convertImage
static TOOL_ACTION editDrawingSheet
static TOOL_ACTION newJobsetFile
static TOOL_ACTION editFootprints
static TOOL_ACTION showPluginManager
static TOOL_ACTION showCalculator
static TOOL_ACTION viewGerbers
static TOOL_ACTION newFromRepository
static TOOL_ACTION newFromTemplate
static TOOL_ACTION editSymbols
Handle actions in the kicad manager frame.
void RecreateBaseLeftToolbar()
(Re)Create the left vertical toolbar
ACTION_TOOLBAR * m_mainToolBar
void doReCreateMenuBar() override
static wxString GetStockDemosPath()
Gets the stock (install) demos path.
IDs used in KiCad main frame foe menuitems and tools.
@ ID_IMPORT_EAGLE_PROJECT
@ ID_IMPORT_EASYEDAPRO_PROJECT
@ ID_IMPORT_CADSTAR_ARCHIVE_PROJECT
@ ID_EDIT_LOCAL_FILE_IN_TEXT_EDITOR
@ ID_IMPORT_EASYEDA_PROJECT
@ ID_BROWSE_IN_FILE_EXPLORER
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)