46 wxMenuBar* oldMenuBar = GetMenuBar();
63 openRecentMenu->
SetTool( selTool );
64 openRecentMenu->
SetTitle(
_(
"Open Recent" ) );
67 fileHistory.UseMenu( openRecentMenu );
74 wxMenuItem* item = fileMenu->
Add( openRecentMenu );
80 fileMenu->AppendSeparator();
86 fileMenu->AppendSeparator();
88 fileMenu->
Add(
_(
"Append Schematic Sheet Content..." ),
89 _(
"Append schematic sheet content from another project to the current sheet" ),
93 fileMenu->AppendSeparator();
97 submenuImport->
SetTool( selTool );
100 submenuImport->
Add(
_(
"Import Non KiCad Schematic..." ),
101 _(
"Replace current schematic sheet with one imported from another application" ),
106 fileMenu->
Add( submenuImport );
111 submenuExport->
SetTool( selTool );
112 submenuExport->
SetTitle(
_(
"Export" ) );
116 fileMenu->
Add( submenuExport );
118 fileMenu->AppendSeparator();
121 fileMenu->AppendSeparator();
126 fileMenu->AppendSeparator();
137 editMenu->AppendSeparator();
144 editMenu->AppendSeparator();
147 editMenu->AppendSeparator();
151 editMenu->AppendSeparator();
165 viewMenu->AppendSeparator();
173 viewMenu->AppendSeparator();
184 viewMenu->
Add( unitsSubMenu );
188 viewMenu->AppendSeparator();
192 viewMenu->AppendSeparator();
209 placeMenu->AppendSeparator();
214 placeMenu->AppendSeparator();
230 inspectMenu->AppendSeparator();
240 update->Enable( !
Kiface().IsSingle() );
242 update->Enable( !
Kiface().IsSingle() );
246 toolsMenu->AppendSeparator();
252 toolsMenu->AppendSeparator();
256 toolsMenu->AppendSeparator();
260 toolsMenu->AppendSeparator();
271 prefsMenu->
Add(
_(
"Preferences..." ) +
"\tCtrl+,",
272 _(
"Show preferences for all open tools" ),
276 prefsMenu->AppendSeparator();
282 menuBar->Append( fileMenu,
_(
"&File" ) );
283 menuBar->Append( editMenu,
_(
"&Edit" ) );
284 menuBar->Append( viewMenu,
_(
"&View" ) );
285 menuBar->Append( placeMenu,
_(
"&Place" ) );
286 menuBar->Append( inspectMenu,
_(
"&Inspect" ) );
287 menuBar->Append( toolsMenu,
_(
"&Tools" ) );
288 menuBar->Append( prefsMenu,
_(
"P&references" ) );
291 SetMenuBar( menuBar );
static TOOL_ACTION editPageNumber
void AddFilesToMenu() override
Add the files to all registered menus.
static TOOL_ACTION rescueSymbols
static TOOL_ACTION findAndReplace
static TOOL_ACTION exportNetlist
static TOOL_ACTION navigateHierarchy
static TOOL_ACTION assignFootprints
static TOOL_ACTION zoomInCenter
static TOOL_ACTION pageSettings
static TOOL_ACTION runERC
static TOOL_ACTION doDelete
static TOOL_ACTION zoomTool
void ReCreateMenuBar() override
Recreates the menu bar.
static TOOL_ACTION placeHierLabel
static TOOL_ACTION placeJunction
static TOOL_ACTION nextMarker
static TOOL_ACTION remapSymbols
static TOOL_ACTION zoomFitScreen
static TOOL_ACTION millimetersUnits
virtual void RegisterUIUpdateHandler(int aID, const ACTION_CONDITIONS &aConditions) override
Register a UI update handler for the control with ID aID.
static TOOL_ACTION showSymbolLibTable
static TOOL_ACTION updatePcbFromSchematic
static TOOL_ACTION placeBusWireEntry
static TOOL_ACTION updateSymbols
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 zoomOutCenter
const BITMAP_OPAQUE recent_xpm[1]
ACTION_CONDITIONS & Enable(const SELECTION_CONDITION &aCondition)
static TOOL_ACTION leaveSheet
static TOOL_ACTION runSimulation
static TOOL_ACTION annotate
static TOOL_ACTION drawSheet
static TOOL_ACTION showPcbNew
static TOOL_ACTION showBusManager
static TOOL_ACTION updateSchematicFromPcb
static TOOL_ACTION editSymbolFields
static TOOL_ACTION placePower
static TOOL_ACTION drawWire
static TOOL_ACTION toggleGrid
static TOOL_ACTION inchesUnits
static TOOL_ACTION placeSchematicText
KIFACE_I & Kiface()
Global KIFACE_I "get" accessor.
void AddStandardHelpMenu(wxMenuBar *aMenuBar)
Adds the standard KiCad help menu to the menubar.
const BITMAP_OPAQUE export_xpm[1]
static TOOL_ACTION placeImage
const BITMAP_OPAQUE import_xpm[1]
static TOOL_ACTION importSheetPin
static TOOL_ACTION placeSymbol
static TOOL_ACTION editTextAndGraphics
static TOOL_ACTION milsUnits
const BITMAP_OPAQUE unit_mm_xpm[1]
static TOOL_ACTION drawBus
static TOOL_ACTION prevMarker
static TOOL_ACTION pasteSpecial
const BITMAP_OPAQUE import_document_xpm[1]
static TOOL_ACTION placeLabel
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 showSymbolEditor
static TOOL_ACTION saveAs
static TOOL_ACTION toggleHiddenPins
static TOOL_ACTION zoomRedraw
static TOOL_ACTION importFPAssignments
Functors that can be used to figure out how the action controls should be displayed in the UI and if ...
static TOOL_ACTION placeNoConnect
static TOOL_ACTION changeSymbols
static TOOL_ACTION drawSheetOnClipboard
static TOOL_ACTION gridProperties
static TOOL_ACTION deleteTool
static TOOL_ACTION generateBOM
static TOOL_ACTION drawLines
static TOOL_ACTION toggleCursorStyle
static TOOL_ACTION schematicSetup
static TOOL_ACTION showSymbolBrowser
static TOOL_ACTION placeGlobalLabel
static TOOL_ACTION editSymbolLibraryLinks
const BITMAP_OPAQUE preference_xpm[1]
static TOOL_ACTION configurePaths
static TOOL_ACTION selectAll
const BITMAP_OPAQUE add_document_xpm[1]