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
2ee890d7
Commit
2ee890d7
authored
Jul 09, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes.
parent
a6dac245
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
11 deletions
+6
-11
coroutine.h
include/tool/coroutine.h
+1
-1
module_editor_frame.h
pcbnew/module_editor_frame.h
+2
-2
edit_tool.cpp
pcbnew/tools/edit_tool.cpp
+3
-7
selection_tool.cpp
pcbnew/tools/selection_tool.cpp
+0
-1
No files found.
include/tool/coroutine.h
View file @
2ee890d7
...
@@ -115,7 +115,7 @@ public:
...
@@ -115,7 +115,7 @@ public:
}
}
/**
/**
*
<F11>*
Function SetEntry()
* Function SetEntry()
*
*
* Defines the entry point for the coroutine, if not set in the constructor.
* Defines the entry point for the coroutine, if not set in the constructor.
*/
*/
...
...
pcbnew/module_editor_frame.h
View file @
2ee890d7
...
@@ -419,7 +419,7 @@ protected:
...
@@ -419,7 +419,7 @@ protected:
* - Place the current edited library component in Redo list
* - Place the current edited library component in Redo list
* - Get old version of the current edited library component
* - Get old version of the current edited library component
*/
*/
void
GetComponentFromUndoList
(
wxCommandEvent
&
e
vent
);
void
GetComponentFromUndoList
(
wxCommandEvent
&
aE
vent
);
/**
/**
* Function GetComponentFromRedoList
* Function GetComponentFromRedoList
...
@@ -427,7 +427,7 @@ protected:
...
@@ -427,7 +427,7 @@ protected:
* - Place the current edited library component in undo list
* - Place the current edited library component in undo list
* - Get old version of the current edited library component
* - Get old version of the current edited library component
*/
*/
void
GetComponentFromRedoList
(
wxCommandEvent
&
e
vent
);
void
GetComponentFromRedoList
(
wxCommandEvent
&
aE
vent
);
/**
/**
* Function UpdateTitle
* Function UpdateTitle
...
...
pcbnew/tools/edit_tool.cpp
View file @
2ee890d7
...
@@ -219,9 +219,6 @@ int EDIT_TOOL::Properties( TOOL_EVENT& aEvent )
...
@@ -219,9 +219,6 @@ int EDIT_TOOL::Properties( TOOL_EVENT& aEvent )
const
SELECTION_TOOL
::
SELECTION
&
selection
=
m_selectionTool
->
GetSelection
();
const
SELECTION_TOOL
::
SELECTION
&
selection
=
m_selectionTool
->
GetSelection
();
PCB_EDIT_FRAME
*
editFrame
=
getEditFrame
<
PCB_EDIT_FRAME
>
();
PCB_EDIT_FRAME
*
editFrame
=
getEditFrame
<
PCB_EDIT_FRAME
>
();
// Shall the selection be cleared at the end?
bool
unselect
=
selection
.
Empty
();
if
(
!
makeSelection
(
selection
)
)
if
(
!
makeSelection
(
selection
)
)
{
{
setTransitions
();
setTransitions
();
...
@@ -238,9 +235,11 @@ int EDIT_TOOL::Properties( TOOL_EVENT& aEvent )
...
@@ -238,9 +235,11 @@ int EDIT_TOOL::Properties( TOOL_EVENT& aEvent )
// Check if user wants to edit pad or module properties
// Check if user wants to edit pad or module properties
if
(
item
->
Type
()
==
PCB_MODULE_T
)
if
(
item
->
Type
()
==
PCB_MODULE_T
)
{
{
VECTOR2D
cursor
=
getViewControls
()
->
GetCursorPosition
();
for
(
D_PAD
*
pad
=
static_cast
<
MODULE
*>
(
item
)
->
Pads
();
pad
;
pad
=
pad
->
Next
()
)
for
(
D_PAD
*
pad
=
static_cast
<
MODULE
*>
(
item
)
->
Pads
();
pad
;
pad
=
pad
->
Next
()
)
{
{
if
(
pad
->
ViewBBox
().
Contains
(
getViewControls
()
->
GetCursorPosition
()
)
)
if
(
pad
->
ViewBBox
().
Contains
(
cursor
)
)
{
{
// Turns out that user wants to edit a pad properties
// Turns out that user wants to edit a pad properties
item
=
pad
;
item
=
pad
;
...
@@ -278,9 +277,6 @@ int EDIT_TOOL::Properties( TOOL_EVENT& aEvent )
...
@@ -278,9 +277,6 @@ int EDIT_TOOL::Properties( TOOL_EVENT& aEvent )
item
->
SetFlags
(
flags
);
item
->
SetFlags
(
flags
);
}
}
if
(
unselect
)
m_selectionTool
->
ClearSelection
();
setTransitions
();
setTransitions
();
return
0
;
return
0
;
...
...
pcbnew/tools/selection_tool.cpp
View file @
2ee890d7
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
*/
*/
#include <boost/foreach.hpp>
#include <boost/foreach.hpp>
#include <boost/optional.hpp>
#include <boost/bind.hpp>
#include <boost/bind.hpp>
#include <cassert>
#include <cassert>
...
...
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