KiCad PCB EDA Suite
eeschema/menubar.cpp File Reference
#include <kiface_i.h>
#include <menus_helpers.h>
#include <pgm_base.h>
#include <tool/conditional_menu.h>
#include <tool/tool_manager.h>
#include <tools/ee_selection_tool.h>
#include <tools/ee_actions.h>
#include "eeschema_id.h"
#include "general.h"
#include "help_common_strings.h"
#include "ee_hotkeys.h"
#include "sch_edit_frame.h"

Go to the source code of this file.

Functions

static void prepareFilesMenu (wxMenu *aParentMenu, bool aIsOutsideProject)
 
static void prepareInspectMenu (wxMenu *aParentMenu)
 
static void prepareToolsMenu (wxMenu *aParentMenu)
 
static void prepareHelpMenu (wxMenu *aParentMenu)
 
static void prepareEditMenu (wxMenu *aParentMenu)
 
static void preparePreferencesMenu (SCH_EDIT_FRAME *aFrame, wxMenu *aParentMenu)
 

Function Documentation

◆ prepareEditMenu()

void prepareEditMenu ( wxMenu *  aParentMenu)
static

Definition at line 324 of file eeschema/menubar.cpp.

325 {
326  wxString text;
327 
328  // Undo
329  text = AddHotkeyName( _( "&Undo" ), g_Schematic_Hotkeys_Descr, HK_UNDO );
330 
331  AddMenuItem( aParentMenu, wxID_UNDO, text, HELP_UNDO, KiBitmap( undo_xpm ) );
332 
333  // Redo
334  text = AddHotkeyName( _( "&Redo" ), g_Schematic_Hotkeys_Descr, HK_REDO );
335 
336  AddMenuItem( aParentMenu, wxID_REDO, text, HELP_REDO, KiBitmap( redo_xpm ) );
337 
338  aParentMenu->AppendSeparator();
339 
340  text = AddHotkeyName( _( "&Cut" ), g_Schematic_Hotkeys_Descr, HK_EDIT_CUT );
341  AddMenuItem( aParentMenu, wxID_CUT, text,
342  _( "Cuts the selected item(s) to the Clipboard" ),
343  KiBitmap( cut_xpm ) );
344 
345  text = AddHotkeyName( _( "&Copy" ), g_Schematic_Hotkeys_Descr, HK_EDIT_COPY );
346  AddMenuItem( aParentMenu, wxID_COPY, text,
347  _( "Copies the selected item(s) to the Clipboard" ),
348  KiBitmap( copy_xpm ) );
349 
350  text = AddHotkeyName( _( "&Paste" ), g_Schematic_Hotkeys_Descr, HK_EDIT_PASTE );
351  AddMenuItem( aParentMenu, wxID_PASTE, text,
352  _( "Pastes item(s) from the Clipboard" ),
353  KiBitmap( paste_xpm ) );
354 
355  // Delete
356  aParentMenu->AppendSeparator();
357  AddMenuItem( aParentMenu, ID_DELETE_TOOL,
358  _( "&Delete Tool" ), HELP_DELETE_ITEMS,
359  KiBitmap( delete_xpm ) );
360 
361  // Find
362  aParentMenu->AppendSeparator();
363  text = AddHotkeyName( _( "&Find..." ), g_Schematic_Hotkeys_Descr, HK_FIND_ITEM );
364  AddMenuItem( aParentMenu, ID_FIND_ITEMS, text, HELP_FIND, KiBitmap( find_xpm ) );
365 
366  // Find/Replace
367  text = AddHotkeyName( _( "Find and Re&place..." ), g_Schematic_Hotkeys_Descr,
368  HK_FIND_REPLACE );
369  AddMenuItem( aParentMenu, wxID_REPLACE, text, HELP_REPLACE,
370  KiBitmap( find_replace_xpm ) );
371 
372  aParentMenu->AppendSeparator();
373 
374  // Update field values
375  AddMenuItem( aParentMenu, ID_UPDATE_FIELDS,
376  _( "Update Fields from Library..." ),
377  _( "Sets symbol fields to original library values" ),
378  KiBitmap( update_fields_xpm ) );
379 }
wxMenuItem * AddMenuItem(wxMenu *aMenu, int aId, const wxString &aText, const wxBitmap &aImage, wxItemKind aType=wxITEM_NORMAL)
Function AddMenuItem is an inline helper function to create and insert a menu item with an icon into ...
Definition: bitmap.cpp:251
wxBitmap KiBitmap(BITMAP_DEF aBitmap)
Construct a wxBitmap from a memory record, held in a BITMAP_DEF.
Definition: bitmap.cpp:79
#define HELP_REPLACE
#define HELP_REDO
wxString AddHotkeyName(const wxString &aText, EDA_HOTKEY **aList, int aCommandId, HOTKEY_ACTION_TYPE aShortCutType)
Function AddHotkeyName Add the key name from the Command id value ( m_Idcommand member value)
struct EDA_HOTKEY_CONFIG g_Schematic_Hotkeys_Descr[]
Definition: ee_hotkeys.cpp:398
#define HELP_UNDO
These strings are used in menus and tools, that do the same command But they are internationalized,...
#define HELP_FIND
#define HELP_DELETE_ITEMS

