kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #04982
Libedit: fields edit/rotate hotkeys patch
Hello everyone,
This patch add to "Component Library Editor" rorate/edit (R, E) hotkey
features for Fields type like a eeschema.
Regards,
Yury
=== modified file 'eeschema/libedit_onrightclick.cpp'
--- eeschema/libedit_onrightclick.cpp 2010-03-04 09:32:51 +0000
+++ eeschema/libedit_onrightclick.cpp 2010-07-19 05:57:08 +0000
@@ -249,10 +249,14 @@
ADD_MENUITEM( PopMenu, ID_POPUP_LIBEDIT_MOVE_ITEM_REQUEST,
msg, move_field_xpm );
}
+ msg = AddHotkeyName( _( "Field Edit " ),
s_Libedit_Hokeys_Descr,
+ HK_EDIT );
+ ADD_MENUITEM( PopMenu, ID_POPUP_LIBEDIT_FIELD_EDIT_ITEM,
+ msg, rotate_field_xpm );
+ msg = AddHotkeyName( _( "Field Rotate " ),
s_Libedit_Hokeys_Descr,
+ HK_ROTATE );
ADD_MENUITEM( PopMenu, ID_POPUP_LIBEDIT_FIELD_ROTATE_ITEM,
- _( "Field Rotate" ), rotate_field_xpm );
- ADD_MENUITEM( PopMenu, ID_POPUP_LIBEDIT_FIELD_EDIT_ITEM,
- _( "Field Edit" ), edit_text_xpm );
+ msg, rotate_field_xpm );
break;
=== modified file 'eeschema/hotkeys.cpp'
--- eeschema/hotkeys.cpp 2010-03-24 18:26:04 +0000
+++ eeschema/hotkeys.cpp 2010-07-19 05:36:21 +0000
@@ -144,6 +144,10 @@
static Ki_HotkeyInfo HkFindNextDrcMarker( wxT( "Find next DRC marker"
), HK_FIND_NEXT_DRC_MARKER,
WXK_F5 + GR_KB_SHIFT );
@@ -788,6 +804,11 @@
GetEventHandler()->ProcessEvent( cmd );
break;
+ case COMPONENT_FIELD_DRAW_TYPE:
+ cmd.SetId( ID_POPUP_LIBEDIT_FIELD_EDIT_ITEM );
+ GetEventHandler()->ProcessEvent( cmd );
+ break;
+
default:
break;
}
@@ -811,6 +832,11 @@
GetEventHandler()->ProcessEvent( cmd );
break;
+ case COMPONENT_FIELD_DRAW_TYPE:
+ cmd.SetId( ID_POPUP_LIBEDIT_FIELD_ROTATE_ITEM );
+ GetEventHandler()->ProcessEvent( cmd );
+ break;
+
default:
break;
}
--
This message was sent from Launchpad by the user
Yury Khalyavin (https://launchpad.net/~snufrick)
using the "Contact this team" link on the KiCad Developers team page.
For more information see
https://help.launchpad.net/YourAccount/ContactingPeople