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
0cb7c3dc
Commit
0cb7c3dc
authored
Jan 10, 2015
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ModEdit: fix incorrect size of the toolbar grid size combo box
parent
9cfb97d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
tool_modedit.cpp
pcbnew/tool_modedit.cpp
+5
-14
No files found.
pcbnew/tool_modedit.cpp
View file @
0cb7c3dc
...
@@ -38,12 +38,6 @@
...
@@ -38,12 +38,6 @@
#include <pcbnew_id.h>
#include <pcbnew_id.h>
#include <hotkeys.h>
#include <hotkeys.h>
#ifdef __UNIX__
#define LISTBOX_WIDTH 140
#else
#define LISTBOX_WIDTH 120
#endif
void
FOOTPRINT_EDIT_FRAME
::
ReCreateHToolbar
()
void
FOOTPRINT_EDIT_FRAME
::
ReCreateHToolbar
()
{
{
...
@@ -266,9 +260,10 @@ void FOOTPRINT_EDIT_FRAME::ReCreateAuxiliaryToolbar()
...
@@ -266,9 +260,10 @@ void FOOTPRINT_EDIT_FRAME::ReCreateAuxiliaryToolbar()
m_gridSelectBox
=
new
wxComboBox
(
m_auxiliaryToolBar
,
m_gridSelectBox
=
new
wxComboBox
(
m_auxiliaryToolBar
,
ID_ON_GRID_SELECT
,
ID_ON_GRID_SELECT
,
wxEmptyString
,
wxEmptyString
,
wxPoint
(
-
1
,
-
1
),
wxDefaultPosition
,
wxDefaultSize
,
wxSize
(
LISTBOX_WIDTH
,
-
1
),
0
,
NULL
,
wxCB_READONLY
);
0
,
NULL
,
wxCB_READONLY
);
// Update tool bar to reflect setting.
updateGridSelectBox
();
m_auxiliaryToolBar
->
AddControl
(
m_gridSelectBox
);
m_auxiliaryToolBar
->
AddControl
(
m_gridSelectBox
);
// Zoom selection choice box.
// Zoom selection choice box.
...
@@ -276,14 +271,10 @@ void FOOTPRINT_EDIT_FRAME::ReCreateAuxiliaryToolbar()
...
@@ -276,14 +271,10 @@ void FOOTPRINT_EDIT_FRAME::ReCreateAuxiliaryToolbar()
m_zoomSelectBox
=
new
wxComboBox
(
m_auxiliaryToolBar
,
m_zoomSelectBox
=
new
wxComboBox
(
m_auxiliaryToolBar
,
ID_ON_ZOOM_SELECT
,
ID_ON_ZOOM_SELECT
,
wxEmptyString
,
wxEmptyString
,
wxPoint
(
-
1
,
-
1
),
wxDefaultPosition
,
wxDefaultSize
,
wxSize
(
LISTBOX_WIDTH
,
-
1
),
0
,
NULL
,
wxCB_READONLY
);
0
,
NULL
,
wxCB_READONLY
);
m_auxiliaryToolBar
->
AddControl
(
m_zoomSelectBox
);
// Update tool bar to reflect setting.
updateGridSelectBox
();
updateZoomSelectBox
();
updateZoomSelectBox
();
m_auxiliaryToolBar
->
AddControl
(
m_zoomSelectBox
);
// after adding the buttons to the toolbar, must call Realize() to reflect the changes
// after adding the buttons to the toolbar, must call Realize() to reflect the changes
m_auxiliaryToolBar
->
Realize
();
m_auxiliaryToolBar
->
Realize
();
...
...
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