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
cc63f5f8
Commit
cc63f5f8
authored
Mar 21, 2011
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Libedit regression.
parent
73985eca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
libedit_onrightclick.cpp
eeschema/libedit_onrightclick.cpp
+14
-10
No files found.
eeschema/libedit_onrightclick.cpp
View file @
cc63f5f8
/**
**************************/
/**
/* EESchema - libedit_onrightclick.cpp */
* @file libedit_onrightclick.cpp
/***************************
*/
*/
/* , In library editor, create the pop menu when clicking on mouse right button
/* , In library editor, create the pop menu when clicking on mouse right button
*/
*/
...
@@ -30,7 +30,7 @@ static void AddMenusForPin( wxMenu* PopMenu, LIB_PIN* Pin, LIB_EDIT_FRAME* frame
...
@@ -30,7 +30,7 @@ static void AddMenusForPin( wxMenu* PopMenu, LIB_PIN* Pin, LIB_EDIT_FRAME* frame
bool
LIB_EDIT_FRAME
::
OnRightClick
(
const
wxPoint
&
aPosition
,
wxMenu
*
PopMenu
)
bool
LIB_EDIT_FRAME
::
OnRightClick
(
const
wxPoint
&
aPosition
,
wxMenu
*
PopMenu
)
{
{
LIB_DRAW_ITEM
*
DrawEntry
=
LocateItemUsingCursor
(
aPosition
);
LIB_DRAW_ITEM
*
DrawEntry
=
GetDrawItem
(
);
bool
BlockActive
=
GetScreen
()
->
IsBlockActive
();
bool
BlockActive
=
GetScreen
()
->
IsBlockActive
();
if
(
BlockActive
)
if
(
BlockActive
)
...
@@ -44,17 +44,21 @@ bool LIB_EDIT_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu )
...
@@ -44,17 +44,21 @@ bool LIB_EDIT_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu )
return
true
;
return
true
;
// If Command in progress, put menu "cancel"
// If Command in progress, put menu "cancel"
if
(
DrawEntry
&&
DrawEntry
->
m_Flags
)
if
(
DrawEntry
&&
DrawEntry
->
GetFlags
()
)
{
{
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_LIBEDIT_CANCEL_EDITING
,
_
(
"Cancel"
),
cancel_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_LIBEDIT_CANCEL_EDITING
,
_
(
"Cancel"
),
cancel_xpm
);
PopMenu
->
AppendSeparator
();
PopMenu
->
AppendSeparator
();
}
}
else
if
(
GetToolId
()
!=
ID_NO_TOOL_SELECTED
)
else
{
// If a tool is active, put menu "end tool"
{
DrawEntry
=
LocateItemUsingCursor
(
aPosition
);
if
(
GetToolId
()
!=
ID_NO_TOOL_SELECTED
)
{
// If a tool is active, put menu "end tool"
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_LIBEDIT_CANCEL_EDITING
,
_
(
"End Tool"
),
cancel_tool_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_LIBEDIT_CANCEL_EDITING
,
_
(
"End Tool"
),
cancel_tool_xpm
);
PopMenu
->
AppendSeparator
();
PopMenu
->
AppendSeparator
();
}
}
}
if
(
DrawEntry
)
if
(
DrawEntry
)
DrawEntry
->
DisplayInfo
(
this
);
DrawEntry
->
DisplayInfo
(
this
);
...
...
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