Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
16c404ac
Commit
16c404ac
authored
Aug 17, 2010
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: hot key move in board editor: minor fixes and enhancements
parent
199ad641
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 deletions
+18
-8
hotkeys.cpp
pcbnew/hotkeys.cpp
+16
-7
onrightclick.cpp
pcbnew/onrightclick.cpp
+2
-1
No files found.
pcbnew/hotkeys.cpp
View file @
16c404ac
...
...
@@ -765,22 +765,29 @@ bool WinEDA_PcbFrame::OnHotkeyMoveItem( int aIdCommand )
break
;
case
TYPE_TEXTE
:
if
(
aIdCommand
==
HK_MOVE_ITEM
)
evt_type
=
ID_POPUP_PCB_MOVE_TEXTEPCB_REQUEST
;
break
;
case
TYPE_MIRE
:
if
(
aIdCommand
==
HK_MOVE_ITEM
)
evt_type
=
ID_POPUP_PCB_MOVE_MIRE_REQUEST
;
break
;
case
TYPE_ZONE_CONTAINER
:
if
(
aIdCommand
==
HK_MOVE_ITEM
)
evt_type
=
ID_POPUP_PCB_MOVE_ZONE_OUTLINES
;
if
(
aIdCommand
==
HK_DRAG_ITEM
)
evt_type
=
ID_POPUP_PCB_DRAG_ZONE_OUTLINE_SEGMENT
;
break
;
case
TYPE_TEXTE_MODULE
:
if
(
aIdCommand
==
HK_MOVE_ITEM
)
evt_type
=
ID_POPUP_PCB_MOVE_TEXTMODULE_REQUEST
;
break
;
case
TYPE_DRAWSEGMENT
:
if
(
aIdCommand
==
HK_MOVE_ITEM
)
evt_type
=
ID_POPUP_PCB_MOVE_DRAWING_REQUEST
;
break
;
...
...
@@ -844,10 +851,12 @@ bool WinEDA_PcbFrame::OnHotkeyRotateItem( int aIdCommand )
break
;
case
TYPE_TEXTE
:
if
(
aIdCommand
==
HK_ROTATE_ITEM
)
// Rotation
evt_type
=
ID_POPUP_PCB_ROTATE_TEXTEPCB
;
break
;
case
TYPE_TEXTE_MODULE
:
if
(
aIdCommand
==
HK_ROTATE_ITEM
)
// Rotation
evt_type
=
ID_POPUP_PCB_ROTATE_TEXTMODULE
;
break
;
...
...
pcbnew/onrightclick.cpp
View file @
16c404ac
...
...
@@ -581,8 +581,9 @@ void WinEDA_PcbFrame::createPopUpMenuForZones( ZONE_CONTAINER* edge_zone, wxMenu
{
ADD_MENUITEM
(
zones_menu
,
ID_POPUP_PCB_ADD_ZONE_CORNER
,
_
(
"Create Corner"
),
add_corner_xpm
);
msg
=
AddHotkeyName
(
_
(
"Drag Outline Segment"
),
s_Board_Editor_Hokeys_Descr
,
HK_DRAG_ITEM
);
ADD_MENUITEM
(
zones_menu
,
ID_POPUP_PCB_DRAG_ZONE_OUTLINE_SEGMENT
,
_
(
"Drag Outline Segment"
)
,
drag_outline_segment_xpm
);
msg
,
drag_outline_segment_xpm
);
}
zones_menu
->
AppendSeparator
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment