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
6c9f6ed7
Commit
6c9f6ed7
authored
Jul 15, 2010
by
Mathew Beckler
Committed by
Dick Hollenbeck
Jul 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
https://lists.launchpad.net/kicad-developers/msg04973.html
parent
94e51aa3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
hotkeys.cpp
eeschema/hotkeys.cpp
+9
-0
hotkeys.h
eeschema/hotkeys.h
+2
-1
No files found.
eeschema/hotkeys.cpp
View file @
6c9f6ed7
...
@@ -102,6 +102,7 @@ static Ki_HotkeyInfo HkRedo( wxT( "Redo" ), HK_REDO,
...
@@ -102,6 +102,7 @@ static Ki_HotkeyInfo HkRedo( wxT( "Redo" ), HK_REDO,
#endif
#endif
// Schematic editor
// Schematic editor
static
Ki_HotkeyInfo
HkAddLabel
(
wxT
(
"add Label"
),
HK_ADD_LABEL
,
'L'
);
static
Ki_HotkeyInfo
HkBeginWire
(
wxT
(
"begin Wire"
),
HK_BEGIN_WIRE
,
'W'
);
static
Ki_HotkeyInfo
HkBeginWire
(
wxT
(
"begin Wire"
),
HK_BEGIN_WIRE
,
'W'
);
static
Ki_HotkeyInfo
HkAddComponent
(
wxT
(
"Add Component"
),
static
Ki_HotkeyInfo
HkAddComponent
(
wxT
(
"Add Component"
),
HK_ADD_NEW_COMPONENT
,
'A'
);
HK_ADD_NEW_COMPONENT
,
'A'
);
...
@@ -188,6 +189,7 @@ Ki_HotkeyInfo* s_Schematic_Hotkey_List[] =
...
@@ -188,6 +189,7 @@ Ki_HotkeyInfo* s_Schematic_Hotkey_List[] =
&
HkEditComponentValue
,
&
HkEditComponentValue
,
&
HkEditComponentFootprint
,
&
HkEditComponentFootprint
,
&
HkBeginWire
,
&
HkBeginWire
,
&
HkAddLabel
,
NULL
NULL
};
};
...
@@ -383,6 +385,13 @@ void WinEDA_SchematicFrame::OnHotKey( wxDC* DC, int hotkey,
...
@@ -383,6 +385,13 @@ void WinEDA_SchematicFrame::OnHotKey( wxDC* DC, int hotkey,
}
}
break
;
break
;
case
HK_ADD_LABEL
:
// switch to m_ID_current_state = ID_LABEL_BUTT;
if
(
m_ID_current_state
!=
ID_LABEL_BUTT
)
SetToolID
(
ID_LABEL_BUTT
,
wxCURSOR_PENCIL
,
_
(
"Add Label"
)
);
OnLeftClick
(
DC
,
MousePos
);
break
;
case
HK_BEGIN_WIRE
:
case
HK_BEGIN_WIRE
:
/* An item is selected. If edited and not a wire, a new command is not
/* An item is selected. If edited and not a wire, a new command is not
...
...
eeschema/hotkeys.h
View file @
6c9f6ed7
...
@@ -31,7 +31,8 @@ enum hotkey_id_commnand {
...
@@ -31,7 +31,8 @@ enum hotkey_id_commnand {
HK_COPY_COMPONENT_OR_LABEL
,
HK_COPY_COMPONENT_OR_LABEL
,
HK_DRAG
,
HK_DRAG
,
HK_ADD_NEW_COMPONENT
,
HK_ADD_NEW_COMPONENT
,
HK_BEGIN_WIRE
HK_BEGIN_WIRE
,
HK_ADD_LABEL
};
};
// List of hotkey descriptors for eeschema
// List of hotkey descriptors for eeschema
...
...
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