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
b218c109
Commit
b218c109
authored
Apr 30, 2015
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added TA_CONTEXT_MENU_CLOSED tool event.
parent
d18ed945
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
tool_manager.cpp
common/tool/tool_manager.cpp
+3
-0
tool_event.h
include/tool/tool_event.h
+8
-3
No files found.
common/tool/tool_manager.cpp
View file @
b218c109
...
@@ -611,6 +611,9 @@ void TOOL_MANAGER::dispatchContextMenu( const TOOL_EVENT& aEvent )
...
@@ -611,6 +611,9 @@ void TOOL_MANAGER::dispatchContextMenu( const TOOL_EVENT& aEvent )
dispatchInternal
(
evt
);
dispatchInternal
(
evt
);
}
}
TOOL_EVENT
evt
(
TC_COMMAND
,
TA_CONTEXT_MENU_CLOSED
);
dispatchInternal
(
evt
);
m_viewControls
->
ForceCursorPosition
(
forcedCursor
,
cursorPos
);
m_viewControls
->
ForceCursorPosition
(
forcedCursor
,
cursorPos
);
break
;
break
;
...
...
include/tool/tool_event.h
View file @
b218c109
...
@@ -88,14 +88,19 @@ enum TOOL_ACTIONS
...
@@ -88,14 +88,19 @@ enum TOOL_ACTIONS
// closed it without selecting anything.
// closed it without selecting anything.
TA_CONTEXT_MENU_CHOICE
=
0x8000
,
TA_CONTEXT_MENU_CHOICE
=
0x8000
,
// Context menu is closed, no matter whether anything has been chosen or not.
TA_CONTEXT_MENU_CLOSED
=
0x10000
,
TA_CONTEXT_MENU
=
TA_CONTEXT_MENU_UPDATE
|
TA_CONTEXT_MENU_CHOICE
|
TA_CONTEXT_MENU_CLOSED
,
// This event is sent *before* undo/redo command is performed.
// This event is sent *before* undo/redo command is performed.
TA_UNDO_REDO
=
0x
1
0000
,
TA_UNDO_REDO
=
0x
2
0000
,
// Tool action (allows to control tools).
// Tool action (allows to control tools).
TA_ACTION
=
0x
2
0000
,
TA_ACTION
=
0x
4
0000
,
// Tool activation event.
// Tool activation event.
TA_ACTIVATE
=
0x
4
0000
,
TA_ACTIVATE
=
0x
8
0000
,
TA_ANY
=
0xffffffff
TA_ANY
=
0xffffffff
};
};
...
...
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