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
b8295b6a
Commit
b8295b6a
authored
Apr 30, 2015
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code formatting.
parent
e37b07a6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
edit_tool.cpp
pcbnew/tools/edit_tool.cpp
+2
-2
selection_tool.cpp
pcbnew/tools/selection_tool.cpp
+4
-1
No files found.
pcbnew/tools/edit_tool.cpp
View file @
b8295b6a
...
@@ -90,8 +90,8 @@ bool EDIT_TOOL::Init()
...
@@ -90,8 +90,8 @@ bool EDIT_TOOL::Init()
// Footprint actions
// Footprint actions
m_selectionTool
->
AddMenuItem
(
COMMON_ACTIONS
::
editFootprintInFpEditor
,
m_selectionTool
->
AddMenuItem
(
COMMON_ACTIONS
::
editFootprintInFpEditor
,
SELECTION_CONDITIONS
::
OnlyType
(
PCB_MODULE_T
)
&&
SELECTION_CONDITIONS
::
OnlyType
(
PCB_MODULE_T
)
&&
SELECTION_CONDITIONS
::
Count
(
1
)
);
SELECTION_CONDITIONS
::
Count
(
1
)
);
m_offset
.
x
=
0
;
m_offset
.
x
=
0
;
m_offset
.
y
=
0
;
m_offset
.
y
=
0
;
...
...
pcbnew/tools/selection_tool.cpp
View file @
b8295b6a
...
@@ -352,7 +352,7 @@ bool SELECTION_TOOL::selectCursor( const VECTOR2I& aWhere, bool aOnDrag )
...
@@ -352,7 +352,7 @@ bool SELECTION_TOOL::selectCursor( const VECTOR2I& aWhere, bool aOnDrag )
else
if
(
collector
.
GetCount
()
>
1
)
else
if
(
collector
.
GetCount
()
>
1
)
{
{
if
(
aOnDrag
)
if
(
aOnDrag
)
Wait
(
TOOL_EVENT
(
TC_ANY
,
TA_MOUSE_UP
,
BUT_LEFT
)
);
Wait
(
TOOL_EVENT
(
TC_ANY
,
TA_MOUSE_UP
,
BUT_LEFT
)
);
item
=
disambiguationMenu
(
&
collector
);
item
=
disambiguationMenu
(
&
collector
);
...
@@ -507,6 +507,7 @@ SELECTION_LOCK_FLAGS SELECTION_TOOL::CheckLock()
...
@@ -507,6 +507,7 @@ SELECTION_LOCK_FLAGS SELECTION_TOOL::CheckLock()
return
SELECTION_UNLOCKED
;
return
SELECTION_UNLOCKED
;
}
}
int
SELECTION_TOOL
::
CursorSelection
(
const
TOOL_EVENT
&
aEvent
)
int
SELECTION_TOOL
::
CursorSelection
(
const
TOOL_EVENT
&
aEvent
)
{
{
selectCursor
(
getView
()
->
ToWorld
(
getViewControls
()
->
GetMousePosition
()
)
);
selectCursor
(
getView
()
->
ToWorld
(
getViewControls
()
->
GetMousePosition
()
)
);
...
@@ -522,6 +523,7 @@ int SELECTION_TOOL::ClearSelection( const TOOL_EVENT& aEvent )
...
@@ -522,6 +523,7 @@ int SELECTION_TOOL::ClearSelection( const TOOL_EVENT& aEvent )
return
0
;
return
0
;
}
}
int
SELECTION_TOOL
::
SelectItem
(
const
TOOL_EVENT
&
aEvent
)
int
SELECTION_TOOL
::
SelectItem
(
const
TOOL_EVENT
&
aEvent
)
{
{
// Check if there is an item to be selected
// Check if there is an item to be selected
...
@@ -538,6 +540,7 @@ int SELECTION_TOOL::SelectItem( const TOOL_EVENT& aEvent )
...
@@ -538,6 +540,7 @@ int SELECTION_TOOL::SelectItem( const TOOL_EVENT& aEvent )
return
0
;
return
0
;
}
}
int
SELECTION_TOOL
::
UnselectItem
(
const
TOOL_EVENT
&
aEvent
)
int
SELECTION_TOOL
::
UnselectItem
(
const
TOOL_EVENT
&
aEvent
)
{
{
// Check if there is an item to be selected
// Check if there is an item to be selected
...
...
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