44 wxMenuBar* oldMenuBar = GetMenuBar();
65 fileHistory.UseMenu( openRecentMenu );
70 openRecentMenu->
SetTitle(
_(
"Open Recent" ) );
76 wxMenuItem* item = fileMenu->
Add( openRecentMenu->
Clone() );
97 fileMenu->AppendSeparator();
112 fileMenu->AppendSeparator();
117 submenuImport->
SetTitle(
_(
"Import" ) );
125 fileMenu->AppendSeparator();
126 fileMenu->
Add( submenuImport );
130 submenuExport->
SetTitle(
_(
"Export" ) );
144 submenuExport->AppendSeparator();
147 fileMenu->
Add( submenuExport );
151 submenuFabOutputs->
SetTitle(
_(
"Fabrication Outputs" ) );
163 fileMenu->
Add( submenuFabOutputs );
165 fileMenu->AppendSeparator();
168 fileMenu->AppendSeparator();
173 fileMenu->AppendSeparator();
183 editMenu->AppendSeparator();
190 editMenu->AppendSeparator();
194 selectSubMenu->
SetTitle(
_(
"&Select" ) );
199 editMenu->
Add( selectSubMenu );
201 editMenu->AppendSeparator();
205 editMenu->AppendSeparator();
213 editMenu->AppendSeparator();
218 editMenu->AppendSeparator();
228 showHidePanels->
SetTitle(
_(
"Panels" ) );
237 viewMenu->
Add( showHidePanels );
239 viewMenu->AppendSeparator();
243 viewMenu->AppendSeparator();
252 viewMenu->AppendSeparator();
255 drawingModeSubMenu->
SetTitle(
_(
"&Drawing Mode" ) );
267 drawingModeSubMenu->AppendSeparator();
272 drawingModeSubMenu->AppendSeparator();
276 viewMenu->
Add( drawingModeSubMenu );
280 contrastModeSubMenu->
SetTitle(
_(
"&Contrast Mode" ) );
286 viewMenu->
Add( contrastModeSubMenu );
291 viewMenu->AppendSeparator();
305 muwaveSubmenu->
SetTitle(
_(
"Draw Microwave Shapes" ) );
312 placeMenu->
Add( muwaveSubmenu );
314 placeMenu->AppendSeparator();
330 placeMenu->AppendSeparator();
332 dimensionSubmenu->
SetTitle(
_(
"Draw Dimensions" ) );
339 placeMenu->
Add( dimensionSubmenu );
341 placeMenu->AppendSeparator();
345 placeMenu->AppendSeparator();
351 placeMenu->AppendSeparator();
353 autoplaceSubmenu->
SetTitle(
_(
"Auto-Place Footprints" ) );
359 placeMenu->
Add( autoplaceSubmenu );
367 routeMenu->AppendSeparator();
371 routeMenu->AppendSeparator();
376 routeMenu->AppendSeparator();
387 inspectMenu->AppendSeparator();
393 inspectMenu->AppendSeparator();
407 if( !
Kiface().IsSingle() )
412 toolsMenu->AppendSeparator();
415 toolsMenu->AppendSeparator();
421 toolsMenu->AppendSeparator();
426 toolsMenu->AppendSeparator();
432 toolsMenu->AppendSeparator();
438 toolsMenu->AppendSeparator();
441 toolsMenu->AppendSeparator();
446 multichannelSubmenu->
SetTitle(
_(
"Multi-Channel" ) );
451 toolsMenu->
Add( multichannelSubmenu );
454 submenuActionPlugins->
SetTitle(
_(
"External Plugins" ) );
460 toolsMenu->AppendSeparator();
461 toolsMenu->
Add( submenuActionPlugins );
475 prefsMenu->AppendSeparator();
481 menuBar->Append( fileMenu,
_(
"&File" ) );
482 menuBar->Append( editMenu,
_(
"&Edit" ) );
483 menuBar->Append( viewMenu,
_(
"&View" ) );
484 menuBar->Append( placeMenu,
_(
"&Place" ) );
485 menuBar->Append( routeMenu,
_(
"Ro&ute" ) );
486 menuBar->Append( inspectMenu,
_(
"&Inspect" ) );
487 menuBar->Append( toolsMenu,
_(
"&Tools" ) );
488 menuBar->Append( prefsMenu,
_(
"P&references" ) );
491 SetMenuBar( menuBar );
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
static TOOL_ACTION showCalculatorTools
static TOOL_ACTION updatePcbFromSchematic
static TOOL_ACTION excludeMarker
static TOOL_ACTION nextMarker
static TOOL_ACTION zoomRedraw
static TOOL_ACTION unselectAll
static TOOL_ACTION revert
static TOOL_ACTION show3DViewer
static TOOL_ACTION zoomOutCenter
static TOOL_ACTION saveAs
static TOOL_ACTION pluginsReload
static TOOL_ACTION gridResetOrigin
static TOOL_ACTION pasteSpecial
static TOOL_ACTION zoomFitSelection
static TOOL_ACTION openPreferences
static TOOL_ACTION showFootprintLibTable
static TOOL_ACTION pageSettings
static TOOL_ACTION showSearch
static TOOL_ACTION prevMarker
static TOOL_ACTION highContrastMode
static TOOL_ACTION gridOrigin
static TOOL_ACTION measureTool
static TOOL_ACTION doDelete
static TOOL_ACTION zoomFitScreen
static TOOL_ACTION deleteTool
static TOOL_ACTION zoomTool
static TOOL_ACTION updateSchematicFromPcb
static TOOL_ACTION showDesignBlockLibTable
static TOOL_ACTION showFootprintEditor
static TOOL_ACTION showProperties
static TOOL_ACTION zoomFitObjects
static TOOL_ACTION zoomInCenter
static TOOL_ACTION saveCopy
static TOOL_ACTION gridSetOrigin
static TOOL_ACTION configurePaths
static TOOL_ACTION showProjectManager
static TOOL_ACTION showFootprintBrowser
static TOOL_ACTION selectAll
static const ADVANCED_CFG & GetCfg()
Get the singleton instance's config, which is shared by all consumers.
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...
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 editTracksAndVias
static TOOL_ACTION drawRuleArea
static TOOL_ACTION microwaveCreateGap
static TOOL_ACTION drawBezier
static TOOL_ACTION placeText
static TOOL_ACTION swapLayers
static TOOL_ACTION zonesManager
static TOOL_ACTION generateBOM
static TOOL_ACTION drawOrthogonalDimension
static TOOL_ACTION drcRuleEditor
static TOOL_ACTION drawRectangle
static TOOL_ACTION padDisplayMode
static TOOL_ACTION placeReferenceImage
static TOOL_ACTION routerSettingsDialog
Activation of the Push and Shove settings dialogs.
static TOOL_ACTION exportGenCAD
static TOOL_ACTION zoneFillAll
static TOOL_ACTION showLayersManager
static TOOL_ACTION generateDrillFiles
static TOOL_ACTION drawCircle
static TOOL_ACTION routeDiffPair
Activation of the Push and Shove router (differential pair mode)
static TOOL_ACTION exportVRML
static TOOL_ACTION generateD356File
static TOOL_ACTION collect3DModels
static TOOL_ACTION tuneDiffPair
static TOOL_ACTION exportCmpFile
static TOOL_ACTION exportSpecctraDSN
static TOOL_ACTION drawEllipseArc
static TOOL_ACTION generateIPC2581File
static TOOL_ACTION drawTable
static TOOL_ACTION drawTextBox
static TOOL_ACTION generateODBPPFile
static TOOL_ACTION repeatLayout
static TOOL_ACTION layerAlphaDec
static TOOL_ACTION migrate3DModels
static TOOL_ACTION drawPolygon
static TOOL_ACTION openNonKicadBoard
static TOOL_ACTION zoneDisplayFilled
static TOOL_ACTION drawRadialDimension
static TOOL_ACTION tuneSingleTrack
static TOOL_ACTION cleanupTracksAndVias
static TOOL_ACTION viaDisplayMode
static TOOL_ACTION editTextAndGraphics
static TOOL_ACTION drawLeader
static TOOL_ACTION drillResetOrigin
static TOOL_ACTION compareBoardWithHistory
static TOOL_ACTION placeCharacteristics
static TOOL_ACTION pluginsShowFolder
Scripting Actions.
static TOOL_ACTION autoplaceOffboardComponents
static TOOL_ACTION layerAlphaInc
static TOOL_ACTION drawCopperThievingZone
static TOOL_ACTION inspectConstraints
static TOOL_ACTION generatePosFile
static TOOL_ACTION globalDeletions
static TOOL_ACTION drillOrigin
static TOOL_ACTION tuneSkew
static TOOL_ACTION repairBoard
static TOOL_ACTION trackDisplayMode
static TOOL_ACTION exportSTEP
static TOOL_ACTION showNetInspector
static TOOL_ACTION selectLayerPair
static TOOL_ACTION microwaveCreateStubArc
static TOOL_ACTION drawEllipse
static TOOL_ACTION findByProperties
Find items by property criteria or expression.
static TOOL_ACTION generateGerbers
static TOOL_ACTION inspectClearance
static TOOL_ACTION generatorsShowManager
static TOOL_ACTION zoneDisplayTriangulated
static TOOL_ACTION generateReportFile
static TOOL_ACTION updateFootprints
static TOOL_ACTION exportHyperlynx
static TOOL_ACTION autoplaceSelectedComponents
static TOOL_ACTION placeImportedGraphics
static TOOL_ACTION removeUnusedPads
static TOOL_ACTION zoneDisplayFractured
static TOOL_ACTION drawVia
static TOOL_ACTION regenerateAll
static TOOL_ACTION drawArc
static TOOL_ACTION exportIDF
static TOOL_ACTION runDRC
static TOOL_ACTION regenerateAllTuning
Generator tool.
static TOOL_ACTION graphicsOutlines
Display footprint graphics as outlines.
static TOOL_ACTION importNetlist
static TOOL_ACTION generatePlacementRuleAreas
static TOOL_ACTION compareBoardWithFile
static TOOL_ACTION diffFootprint
static TOOL_ACTION changeFootprints
static TOOL_ACTION boardSetup
static TOOL_ACTION showEeschema
static TOOL_ACTION showDesignBlockPanel
static TOOL_ACTION drawCenterDimension
static TOOL_ACTION zoneUnfillAll
static TOOL_ACTION appendBoard
static TOOL_ACTION microwaveCreateStub
static TOOL_ACTION microwaveCreateLine
static TOOL_ACTION flipBoard
static TOOL_ACTION zoneDisplayOutline
static TOOL_ACTION showFootprintAssociations
static TOOL_ACTION textOutlines
Display texts as lines.
static TOOL_ACTION microwaveCreateFunctionShape
static TOOL_ACTION placeBarcode
static TOOL_ACTION placePoint
static TOOL_ACTION boardReannotate
static TOOL_ACTION regenerateSelected
static TOOL_ACTION exportFootprints
static TOOL_ACTION placeFootprint
static TOOL_ACTION routeSingleTrack
Activation of the Push and Shove router.
static TOOL_ACTION boardStatistics
static TOOL_ACTION editTeardrops
static TOOL_ACTION drawLine
static TOOL_ACTION placeStackup
static TOOL_ACTION cleanupGraphics
static TOOL_ACTION drawAlignedDimension
static TOOL_ACTION drawZone
static TOOL_ACTION rescueAutosave
static TOOL_ACTION importSpecctraSession
void doReCreateMenuBar() override
TOOL_ACTION * m_exportNetlistAction
The export board netlist tool action object.
virtual COMMON_SETTINGS * GetCommonSettings() const
@ INCREMENTAL
Git-based local history (default)
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)
BACKUP_FORMAT format
Backup format (incremental git history vs zip archives)
bool enabled
Automatically back up the project when files are saved.