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
ad000aef
Commit
ad000aef
authored
Jul 09, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the legacy module editor.
parent
99043b77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
15 deletions
+17
-15
basepcbframe.cpp
pcbnew/basepcbframe.cpp
+1
-1
moduleframe.cpp
pcbnew/moduleframe.cpp
+16
-14
No files found.
pcbnew/basepcbframe.cpp
View file @
ad000aef
...
@@ -125,7 +125,7 @@ PCB_BASE_FRAME::~PCB_BASE_FRAME()
...
@@ -125,7 +125,7 @@ PCB_BASE_FRAME::~PCB_BASE_FRAME()
{
{
delete
m_Collector
;
delete
m_Collector
;
delete
m_Pcb
;
// is already NULL for FOOTPRINT_EDIT_FRAME
delete
m_Pcb
;
delete
GetGalCanvas
();
delete
GetGalCanvas
();
}
}
...
...
pcbnew/moduleframe.cpp
View file @
ad000aef
...
@@ -268,21 +268,23 @@ FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
...
@@ -268,21 +268,23 @@ FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
m_toolManager
->
SetEnvironment
(
GetBoard
(),
drawPanel
->
GetView
(),
m_toolManager
->
SetEnvironment
(
GetBoard
(),
drawPanel
->
GetView
(),
drawPanel
->
GetViewControls
(),
this
);
drawPanel
->
GetViewControls
(),
this
);
m_toolDispatcher
=
new
TOOL_DISPATCHER
(
m_toolManager
);
m_toolDispatcher
=
new
TOOL_DISPATCHER
(
m_toolManager
);
drawPanel
->
SetEventDispatcher
(
m_toolDispatcher
);
m_toolManager
->
RegisterTool
(
new
SELECTION_TOOL
);
if
(
drawFrame
->
IsGalCanvasActive
()
)
m_toolManager
->
RegisterTool
(
new
EDIT_TOOL
);
{
m_toolManager
->
RegisterTool
(
new
DRAWING_TOOL
);
drawPanel
->
SetEventDispatcher
(
m_toolDispatcher
);
m_toolManager
->
RegisterTool
(
new
POINT_EDITOR
);
m_toolManager
->
RegisterTool
(
new
PCBNEW_CONTROL
);
m_toolManager
->
RegisterTool
(
new
SELECTION_TOOL
);
m_toolManager
->
GetTool
<
SELECTION_TOOL
>
()
->
EditModules
(
true
);
m_toolManager
->
RegisterTool
(
new
EDIT_TOOL
);
m_toolManager
->
GetTool
<
DRAWING_TOOL
>
()
->
EditModules
(
true
);
m_toolManager
->
RegisterTool
(
new
DRAWING_TOOL
);
m_toolManager
->
ResetTools
(
TOOL_BASE
::
RUN
);
m_toolManager
->
RegisterTool
(
new
POINT_EDITOR
);
m_toolManager
->
RegisterTool
(
new
PCBNEW_CONTROL
);
// Run the selection tool, it is supposed to be always active
m_toolManager
->
GetTool
<
SELECTION_TOOL
>
()
->
EditModules
(
true
);
m_toolManager
->
InvokeTool
(
"pcbnew.InteractiveSelection"
);
m_toolManager
->
GetTool
<
DRAWING_TOOL
>
()
->
EditModules
(
true
);
m_toolManager
->
ResetTools
(
TOOL_BASE
::
RUN
);
UseGalCanvas
(
drawFrame
->
IsGalCanvasActive
()
);
m_toolManager
->
InvokeTool
(
"pcbnew.InteractiveSelection"
);
UseGalCanvas
(
true
);
}
m_Layers
->
ReFill
();
m_Layers
->
ReFill
();
m_Layers
->
ReFillRender
();
m_Layers
->
ReFillRender
();
...
...
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