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
f4de2877
Commit
f4de2877
authored
Dec 18, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added possibility of removing selected items while dragging.
parent
fd0a3348
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
common_actions.cpp
pcbnew/tools/common_actions.cpp
+3
-2
edit_tool.cpp
pcbnew/tools/edit_tool.cpp
+5
-0
No files found.
pcbnew/tools/common_actions.cpp
View file @
f4de2877
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#include "common_actions.h"
#include "common_actions.h"
#include <tool/action_manager.h>
#include <tool/action_manager.h>
#include <wx/defs.h>
// Selection tool actions
// Selection tool actions
TOOL_ACTION
COMMON_ACTIONS
::
selectionActivate
(
"pcbnew.InteractiveSelection"
,
TOOL_ACTION
COMMON_ACTIONS
::
selectionActivate
(
"pcbnew.InteractiveSelection"
,
...
@@ -42,8 +43,8 @@ TOOL_ACTION COMMON_ACTIONS::flip( "pcbnew.InteractiveEdit.flip",
...
@@ -42,8 +43,8 @@ TOOL_ACTION COMMON_ACTIONS::flip( "pcbnew.InteractiveEdit.flip",
AS_CONTEXT
,
'F'
,
AS_CONTEXT
,
'F'
,
"Flip"
,
"Flips selected item(s)"
);
"Flip"
,
"Flips selected item(s)"
);
TOOL_ACTION
COMMON_ACTIONS
::
remove
(
"pcbnew.InteractiveEdit.
delet
e"
,
TOOL_ACTION
COMMON_ACTIONS
::
remove
(
"pcbnew.InteractiveEdit.
remov
e"
,
AS_GLOBAL
,
127
,
// 127 stands for DELETE key
AS_GLOBAL
,
WXK_DELETE
,
"Remove"
,
"Deletes selected item(s)"
);
"Remove"
,
"Deletes selected item(s)"
);
TOOL_ACTION
COMMON_ACTIONS
::
properties
(
"pcbnew.InteractiveEdit.properties"
,
TOOL_ACTION
COMMON_ACTIONS
::
properties
(
"pcbnew.InteractiveEdit.properties"
,
...
...
pcbnew/tools/edit_tool.cpp
View file @
f4de2877
...
@@ -112,6 +112,11 @@ int EDIT_TOOL::Main( TOOL_EVENT& aEvent )
...
@@ -112,6 +112,11 @@ int EDIT_TOOL::Main( TOOL_EVENT& aEvent )
// Flip causes change of layers
// Flip causes change of layers
enableUpdateFlag
(
KIGFX
::
VIEW_ITEM
::
LAYERS
);
enableUpdateFlag
(
KIGFX
::
VIEW_ITEM
::
LAYERS
);
}
}
else
if
(
evt
->
IsAction
(
&
COMMON_ACTIONS
::
remove
)
)
{
Remove
(
aEvent
);
break
;
}
}
}
else
if
(
evt
->
IsMotion
()
||
evt
->
IsDrag
(
BUT_LEFT
)
)
else
if
(
evt
->
IsMotion
()
||
evt
->
IsDrag
(
BUT_LEFT
)
)
...
...
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