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
347f32cc
Commit
347f32cc
authored
Oct 19, 2010
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: try to fix a minot but old issue when movint the layer manager frame
parent
91e26fe8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
pcbframe.cpp
pcbnew/pcbframe.cpp
+15
-3
tool_pcb.cpp
pcbnew/tool_pcb.cpp
+3
-0
No files found.
pcbnew/pcbframe.cpp
View file @
347f32cc
...
...
@@ -324,6 +324,8 @@ WinEDA_PcbFrame::WinEDA_PcbFrame( wxWindow* father,
m_auimgr
.
SetManagedWindow
(
this
);
// Create a wxAuiPaneInfo template for other wxAuiPaneInfo items
// Actual wxAuiPaneInfo items will be built from this item.
wxAuiPaneInfo
horiz
;
horiz
.
Gripper
(
false
);
horiz
.
DockFixed
(
true
);
...
...
@@ -332,11 +334,16 @@ WinEDA_PcbFrame::WinEDA_PcbFrame( wxWindow* father,
horiz
.
CloseButton
(
false
);
horiz
.
CaptionVisible
(
false
);
// Create a second template from the first:
wxAuiPaneInfo
vert
(
horiz
);
// Set specific options for horizontal and vertical toolbars, using horiz and vert
// wxAuiPaneInfo items to manage them.
vert
.
TopDockable
(
false
).
BottomDockable
(
false
);
horiz
.
LeftDockable
(
false
).
RightDockable
(
false
);
horiz
.
ToolbarPane
().
Gripper
(
false
);
// Create a wxAuiPaneInfo for the Layers Manager, not derived from the template.
// LAYER_WIDGET is floatable, but initially docked at far right
wxAuiPaneInfo
lyrs
;
lyrs
.
MinSize
(
m_Layers
->
GetBestSize
()
);
// updated in ReFillLayerWidget
...
...
@@ -347,12 +354,16 @@ WinEDA_PcbFrame::WinEDA_PcbFrame( wxWindow* father,
if
(
m_HToolBar
)
{
m_auimgr
.
AddPane
(
m_HToolBar
,
wxAuiPaneInfo
(
horiz
).
Name
(
wxT
(
"m_HToolBar"
)
).
Top
().
Row
(
0
)
);
}
if
(
m_AuxiliaryToolBar
)
{
m_auimgr
.
AddPane
(
m_AuxiliaryToolBar
,
wxAuiPaneInfo
(
horiz
).
Name
(
wxT
(
"m_AuxiliaryToolBar"
)
).
Top
().
Row
(
1
)
);
}
if
(
m_AuxVToolBar
)
m_auimgr
.
AddPane
(
m_AuxVToolBar
,
...
...
@@ -367,7 +378,8 @@ WinEDA_PcbFrame::WinEDA_PcbFrame( wxWindow* father,
if
(
m_OptionsToolBar
)
{
m_auimgr
.
AddPane
(
m_OptionsToolBar
,
wxAuiPaneInfo
(
vert
).
Name
(
wxT
(
"m_OptionsToolBar"
)
).
Left
()
);
wxAuiPaneInfo
(
vert
).
Name
(
wxT
(
"m_OptionsToolBar"
)
).
Left
()
.
ToolbarPane
().
Gripper
(
false
));
m_OptionsToolBar
->
ToggleTool
(
ID_TB_OPTIONS_SHOW_MANAGE_LAYERS_VERTICAL_TOOLBAR
,
m_show_layer_manager_tools
);
m_auimgr
.
GetPane
(
wxT
(
"m_LayersManagerToolBar"
)
).
Show
(
m_show_layer_manager_tools
);
...
...
@@ -384,11 +396,11 @@ WinEDA_PcbFrame::WinEDA_PcbFrame( wxWindow* father,
m_auimgr
.
AddPane
(
MsgPanel
,
wxAuiPaneInfo
(
horiz
).
Name
(
wxT
(
"MsgPanel"
)
).
Bottom
()
);
m_auimgr
.
Update
();
SetToolbars
();
ReFillLayerWidget
();
// this is near end because contents establish size
syncLayerWidget
();
m_auimgr
.
Update
();
}
...
...
pcbnew/tool_pcb.cpp
View file @
347f32cc
...
...
@@ -288,6 +288,7 @@ void WinEDA_PcbFrame::ReCreateHToolbar()
wxBitmap
(
web_support_xpm
),
_
(
"Fast access to the Web Based FreeROUTE advanced router"
)
);
m_HToolBar
->
AddSeparator
();
// after adding the buttons to the toolbar, must call Realize() to reflect
// the changes
...
...
@@ -391,6 +392,7 @@ void WinEDA_PcbFrame::ReCreateOptToolbar()
wxITEM_CHECK
);
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
Realize
();
}
...
...
@@ -674,6 +676,7 @@ an existing track use its width\notherwise, use current width setting" ),
}
m_TrackAndViasSizesList_Changed
=
true
;
m_AuxiliaryToolBar
->
AddSeparator
();
ReCreateLayerBox
(
NULL
);
}
...
...
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