56 wxMenuBar* oldMenuBar = GetMenuBar();
72 openRecentMenu =
new ACTION_MENU(
false, controlTool );
75 fileHistory.UseMenu( openRecentMenu );
80 openRecentMenu->
SetTitle(
_(
"Open Recent" ) );
84 if(
Pgm().GetCommonSettings() &&
Pgm().GetCommonSettings()->m_Git.enableGit )
92 wxMenuItem* item = fileMenu->
Add( openRecentMenu->
Clone() );
94 fileMenu->AppendSeparator();
103 fileMenu->AppendSeparator();
106 fileMenu->AppendSeparator();
116 fileMenu->AppendSeparator();
119 fileMenu->AppendSeparator();
123 importMenu->
SetTitle(
_(
"Import Non-KiCad Project..." ) );
126 importMenu->
Add(
_(
"Altium Project..." ),
127 _(
"Import Altium Schematic and PCB (*.PrjPcb)" ),
130 importMenu->
Add(
_(
"CADSTAR Project..." ),
131 _(
"Import CADSTAR Archive Schematic and PCB (*.csa, *.cpa)" ),
135 importMenu->
Add(
_(
"EAGLE Project..." ),
136 _(
"Import EAGLE CAD XML schematic and board" ),
140 importMenu->
Add(
_(
"EasyEDA (JLCEDA) Std Backup..." ),
141 _(
"Import EasyEDA (JLCEDA) Standard schematic and board" ),
145 importMenu->
Add(
_(
"EasyEDA (JLCEDA) Pro Project..." ),
146 _(
"Import EasyEDA (JLCEDA) Professional schematic and board" ),
149 importMenu->
Add(
_(
"PADS Project..." ),
150 _(
"Import PADS Logic schematic and PADS ASCII PCB (*.asc, *.txt)" ),
153 importMenu->
Add(
_(
"gEDA / Lepton EDA Project..." ),
154 _(
"Import gEDA or Lepton EDA schematic and PCB layout" ),
158 fileMenu->
Add( importMenu );
160 fileMenu->AppendSeparator();
164 fileMenu->AppendSeparator();
181 if( wxGetEnv( wxS(
"KICAD_EDIT_ADVANCED_CFG" ), &editCfgEnv ); editCfgEnv == wxS(
"1" ) )
183 editMenu->
Add(
_(
"Edit Advanced Config..." ),
184 _(
"Edit advanced settings" ),
196 viewMenu->
Add( panelsMenu );
198 viewMenu->AppendSeparator();
201 viewMenu->AppendSeparator();
207 viewMenu->AppendSeparator();
219 toolsMenu->AppendSeparator();
230 pcmMenuItem->Enable(
false );
233 toolsMenu->AppendSeparator();
234 toolsMenu->
Add(
_(
"Edit Local File..." ),
235 _(
"Edit local file in text editor" ),
249 prefsMenu->AppendSeparator();
255 menuBar->Append( fileMenu,
_(
"&File" ) );
256 menuBar->Append( editMenu,
_(
"&Edit" ) );
257 menuBar->Append( viewMenu,
_(
"&View" ) );
258 menuBar->Append( toolsMenu,
_(
"&Tools" ) );
259 menuBar->Append( prefsMenu,
_(
"&Preferences" ) );
262 SetMenuBar( menuBar );
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
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.
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 unarchiveProject
static TOOL_ACTION restoreLocalHistory
static TOOL_ACTION newProject
static TOOL_ACTION showLocalHistory
static TOOL_ACTION editSchematic
static TOOL_ACTION openTextEditor
static TOOL_ACTION archiveProject
static TOOL_ACTION openProject
static TOOL_ACTION closeProject
static TOOL_ACTION convertImage
static TOOL_ACTION editDrawingSheet
static TOOL_ACTION openProjectDirectory
static TOOL_ACTION openJobsetFile
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 editSymbols
Handle actions in the kicad manager frame.
void doReCreateMenuBar() override
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
KIWAY & Kiway() const
Return a reference to the KIWAY that this object has an opportunity to participate in.
LOCAL_HISTORY & LocalHistory()
Return the LOCAL_HISTORY associated with this KIWAY.
bool HistoryExists(const wxString &aProjectPath)
Return true if history exists for the project.
static wxString GetStockDemosPath()
Gets the stock (install) demos path.
virtual COMMON_SETTINGS * GetCommonSettings() const
@ 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_IMPORT_ALTIUM_PROJECT
PGM_BASE & Pgm()
The global program "get" accessor.
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)
bool local_history_enabled