kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #05005
Show exists hotkeys in eeschema menubar ("Place menu") -- patch
For easier remember hotkeys and know about new hotkey, I think
hotkey shortcut must be show in menus -- like "Open Ctrl-O".
Regards,
--
Yury Khalyavin
=== modified file eeschema/menubar.cpp
--- eeschema/menubar.cpp 2010-06-30 11:15:34 +0000
+++ eeschema/menubar.cpp 2010-07-20 12:06:28 +0000
@@ -260,7 +260,9 @@
wxMenu* placeMenu = new wxMenu;
/* Component */
- item = new wxMenuItem( placeMenu, ID_COMPONENT_BUTT, _( "&Component" ),
+ text = AddHotkeyName( _( "&Component" ), s_Schematic_Hokeys_Descr,
+ HK_ADD_NEW_COMPONENT);
+ item = new wxMenuItem( placeMenu, ID_COMPONENT_BUTT, text,
HELP_PLACE_COMPONENTS, wxITEM_NORMAL );
item->SetBitmap( add_component_xpm );
placeMenu->Append( item );
@@ -272,7 +274,9 @@
placeMenu->Append( item );
/* Wire */
- item = new wxMenuItem( placeMenu, ID_WIRE_BUTT, _( "&Wire" ),
+ text = AddHotkeyName( _( "&Wire" ), s_Schematic_Hokeys_Descr,
+ HK_BEGIN_WIRE);
+ item = new wxMenuItem( placeMenu, ID_WIRE_BUTT, text,
HELP_PLACE_WIRE, wxITEM_NORMAL );
item->SetBitmap( add_line_xpm );
placeMenu->Append( item );
@@ -298,13 +302,17 @@
placeMenu->Append( item );
/* No connect flag */
- item = new wxMenuItem( placeMenu, ID_NOCONN_BUTT, _( "No connect flag" ),
+ text = AddHotkeyName( _( "No connect flag" ), s_Schematic_Hokeys_Descr,
+ HK_ADD_NOCONN_FLAG);
+ item = new wxMenuItem( placeMenu, ID_NOCONN_BUTT, text,
HELP_PLACE_NC_FLAG, wxITEM_NORMAL );
item->SetBitmap( noconn_button );
placeMenu->Append( item );
/* Net name */
- item = new wxMenuItem( placeMenu, ID_LABEL_BUTT, _( "Label" ),
+ text = AddHotkeyName( _( "Label" ), s_Schematic_Hokeys_Descr,
+ HK_ADD_LABEL);
+ item = new wxMenuItem( placeMenu, ID_LABEL_BUTT, text,
HELP_PLACE_NETLABEL, wxITEM_NORMAL );
item->SetBitmap( add_line_label_xpm );
placeMenu->Append( item );
Follow ups