KiCad PCB EDA Suite
Loading...
Searching...
No Matches
eeschema/menubar.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2018 Jean-Pierre Charras, jp.charras at wanadoo.fr
5 * Copyright (C) 2009 Wayne Stambaugh <[email protected]>
6 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
7 * Copyright (C) 2019 CERN
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, you may find one here:
21 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
22 * or you may search the http://www.gnu.org website for the version 2 license,
23 * or you may write to the Free Software Foundation, Inc.,
24 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
25 */
26
27#include <bitmaps.h>
28#include <file_history.h>
29#include <kiface_base.h>
30#include <schematic.h>
31#include <tool/action_manager.h>
32#include <tool/action_menu.h>
33#include <tool/tool_manager.h>
35#include <tools/ee_actions.h>
36#include "eeschema_id.h"
37#include "sch_edit_frame.h"
38#include <widgets/wx_menubar.h>
39#include <advanced_config.h>
40
41
43{
45
46 // wxWidgets handles the Mac Application menu behind the scenes, but that means
47 // we always have to start from scratch with a new wxMenuBar.
48 wxMenuBar* oldMenuBar = GetMenuBar();
49 WX_MENUBAR* menuBar = new WX_MENUBAR();
50
51 //-- File menu -----------------------------------------------------------
52 //
53 ACTION_MENU* fileMenu = new ACTION_MENU( false, selTool );
54 static ACTION_MENU* openRecentMenu;
55
56 if( Kiface().IsSingle() ) // When not under a project mgr
57 {
58 FILE_HISTORY& fileHistory = GetFileHistory();
59
60 // Add this menu to the list of menus managed by the file history
61 // (the file history will be updated when adding/removing files in history)
62 if( !openRecentMenu )
63 {
64 openRecentMenu = new ACTION_MENU( false, selTool );
65 openRecentMenu->SetIcon( BITMAPS::recent );
66
67 fileHistory.UseMenu( openRecentMenu );
68 fileHistory.AddFilesToMenu( openRecentMenu );
69 }
70
71 // Ensure the title is up to date after changing language
72 openRecentMenu->SetTitle( _( "Open Recent" ) );
73 fileHistory.UpdateClearText( openRecentMenu, _( "Clear Recent Files" ) );
74
75 fileMenu->Add( ACTIONS::doNew );
76 fileMenu->Add( ACTIONS::open );
77
78 wxMenuItem* item = fileMenu->Add( openRecentMenu->Clone() );
79
80 // Add the file menu condition here since it needs the item ID for the submenu
82 cond.Enable( FILE_HISTORY::FileHistoryNotEmpty( fileHistory ) );
83 RegisterUIUpdateHandler( item->GetId(), cond );
84 fileMenu->AppendSeparator();
85 }
86
87 fileMenu->Add( ACTIONS::save );
88
89 if( Kiface().IsSingle() )
90 fileMenu->Add( ACTIONS::saveAs );
91 else
93
94 fileMenu->Add( ACTIONS::revert );
95
96 fileMenu->AppendSeparator();
97
98 // Import submenu
99 ACTION_MENU* submenuImport = new ACTION_MENU( false, selTool );
100 submenuImport->SetTitle( _( "Import" ) );
101 submenuImport->SetIcon( BITMAPS::import );
102
103 submenuImport->Add( _( "Non-KiCad Schematic..." ),
104 _( "Replace current schematic sheet with one imported from another application" ),
106 BITMAPS::import_document );
107
109 _( "Footprint Assignments..." ) );
110 submenuImport->Add( EE_ACTIONS::importGraphics, ACTION_MENU::NORMAL, _( "Graphics..." ) );
111
112 fileMenu->Add( submenuImport );
113
114
115 // Export submenu
116 ACTION_MENU* submenuExport = new ACTION_MENU( false, selTool );
117 submenuExport->SetTitle( _( "Export" ) );
118 submenuExport->SetIcon( BITMAPS::export_file );
120 _( "Drawing to Clipboard" ) );
121 submenuExport->Add( EE_ACTIONS::exportNetlist, ACTION_MENU::NORMAL, _( "Netlist..." ) );
123 _( "Symbols to Library..." ) );
125 _( "Symbols to New Library..." ) );
126 fileMenu->Add( submenuExport );
127
128 fileMenu->AppendSeparator();
129 fileMenu->Add( EE_ACTIONS::schematicSetup );
130
131 fileMenu->AppendSeparator();
132 fileMenu->Add( ACTIONS::pageSettings );
133 fileMenu->Add( ACTIONS::print );
134 fileMenu->Add( ACTIONS::plot );
135
136 fileMenu->AppendSeparator();
137 fileMenu->AddQuitOrClose( &Kiface(), _( "Schematic Editor" ) );
138
139
140 //-- Edit menu -----------------------------------------------------------
141 //
142 ACTION_MENU* editMenu = new ACTION_MENU( false, selTool );
143
144 editMenu->Add( ACTIONS::undo );
145 editMenu->Add( ACTIONS::redo );
146
147 editMenu->AppendSeparator();
148 editMenu->Add( ACTIONS::cut );
149 editMenu->Add( ACTIONS::copy );
150 editMenu->Add( ACTIONS::copyAsText );
151 editMenu->Add( ACTIONS::paste );
152 editMenu->Add( ACTIONS::pasteSpecial );
153 editMenu->Add( ACTIONS::doDelete );
154
155 editMenu->AppendSeparator();
156 editMenu->Add( ACTIONS::selectAll );
157 editMenu->Add( ACTIONS::unselectAll );
158
159 editMenu->AppendSeparator();
160 editMenu->Add( ACTIONS::find );
161 editMenu->Add( ACTIONS::findAndReplace );
162
163 editMenu->AppendSeparator();
164 editMenu->Add( ACTIONS::deleteTool );
166 editMenu->Add( EE_ACTIONS::changeSymbols );
167 editMenu->Add( EE_ACTIONS::editPageNumber );
168
169 ACTION_MENU* submenuAttributes = new ACTION_MENU( false, selTool );
170 submenuAttributes->SetTitle( _( "Attributes" ) );
171
175 submenuAttributes->Add( EE_ACTIONS::setDNP, ACTION_MENU::CHECK );
176
177 editMenu->Add( submenuAttributes );
178
179 //-- View menu -----------------------------------------------------------
180 //
181 ACTION_MENU* viewMenu = new ACTION_MENU( false, selTool );
182
183 // Show / Hide Panels submenu
184 ACTION_MENU* showHidePanels = new ACTION_MENU( false, selTool );
185 showHidePanels->SetTitle( _( "Panels" ) );
186
188 showHidePanels->Add( ACTIONS::showSearch, ACTION_MENU::CHECK );
190
191 if( ADVANCED_CFG::GetCfg().m_IncrementalConnectivity )
193
194 if( ADVANCED_CFG::GetCfg().m_EnableDesignBlocks )
196 _( "Design Blocks" ) );
197
198 viewMenu->Add( showHidePanels );
199
200 viewMenu->AppendSeparator();
201 viewMenu->Add( ACTIONS::showSymbolBrowser );
202
203 viewMenu->AppendSeparator();
204 viewMenu->Add( ACTIONS::zoomInCenter );
205 viewMenu->Add( ACTIONS::zoomOutCenter );
206 viewMenu->Add( ACTIONS::zoomFitScreen );
207 viewMenu->Add( ACTIONS::zoomFitObjects );
208 viewMenu->Add( ACTIONS::zoomTool );
209 viewMenu->Add( ACTIONS::zoomRedraw );
210
211 viewMenu->AppendSeparator();
212 viewMenu->Add( EE_ACTIONS::navigateBack );
213 viewMenu->Add( EE_ACTIONS::navigateUp );
214 viewMenu->Add( EE_ACTIONS::navigateForward );
216 viewMenu->Add( EE_ACTIONS::navigateNext );
217
218
219
220 viewMenu->AppendSeparator();
231
232#ifdef __APPLE__
233 viewMenu->AppendSeparator();
234#endif
235
236 //-- Place menu -----------------------------------------------------------
237 //
238 ACTION_MENU* placeMenu = new ACTION_MENU( false, selTool );
239
240 placeMenu->Add( EE_ACTIONS::placeSymbol );
241 placeMenu->Add( EE_ACTIONS::placePower );
242 placeMenu->Add( EE_ACTIONS::drawWire );
243 placeMenu->Add( EE_ACTIONS::drawBus );
245 placeMenu->Add( EE_ACTIONS::placeNoConnect );
246 placeMenu->Add( EE_ACTIONS::placeJunction );
247 placeMenu->Add( EE_ACTIONS::placeLabel );
248 placeMenu->Add( EE_ACTIONS::placeGlobalLabel );
249 placeMenu->Add( EE_ACTIONS::placeClassLabel );
250 placeMenu->Add( EE_ACTIONS::drawRuleArea );
251
252 placeMenu->AppendSeparator();
253 placeMenu->Add( EE_ACTIONS::placeHierLabel );
254 placeMenu->Add( EE_ACTIONS::drawSheet );
255 placeMenu->Add( EE_ACTIONS::placeSheetPin );
257 placeMenu->Add( EE_ACTIONS::importSheet );
258
259 placeMenu->AppendSeparator();
261 placeMenu->Add( EE_ACTIONS::drawTextBox );
262 placeMenu->Add( EE_ACTIONS::drawTable );
263 placeMenu->Add( EE_ACTIONS::drawRectangle );
264 placeMenu->Add( EE_ACTIONS::drawCircle );
265 placeMenu->Add( EE_ACTIONS::drawArc );
266 placeMenu->Add( EE_ACTIONS::drawBezier );
267 placeMenu->Add( EE_ACTIONS::drawLines );
268 placeMenu->Add( EE_ACTIONS::placeImage );
269
270
271 //-- Inspect menu -----------------------------------------------
272 //
273 ACTION_MENU* inspectMenu = new ACTION_MENU( false, selTool );
274
275 inspectMenu->Add( EE_ACTIONS::showBusSyntaxHelp );
276
277 inspectMenu->AppendSeparator();
278 inspectMenu->Add( EE_ACTIONS::runERC );
279 inspectMenu->Add( ACTIONS::prevMarker );
280 inspectMenu->Add( ACTIONS::nextMarker );
281 inspectMenu->Add( ACTIONS::excludeMarker );
282
283 inspectMenu->AppendSeparator();
284 inspectMenu->Add( EE_ACTIONS::diffSymbol );
285
286 inspectMenu->AppendSeparator();
287 inspectMenu->Add( EE_ACTIONS::showSimulator );
288
289
290 //-- Tools menu -----------------------------------------------
291 //
292 ACTION_MENU* toolsMenu = new ACTION_MENU( false, selTool );
293
294 wxMenuItem* update = toolsMenu->Add( ACTIONS::updatePcbFromSchematic );
295 update->Enable( !Kiface().IsSingle() );
296
297 toolsMenu->Add( EE_ACTIONS::showPcbNew );
298
299 if( !Kiface().IsSingle() )
300 toolsMenu->Add( ACTIONS::showProjectManager );
301
302 toolsMenu->AppendSeparator();
303 toolsMenu->Add( ACTIONS::showSymbolEditor );
304 toolsMenu->Add( EE_ACTIONS::updateSymbols );
305
306 toolsMenu->AppendSeparator();
307 toolsMenu->Add( EE_ACTIONS::rescueSymbols );
308 toolsMenu->Add( EE_ACTIONS::remapSymbols );
309
310 if( ADVANCED_CFG::GetCfg().m_ShowRepairSchematic )
311 toolsMenu->Add( EE_ACTIONS::repairSchematic );
312
313 toolsMenu->AppendSeparator();
314 toolsMenu->Add( EE_ACTIONS::editSymbolFields );
316
317 toolsMenu->AppendSeparator();
318 toolsMenu->Add( EE_ACTIONS::annotate );
320
321 toolsMenu->AppendSeparator();
322 toolsMenu->Add( EE_ACTIONS::assignFootprints );
323 toolsMenu->Add( EE_ACTIONS::generateBOM );
325
326 toolsMenu->AppendSeparator();
327 update = toolsMenu->Add( ACTIONS::updateSchematicFromPcb );
328 update->Enable( !Kiface().IsSingle() );
329
330#ifdef KICAD_IPC_API
331 toolsMenu->AppendSeparator();
332 toolsMenu->Add( ACTIONS::pluginsReload );
333#endif
334
335 //-- Preferences menu -----------------------------------------------
336 //
337 ACTION_MENU* prefsMenu = new ACTION_MENU( false, selTool );
338
339 prefsMenu->Add( ACTIONS::configurePaths );
340 prefsMenu->Add( ACTIONS::showSymbolLibTable );
341 if( ADVANCED_CFG::GetCfg().m_EnableDesignBlocks )
343 prefsMenu->Add( ACTIONS::openPreferences );
344
345 prefsMenu->AppendSeparator();
346 AddMenuLanguageList( prefsMenu, selTool );
347
348
349 //-- Menubar -------------------------------------------------------------
350 //
351 menuBar->Append( fileMenu, _( "&File" ) );
352 menuBar->Append( editMenu, _( "&Edit" ) );
353 menuBar->Append( viewMenu, _( "&View" ) );
354 menuBar->Append( placeMenu, _( "&Place" ) );
355 menuBar->Append( inspectMenu, _( "&Inspect" ) );
356 menuBar->Append( toolsMenu, _( "&Tools" ) );
357 menuBar->Append( prefsMenu, _( "P&references" ) );
358 AddStandardHelpMenu( menuBar );
359
360 SetMenuBar( menuBar );
361 delete oldMenuBar;
362}
363
364
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
static TOOL_ACTION updatePcbFromSchematic
Definition: actions.h:214
static TOOL_ACTION paste
Definition: actions.h:73
static TOOL_ACTION excludeMarker
Definition: actions.h:121
static TOOL_ACTION nextMarker
Definition: actions.h:120
static TOOL_ACTION zoomRedraw
Definition: actions.h:124
static TOOL_ACTION unselectAll
Definition: actions.h:76
static TOOL_ACTION revert
Definition: actions.h:55
static TOOL_ACTION zoomOutCenter
Definition: actions.h:128
static TOOL_ACTION saveAs
Definition: actions.h:52
static TOOL_ACTION copy
Definition: actions.h:71
static TOOL_ACTION pluginsReload
Definition: actions.h:241
static TOOL_ACTION showSymbolLibTable
Definition: actions.h:229
static TOOL_ACTION showSymbolEditor
Definition: actions.h:211
static TOOL_ACTION showSymbolBrowser
Definition: actions.h:210
static TOOL_ACTION pasteSpecial
Definition: actions.h:74
static TOOL_ACTION findAndReplace
Definition: actions.h:110
static TOOL_ACTION openPreferences
Definition: actions.h:227
static TOOL_ACTION plot
Definition: actions.h:58
static TOOL_ACTION open
Definition: actions.h:50
static TOOL_ACTION pageSettings
Definition: actions.h:56
static TOOL_ACTION showSearch
Definition: actions.h:108
static TOOL_ACTION undo
Definition: actions.h:68
static TOOL_ACTION prevMarker
Definition: actions.h:119
static TOOL_ACTION doDelete
Definition: actions.h:78
static TOOL_ACTION save
Definition: actions.h:51
static TOOL_ACTION zoomFitScreen
Definition: actions.h:134
static TOOL_ACTION redo
Definition: actions.h:69
static TOOL_ACTION deleteTool
Definition: actions.h:79
static TOOL_ACTION zoomTool
Definition: actions.h:138
static TOOL_ACTION updateSchematicFromPcb
Definition: actions.h:215
static TOOL_ACTION showDesignBlockLibTable
Definition: actions.h:231
static TOOL_ACTION print
Definition: actions.h:57
static TOOL_ACTION showProperties
Definition: actions.h:216
static TOOL_ACTION doNew
Definition: actions.h:47
static TOOL_ACTION zoomFitObjects
Definition: actions.h:135
static TOOL_ACTION zoomInCenter
Definition: actions.h:127
static TOOL_ACTION cut
Definition: actions.h:70
static TOOL_ACTION configurePaths
Definition: actions.h:228
static TOOL_ACTION showProjectManager
Definition: actions.h:208
static TOOL_ACTION copyAsText
Definition: actions.h:72
static TOOL_ACTION selectAll
Definition: actions.h:75
static TOOL_ACTION find
Definition: actions.h:109
Define the structure of a menu based on ACTIONs.
Definition: action_menu.h:49
void AddQuitOrClose(KIFACE_BASE *aKiface, wxString aAppname="")
Add either a standard Quit or Close item to the menu.
static constexpr bool CHECK
Definition: action_menu.h:201
ACTION_MENU * Clone() const
Create a deep, recursive copy of this ACTION_MENU.
void SetTitle(const wxString &aTitle) override
Set title for the menu.
Definition: action_menu.cpp:92
static constexpr bool NORMAL
Definition: action_menu.h:200
void SetIcon(BITMAPS aIcon)
Assign an icon for the entry.
Definition: action_menu.cpp:78
wxMenuItem * Add(const wxString &aLabel, int aId, BITMAPS aIcon)
Add a wxWidgets-style entry to the menu.
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.
void SetMenuBar(wxMenuBar *menu_bar) override
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.
static TOOL_ACTION importFPAssignments
Definition: ee_actions.h:182
static TOOL_ACTION repairSchematic
Definition: ee_actions.h:265
static TOOL_ACTION remapSymbols
Definition: ee_actions.h:176
static TOOL_ACTION runERC
Inspection and Editing.
Definition: ee_actions.h:156
static TOOL_ACTION toggleHiddenPins
Definition: ee_actions.h:239
static TOOL_ACTION setExcludeFromBoard
Definition: ee_actions.h:194
static TOOL_ACTION drawTable
Definition: ee_actions.h:104
static TOOL_ACTION syncAllSheetsPins
Definition: ee_actions.h:101
static TOOL_ACTION navigateForward
Definition: ee_actions.h:227
static TOOL_ACTION setDNP
Definition: ee_actions.h:195
static TOOL_ACTION placeSymbol
Definition: ee_actions.h:79
static TOOL_ACTION navigateBack
Definition: ee_actions.h:228
static TOOL_ACTION toggleERCWarnings
Definition: ee_actions.h:244
static TOOL_ACTION drawRuleArea
Definition: ee_actions.h:113
static TOOL_ACTION toggleERCExclusions
Definition: ee_actions.h:246
static TOOL_ACTION placeClassLabel
Definition: ee_actions.h:90
static TOOL_ACTION drawWire
Definition: ee_actions.h:83
static TOOL_ACTION drawCircle
Definition: ee_actions.h:106
static TOOL_ACTION incrementAnnotations
Definition: ee_actions.h:158
static TOOL_ACTION drawBus
Definition: ee_actions.h:84
static TOOL_ACTION generateBOMLegacy
Definition: ee_actions.h:185
static TOOL_ACTION toggleERCErrors
Definition: ee_actions.h:245
static TOOL_ACTION placePower
Definition: ee_actions.h:81
static TOOL_ACTION placeSheetPin
Definition: ee_actions.h:96
static TOOL_ACTION drawLines
Definition: ee_actions.h:109
static TOOL_ACTION toggleOPCurrents
Definition: ee_actions.h:249
static TOOL_ACTION showSimulator
Definition: ee_actions.h:287
static TOOL_ACTION exportNetlist
Definition: ee_actions.h:183
static TOOL_ACTION assignFootprints
Definition: ee_actions.h:167
static TOOL_ACTION togglePinAltIcons
Definition: ee_actions.h:250
static TOOL_ACTION diffSymbol
Definition: ee_actions.h:172
static TOOL_ACTION rescueSymbols
Definition: ee_actions.h:175
static TOOL_ACTION importGraphics
Definition: ee_actions.h:261
static TOOL_ACTION toggleHiddenFields
Definition: ee_actions.h:240
static TOOL_ACTION placeGlobalLabel
Definition: ee_actions.h:91
static TOOL_ACTION exportSymbolsToLibrary
Definition: ee_actions.h:188
static TOOL_ACTION placeHierLabel
Definition: ee_actions.h:92
static TOOL_ACTION drawSheetOnClipboard
Definition: ee_actions.h:260
static TOOL_ACTION editSymbolFields
Definition: ee_actions.h:159
static TOOL_ACTION drawTextBox
Definition: ee_actions.h:103
static TOOL_ACTION showNetNavigator
Definition: ee_actions.h:304
static TOOL_ACTION editPageNumber
Definition: ee_actions.h:170
static TOOL_ACTION drawRectangle
Definition: ee_actions.h:105
static TOOL_ACTION annotate
Definition: ee_actions.h:157
static TOOL_ACTION placeImage
Definition: ee_actions.h:110
static TOOL_ACTION toggleDirectiveLabels
Definition: ee_actions.h:243
static TOOL_ACTION updateSymbols
Definition: ee_actions.h:164
static TOOL_ACTION showHierarchy
Definition: ee_actions.h:231
static TOOL_ACTION placeSchematicText
Definition: ee_actions.h:102
static TOOL_ACTION setExcludeFromBOM
Definition: ee_actions.h:192
static TOOL_ACTION toggleOPVoltages
Definition: ee_actions.h:248
static TOOL_ACTION changeSymbols
Definition: ee_actions.h:163
static TOOL_ACTION setExcludeFromSimulation
Definition: ee_actions.h:193
static TOOL_ACTION showDesignBlockPanel
Definition: ee_actions.h:198
static TOOL_ACTION drawArc
Definition: ee_actions.h:107
static TOOL_ACTION drawSheet
Definition: ee_actions.h:93
static TOOL_ACTION drawBezier
Definition: ee_actions.h:108
static TOOL_ACTION markSimExclusions
Definition: ee_actions.h:247
static TOOL_ACTION navigateNext
Definition: ee_actions.h:230
static TOOL_ACTION navigateUp
Definition: ee_actions.h:226
static TOOL_ACTION editSymbolLibraryLinks
Definition: ee_actions.h:160
static TOOL_ACTION placeLabel
Definition: ee_actions.h:89
static TOOL_ACTION saveCurrSheetCopyAs
Definition: ee_actions.h:42
static TOOL_ACTION editTextAndGraphics
Definition: ee_actions.h:236
static TOOL_ACTION showPcbNew
Definition: ee_actions.h:181
static TOOL_ACTION placeBusWireEntry
Definition: ee_actions.h:88
static TOOL_ACTION placeJunction
Definition: ee_actions.h:87
static TOOL_ACTION importSheet
Definition: ee_actions.h:97
static TOOL_ACTION generateBOM
Definition: ee_actions.h:184
static TOOL_ACTION navigatePrevious
Definition: ee_actions.h:229
static TOOL_ACTION placeNoConnect
Definition: ee_actions.h:86
static TOOL_ACTION showBusSyntaxHelp
Definition: ee_actions.h:173
static TOOL_ACTION schematicSetup
Definition: ee_actions.h:169
static TOOL_ACTION exportSymbolsToNewLibrary
Definition: ee_actions.h:189
This class implements a file history object to store a list of files, that can then be added to a men...
Definition: file_history.h:43
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.
Definition: file_history.h:98
void doReCreateMenuBar() override
TOOL_MANAGER * m_toolManager
Definition: tools_holder.h:171
Wrapper around a wxMenuBar object that prevents the accelerator table from being used.
Definition: wx_menubar.h:47
#define _(s)
@ ID_IMPORT_NON_KICAD_SCH
Definition: eeschema_id.h:57
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)