48 wxMenuBar* oldMenuBar = GetMenuBar();
65 openRecentMenu->
SetIcon( BITMAPS::recent );
67 fileHistory.UseMenu( openRecentMenu );
72 openRecentMenu->
SetTitle(
_(
"Open Recent" ) );
78 wxMenuItem* item = fileMenu->
Add( openRecentMenu->
Clone() );
84 fileMenu->AppendSeparator();
96 fileMenu->AppendSeparator();
98 fileMenu->
Add(
_(
"Insert Schematic Sheet Content..." ),
99 _(
"Append schematic sheet content from another project to the current sheet" ),
101 BITMAPS::add_document );
103 fileMenu->AppendSeparator();
107 submenuImport->
SetTitle(
_(
"Import" ) );
108 submenuImport->
SetIcon( BITMAPS::import );
109 submenuImport->
Add(
_(
"Non-KiCad Schematic..." ),
110 _(
"Replace current schematic sheet with one imported from another "
113 BITMAPS::import_document );
116 _(
"Footprint Assignments..." ) );
117 fileMenu->
Add( submenuImport );
122 submenuExport->
SetTitle(
_(
"Export" ) );
123 submenuExport->
SetIcon( BITMAPS::export_file );
125 _(
"Drawing to Clipboard" ) );
128 _(
"Symbols to Library..." ) );
130 _(
"Symbols to New Library..." ) );
131 fileMenu->
Add( submenuExport );
133 fileMenu->AppendSeparator();
136 fileMenu->AppendSeparator();
141 fileMenu->AppendSeparator();
152 editMenu->AppendSeparator();
159 editMenu->AppendSeparator();
162 editMenu->AppendSeparator();
166 editMenu->AppendSeparator();
187 viewMenu->AppendSeparator();
191 viewMenu->AppendSeparator();
199 viewMenu->AppendSeparator();
206 unitsSubMenu->
SetIcon( BITMAPS::unit_mm );
210 viewMenu->
Add( unitsSubMenu );
214 viewMenu->AppendSeparator();
225 viewMenu->AppendSeparator();
243 placeMenu->AppendSeparator();
248 placeMenu->AppendSeparator();
267 inspectMenu->AppendSeparator();
270 inspectMenu->AppendSeparator();
279 update->Enable( !
Kiface().IsSingle() );
283 toolsMenu->AppendSeparator();
287 toolsMenu->AppendSeparator();
294 toolsMenu->AppendSeparator();
298 toolsMenu->AppendSeparator();
301 toolsMenu->AppendSeparator();
305 toolsMenu->AppendSeparator();
307 update->Enable( !
Kiface().IsSingle() );
318 prefsMenu->
Add(
_(
"Preferences..." ) +
"\tCtrl+,",
319 _(
"Show preferences for all open tools" ),
321 BITMAPS::preference );
323 prefsMenu->AppendSeparator();
329 menuBar->Append( fileMenu,
_(
"&File" ) );
330 menuBar->Append( editMenu,
_(
"&Edit" ) );
331 menuBar->Append( viewMenu,
_(
"&View" ) );
332 menuBar->Append( placeMenu,
_(
"&Place" ) );
333 menuBar->Append( inspectMenu,
_(
"&Inspect" ) );
334 menuBar->Append( toolsMenu,
_(
"&Tools" ) );
335 menuBar->Append( prefsMenu,
_(
"P&references" ) );
338 SetMenuBar( menuBar );
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
static TOOL_ACTION gridProperties
static TOOL_ACTION updatePcbFromSchematic
static TOOL_ACTION toggleGrid
static TOOL_ACTION excludeMarker
static TOOL_ACTION nextMarker
static TOOL_ACTION zoomRedraw
static TOOL_ACTION millimetersUnits
static TOOL_ACTION revert
static TOOL_ACTION zoomOutCenter
static TOOL_ACTION saveAs
static TOOL_ACTION showSymbolLibTable
static TOOL_ACTION showSymbolEditor
static TOOL_ACTION showSymbolBrowser
static TOOL_ACTION pasteSpecial
static TOOL_ACTION findAndReplace
static TOOL_ACTION milsUnits
static TOOL_ACTION pageSettings
static TOOL_ACTION showSearch
static TOOL_ACTION prevMarker
static TOOL_ACTION inchesUnits
static TOOL_ACTION toggleCursorStyle
static TOOL_ACTION doDelete
static TOOL_ACTION zoomFitScreen
static TOOL_ACTION deleteTool
static TOOL_ACTION zoomTool
static TOOL_ACTION updateSchematicFromPcb
static TOOL_ACTION zoomFitObjects
static TOOL_ACTION zoomInCenter
static TOOL_ACTION configurePaths
static TOOL_ACTION selectAll
static const ADVANCED_CFG & GetCfg()
Get the singleton instance's config, which is shared by all consumers.
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.
static TOOL_ACTION importFPAssignments
static TOOL_ACTION repairSchematic
static TOOL_ACTION remapSymbols
static TOOL_ACTION runERC
static TOOL_ACTION toggleHiddenPins
static TOOL_ACTION navigateForward
static TOOL_ACTION placeSymbol
static TOOL_ACTION navigateBack
static TOOL_ACTION toggleERCWarnings
static TOOL_ACTION toggleERCExclusions
static TOOL_ACTION placeClassLabel
static TOOL_ACTION drawWire
static TOOL_ACTION drawCircle
static TOOL_ACTION drawBus
static TOOL_ACTION toggleERCErrors
static TOOL_ACTION placePower
static TOOL_ACTION drawLines
static TOOL_ACTION toggleOPCurrents
static TOOL_ACTION showSimulator
static TOOL_ACTION importSheetPin
static TOOL_ACTION exportNetlist
static TOOL_ACTION assignFootprints
static TOOL_ACTION diffSymbol
static TOOL_ACTION rescueSymbols
static TOOL_ACTION toggleHiddenFields
static TOOL_ACTION placeGlobalLabel
static TOOL_ACTION exportSymbolsToLibrary
static TOOL_ACTION placeHierLabel
static TOOL_ACTION drawSheetOnClipboard
static TOOL_ACTION editSymbolFields
static TOOL_ACTION drawTextBox
static TOOL_ACTION showNetNavigator
static TOOL_ACTION editPageNumber
static TOOL_ACTION drawRectangle
static TOOL_ACTION annotate
static TOOL_ACTION placeImage
static TOOL_ACTION toggleDirectiveLabels
static TOOL_ACTION updateSymbols
static TOOL_ACTION showHierarchy
static TOOL_ACTION placeSchematicText
static TOOL_ACTION toggleOPVoltages
static TOOL_ACTION changeSymbols
static TOOL_ACTION drawArc
static TOOL_ACTION drawSheet
static TOOL_ACTION navigateNext
static TOOL_ACTION navigateUp
static TOOL_ACTION editSymbolLibraryLinks
static TOOL_ACTION placeLabel
static TOOL_ACTION saveCurrSheetCopyAs
static TOOL_ACTION editTextAndGraphics
static TOOL_ACTION showPcbNew
static TOOL_ACTION placeBusWireEntry
static TOOL_ACTION placeJunction
static TOOL_ACTION generateBOM
static TOOL_ACTION navigatePrevious
static TOOL_ACTION placeNoConnect
static TOOL_ACTION schematicSetup
static TOOL_ACTION exportSymbolsToNewLibrary
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.
void doReCreateMenuBar() override
@ ID_IMPORT_NON_KICAD_SCH
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)