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
21013246
Commit
21013246
authored
Feb 28, 2015
by
Blair Bonnett
Committed by
Wayne Stambaugh
Feb 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wxGTK scrollbar assertion in Pcbnew layer setup dialog.
parent
4000820b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
13 deletions
+9
-13
draw_panel.cpp
common/draw_panel.cpp
+1
-7
dialog_layers_setup.cpp
pcbnew/dialogs/dialog_layers_setup.cpp
+3
-1
dialog_layers_setup_base.cpp
pcbnew/dialogs/dialog_layers_setup_base.cpp
+2
-2
dialog_layers_setup_base.fbp
pcbnew/dialogs/dialog_layers_setup_base.fbp
+2
-2
dialog_layers_setup_base.h
pcbnew/dialogs/dialog_layers_setup_base.h
+1
-1
No files found.
common/draw_panel.cpp
View file @
21013246
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* Copyright (C) 2009 Jean-Pierre Charras, jean-pierre.charras@gipsa-lab.inpg.fr
* Copyright (C) 2009 Jean-Pierre Charras, jean-pierre.charras@gipsa-lab.inpg.fr
* Copyright (C) 2007-2011 Wayne Stambaugh <stambaughw@verizon.net>
* Copyright (C) 2007-2011 Wayne Stambaugh <stambaughw@verizon.net>
* Copyright (C) 1992-201
1
KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 1992-201
5
KiCad Developers, see AUTHORS.txt for contributors.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* modify it under the terms of the GNU General Public License
...
@@ -87,18 +87,12 @@ END_EVENT_TABLE()
...
@@ -87,18 +87,12 @@ END_EVENT_TABLE()
EDA_DRAW_PANEL
::
EDA_DRAW_PANEL
(
EDA_DRAW_FRAME
*
parent
,
int
id
,
EDA_DRAW_PANEL
::
EDA_DRAW_PANEL
(
EDA_DRAW_FRAME
*
parent
,
int
id
,
const
wxPoint
&
pos
,
const
wxSize
&
size
)
:
const
wxPoint
&
pos
,
const
wxSize
&
size
)
:
#if wxCHECK_VERSION( 2, 9, 5 )
wxScrolledWindow
(
parent
,
id
,
pos
,
size
,
wxBORDER
|
wxHSCROLL
|
wxVSCROLL
)
wxScrolledWindow
(
parent
,
id
,
pos
,
size
,
wxBORDER
|
wxHSCROLL
|
wxVSCROLL
)
#else
wxScrolledWindow
(
parent
,
id
,
pos
,
size
,
wxBORDER
|
wxHSCROLL
|
wxVSCROLL
|
wxALWAYS_SHOW_SB
)
#endif
{
{
wxASSERT
(
parent
);
wxASSERT
(
parent
);
#if wxCHECK_VERSION( 2, 9, 5 )
ShowScrollbars
(
wxSHOW_SB_ALWAYS
,
wxSHOW_SB_ALWAYS
);
ShowScrollbars
(
wxSHOW_SB_ALWAYS
,
wxSHOW_SB_ALWAYS
);
DisableKeyboardScrolling
();
DisableKeyboardScrolling
();
#endif
m_scrollIncrementX
=
std
::
min
(
size
.
x
/
8
,
10
);
m_scrollIncrementX
=
std
::
min
(
size
.
x
/
8
,
10
);
m_scrollIncrementY
=
std
::
min
(
size
.
y
/
8
,
10
);
m_scrollIncrementY
=
std
::
min
(
size
.
y
/
8
,
10
);
...
...
pcbnew/dialogs/dialog_layers_setup.cpp
View file @
21013246
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* Copyright (C) 2009 Isaac Marino Bavaresco, isaacbavaresco@yahoo.com.br
* Copyright (C) 2009 Isaac Marino Bavaresco, isaacbavaresco@yahoo.com.br
* Copyright (C) 2009 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
* Copyright (C) 2009 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
* Copyright (C) 2009 KiCad Developers, see change_log.txt for contributors.
* Copyright (C) 2009
- 2015
KiCad Developers, see change_log.txt for contributors.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* modify it under the terms of the GNU General Public License
...
@@ -357,6 +357,8 @@ DIALOG_LAYERS_SETUP::DIALOG_LAYERS_SETUP( wxTopLevelWindow* aParent, BOARD* aBoa
...
@@ -357,6 +357,8 @@ DIALOG_LAYERS_SETUP::DIALOG_LAYERS_SETUP( wxTopLevelWindow* aParent, BOARD* aBoa
// plus 10 so we can have a border of 5 on both top and bottom.
// plus 10 so we can have a border of 5 on both top and bottom.
m_TitlePanel
->
SetMinSize
(
wxSize
(
-
1
,
m_AdhesFrontName
->
GetSize
().
y
+
10
)
);
m_TitlePanel
->
SetMinSize
(
wxSize
(
-
1
,
m_AdhesFrontName
->
GetSize
().
y
+
10
)
);
m_LayersListPanel
->
ShowScrollbars
(
wxSHOW_SB_ALWAYS
,
wxSHOW_SB_ALWAYS
);
Layout
();
Layout
();
Fit
();
Fit
();
...
...
pcbnew/dialogs/dialog_layers_setup_base.cpp
View file @
21013246
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Nov
6 2013
)
// C++ code generated with wxFormBuilder (version Nov
5 2014
)
// http://www.wxformbuilder.org/
// http://www.wxformbuilder.org/
//
//
// PLEASE DO "NOT" EDIT THIS FILE!
// PLEASE DO "NOT" EDIT THIS FILE!
...
@@ -73,7 +73,7 @@ DIALOG_LAYERS_SETUP_BASE::DIALOG_LAYERS_SETUP_BASE( wxWindow* parent, wxWindowID
...
@@ -73,7 +73,7 @@ DIALOG_LAYERS_SETUP_BASE::DIALOG_LAYERS_SETUP_BASE( wxWindow* parent, wxWindowID
b_layersListSizer
->
Add
(
bCaptionsSizer
,
0
,
wxALIGN_CENTER
|
wxEXPAND
|
wxRIGHT
|
wxLEFT
,
5
);
b_layersListSizer
->
Add
(
bCaptionsSizer
,
0
,
wxALIGN_CENTER
|
wxEXPAND
|
wxRIGHT
|
wxLEFT
,
5
);
m_LayersListPanel
=
new
wxScrolledWindow
(
this
,
wxID_ANY
,
wxDefaultPosition
,
wxSize
(
-
1
,
-
1
),
wx
ALWAYS_SHOW_SB
|
wx
RAISED_BORDER
|
wxTAB_TRAVERSAL
|
wxVSCROLL
);
m_LayersListPanel
=
new
wxScrolledWindow
(
this
,
wxID_ANY
,
wxDefaultPosition
,
wxSize
(
-
1
,
-
1
),
wxRAISED_BORDER
|
wxTAB_TRAVERSAL
|
wxVSCROLL
);
m_LayersListPanel
->
SetScrollRate
(
0
,
5
);
m_LayersListPanel
->
SetScrollRate
(
0
,
5
);
m_LayerListFlexGridSizer
=
new
wxFlexGridSizer
(
0
,
3
,
0
,
0
);
m_LayerListFlexGridSizer
=
new
wxFlexGridSizer
(
0
,
3
,
0
,
0
);
m_LayerListFlexGridSizer
->
AddGrowableCol
(
0
);
m_LayerListFlexGridSizer
->
AddGrowableCol
(
0
);
...
...
pcbnew/dialogs/dialog_layers_setup_base.fbp
View file @
21013246
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<wxFormBuilder_Project>
<wxFormBuilder_Project>
<FileVersion major="1" minor="1
1
" />
<FileVersion major="1" minor="1
3
" />
<object class="Project" expanded="1">
<object class="Project" expanded="1">
<property name="class_decoration"></property>
<property name="class_decoration"></property>
<property name="code_generation">C++</property>
<property name="code_generation">C++</property>
...
@@ -707,7 +707,7 @@
...
@@ -707,7 +707,7 @@
<property name="tooltip"></property>
<property name="tooltip"></property>
<property name="window_extra_style"></property>
<property name="window_extra_style"></property>
<property name="window_name"></property>
<property name="window_name"></property>
<property name="window_style">wx
ALWAYS_SHOW_SB|wx
RAISED_BORDER|wxTAB_TRAVERSAL|wxVSCROLL</property>
<property name="window_style">wxRAISED_BORDER|wxTAB_TRAVERSAL|wxVSCROLL</property>
<event name="OnChar"></event>
<event name="OnChar"></event>
<event name="OnEnterWindow"></event>
<event name="OnEnterWindow"></event>
<event name="OnEraseBackground"></event>
<event name="OnEraseBackground"></event>
pcbnew/dialogs/dialog_layers_setup_base.h
View file @
21013246
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Nov
6 2013
)
// C++ code generated with wxFormBuilder (version Nov
5 2014
)
// http://www.wxformbuilder.org/
// http://www.wxformbuilder.org/
//
//
// PLEASE DO "NOT" EDIT THIS FILE!
// PLEASE DO "NOT" EDIT THIS FILE!
...
...
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