References AddHotkeyName(), AddMenuItem(), g_Schematic_Hotkeys_Descr, HELP_DELETE_ITEMS, HELP_FIND, HELP_REDO, HELP_REPLACE, HELP_UNDO, HK_EDIT_COPY, HK_EDIT_CUT, HK_EDIT_PASTE, HK_FIND_ITEM, HK_FIND_REPLACE, HK_REDO, HK_UNDO, ID_DELETE_TOOL, ID_FIND_ITEMS, ID_UPDATE_FIELDS, and KiBitmap().

Referenced by SCH_EDIT_FRAME::ReCreateMenuBar().

◆ prepareFilesMenu()

void prepareFilesMenu ( wxMenu *  aParentMenu,
bool  aIsOutsideProject 
)
static

Definition at line 209 of file eeschema/menubar.cpp.

210 {
211  wxString text;
212 
213  // @todo: static probably not OK in multiple open projects.
214  // Open Recent submenu
215  static wxMenu* openRecentMenu;
216 
217  // Add this menu to list menu managed by m_fileHistory
218  // (the file history will be updated when adding/removing files in history
219  if( openRecentMenu )
220  Kiface().GetFileHistory().RemoveMenu( openRecentMenu );
221 
222  openRecentMenu = new wxMenu();
223 
224  Kiface().GetFileHistory().UseMenu( openRecentMenu );
225  Kiface().GetFileHistory().AddFilesToMenu( openRecentMenu );
226 
227  if( aIsOutsideProject ) // not when under a project mgr
228  {
229  text = AddHotkeyName( _( "&New..." ), g_Schematic_Hotkeys_Descr, HK_NEW );
230  AddMenuItem( aParentMenu, ID_NEW_PROJECT, text,
231  _( "Start new schematic root sheet" ),
232  KiBitmap( new_document_xpm ) );
233 
234  text = AddHotkeyName( _( "&Open..." ), g_Schematic_Hotkeys_Descr, HK_OPEN );
235  AddMenuItem( aParentMenu, ID_LOAD_PROJECT, text,
236  _( "Open existing schematic" ),
237  KiBitmap( open_document_xpm ) );
238 
239  AddMenuItem( aParentMenu, openRecentMenu, -1, _( "Open &Recent" ),
240  _( "Open recently opened schematic" ),
241  KiBitmap( recent_xpm ) );
242 
243  aParentMenu->AppendSeparator();
244  }
245 
246  text = AddHotkeyName( _( "&Save" ), g_Schematic_Hotkeys_Descr, HK_SAVE );
247  AddMenuItem( aParentMenu, ID_SAVE_PROJECT, text,
248  _( "Save changes" ),
249  KiBitmap( save_xpm ) );
250 
251  AddMenuItem( aParentMenu, ID_UPDATE_ONE_SHEET, _( "Save &Current Sheet" ),
252  _( "Save only the current sheet" ),
253  KiBitmap( save_xpm ) );
254 
255  text = AddHotkeyName( _( "Save C&urrent Sheet As..." ), g_Schematic_Hotkeys_Descr, HK_SAVEAS );
256  AddMenuItem( aParentMenu, ID_SAVE_ONE_SHEET_UNDER_NEW_NAME, text,
257  _( "Save a copy of the current sheet" ),
258  KiBitmap( save_as_xpm ) );
259 
260  aParentMenu->AppendSeparator();
261 
262  AddMenuItem( aParentMenu, ID_APPEND_PROJECT, _( "App&end Schematic Sheet Content..." ),
263  _( "Append schematic sheet content from another project to the current sheet" ),
264  KiBitmap( add_document_xpm ) );
265 
266  AddMenuItem( aParentMenu, ID_IMPORT_NON_KICAD_SCH, _( "&Import Non KiCad Schematic..." ),
267  _( "Replace current schematic sheet with one imported from another application" ),
268  KiBitmap( import_document_xpm ) ); // TODO needs a different icon
269 
270  aParentMenu->AppendSeparator();
271 
272  // Import submenu
273  wxMenu* submenuImport = new wxMenu();
274 
275  AddMenuItem( submenuImport, ID_BACKANNO_ITEMS, _( "&Footprint Association File..." ),
277  KiBitmap( import_footprint_names_xpm ) );
278 
279  AddMenuItem( aParentMenu, submenuImport, ID_GEN_IMPORT_FILE, _( "&Import" ),
280  _( "Import files" ),
281  KiBitmap( import_xpm ) );
282 
283 
284  // Export submenu
285  wxMenu* submenuExport = new wxMenu();
286 
287  AddMenuItem( submenuExport, ID_GEN_COPY_SHEET_TO_CLIPBOARD, _( "Drawing to C&lipboard" ),
288  _( "Export drawings to clipboard" ),
289  KiBitmap( copy_xpm ) );
290 
291  AddMenuItem( submenuExport, ID_GET_NETLIST, _( "&Netlist..." ),
292  _( "Export netlist file" ),
293  KiBitmap( netlist_xpm ) );
294 
295  AddMenuItem( aParentMenu, submenuExport, ID_GEN_EXPORT_FILE, _( "E&xport" ),
296  _( "Export files" ),
297  KiBitmap( export_xpm ) );
298 
299  aParentMenu->AppendSeparator();
300 
301  // Edit page layout:
302  AddMenuItem( aParentMenu, ID_SHEET_SET, _( "Page S&ettings..." ),
303  _( "Settings for sheet size and frame references" ),
304  KiBitmap( sheetset_xpm ) );
305 
306  text = AddHotkeyName( _( "&Print..." ), g_Schematic_Hotkeys_Descr, HK_PRINT );
307  AddMenuItem( aParentMenu, wxID_PRINT, text,
308  _( "Print schematic sheet" ),
309  KiBitmap( print_button_xpm ) );
310 
311  AddMenuItem( aParentMenu, ID_GEN_PLOT_SCHEMATIC, _( "P&lot..." ),
312  _( "Plot schematic sheet in PostScript, PDF, SVG, DXF or HPGL format" ),
313  KiBitmap( plot_xpm ) );
314 
315  aParentMenu->AppendSeparator();
316 
317  // Quit
318  AddMenuItem( aParentMenu, wxID_EXIT, _( "&Exit" ),
319  _( "Close Eeschema" ),
320  KiBitmap( exit_xpm ) );
321 }
wxMenuItem * AddMenuItem(wxMenu *aMenu, int aId, const wxString &aText, const wxBitmap &aImage, wxItemKind aType=wxITEM_NORMAL)
Function AddMenuItem is an inline helper function to create and insert a menu item with an icon into ...
Definition: bitmap.cpp:251
KIFACE_I & Kiface()
Global KIFACE_I "get" accessor.
Definition: kicad.cpp:52
wxBitmap KiBitmap(BITMAP_DEF aBitmap)
Construct a wxBitmap from a memory record, held in a BITMAP_DEF.
Definition: bitmap.cpp:79
#define HELP_IMPORT_FOOTPRINTS
wxString AddHotkeyName(const wxString &aText, EDA_HOTKEY **aList, int aCommandId, HOTKEY_ACTION_TYPE aShortCutType)
Function AddHotkeyName Add the key name from the Command id value ( m_Idcommand member value)
struct EDA_HOTKEY_CONFIG g_Schematic_Hotkeys_Descr[]
Definition: ee_hotkeys.cpp:398
FILE_HISTORY & GetFileHistory()
Definition: kiface_i.h:123

