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
0084b53e
Commit
0084b53e
authored
Dec 03, 2009
by
faa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcbnew: add new hotkey X - add new track/segment
parent
a72ddb38
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
238 additions
and
203 deletions
+238
-203
kicad.mo
internat/ru/kicad.mo
+0
-0
kicad.po
internat/ru/kicad.po
+210
-201
hotkeys.cpp
pcbnew/hotkeys.cpp
+27
-2
hotkeys.h
pcbnew/hotkeys.h
+1
-0
No files found.
internat/ru/kicad.mo
View file @
0084b53e
No preview for this file type
internat/ru/kicad.po
View file @
0084b53e
This diff is collapsed.
Click to expand it.
pcbnew/hotkeys.cpp
View file @
0084b53e
...
@@ -65,6 +65,7 @@ static Ki_HotkeyInfo HkFindItem( wxT( "Find Item" ), HK_FIND_ITEM, 'F'
...
@@ -65,6 +65,7 @@ static Ki_HotkeyInfo HkFindItem( wxT( "Find Item" ), HK_FIND_ITEM, 'F'
+
GR_KB_CTRL
);
+
GR_KB_CTRL
);
static
Ki_HotkeyInfo
HkBackspace
(
wxT
(
"Delete track segment"
),
HK_BACK_SPACE
,
static
Ki_HotkeyInfo
HkBackspace
(
wxT
(
"Delete track segment"
),
HK_BACK_SPACE
,
WXK_BACK
);
WXK_BACK
);
static
Ki_HotkeyInfo
HkAddNewTrack
(
wxT
(
"Add New Track/Segment"
),
HK_ADD_NEW_TRACK
,
'X'
);
static
Ki_HotkeyInfo
HkAddVia
(
wxT
(
"Add Via"
),
HK_ADD_VIA
,
'V'
);
static
Ki_HotkeyInfo
HkAddVia
(
wxT
(
"Add Via"
),
HK_ADD_VIA
,
'V'
);
static
Ki_HotkeyInfo
HkAddMicroVia
(
wxT
(
"Add MicroVia"
),
HK_ADD_MICROVIA
,
'V'
static
Ki_HotkeyInfo
HkAddMicroVia
(
wxT
(
"Add MicroVia"
),
HK_ADD_MICROVIA
,
'V'
+
GR_KB_CTRL
);
+
GR_KB_CTRL
);
...
@@ -111,8 +112,9 @@ Ki_HotkeyInfo
...
@@ -111,8 +112,9 @@ Ki_HotkeyInfo
Ki_HotkeyInfo
*
s_board_edit_Hotkey_List
[]
=
Ki_HotkeyInfo
*
s_board_edit_Hotkey_List
[]
=
{
{
&
HkTrackDisplayMode
,
&
HkDelete
,
&
HkTrackDisplayMode
,
&
HkDelete
,
&
HkBackspace
,
&
HkAddVia
,
&
HkAddMicroVia
,
&
HkBackspace
,
&
HkEndTrack
,
&
HkMoveFootprint
,
&
HkAddNewTrack
,
&
HkAddVia
,
&
HkAddMicroVia
,
&
HkEndTrack
,
&
HkMoveFootprint
,
&
HkFlipFootprint
,
&
HkRotateFootprint
,
&
HkDragFootprint
,
&
HkFlipFootprint
,
&
HkRotateFootprint
,
&
HkDragFootprint
,
&
HkGetAndMoveFootprint
,
&
HkLock_Unlock_Footprint
,
&
HkSavefile
,
&
HkGetAndMoveFootprint
,
&
HkLock_Unlock_Footprint
,
&
HkSavefile
,
&
HkLoadfile
,
&
HkFindItem
,
&
HkSwitch2CopperLayer
,
&
HkLoadfile
,
&
HkFindItem
,
&
HkSwitch2CopperLayer
,
...
@@ -465,6 +467,29 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
...
@@ -465,6 +467,29 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
GetScreen
()
->
SetRefreshReq
();
GetScreen
()
->
SetRefreshReq
();
break
;
break
;
case
HK_ADD_NEW_TRACK
:
// Start new track
if
(
m_ID_current_state
==
ID_TRACK_BUTT
&&
GetScreen
()
->
m_Active_Layer
<=
CMP_N
)
{
if
(
ItemFree
)
// no track in progress:
{
TRACK
*
track
=
Begin_Route
(
NULL
,
DC
);
SetCurItem
(
track
);
if
(
track
)
DrawPanel
->
m_AutoPAN_Request
=
true
;
}
else
if
(
GetCurItem
()
->
m_Flags
&
IS_NEW
)
{
TRACK
*
track
=
Begin_Route
(
(
TRACK
*
)
GetCurItem
(),
DC
);
// SetCurItem() must not write to the msg panel
// because a track info is displayed while moving the mouse cursor
if
(
track
)
// A new segment was created
SetCurItem
(
track
,
false
);
DrawPanel
->
m_AutoPAN_Request
=
true
;
}
}
break
;
// Footprint edition:
// Footprint edition:
case
HK_LOCK_UNLOCK_FOOTPRINT
:
// toggle module "MODULE_is_LOCKED" status:
case
HK_LOCK_UNLOCK_FOOTPRINT
:
// toggle module "MODULE_is_LOCKED" status:
// get any module, locked or not locked and toggle its locked status
// get any module, locked or not locked and toggle its locked status
...
...
pcbnew/hotkeys.h
View file @
0084b53e
...
@@ -23,6 +23,7 @@ enum hotkey_id_commnand {
...
@@ -23,6 +23,7 @@ enum hotkey_id_commnand {
HK_FLIP_FOOTPRINT
,
HK_FLIP_FOOTPRINT
,
HK_GET_AND_MOVE_FOOTPRINT
,
HK_GET_AND_MOVE_FOOTPRINT
,
HK_LOCK_UNLOCK_FOOTPRINT
,
HK_LOCK_UNLOCK_FOOTPRINT
,
HK_ADD_NEW_TRACK
,
HK_ADD_VIA
,
HK_ADD_VIA
,
HK_ADD_MICROVIA
,
HK_ADD_MICROVIA
,
HK_END_TRACK
,
HK_END_TRACK
,
...
...
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