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
f9225339
Commit
f9225339
authored
Feb 05, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added possibility for editing pads properties.
parent
8df0f769
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
edit_tool.cpp
pcbnew/tools/edit_tool.cpp
+15
-0
No files found.
pcbnew/tools/edit_tool.cpp
View file @
f9225339
...
...
@@ -205,6 +205,21 @@ int EDIT_TOOL::Properties( TOOL_EVENT& aEvent )
{
// Display properties dialog
BOARD_ITEM
*
item
=
static_cast
<
BOARD_ITEM
*>
(
selection
.
items
.
GetPickedItem
(
0
)
);
VECTOR2I
cursor
=
getView
()
->
ToWorld
(
getViewControls
()
->
GetCursorPosition
()
);
// Check if user wants to edit pad or module properties
if
(
item
->
Type
()
==
PCB_MODULE_T
)
{
for
(
D_PAD
*
pad
=
static_cast
<
MODULE
*>
(
item
)
->
Pads
();
pad
;
pad
=
pad
->
Next
()
)
{
if
(
pad
->
ViewBBox
().
Contains
(
cursor
)
)
{
// Turns out that user wants to edit a pad properties
item
=
pad
;
break
;
}
}
}
editFrame
->
SaveCopyInUndoList
(
item
,
UR_CHANGED
);
editFrame
->
OnModify
();
...
...
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