References AddHotkeyName(), AddMenuItem(), g_Schematic_Hotkeys_Descr, KIFACE_I::GetFileHistory(), HELP_IMPORT_FOOTPRINTS, HK_NEW, HK_OPEN, HK_PRINT, HK_SAVE, HK_SAVEAS, ID_APPEND_PROJECT, ID_BACKANNO_ITEMS, ID_GEN_COPY_SHEET_TO_CLIPBOARD, ID_GEN_EXPORT_FILE, ID_GEN_IMPORT_FILE, ID_GEN_PLOT_SCHEMATIC, ID_GET_NETLIST, ID_IMPORT_NON_KICAD_SCH, ID_LOAD_PROJECT, ID_NEW_PROJECT, ID_SAVE_ONE_SHEET_UNDER_NEW_NAME, ID_SAVE_PROJECT, ID_SHEET_SET, ID_UPDATE_ONE_SHEET, KiBitmap(), and Kiface().

Referenced by SCH_EDIT_FRAME::ReCreateMenuBar().

◆ prepareHelpMenu()

void prepareHelpMenu ( wxMenu *  aParentMenu)
static

Definition at line 465 of file eeschema/menubar.cpp.

466 {
467  AddMenuItem( aParentMenu, wxID_HELP, _( "Eeschema &Manual" ),
468  _( "Open Eeschema Manual" ),
469  KiBitmap( online_help_xpm ) );
470 
471  AddMenuItem( aParentMenu, wxID_INDEX, _( "&Getting Started in KiCad" ),
472  _( "Open \"Getting Started in KiCad\" guide for beginners" ),
473  KiBitmap( help_xpm ) );
474 
475  wxString text = AddHotkeyName( _( "&List Hotkeys..." ), g_Eeschema_Hotkeys_Descr, HK_HELP );
477  _( "Displays current hotkeys table and corresponding commands" ),
478  KiBitmap( hotkeys_xpm ) );
479 
480  aParentMenu->AppendSeparator();
481  AddMenuItem( aParentMenu, ID_HELP_GET_INVOLVED, _( "Get &Involved" ),
482  _( "Contribute to KiCad (opens a web browser)" ),
483  KiBitmap( info_xpm ) );
484 
485  aParentMenu->AppendSeparator();
486  AddMenuItem( aParentMenu, wxID_ABOUT, _( "&About KiCad" ), KiBitmap( about_xpm ) );
487 }
wxMenuItem * AddMenuItem(wxMenu *aMenu, int aId, const wxString &aText, const wxBitmap &aImage, wxItemKind aType=wxITEM_NORMAL)
Function AddMenuItem is an inline helper function to create and insert a menu item with an icon into ...
Definition: bitmap.cpp:251
struct EDA_HOTKEY_CONFIG g_Eeschema_Hotkeys_Descr[]
Definition: ee_hotkeys.cpp:388
wxBitmap KiBitmap(BITMAP_DEF aBitmap)
Construct a wxBitmap from a memory record, held in a BITMAP_DEF.
Definition: bitmap.cpp:79
wxString AddHotkeyName(const wxString &aText, EDA_HOTKEY **aList, int aCommandId, HOTKEY_ACTION_TYPE aShortCutType)
Function AddHotkeyName Add the key name from the Command id value ( m_Idcommand member value)

