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
9a27065f
Commit
9a27065f
authored
Mar 26, 2011
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gerbview: fix bug 742785.
parent
89ff6c64
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
28 deletions
+13
-28
TODO.txt
TODO.txt
+0
-6
class_gerbview_layer_widget.cpp
gerbview/class_gerbview_layer_widget.cpp
+3
-8
gerbview_config.cpp
gerbview/gerbview_config.cpp
+0
-5
gerbview_frame.cpp
gerbview/gerbview_frame.cpp
+5
-4
gerbview_id.h
gerbview/gerbview_id.h
+1
-1
initpcb.cpp
gerbview/initpcb.cpp
+2
-2
class_pcb_layer_widget.cpp
pcbnew/class_pcb_layer_widget.cpp
+2
-2
No files found.
TODO.txt
View file @
9a27065f
...
...
@@ -28,7 +28,6 @@ CvPCB
EESchema
--------
* Use collector classes.
* Drag and drop between two EESchema windows.
Wayne:
...
...
@@ -45,11 +44,6 @@ E6) Start initial work for changing component library file format to use Dick's
support to the library editor.
GerbView
--------
* List control for layer sort on the fly
* Add excellon2 drill file support (small good library)
PCBNew
------
...
...
gerbview/class_gerbview_layer_widget.cpp
View file @
9a27065f
...
...
@@ -142,18 +142,13 @@ void GERBER_LAYER_WIDGET::onPopupSelection( wxCommandEvent& event )
{
int
rowCount
;
int
menuId
=
event
.
GetId
();
bool
visible
;
bool
visible
=
(
menuId
==
ID_SHOW_ALL_COPPERS
)
?
true
:
false
;
;
int
visibleLayers
=
0
;
switch
(
menuId
)
{
case
ID_SHOW_ALL_COPPERS
:
visible
=
true
;
goto
L_change_coppers
;
case
ID_SHOW_NO_COPPERS
:
visible
=
false
;
L_change_coppers
:
rowCount
=
GetLayerRowCount
();
for
(
int
row
=
0
;
row
<
rowCount
;
++
row
)
{
...
...
@@ -182,7 +177,8 @@ void GERBER_LAYER_WIDGET::ReFill()
{
wxString
msg
;
msg
.
Printf
(
_
(
"Layer %d"
),
layer
+
1
);
AppendLayerRow
(
LAYER_WIDGET
::
ROW
(
msg
,
layer
,
brd
->
GetLayerColor
(
layer
),
wxEmptyString
,
true
)
);
AppendLayerRow
(
LAYER_WIDGET
::
ROW
(
msg
,
layer
,
brd
->
GetLayerColor
(
layer
),
wxEmptyString
,
true
)
);
}
installRightLayerClickHandler
();
...
...
@@ -213,7 +209,6 @@ bool GERBER_LAYER_WIDGET::OnLayerSelect( int aLayer )
void
GERBER_LAYER_WIDGET
::
OnLayerVisible
(
int
aLayer
,
bool
isVisible
,
bool
isFinal
)
{
BOARD
*
brd
=
myframe
->
GetBoard
();
int
visibleLayers
=
brd
->
GetVisibleLayers
();
if
(
isVisible
)
...
...
gerbview/gerbview_config.cpp
View file @
9a27065f
...
...
@@ -19,13 +19,8 @@
void
GERBVIEW_FRAME
::
Process_Config
(
wxCommandEvent
&
event
)
{
int
id
=
event
.
GetId
();
wxPoint
pos
;
wxString
FullFileName
;
pos
=
GetPosition
();
pos
.
x
+=
20
;
pos
.
y
+=
20
;
switch
(
id
)
{
/* Hotkey IDs */
...
...
gerbview/gerbview_frame.cpp
View file @
9a27065f
...
...
@@ -62,6 +62,7 @@ GERBVIEW_FRAME::GERBVIEW_FRAME( wxWindow* father,
SetBoard
(
new
BOARD
(
NULL
,
this
)
);
GetBoard
()
->
SetEnabledLayers
(
FULL_LAYERS
);
// All 32 layers enabled at first.
GetBoard
()
->
SetVisibleLayers
(
FULL_LAYERS
);
// All 32 layers visible.
// Create the PCB_LAYER_WIDGET *after* SetBoard():
wxFont
font
=
wxSystemSettings
::
GetFont
(
wxSYS_DEFAULT_GUI_FONT
);
...
...
@@ -244,8 +245,8 @@ void GERBVIEW_FRAME::SaveSettings()
config
->
Write
(
GerbviewShowPageSizeOption
,
pageSize_opt
);
config
->
Write
(
GerbviewShowDCodes
,
IsElementVisible
(
DCODES_VISIBLE
)
);
// Save the drill file history list
//
because we have 2 file historu
es, we must save this one
// Save the drill file history list
.
//
Because we have 2 file histori
es, we must save this one
// in a specific path
config
->
SetPath
(
wxT
(
"drl_files"
)
);
m_drillFileHistory
.
Save
(
*
config
);
...
...
@@ -334,7 +335,7 @@ int GERBVIEW_FRAME::getNextAvailableLayer( int aLayer ) const
{
int
layer
=
aLayer
;
for
(
int
i
=
0
;
i
<
NB_LAYERS
;
i
++
)
for
(
int
i
=
0
;
i
<
LAYER_COUNT
;
i
++
)
{
GERBER_IMAGE
*
gerber
=
g_GERBER_List
[
layer
];
...
...
@@ -343,7 +344,7 @@ int GERBVIEW_FRAME::getNextAvailableLayer( int aLayer ) const
layer
++
;
if
(
layer
>=
NB_LAYERS
)
if
(
layer
>=
LAYER_COUNT
)
layer
=
0
;
}
...
...
gerbview/gerbview_id.h
View file @
9a27065f
...
...
@@ -15,7 +15,7 @@ enum gerbview_ids
{
ID_MAIN_MENUBAR
=
ID_END_LIST
,
ID_GERBVIEW_SHOW_LIST_DCODES
=
1
,
ID_GERBVIEW_SHOW_LIST_DCODES
,
ID_GERBVIEW_LOAD_DRILL_FILE
,
ID_GERBVIEW_LOAD_DCODE_FILE
,
ID_GERBVIEW_ERASE_ALL
,
...
...
gerbview/initpcb.cpp
View file @
9a27065f
...
...
@@ -28,7 +28,7 @@ bool GERBVIEW_FRAME::Clear_Pcb( bool query )
SetCurItem
(
NULL
);
GetBoard
()
->
m_Drawings
.
DeleteAll
();
for
(
layer
=
0
;
layer
<
32
;
layer
++
)
for
(
layer
=
0
;
layer
<
LAYER_COUNT
;
layer
++
)
{
if
(
g_GERBER_List
[
layer
]
)
{
...
...
@@ -45,7 +45,7 @@ bool GERBVIEW_FRAME::Clear_Pcb( bool query )
SetScreen
(
ScreenPcb
);
GetScreen
()
->
Init
();
setActiveLayer
(
LAYER_N_BACK
);
setActiveLayer
(
FIRST_COPPER_LAYER
);
syncLayerBox
();
return
TRUE
;
}
...
...
pcbnew/class_pcb_layer_widget.cpp
View file @
9a27065f
...
...
@@ -140,10 +140,10 @@ void PCB_LAYER_WIDGET::onRightDownLayers( wxMouseEvent& event )
// menu text is capitalized:
// http://library.gnome.org/devel/hig-book/2.20/design-text-labels.html.en#layout-capitalization
menu
.
Append
(
new
wxMenuItem
(
&
menu
,
ID_SHOW_ALL_COPPERS
,
_
(
"Show All C
u
"
)
)
);
_
(
"Show All C
opper Layers
"
)
)
);
menu
.
Append
(
new
wxMenuItem
(
&
menu
,
ID_SHOW_NO_COPPERS
,
_
(
"Hide All C
u
"
)
)
);
_
(
"Hide All C
opper Layers
"
)
)
);
PopupMenu
(
&
menu
);
...
...
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