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
363709e7
Commit
363709e7
authored
Feb 06, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added TOOL_INTERACTIVE::Activate().
Removed an unnecessary header from class_board_item.h.
parent
5c9e7d9b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
3 deletions
+14
-3
tool_interactive.cpp
common/tool/tool_interactive.cpp
+6
-0
class_board_item.h
include/class_board_item.h
+0
-1
tool_interactive.h
include/tool/tool_interactive.h
+6
-0
ratsnest_data.cpp
pcbnew/ratsnest_data.cpp
+2
-2
No files found.
common/tool/tool_interactive.cpp
View file @
363709e7
...
@@ -46,6 +46,12 @@ TOOL_INTERACTIVE::~TOOL_INTERACTIVE()
...
@@ -46,6 +46,12 @@ TOOL_INTERACTIVE::~TOOL_INTERACTIVE()
}
}
void
TOOL_INTERACTIVE
::
Activate
()
{
m_toolMgr
->
InvokeTool
(
m_toolId
);
}
OPT_TOOL_EVENT
TOOL_INTERACTIVE
::
Wait
(
const
TOOL_EVENT_LIST
&
aEventList
)
OPT_TOOL_EVENT
TOOL_INTERACTIVE
::
Wait
(
const
TOOL_EVENT_LIST
&
aEventList
)
{
{
return
m_toolMgr
->
ScheduleWait
(
this
,
aEventList
);
return
m_toolMgr
->
ScheduleWait
(
this
,
aEventList
);
...
...
include/class_board_item.h
View file @
363709e7
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
#include <base_struct.h>
#include <base_struct.h>
#include <gr_basic.h>
#include <gr_basic.h>
#include <boost/ptr_container/ptr_vector.hpp>
#include <layers_id_colors_and_visibility.h>
#include <layers_id_colors_and_visibility.h>
/// Abbrevation for fomatting internal units to a string.
/// Abbrevation for fomatting internal units to a string.
...
...
include/tool/tool_interactive.h
View file @
363709e7
...
@@ -48,6 +48,12 @@ public:
...
@@ -48,6 +48,12 @@ public:
TOOL_INTERACTIVE
(
const
std
::
string
&
aName
);
TOOL_INTERACTIVE
(
const
std
::
string
&
aName
);
virtual
~
TOOL_INTERACTIVE
();
virtual
~
TOOL_INTERACTIVE
();
/**
* Function Activate()
* Runs the tool. After activation, the tool starts receiving events until it is finished.
*/
void
Activate
();
/**
/**
* Function SetContextMenu()
* Function SetContextMenu()
*
*
...
...
pcbnew/ratsnest_data.cpp
View file @
363709e7
...
@@ -968,11 +968,11 @@ void RN_DATA::Recalculate( int aNet )
...
@@ -968,11 +968,11 @@ void RN_DATA::Recalculate( int aNet )
{
{
if
(
aNet
<
0
)
// Recompute everything
if
(
aNet
<
0
)
// Recompute everything
{
{
unsigned
int
tid
,
i
,
chunk
,
netCount
;
unsigned
int
i
,
netCount
;
netCount
=
m_board
->
GetNetCount
();
netCount
=
m_board
->
GetNetCount
();
chunk
=
1
;
#ifdef USE_OPENMP
#ifdef USE_OPENMP
unsigned
int
chunk
=
1
,
tid
;
#pragma omp parallel shared(chunk, netCount) private(i, tid)
#pragma omp parallel shared(chunk, netCount) private(i, tid)
{
{
tid
=
omp_get_thread_num
();
tid
=
omp_get_thread_num
();
...
...
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