47 wxMenuBar* oldMenuBar = GetMenuBar();
66 openRecentMenu->
SetTitle(
_(
"Open Recent" ) );
69 fileHistory.UseMenu( openRecentMenu );
76 wxMenuItem* item = fileMenu->
Add( openRecentMenu );
84 fileMenu->AppendSeparator();
98 fileMenu->AppendSeparator();
99 fileMenu->
Add(
_(
"Resc&ue" ),
100 _(
"Clear board and get last rescue file automatically saved by PCB editor" ),
106 submenuImport->
SetTitle(
_(
"Import" ) );
115 submenuImport->
Add(
_(
"Non-KiCad Board File..." ),
116 _(
"Import board file from other applications" ),
120 fileMenu->AppendSeparator();
121 fileMenu->
Add( submenuImport );
125 submenuExport->
SetTitle(
_(
"Export" ) );
129 submenuExport->
Add(
_(
"GenCAD..." ),
_(
"Export GenCAD board representation" ),
131 submenuExport->
Add(
_(
"VRML..." ),
_(
"Export VRML 3D board representation" ),
133 submenuExport->
Add(
_(
"IDFv3..." ),
_(
"Export IDF 3D board representation" ),
135 submenuExport->
Add(
_(
"STEP..." ),
_(
"Export STEP 3D board representation" ),
137 submenuExport->
Add(
_(
"SVG..." ),
_(
"Export SVG board representation" ),
139 submenuExport->
Add(
_(
"Footprint Association (.cmp) File..." ),
140 _(
"Export footprint association file (*.cmp) for schematic back annotation" ),
142 submenuExport->
Add(
_(
"Hyperlynx..." ),
"",
148 submenuExport->AppendSeparator();
149 submenuExport->
Add(
_(
"Footprints to Library..." ),
150 _(
"Add footprints used on board to an existing footprint library\n" 151 "(does not remove other footprints from this library)" ),
154 submenuExport->
Add(
_(
"Footprints to New Library..." ),
155 _(
"Create a new footprint library containing the footprints used on board\n" 156 "(if the library already exists it will be replaced)" ),
159 fileMenu->
Add( submenuExport );
163 submenuFabOutputs->
SetTitle(
_(
"Fabrication Outputs" ) );
172 fileMenu->
Add( submenuFabOutputs );
174 fileMenu->AppendSeparator();
177 fileMenu->AppendSeparator();
182 fileMenu->AppendSeparator();
192 editMenu->AppendSeparator();
198 editMenu->AppendSeparator();
201 editMenu->AppendSeparator();
204 editMenu->AppendSeparator();
210 editMenu->AppendSeparator();
214 editMenu->AppendSeparator();
227 viewMenu->AppendSeparator();
235 viewMenu->AppendSeparator();
247 viewMenu->
Add( unitsSubMenu );
251 viewMenu->AppendSeparator();
255 viewMenu->AppendSeparator();
258 drawingModeSubMenu->
SetTitle(
_(
"&Drawing Mode" ) );
265 drawingModeSubMenu->AppendSeparator();
270 drawingModeSubMenu->AppendSeparator();
274 viewMenu->
Add( drawingModeSubMenu );
278 contrastModeSubMenu->
SetTitle(
_(
"&Contrast Mode" ) );
284 viewMenu->
Add( contrastModeSubMenu );
289 viewMenu->AppendSeparator();
307 placeMenu->AppendSeparator();
313 placeMenu->AppendSeparator();
318 placeMenu->AppendSeparator();
322 placeMenu->AppendSeparator();
325 autoplaceSubmenu->
SetTitle(
_(
"Auto-Place Footprints" ) );
331 placeMenu->
Add( autoplaceSubmenu );
340 routeMenu->AppendSeparator();
344 routeMenu->AppendSeparator();
349 routeMenu->AppendSeparator();
361 inspectMenu->AppendSeparator();
367 inspectMenu->AppendSeparator();
377 update->Enable( !
Kiface().IsSingle() );
381 toolsMenu->AppendSeparator();
385 toolsMenu->AppendSeparator();
391 toolsMenu->AppendSeparator();
394 update->Enable( !
Kiface().IsSingle() );
397 #if defined(KICAD_SCRIPTING_WXPYTHON) 398 toolsMenu->AppendSeparator();
402 #if defined(KICAD_SCRIPTING) && defined(KICAD_SCRIPTING_ACTION_MENU) 404 submenuActionPlugins->
SetTitle(
_(
"External Plugins" ) );
407 submenuActionPlugins->
Add(
_(
"Refresh Plugins" ),
408 _(
"Reload all python plugins and refresh plugin menus" ),
412 submenuActionPlugins->
Add(
_(
"Reveal Plugin Folder in Finder" ),
413 _(
"Reveals the plugins folder in a Finder window" ),
417 submenuActionPlugins->
Add(
_(
"Open Plugin Directory" ),
418 _(
"Opens the directory in the default system file manager" ),
424 submenuActionPlugins->AppendSeparator();
425 buildActionPluginMenus( submenuActionPlugins );
427 toolsMenu->AppendSeparator();
428 toolsMenu->
Add( submenuActionPlugins );
439 prefsMenu->
Add(
_(
"Preferences..." ) +
"\tCtrl+,",
440 _(
"Show preferences for all open tools" ),
444 prefsMenu->AppendSeparator();
450 menuBar->Append( fileMenu,
_(
"&File" ) );
451 menuBar->Append( editMenu,
_(
"&Edit" ) );
452 menuBar->Append( viewMenu,
_(
"&View" ) );
453 menuBar->Append( placeMenu,
_(
"&Place" ) );
454 menuBar->Append( routeMenu,
_(
"Ro&ute" ) );
455 menuBar->Append( inspectMenu,
_(
"&Inspect" ) );
456 menuBar->Append( toolsMenu,
_(
"&Tools" ) );
457 menuBar->Append( prefsMenu,
_(
"P&references" ) );
460 SetMenuBar( menuBar );
void AddFilesToMenu() override
Add the files to all registered menus.
static TOOL_ACTION drawLine
static TOOL_ACTION show3DViewer
static TOOL_ACTION drawCenterDimension
static TOOL_ACTION placeImportedGraphics
TOOL_ACTION * m_exportNetlistAction
The export board netlist tool action object.
static TOOL_ACTION globalDeletions
static TOOL_ACTION selectLayerPair
static TOOL_ACTION generateGerbers
static TOOL_ACTION zoomInCenter
static TOOL_ACTION pageSettings
static TOOL_ACTION autoplaceOffboardComponents
static TOOL_ACTION drillOrigin
static TOOL_ACTION doDelete
static TOOL_ACTION zoneFillAll
static TOOL_ACTION drawArc
static TOOL_ACTION ratsnestLineMode
static TOOL_ACTION cleanupGraphics
static TOOL_ACTION autoplaceSelectedComponents
static TOOL_ACTION layerAlphaDec
static TOOL_ACTION zoomTool
static TOOL_ACTION boardStatistics
static TOOL_ACTION zoneDisplayOutlines
static TOOL_ACTION layerAlphaInc
static TOOL_ACTION routerTuneDiffPair
Activation of the Push and Shove router (diff pair tuning mode)
static TOOL_ACTION drawAlignedDimension
static TOOL_ACTION nextMarker
static TOOL_ACTION zoneDisplayDisable
static TOOL_ACTION drawOrthogonalDimension
static TOOL_ACTION zoomFitScreen
static TOOL_ACTION millimetersUnits
static TOOL_ACTION drawPolygon
virtual void RegisterUIUpdateHandler(int aID, const ACTION_CONDITIONS &aConditions) override
Register a UI update handler for the control with ID aID.
static TOOL_ACTION showPythonConsole
static TOOL_ACTION showLayersManager
static TOOL_ACTION updatePcbFromSchematic
static TOOL_ACTION swapLayers
static TOOL_ACTION zoomFitObjects
static TOOL_ACTION excludeMarker
This class implements a file history object to store a list of files, that can then be added to a men...
static TOOL_ACTION changeFootprints
static TOOL_ACTION editTracksAndVias
static TOOL_ACTION generateReportFile
static TOOL_ACTION placeText
static TOOL_ACTION zoomOutCenter
static TOOL_ACTION generateD356File
static TOOL_ACTION saveCopyAs
static TOOL_ACTION routerTuneDiffPairSkew
Activation of the Push and Shove router (skew tuning mode)
static TOOL_ACTION inspectConstraints
ACTION_CONDITIONS & Enable(const SELECTION_CONDITION &aCondition)
static TOOL_ACTION cleanupTracksAndVias
static TOOL_ACTION measureTool
static TOOL_ACTION appendBoard
static TOOL_ACTION routerSettingsDialog
Activation of the Push and Shove settings dialogs.
static TOOL_ACTION updateSchematicFromPcb
static TOOL_ACTION showFootprintLibTable
static TOOL_ACTION importNetlist
static TOOL_ACTION toggleGrid
static TOOL_ACTION showFootprintBrowser
static TOOL_ACTION inchesUnits
static TOOL_ACTION boardReannotate
KIFACE_I & Kiface()
Global KIFACE_I "get" accessor.
void AddStandardHelpMenu(wxMenuBar *aMenuBar)
Adds the standard KiCad help menu to the menubar.
static TOOL_ACTION togglePolarCoords
void ReCreateMenuBar() override
Recreates the menu bar.
static TOOL_ACTION showRatsnest
static TOOL_ACTION drawRectangle
static TOOL_ACTION drawVia
static TOOL_ACTION showEeschema
static TOOL_ACTION generatePosFile
static TOOL_ACTION placeTarget
static TOOL_ACTION zoneUnfillAll
static TOOL_ACTION milsUnits
static TOOL_ACTION boardSetup
static TOOL_ACTION inspectClearance
static TOOL_ACTION prevMarker
static TOOL_ACTION updateFootprints
static TOOL_ACTION padDisplayMode
static TOOL_ACTION importSpecctraSession
static TOOL_ACTION placeCharacteristics
static TOOL_ACTION drawCircle
static TOOL_ACTION viaDisplayMode
static TOOL_ACTION graphicsOutlines
Display footprint graphics as outlines.
static TOOL_ACTION removeUnusedPads
static TOOL_ACTION generateBOM
static TOOL_ACTION placeFootprint
static TOOL_ACTION drawLeader
static TOOL_ACTION exportSpecctraDSN
static TOOL_ACTION drawRuleArea
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 editTextAndGraphics
static TOOL_ACTION saveAs
static TOOL_ACTION routeSingleTrack
Activation of the Push and Shove router.
static TOOL_ACTION zoomRedraw
static TOOL_ACTION repairBoard
static TOOL_ACTION listNets
static TOOL_ACTION placeStackup
Functors that can be used to figure out how the action controls should be displayed in the UI and if ...
static TOOL_ACTION runDRC
static TOOL_ACTION gridProperties
static TOOL_ACTION deleteTool
static const ADVANCED_CFG & GetCfg()
Get the singleton instance's config, which is shared by all consumers.
static TOOL_ACTION toggleCursorStyle
static TOOL_ACTION flipBoard
static TOOL_ACTION gridSetOrigin
static TOOL_ACTION configurePaths
static TOOL_ACTION highContrastMode
static TOOL_ACTION selectAll
static TOOL_ACTION showFootprintEditor
static TOOL_ACTION drawZone
static TOOL_ACTION trackDisplayMode
static TOOL_ACTION generateDrillFiles
static TOOL_ACTION textOutlines
Display texts as lines.
static TOOL_ACTION zoneDisplayEnable
static TOOL_ACTION routerTuneSingleTrace
Activation of the Push and Shove router (tune single line mode)
static TOOL_ACTION routeDiffPair
Activation of the Push and Shove router (differential pair mode)