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 (C) 1992-2023 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 // wxWidgets handles the Mac Application menu behind the scenes, but that means
46 // we always have to start from scratch with a new wxMenuBar.
47 wxMenuBar* oldMenuBar = GetMenuBar();
48 WX_MENUBAR* menuBar = new WX_MENUBAR();
49
50 //-- File menu -----------------------------------------------------------
51 //
52 ACTION_MENU* fileMenu = new ACTION_MENU( false, selTool );
53 static ACTION_MENU* openRecentMenu;
54
55 if( Kiface().IsSingle() ) // When not under a project mgr
56 {
57 FILE_HISTORY& fileHistory = GetFileHistory();
58
59 // Add this menu to the list of menus managed by the file history
60 // (the file history will be updated when adding/removing files in history)
61 if( !openRecentMenu )
62 {
63 openRecentMenu = new ACTION_MENU( false, selTool );
64 openRecentMenu->SetIcon( BITMAPS::recent );
65
66 fileHistory.UseMenu( openRecentMenu );
67 fileHistory.AddFilesToMenu( openRecentMenu );
68 }
69
70 // Ensure the title is up to date after changing language
71 openRecentMenu->SetTitle( _( "Open Recent" ) );
72 fileHistory.UpdateClearText( openRecentMenu, _( "Clear Recent Files" ) );
73
74 fileMenu->Add( ACTIONS::doNew );
75 fileMenu->Add( ACTIONS::open );
76
77 wxMenuItem* item = fileMenu->Add( openRecentMenu->Clone() );
78
79 // Add the file menu condition here since it needs the item ID for the submenu
81 cond.Enable( FILE_HISTORY::FileHistoryNotEmpty( fileHistory ) );
82 RegisterUIUpdateHandler( item->GetId(), cond );
83 fileMenu->AppendSeparator();
84 }
85
86 fileMenu->Add( ACTIONS::save );
87
88 if( Kiface().IsSingle() )
89 fileMenu->Add( ACTIONS::saveAs );
90 else
92
93 fileMenu->Add( ACTIONS::revert );
94
95 fileMenu->AppendSeparator();
96
97 // Import submenu
98 ACTION_MENU* submenuImport = new ACTION_MENU( false, selTool );
99 submenuImport->SetTitle( _( "Import" ) );
100 submenuImport->SetIcon( BITMAPS::import );
101
102 submenuImport->Add( _( "Non-KiCad Schematic..." ),
103 _( "Replace current schematic sheet with one imported from another application" ),
105 BITMAPS::import_document );
106
108 _( "Footprint Assignments..." ) );
109 submenuImport->Add( EE_ACTIONS::importGraphics, ACTION_MENU::NORMAL, _( "Graphics..." ) );
110
111 fileMenu->Add( submenuImport );
112
113
114 // Export submenu
115 ACTION_MENU* submenuExport = new ACTION_MENU( false, selTool );
116 submenuExport->SetTitle( _( "Export" ) );
117 submenuExport->SetIcon( BITMAPS::export_file );
119 _( "Drawing to Clipboard" ) );
120 submenuExport->Add( EE_ACTIONS::exportNetlist, ACTION_MENU::NORMAL, _( "Netlist..." ) );
122 _( "Symbols to Library..." ) );
124 _( "Symbols to New Library..." ) );
125 fileMenu->Add( submenuExport );
126
127 fileMenu->AppendSeparator();
128 fileMenu->Add( EE_ACTIONS::schematicSetup );
129
130 fileMenu->AppendSeparator();
131 fileMenu->Add( ACTIONS::pageSettings );
132 fileMenu->Add( ACTIONS::print );
133 fileMenu->Add( ACTIONS::plot );
134
135 fileMenu->AppendSeparator();
136 fileMenu->AddQuitOrClose( &Kiface(), _( "Schematic Editor" ) );
137
138
139 //-- Edit menu -----------------------------------------------------------
140 //
141 ACTION_MENU* editMenu = new ACTION_MENU( false, selTool );
142
143 editMenu->Add( ACTIONS::undo );
144 editMenu->Add( ACTIONS::redo );
145
146 editMenu->AppendSeparator();
147 editMenu->Add( ACTIONS::cut );
148 editMenu->Add( ACTIONS::copy );
149 editMenu->Add( ACTIONS::copyAsText );
150 editMenu->Add( ACTIONS::paste );
151 editMenu->Add( ACTIONS::pasteSpecial );
152 editMenu->Add( ACTIONS::doDelete );
153
154 editMenu->AppendSeparator();
155 editMenu->Add( ACTIONS::selectAll );
156 editMenu->Add( ACTIONS::unselectAll );
157
158 editMenu->AppendSeparator();
159 editMenu->Add( ACTIONS::find );
160 editMenu->Add( ACTIONS::findAndReplace );
161
162 editMenu->AppendSeparator();
163 editMenu->Add( ACTIONS::deleteTool );
165 editMenu->Add( EE_ACTIONS::changeSymbols );
166 editMenu->Add( EE_ACTIONS::editPageNumber );
167
168 ACTION_MENU* submenuAttributes = new ACTION_MENU( false, selTool );
169 submenuAttributes->SetTitle( _( "Attributes" ) );
170
171 submenuAttributes->Add( EE_ACTIONS::setExcludeFromSimulation );
172 submenuAttributes->Add( EE_ACTIONS::unsetExcludeFromSimulation );
173 submenuAttributes->Add( EE_ACTIONS::toggleExcludeFromSimulation );
174
175 submenuAttributes->AppendSeparator();
176 submenuAttributes->Add( EE_ACTIONS::setExcludeFromBOM );
177 submenuAttributes->Add( EE_ACTIONS::unsetExcludeFromBOM );
178 submenuAttributes->Add( EE_ACTIONS::toggleExcludeFromBOM );
179
180 submenuAttributes->AppendSeparator();
181 submenuAttributes->Add( EE_ACTIONS::setExcludeFromBoard );
182 submenuAttributes->Add( EE_ACTIONS::unsetExcludeFromBoard );
183 submenuAttributes->Add( EE_ACTIONS::toggleExcludeFromBoard );
184
185 submenuAttributes->AppendSeparator();
186 submenuAttributes->Add( EE_ACTIONS::setDNP );
187 submenuAttributes->Add( EE_ACTIONS::unsetDNP );
188 submenuAttributes->Add( EE_ACTIONS::toggleDNP );
189
190 editMenu->Add( submenuAttributes );
191
192 //-- View menu -----------------------------------------------------------
193 //
194 ACTION_MENU* viewMenu = new ACTION_MENU( false, selTool );
195
196 // Show / Hide Panels submenu
197 ACTION_MENU* showHidePanels = new ACTION_MENU( false, selTool );
198 showHidePanels->SetTitle( _( "Panels" ) );
199
200 viewMenu->AppendSeparator();
202 showHidePanels->Add( ACTIONS::showSearch, ACTION_MENU::CHECK );
204
205 if( ADVANCED_CFG::GetCfg().m_IncrementalConnectivity )
207
208 if( ADVANCED_CFG::GetCfg().m_EnableDesignBlocks )
209 showHidePanels->Add( EE_ACTIONS::showDesignBlockPanel, ACTION_MENU::CHECK, _( "Design Blocks" ) );
210
211 viewMenu->Add( showHidePanels );
212
213 viewMenu->AppendSeparator();
214 viewMenu->Add( ACTIONS::showSymbolBrowser );
215
216 viewMenu->AppendSeparator();
217 viewMenu->Add( ACTIONS::zoomInCenter );
218 viewMenu->Add( ACTIONS::zoomOutCenter );
219 viewMenu->Add( ACTIONS::zoomFitScreen );
220 viewMenu->Add( ACTIONS::zoomFitObjects );
221 viewMenu->Add( ACTIONS::zoomTool );
222 viewMenu->Add( ACTIONS::zoomRedraw );
223
224 viewMenu->AppendSeparator();
225 viewMenu->Add( EE_ACTIONS::navigateBack );
226 viewMenu->Add( EE_ACTIONS::navigateUp );
227 viewMenu->Add( EE_ACTIONS::navigateForward );
229 viewMenu->Add( EE_ACTIONS::navigateNext );
230
231
232
233 viewMenu->AppendSeparator();
244
245#ifdef __APPLE__
246 viewMenu->AppendSeparator();
247#endif
248
249 //-- Place menu -----------------------------------------------------------
250 //
251 ACTION_MENU* placeMenu = new ACTION_MENU( false, selTool );
252
253 placeMenu->Add( EE_ACTIONS::placeSymbol );
254 placeMenu->Add( EE_ACTIONS::placePower );
255 placeMenu->Add( EE_ACTIONS::drawWire );
256 placeMenu->Add( EE_ACTIONS::drawBus );
258 placeMenu->Add( EE_ACTIONS::placeNoConnect );
259 placeMenu->Add( EE_ACTIONS::placeJunction );
260 placeMenu->Add( EE_ACTIONS::placeLabel );
261 placeMenu->Add( EE_ACTIONS::placeGlobalLabel );
262 placeMenu->Add( EE_ACTIONS::placeClassLabel );
263 placeMenu->Add( EE_ACTIONS::drawRuleArea );
264
265 placeMenu->AppendSeparator();
266 placeMenu->Add( EE_ACTIONS::placeHierLabel );
267 placeMenu->Add( EE_ACTIONS::drawSheet );
268 placeMenu->Add( EE_ACTIONS::placeSheetPin );
270 placeMenu->Add( EE_ACTIONS::importSheet );
271
272 placeMenu->AppendSeparator();
274 placeMenu->Add( EE_ACTIONS::drawTextBox );
275 placeMenu->Add( EE_ACTIONS::drawTable );
276 placeMenu->Add( EE_ACTIONS::drawRectangle );
277 placeMenu->Add( EE_ACTIONS::drawCircle );
278 placeMenu->Add( EE_ACTIONS::drawArc );
279 placeMenu->Add( EE_ACTIONS::drawBezier );
280 placeMenu->Add( EE_ACTIONS::drawLines );
281 placeMenu->Add( EE_ACTIONS::placeImage );
282
283
284 //-- Inspect menu -----------------------------------------------
285 //
286 ACTION_MENU* inspectMenu = new ACTION_MENU( false, selTool );
287
288 inspectMenu->Add( EE_ACTIONS::showBusSyntaxHelp );
289
290 inspectMenu->AppendSeparator();
291 inspectMenu->Add( EE_ACTIONS::runERC );
292 inspectMenu->Add( ACTIONS::prevMarker );
293 inspectMenu->Add( ACTIONS::nextMarker );
294 inspectMenu->Add( ACTIONS::excludeMarker );
295
296 inspectMenu->AppendSeparator();
297 inspectMenu->Add( EE_ACTIONS::diffSymbol );
298
299 inspectMenu->AppendSeparator();
300 inspectMenu->Add( EE_ACTIONS::showSimulator );
301
302
303 //-- Tools menu -----------------------------------------------
304 //
305 ACTION_MENU* toolsMenu = new ACTION_MENU( false, selTool );
306
307 wxMenuItem* update = toolsMenu->Add( ACTIONS::updatePcbFromSchematic );
308 update->Enable( !Kiface().IsSingle() );
309
310 toolsMenu->Add( EE_ACTIONS::showPcbNew );
311
312 if( !Kiface().IsSingle() )
313 toolsMenu->Add( ACTIONS::showProjectManager );
314
315 toolsMenu->AppendSeparator();
316 toolsMenu->Add( ACTIONS::showSymbolEditor );
317 toolsMenu->Add( EE_ACTIONS::updateSymbols );
318
319 toolsMenu->AppendSeparator();
320 toolsMenu->Add( EE_ACTIONS::rescueSymbols );
321 toolsMenu->Add( EE_ACTIONS::remapSymbols );
322
323 if( ADVANCED_CFG::GetCfg().m_ShowRepairSchematic )
324 toolsMenu->Add( EE_ACTIONS::repairSchematic );
325
326 toolsMenu->AppendSeparator();
327 toolsMenu->Add( EE_ACTIONS::editSymbolFields );
329
330 toolsMenu->AppendSeparator();
331 toolsMenu->Add( EE_ACTIONS::annotate );
333
334 toolsMenu->AppendSeparator();
335 toolsMenu->Add( EE_ACTIONS::assignFootprints );
336 toolsMenu->Add( EE_ACTIONS::generateBOM );
338
339 toolsMenu->AppendSeparator();
340 update = toolsMenu->Add( ACTIONS::updateSchematicFromPcb );
341 update->Enable( !Kiface().IsSingle() );
342
343#ifdef KICAD_IPC_API
344 toolsMenu->AppendSeparator();
345 toolsMenu->Add( ACTIONS::pluginsReload );
346#endif
347
348 //-- Preferences menu -----------------------------------------------
349 //
350 ACTION_MENU* prefsMenu = new ACTION_MENU( false, selTool );
351
352 prefsMenu->Add( ACTIONS::configurePaths );
353 prefsMenu->Add( ACTIONS::showSymbolLibTable );
354 if( ADVANCED_CFG::GetCfg().m_EnableDesignBlocks )
356 prefsMenu->Add( ACTIONS::openPreferences );
357
358 prefsMenu->AppendSeparator();
359 AddMenuLanguageList( prefsMenu, selTool );
360
361
362 //-- Menubar -------------------------------------------------------------
363 //
364 menuBar->Append( fileMenu, _( "&File" ) );
365 menuBar->Append( editMenu, _( "&Edit" ) );
366 menuBar->Append( viewMenu, _( "&View" ) );
367 menuBar->Append( placeMenu, _( "&Place" ) );
368 menuBar->Append( inspectMenu, _( "&Inspect" ) );
369 menuBar->Append( toolsMenu, _( "&Tools" ) );
370 menuBar->Append( prefsMenu, _( "P&references" ) );
371 AddStandardHelpMenu( menuBar );
372
373 SetMenuBar( menuBar );
374 delete oldMenuBar;
375}
376
377
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
Defines 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)
Function AddMenuLanguageList creates a menu list for language choice, and add it as submenu to Master...
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)
Adds 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:273
static TOOL_ACTION remapSymbols
Definition: ee_actions.h:176
static TOOL_ACTION unsetDNP
Definition: ee_actions.h:202
static TOOL_ACTION runERC
Inspection and Editing.
Definition: ee_actions.h:156
static TOOL_ACTION toggleExcludeFromSimulation
Definition: ee_actions.h:197
static TOOL_ACTION unsetExcludeFromSimulation
Definition: ee_actions.h:196
static TOOL_ACTION toggleHiddenPins
Definition: ee_actions.h:247
static TOOL_ACTION setExcludeFromBoard
Definition: ee_actions.h:198
static TOOL_ACTION drawTable
Definition: ee_actions.h:104
static TOOL_ACTION syncAllSheetsPins
Definition: ee_actions.h:101
static TOOL_ACTION toggleExcludeFromBoard
Definition: ee_actions.h:200
static TOOL_ACTION navigateForward
Definition: ee_actions.h:235
static TOOL_ACTION setDNP
Definition: ee_actions.h:201
static TOOL_ACTION placeSymbol
Definition: ee_actions.h:79
static TOOL_ACTION navigateBack
Definition: ee_actions.h:236
static TOOL_ACTION toggleERCWarnings
Definition: ee_actions.h:252
static TOOL_ACTION drawRuleArea
Definition: ee_actions.h:113
static TOOL_ACTION toggleERCExclusions
Definition: ee_actions.h:254
static TOOL_ACTION placeClassLabel
Definition: ee_actions.h:90
static TOOL_ACTION drawWire
Definition: ee_actions.h:83
static TOOL_ACTION toggleExcludeFromBOM
Definition: ee_actions.h:194
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:253
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:257
static TOOL_ACTION showSimulator
Definition: ee_actions.h:295
static TOOL_ACTION exportNetlist
Definition: ee_actions.h:183
static TOOL_ACTION assignFootprints
Definition: ee_actions.h:167
static TOOL_ACTION unsetExcludeFromBOM
Definition: ee_actions.h:193
static TOOL_ACTION togglePinAltIcons
Definition: ee_actions.h:258
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:269
static TOOL_ACTION toggleHiddenFields
Definition: ee_actions.h:248
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:268
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:312
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:251
static TOOL_ACTION updateSymbols
Definition: ee_actions.h:164
static TOOL_ACTION showHierarchy
Definition: ee_actions.h:239
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:256
static TOOL_ACTION changeSymbols
Definition: ee_actions.h:163
static TOOL_ACTION setExcludeFromSimulation
Definition: ee_actions.h:195
static TOOL_ACTION unsetExcludeFromBoard
Definition: ee_actions.h:199
static TOOL_ACTION showDesignBlockPanel
Definition: ee_actions.h:206
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:255
static TOOL_ACTION navigateNext
Definition: ee_actions.h:238
static TOOL_ACTION navigateUp
Definition: ee_actions.h:234
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:244
static TOOL_ACTION showPcbNew
Definition: ee_actions.h:181
static TOOL_ACTION placeBusWireEntry
Definition: ee_actions.h:88
static TOOL_ACTION toggleDNP
Definition: ee_actions.h:203
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:237
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:167
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)