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
926dec84
Commit
926dec84
authored
Dec 08, 2012
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eeschema: fix compil issue with wxWidgets 2.8.12
parent
ba055196
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
onrightclick.cpp
eeschema/onrightclick.cpp
+8
-7
No files found.
eeschema/onrightclick.cpp
View file @
926dec84
...
...
@@ -251,22 +251,23 @@ void AddMenusForComponentField( wxMenu* PopMenu, SCH_FIELD* Field )
{
wxString
msg
,
name
;
name
<<
wxT
(
" "
);
switch
(
Field
->
GetId
()
)
{
case
REFERENCE
:
name
=
_
(
"Reference"
);
break
;
case
VALUE
:
name
=
_
(
"Value"
);
break
;
case
FOOTPRINT
:
name
=
_
(
"Footprint Field"
);
break
;
default
:
name
=
_
(
"Field"
);
break
;
case
REFERENCE
:
name
<<
_
(
"Reference"
);
break
;
case
VALUE
:
name
<<
_
(
"Value"
);
break
;
case
FOOTPRINT
:
name
<<
_
(
"Footprint Field"
);
break
;
default
:
name
<<
_
(
"Field"
);
break
;
}
if
(
!
Field
->
GetFlags
()
)
{
msg
=
AddHotkeyName
(
_
(
"Move"
)
+
wxT
(
" "
)
+
name
,
s_Schematic_Hokeys_Descr
,
msg
=
AddHotkeyName
(
_
(
"Move"
)
+
name
,
s_Schematic_Hokeys_Descr
,
HK_MOVE_COMPONENT_OR_ITEM
);
AddMenuItem
(
PopMenu
,
ID_SCH_MOVE_ITEM
,
msg
,
KiBitmap
(
move_text_xpm
)
);
}
msg
=
AddHotkeyName
(
_
(
"Rotate"
)
+
wxT
(
" "
)
+
name
,
s_Schematic_Hokeys_Descr
,
msg
=
AddHotkeyName
(
_
(
"Rotate"
)
+
name
,
s_Schematic_Hokeys_Descr
,
HK_ROTATE
);
AddMenuItem
(
PopMenu
,
ID_SCH_ROTATE_CLOCKWISE
,
msg
,
KiBitmap
(
rotate_field_xpm
)
);
...
...
@@ -279,7 +280,7 @@ void AddMenusForComponentField( wxMenu* PopMenu, SCH_FIELD* Field )
case
FOOTPRINT
:
id
=
HK_EDIT_COMPONENT_FOOTPRINT
;
break
;
default
:
id
=
HK_EDIT
;
break
;
}
msg
=
AddHotkeyName
(
_
(
"Edit"
)
+
wxT
(
" "
)
+
name
,
s_Schematic_Hokeys_Descr
,
id
);
msg
=
AddHotkeyName
(
_
(
"Edit"
)
+
name
,
s_Schematic_Hokeys_Descr
,
id
);
AddMenuItem
(
PopMenu
,
ID_SCH_EDIT_ITEM
,
msg
,
KiBitmap
(
edit_text_xpm
)
);
}
...
...
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