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
1944fea3
Commit
1944fea3
authored
Apr 22, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified way of switching canvas
parent
ad4a72ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
drawframe.cpp
common/drawframe.cpp
+8
-10
pcbframe.cpp
pcbnew/pcbframe.cpp
+0
-1
No files found.
common/drawframe.cpp
View file @
1944fea3
...
...
@@ -966,11 +966,6 @@ void EDA_DRAW_FRAME::UseGalCanvas( bool aEnable )
view
->
SetScale
(
zoom
);
view
->
SetCenter
(
VECTOR2D
(
m_canvas
->
GetScreenCenterLogicalPosition
()
)
);
// Switch panes
m_auimgr
.
GetPane
(
wxT
(
"DrawFrame"
)
).
Hide
();
m_auimgr
.
GetPane
(
wxT
(
"DrawFrameGal"
)
).
Show
();
m_auimgr
.
Update
();
}
else
{
...
...
@@ -979,13 +974,16 @@ void EDA_DRAW_FRAME::UseGalCanvas( bool aEnable )
VECTOR2D
center
=
view
->
GetCenter
();
RedrawScreen
(
wxPoint
(
center
.
x
,
center
.
y
),
false
);
// Switch panes
m_auimgr
.
GetPane
(
wxT
(
"DrawFrameGal"
)
).
Hide
();
m_auimgr
.
GetPane
(
wxT
(
"DrawFrame"
)
).
Show
();
m_auimgr
.
Update
();
}
m_canvas
->
SetEvtHandlerEnabled
(
!
aEnable
);
m_galCanvas
->
SetEvtHandlerEnabled
(
aEnable
);
// Switch panes
m_auimgr
.
GetPane
(
wxT
(
"DrawFrame"
)
).
Show
(
!
aEnable
);
m_auimgr
.
GetPane
(
wxT
(
"DrawFrameGal"
)
).
Show
(
aEnable
);
m_auimgr
.
Update
();
m_galCanvasActive
=
aEnable
;
#endif
/* KICAD_GAL */
}
pcbnew/pcbframe.cpp
View file @
1944fea3
...
...
@@ -595,7 +595,6 @@ void PCB_EDIT_FRAME::SwitchCanvas( wxCommandEvent& aEvent )
}
void
PCB_EDIT_FRAME
::
ShowDesignRulesEditor
(
wxCommandEvent
&
event
)
{
DIALOG_DESIGN_RULES
dR_editor
(
this
);
...
...
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