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
f14db7c7
Commit
f14db7c7
authored
Sep 10, 2013
by
tomasz.wlostowski@cern.ch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TOOL_MANAGER: open menu on right mouse button when requested
parent
9daa1ab5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
tool_manager.cpp
common/tool/tool_manager.cpp
+12
-3
No files found.
common/tool/tool_manager.cpp
View file @
f14db7c7
...
@@ -81,8 +81,11 @@ struct TOOL_MANAGER::TOOL_STATE
...
@@ -81,8 +81,11 @@ struct TOOL_MANAGER::TOOL_STATE
};
};
TOOL_MANAGER
::
TOOL_MANAGER
()
TOOL_MANAGER
::
TOOL_MANAGER
()
:
m_model
(
NULL
),
m_view
(
NULL
)
{
{
}
}
...
@@ -276,11 +279,17 @@ bool TOOL_MANAGER::ProcessEvent( TOOL_EVENT& aEvent )
...
@@ -276,11 +279,17 @@ bool TOOL_MANAGER::ProcessEvent( TOOL_EVENT& aEvent )
{
{
TOOL_STATE
*
st
=
m_toolIdIndex
[
toolId
];
TOOL_STATE
*
st
=
m_toolIdIndex
[
toolId
];
if
(
st
->
contextMenuTrigger
==
CMENU_NOW
)
if
(
st
->
contextMenuTrigger
!=
CMENU_OFF
)
{
{
if
(
st
->
contextMenuTrigger
==
CMENU_BUTTON
&&
!
aEvent
.
IsClick
(
MB_Right
)
)
break
;
st
->
pendingWait
=
true
;
st
->
pendingWait
=
true
;
st
->
waitEvents
=
TOOL_EVENT
(
TC_Any
,
TA_Any
);
st
->
waitEvents
=
TOOL_EVENT
(
TC_Any
,
TA_Any
);
if
(
st
->
contextMenuTrigger
==
CMENU_NOW
)
st
->
contextMenuTrigger
=
CMENU_OFF
;
st
->
contextMenuTrigger
=
CMENU_OFF
;
GetEditFrame
()
->
PopupMenu
(
st
->
contextMenu
->
GetMenu
()
);
GetEditFrame
()
->
PopupMenu
(
st
->
contextMenu
->
GetMenu
()
);
TOOL_EVENT
evt
(
TC_Command
,
TA_ContextMenuChoice
);
TOOL_EVENT
evt
(
TC_Command
,
TA_ContextMenuChoice
);
...
...
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