33#include <python_scripting.h>
47 wxMenuBar* oldMenuBar = GetMenuBar();
66 openRecentMenu->
SetIcon( BITMAPS::recent );
68 fileHistory.UseMenu( openRecentMenu );
73 openRecentMenu->
SetTitle(
_(
"Open Recent" ) );
79 wxMenuItem* item = fileMenu->
Add( openRecentMenu->
Clone() );
88 fileMenu->AppendSeparator();
103 fileMenu->AppendSeparator();
108 submenuImport->
SetTitle(
_(
"Import" ) );
109 submenuImport->
SetIcon( BITMAPS::import );
116 fileMenu->AppendSeparator();
117 fileMenu->
Add( submenuImport );
121 submenuExport->
SetTitle(
_(
"Export" ) );
122 submenuExport->
SetIcon( BITMAPS::export_file );
135 submenuExport->AppendSeparator();
138 fileMenu->
Add( submenuExport );
142 submenuFabOutputs->
SetTitle(
_(
"Fabrication Outputs" ) );
143 submenuFabOutputs->
SetIcon( BITMAPS::fabrication );
154 fileMenu->
Add( submenuFabOutputs );
156 fileMenu->AppendSeparator();
159 fileMenu->AppendSeparator();
164 fileMenu->AppendSeparator();
174 editMenu->AppendSeparator();
181 editMenu->AppendSeparator();
185 selectSubMenu->
SetTitle(
_(
"&Select" ) );
190 editMenu->
Add( selectSubMenu );
192 editMenu->AppendSeparator();
195 editMenu->AppendSeparator();
203 editMenu->AppendSeparator();
208 editMenu->AppendSeparator();
218 showHidePanels->
SetTitle(
_(
"Panels" ) );
227 viewMenu->
Add( showHidePanels );
229 viewMenu->AppendSeparator();
233 viewMenu->AppendSeparator();
242 viewMenu->AppendSeparator();
245 drawingModeSubMenu->
SetTitle(
_(
"&Drawing Mode" ) );
246 drawingModeSubMenu->
SetIcon( BITMAPS::add_zone );
257 drawingModeSubMenu->AppendSeparator();
262 drawingModeSubMenu->AppendSeparator();
266 viewMenu->
Add( drawingModeSubMenu );
270 contrastModeSubMenu->
SetTitle(
_(
"&Contrast Mode" ) );
271 contrastModeSubMenu->
SetIcon( BITMAPS::contrast_mode );
276 viewMenu->
Add( contrastModeSubMenu );
281 viewMenu->AppendSeparator();
294 muwaveSubmenu->
SetTitle(
_(
"Draw Microwave Shapes" ) );
295 muwaveSubmenu->
SetIcon( BITMAPS::mw_add_line );
301 placeMenu->
Add( muwaveSubmenu );
303 placeMenu->AppendSeparator();
315 placeMenu->AppendSeparator();
317 dimensionSubmenu->
SetTitle(
_(
"Draw Dimensions" ) );
318 dimensionSubmenu->
SetIcon( BITMAPS::add_aligned_dimension );
324 placeMenu->
Add( dimensionSubmenu );
326 placeMenu->AppendSeparator();
330 placeMenu->AppendSeparator();
336 placeMenu->AppendSeparator();
338 autoplaceSubmenu->
SetTitle(
_(
"Auto-Place Footprints" ) );
339 autoplaceSubmenu->
SetIcon( BITMAPS::mode_module );
344 placeMenu->
Add( autoplaceSubmenu );
352 routeMenu->AppendSeparator();
356 routeMenu->AppendSeparator();
361 routeMenu->AppendSeparator();
372 inspectMenu->AppendSeparator();
378 inspectMenu->AppendSeparator();
392 if( !
Kiface().IsSingle() )
397 toolsMenu->AppendSeparator();
402 toolsMenu->AppendSeparator();
407 toolsMenu->AppendSeparator();
413 toolsMenu->AppendSeparator();
419 toolsMenu->AppendSeparator();
423 if( SCRIPTING::IsWxAvailable() )
425 toolsMenu->AppendSeparator();
430 multichannelSubmenu->
SetTitle(
_(
"Multi-Channel" ) );
431 multichannelSubmenu->
SetIcon( BITMAPS::mode_module );
435 toolsMenu->
Add( multichannelSubmenu );
438 submenuActionPlugins->
SetTitle(
_(
"External Plugins" ) );
439 submenuActionPlugins->
SetIcon( BITMAPS::puzzle_piece );
446 submenuActionPlugins->AppendSeparator();
449 toolsMenu->AppendSeparator();
450 toolsMenu->
Add( submenuActionPlugins );
464 prefsMenu->AppendSeparator();
470 menuBar->Append( fileMenu,
_(
"&File" ) );
471 menuBar->Append( editMenu,
_(
"&Edit" ) );
472 menuBar->Append( viewMenu,
_(
"&View" ) );
473 menuBar->Append( placeMenu,
_(
"&Place" ) );
474 menuBar->Append( routeMenu,
_(
"Ro&ute" ) );
475 menuBar->Append( inspectMenu,
_(
"&Inspect" ) );
476 menuBar->Append( toolsMenu,
_(
"&Tools" ) );
477 menuBar->Append( prefsMenu,
_(
"P&references" ) );
480 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 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 tuneDiffPair
static TOOL_ACTION exportCmpFile
static TOOL_ACTION exportSpecctraDSN
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 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 placeCharacteristics
static TOOL_ACTION pluginsShowFolder
Scripting Actions.
static TOOL_ACTION autoplaceOffboardComponents
static TOOL_ACTION layerAlphaInc
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 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 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 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 showPythonConsole
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
void buildActionPluginMenus(ACTION_MENU *aActionMenu)
Fill action menu with all registered action plugins.
TOOL_ACTION * m_exportNetlistAction
The export board netlist tool action object.
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)