References AddHotkeyName(), AddMenuItem(), g_Eeschema_Hotkeys_Descr, HK_HELP, ID_HELP_GET_INVOLVED, ID_PREFERENCES_HOTKEY_SHOW_CURRENT_LIST, and KiBitmap().

Referenced by SCH_EDIT_FRAME::ReCreateMenuBar().

◆ prepareInspectMenu()

void prepareInspectMenu ( wxMenu *  aParentMenu)
static

Definition at line 382 of file eeschema/menubar.cpp.

383 {
384  AddMenuItem( aParentMenu, ID_GET_ERC,
385  _( "Electrical Rules &Checker" ),
386  _( "Perform electrical rules check" ),
387  KiBitmap( erc_xpm ) );
388 }
wxMenuItem * AddMenuItem(wxMenu *aMenu, int aId, const wxString &aText, const wxBitmap &aImage, wxItemKind aType=wxITEM_NORMAL)
Function AddMenuItem is an inline helper function to create and insert a menu item with an icon into ...
Definition: bitmap.cpp:251
wxBitmap KiBitmap(BITMAP_DEF aBitmap)
Construct a wxBitmap from a memory record, held in a BITMAP_DEF.
Definition: bitmap.cpp:79

References AddMenuItem(), ID_GET_ERC, and KiBitmap().

