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
fa817b74
Commit
fa817b74
authored
Sep 10, 2013
by
tomasz.wlostowski@cern.ch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcbnew: start integrating P&S router
parent
b73474bd
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
3 deletions
+21
-3
tool_dispatcher.cpp
common/tool/tool_dispatcher.cpp
+4
-0
CMakeLists.txt
pcbnew/CMakeLists.txt
+4
-0
basepcbframe.cpp
pcbnew/basepcbframe.cpp
+1
-1
menubar_pcbframe.cpp
pcbnew/menubar_pcbframe.cpp
+5
-0
pcbframe.cpp
pcbnew/pcbframe.cpp
+3
-1
pcbnew_id.h
pcbnew/pcbnew_id.h
+2
-1
pcb_tools.cpp
pcbnew/tools/pcb_tools.cpp
+2
-0
No files found.
common/tool/tool_dispatcher.cpp
View file @
fa817b74
...
...
@@ -269,6 +269,10 @@ void TOOL_DISPATCHER::DispatchWxCommand( wxCommandEvent &aEvent )
switch
(
aEvent
.
GetId
()
)
{
case
ID_PNS_ROUTER_TOOL
:
toolName
=
"pcbnew.InteractiveRouter"
;
activateTool
=
true
;
break
;
case
ID_SELECTION_TOOL
:
toolName
=
"pcbnew.InteractiveSelection"
;
activateTool
=
true
;
...
...
pcbnew/CMakeLists.txt
View file @
fa817b74
add_definitions
(
-DPCBNEW
)
add_subdirectory
(
router
)
if
(
KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES
)
file
(
MAKE_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/scripting
)
...
...
@@ -117,6 +118,7 @@ set(PCBNEW_AUTOROUTER_SRCS
autorouter/work.cpp
)
set
(
PCBNEW_CLASS_SRCS
tool_modview.cpp
modview.cpp
...
...
@@ -324,6 +326,7 @@ if (KICAD_SCRIPTING_MODULES)
swig_link_libraries
(
pcbnew
3d-viewer
pcbcommon
pnsrouter
common
pcad2kicadpcb
polygon
...
...
@@ -420,6 +423,7 @@ endif(APPLE)
target_link_libraries
(
pcbnew
3d-viewer
pcbcommon
pnsrouter
common
pcad2kicadpcb
polygon
...
...
pcbnew/basepcbframe.cpp
View file @
fa817b74
...
...
@@ -815,7 +815,7 @@ void PCB_BASE_FRAME::LoadSettings()
{
// Copper layers are required for netname layers
view
->
SetRequired
(
GetNetnameLayer
(
layer
),
layer
);
view
->
SetLayerTarget
(
layer
,
KiGfx
::
TARGET_CACHED
);
view
->
SetLayerTarget
(
layer
,
KiGfx
::
TARGET_
NON
CACHED
);
}
else
if
(
IsNetnameLayer
(
layer
)
)
{
...
...
pcbnew/menubar_pcbframe.cpp
View file @
fa817b74
...
...
@@ -305,6 +305,11 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
_
(
"Interactive selection and drag&drop tool."
),
KiBitmap
(
tools_xpm
)
);
AddMenuItem
(
editMenu
,
ID_PNS_ROUTER_TOOL
,
_
(
"Interactive router"
),
_
(
"Interactive router drag&drop tool."
),
KiBitmap
(
tools_xpm
)
);
/** Create View menu **/
wxMenu
*
viewMenu
=
new
wxMenu
;
...
...
pcbnew/pcbframe.cpp
View file @
fa817b74
...
...
@@ -120,8 +120,10 @@ BEGIN_EVENT_TABLE( PCB_EDIT_FRAME, PCB_BASE_FRAME )
// menu Config
/* Tom's hacks start */
EVT_MENU
(
ID_SELECTION_TOOL
,
PCB_EDIT_FRAME
::
onGenericCommand
)
EVT_MENU
(
ID_SELECTION_TOOL
,
PCB_EDIT_FRAME
::
onGenericCommand
)
EVT_TOOL
(
ID_SELECTION_TOOL
,
PCB_EDIT_FRAME
::
onGenericCommand
)
EVT_MENU
(
ID_PNS_ROUTER_TOOL
,
PCB_EDIT_FRAME
::
onGenericCommand
)
EVT_TOOL
(
ID_PNS_ROUTER_TOOL
,
PCB_EDIT_FRAME
::
onGenericCommand
)
/* Tom's hacks end */
EVT_MENU
(
ID_PCB_DRAWINGS_WIDTHS_SETUP
,
PCB_EDIT_FRAME
::
OnConfigurePcbOptions
)
...
...
pcbnew/pcbnew_id.h
View file @
fa817b74
...
...
@@ -366,7 +366,8 @@ enum pcbnew_ids
ID_FOOTPRINT_WIZARD_SELECT_WIZARD
,
ID_FOOTPRINT_WIZARD_EXPORT_TO_BOARD
,
ID_SELECTION_TOOL
ID_SELECTION_TOOL
,
ID_PNS_ROUTER_TOOL
};
#endif // PCBNEW_ID_H_
pcbnew/tools/pcb_tools.cpp
View file @
fa817b74
...
...
@@ -35,6 +35,7 @@
#include <pcbnew_id.h>
#include "selection_tool.h"
#include <router/router_tool.h>
void
PCB_EDIT_FRAME
::
setupTools
()
{
...
...
@@ -45,6 +46,7 @@ void PCB_EDIT_FRAME::setupTools()
// register our selection tool.
m_toolManager
->
RegisterTool
(
new
SELECTION_TOOL
);
m_toolManager
->
RegisterTool
(
new
ROUTER_TOOL
);
}
...
...
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