Referenced by SCH_EDIT_FRAME::ReCreateMenuBar().

◆ preparePreferencesMenu()

static void preparePreferencesMenu ( SCH_EDIT_FRAME aFrame,
wxMenu *  aParentMenu 
)
static

Definition at line 490 of file eeschema/menubar.cpp.

491 {
492  // Path configuration edit dialog.
493  AddMenuItem( aParentMenu, ID_PREFERENCES_CONFIGURE_PATHS, _( "Configure Pa&ths..." ),
494  _( "Edit path configuration environment variables" ),
495  KiBitmap( path_xpm ) );
496 
497  // Library
498  AddMenuItem( aParentMenu, ID_EDIT_SYM_LIB_TABLE, _( "Manage Symbol Libraries..." ),
499  _( "Edit the global and project symbol library lists" ),
500  KiBitmap( library_table_xpm ) );
501 
502  // Options (Preferences on WXMAC)
503  wxString text = AddHotkeyName( _( "&Preferences..." ), g_Eeschema_Hotkeys_Descr, HK_PREFERENCES );
504  AddMenuItem( aParentMenu, wxID_PREFERENCES, text,
505  _( "Show preferences for all open tools" ),
506  KiBitmap( preference_xpm ) );
507 
508  aParentMenu->AppendSeparator();
509 
510  // Language submenu
511  Pgm().AddMenuLanguageList( aParentMenu );
512 
513  aParentMenu->AppendSeparator();
514 
515  text = AddHotkeyName( _( "Modern Toolset (&Accelerated)" ), g_Eeschema_Hotkeys_Descr,
517  AddMenuItem( aParentMenu, ID_MENU_CANVAS_OPENGL, text,
518  _( "Use Modern Toolset with hardware-accelerated graphics (recommended)" ),
519  KiBitmap( tools_xpm ), wxITEM_RADIO );
520 
521  text = AddHotkeyName( _( "Modern Toolset (Fallba&ck)" ), g_Eeschema_Hotkeys_Descr,
522  HK_CANVAS_CAIRO );
523  AddMenuItem( aParentMenu, ID_MENU_CANVAS_CAIRO, text,
524  _( "Use Modern Toolset with software graphics (fall-back)" ),
525  KiBitmap( tools_xpm ), wxITEM_RADIO );
526 
527  aParentMenu->AppendSeparator();
528 
529  // Import/export
530  AddMenuItem( aParentMenu, ID_CONFIG_SAVE, _( "&Save Project File..." ),
531  _( "Save project preferences into a project file" ),
532  KiBitmap( save_setup_xpm ) );
533 
534  AddMenuItem( aParentMenu, ID_CONFIG_READ, _( "Load P&roject File..." ),
535  _( "Load project preferences from a project file" ),
536  KiBitmap( import_setup_xpm ) );
537 }
wxMenuItem * AddMenuItem(wxMenu *aMenu, int aId, const wxString &aText, const wxBitmap &aImage, wxItemKind aType=wxITEM_NORMAL)
Function AddMenuItem is an inline helper function to create and insert a menu item with an icon into ...
Definition: bitmap.cpp:251
PGM_BASE & Pgm()
The global Program "get" accessor.
Definition: kicad.cpp:66
struct EDA_HOTKEY_CONFIG g_Eeschema_Hotkeys_Descr[]
Definition: ee_hotkeys.cpp:388
wxBitmap KiBitmap(BITMAP_DEF aBitmap)
Construct a wxBitmap from a memory record, held in a BITMAP_DEF.
Definition: bitmap.cpp:79
wxString AddHotkeyName(const wxString &aText, EDA_HOTKEY **aList, int aCommandId, HOTKEY_ACTION_TYPE aShortCutType)
Function AddHotkeyName Add the key name from the Command id value ( m_Idcommand member value)
VTBL_ENTRY void AddMenuLanguageList(wxMenu *MasterMenu)
Function AddMenuLanguageList creates a menu list for language choice, and add it as submenu to Master...
Definition: pgm_base.cpp:815

References AddHotkeyName(), AddMenuItem(), PGM_BASE::AddMenuLanguageList(), g_Eeschema_Hotkeys_Descr, HK_CANVAS_CAIRO, HK_CANVAS_OPENGL, HK_PREFERENCES, ID_CONFIG_READ, ID_CONFIG_SAVE, ID_EDIT_SYM_LIB_TABLE, ID_MENU_CANVAS_CAIRO, ID_MENU_CANVAS_OPENGL, ID_PREFERENCES_CONFIGURE_PATHS, KiBitmap(), and Pgm().

Referenced by SCH_EDIT_FRAME::ReCreateMenuBar().

◆ prepareToolsMenu()

void prepareToolsMenu ( wxMenu *  aParentMenu)
static

Definition at line 391 of file eeschema/menubar.cpp.

392 {
393  wxString text;
394 
395  text = AddHotkeyName( _( "Update PCB from Schematic..." ), g_Schematic_Hotkeys_Descr,
397 
398  AddMenuItem( aParentMenu,
400  text, _( "Update PCB design with current schematic." ),
401  KiBitmap( update_pcb_from_sch_xpm ) );
402 
403  // Run Pcbnew
404  AddMenuItem( aParentMenu, ID_RUN_PCB, _( "&Open PCB Editor" ),
405  _( "Run Pcbnew" ),
406  KiBitmap( pcbnew_xpm ) );
407 
408  aParentMenu->AppendSeparator();
409 
410  AddMenuItem( aParentMenu, ID_RUN_LIBRARY, _( "Symbol Library &Editor" ),
412  KiBitmap( libedit_xpm ) );
413 
414  AddMenuItem( aParentMenu, ID_RESCUE_CACHED, _( "&Rescue Symbols..." ),
415  _( "Find old symbols in project and rename/rescue them" ),
416  KiBitmap( rescue_xpm ) );
417 
418  AddMenuItem( aParentMenu, ID_REMAP_SYMBOLS, _( "Remap S&ymbols..." ),
419  _( "Remap legacy library symbols to symbol library table" ),
420  KiBitmap( rescue_xpm ) );
421 
422  aParentMenu->AppendSeparator();
423 
424  AddMenuItem( aParentMenu, ID_OPEN_CMP_TABLE, _( "Edit Symbol Field&s..." ),
425  KiBitmap( spreadsheet_xpm ) );
426 
428  _( "Edit Symbol &Library References..." ),
429  _( "Edit links between schematic symbols and library symbols" ),
430  KiBitmap( edit_cmp_symb_links_xpm ) );
431 
432  aParentMenu->AppendSeparator();
433 
434  AddMenuItem( aParentMenu, ID_GET_ANNOTATE, _( "&Annotate Schematic..." ),
436  KiBitmap( annotate_xpm ) );
437 
438  AddMenuItem( aParentMenu, ID_BUS_MANAGER, _( "Bus &Definitions..." ),
440  KiBitmap( bus_definition_tool_xpm ) );
441 
442  aParentMenu->AppendSeparator();
443 
444  // Run CvPcb
445  AddMenuItem( aParentMenu, ID_RUN_CVPCB, _( "A&ssign Footprints..." ),
446  _( "Assign PCB footprints to schematic symbols" ),
447  KiBitmap( cvpcb_xpm ) );
448 
449  AddMenuItem( aParentMenu, ID_GET_TOOLS, _( "Generate Bill of &Materials..." ),
451  KiBitmap( bom_xpm ) );
452 
453  aParentMenu->AppendSeparator();
454 
455 #ifdef KICAD_SPICE
456  // Simulator
457  AddMenuItem( aParentMenu, ID_SIM_SHOW, _("Simula&tor"),
458  _( "Simulate circuit" ),
459  KiBitmap( simulator_xpm ) );
460 #endif /* KICAD_SPICE */
461 
462 }
wxMenuItem * AddMenuItem(wxMenu *aMenu, int aId, const wxString &aText, const wxBitmap &aImage, wxItemKind aType=wxITEM_NORMAL)
Function AddMenuItem is an inline helper function to create and insert a menu item with an icon into ...
Definition: bitmap.cpp:251
Definition: id.h:66
wxBitmap KiBitmap(BITMAP_DEF aBitmap)
Construct a wxBitmap from a memory record, held in a BITMAP_DEF.
Definition: bitmap.cpp:79
wxString AddHotkeyName(const wxString &aText, EDA_HOTKEY **aList, int aCommandId, HOTKEY_ACTION_TYPE aShortCutType)
Function AddHotkeyName Add the key name from the Command id value ( m_Idcommand member value)
struct EDA_HOTKEY_CONFIG g_Schematic_Hotkeys_Descr[]
Definition: ee_hotkeys.cpp:398
#define HELP_RUN_LIB_EDITOR
#define HELP_BUS_MANAGER
#define HELP_GENERATE_BOM
#define HELP_ANNOTATE

References AddHotkeyName(), AddMenuItem(), g_Schematic_Hotkeys_Descr, HELP_ANNOTATE, HELP_BUS_MANAGER, HELP_GENERATE_BOM, HELP_RUN_LIB_EDITOR, HK_UPDATE_PCB_FROM_SCH, ID_BUS_MANAGER, ID_EDIT_COMPONENTS_TO_SYMBOLS_LIB_ID, ID_GET_ANNOTATE, ID_GET_TOOLS, ID_OPEN_CMP_TABLE, ID_REMAP_SYMBOLS, ID_RESCUE_CACHED, ID_RUN_CVPCB, ID_RUN_LIBRARY, ID_RUN_PCB, ID_SIM_SHOW, ID_UPDATE_PCB_FROM_SCH, and KiBitmap().

Referenced by SCH_EDIT_FRAME::ReCreateMenuBar().