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
67feced1
Commit
67feced1
authored
Nov 05, 2007
by
g_harland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update "Swap Layers:" and "Layer selection" dialog boxes again
parent
82d17cc2
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
444 additions
and
393 deletions
+444
-393
change_log.txt
change_log.txt
+20
-0
netlist_control.cpp
eeschema/netlist_control.cpp
+393
-383
select_layers_to_pcb.cpp
gerbview/select_layers_to_pcb.cpp
+15
-5
swap_layers.cpp
pcbnew/swap_layers.cpp
+16
-5
No files found.
change_log.txt
View file @
67feced1
...
@@ -4,6 +4,26 @@ Started 2007-June-11
...
@@ -4,6 +4,26 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
Please add newer entries at the top, list the date and your name with
email address.
email address.
2007-Nov-05 UPDATE Geoff Harland <gharlandau@yahoo.com.au>
================================================================================
+ eeschema
* The previously provided "Close" button within the "Netlist" dialog box has
now been replaced with a "Cancel" button, and this dialog can now (otherwise)
be cancelled by pressing the "Esc" key. General cleanup and beautification of
eeschema/netlist_control.cpp.
+ pcbnew
* The color of each text string provided within the "Swap Layers:" dialog box is
now set to blue for each string specifying that the associated layer is *not*
being swapped with any other layer, or to fushia for each string specifying that
the associated layer *is* being swapped with another layer. (This change was
made after being suggested by Dick Hollenbeck.)
+ gerbview
* The color of each text string provided within the "Layer selection" dialog box
is similarly now set to blue for each string specifying that the associated
Gerber layer is *not* being exported to any pcbnew layer, or to fushia for each
string specifying that the associated Gerber layer *is* being exported to a
pcbnew layer.
2007-Nov-2 UPDATE Dick Hollenbeck <dick@softplc.com>
2007-Nov-2 UPDATE Dick Hollenbeck <dick@softplc.com>
================================================================================
================================================================================
...
...
eeschema/netlist_control.cpp
View file @
67feced1
This diff is collapsed.
Click to expand it.
gerbview/select_layers_to_pcb.cpp
View file @
67feced1
...
@@ -176,8 +176,8 @@ WinEDA_SwapLayerFrame::WinEDA_SwapLayerFrame(WinEDA_GerberFrame *parent) :
...
@@ -176,8 +176,8 @@ WinEDA_SwapLayerFrame::WinEDA_SwapLayerFrame(WinEDA_GerberFrame *parent) :
// pcbnew layer that the Gerber layer has been mapped to). Each of those items are
// pcbnew layer that the Gerber layer has been mapped to). Each of those items are
// placed into the left hand column, middle column, and right hand column
// placed into the left hand column, middle column, and right hand column
// (respectively) of the Flexgrid sizer, and the color of the second text string
// (respectively) of the Flexgrid sizer, and the color of the second text string
// is set to
blue (to indicate that the actual text changes depending upon which
// is set to
fushia or blue (to respectively indicate whether the Gerber layer has
//
pcbnew layer has been selected by the child dialog box
).
//
been mapped to a pcbnew layer or is not being exported at all
).
// (Experimentation has shown that if a text control is used to depict which
// (Experimentation has shown that if a text control is used to depict which
// pcbnew layer that each Gerber layer is mapped to (instead of a static text
// pcbnew layer that each Gerber layer is mapped to (instead of a static text
// string), then those controls do not behave in a fully satisfactory manner in
// string), then those controls do not behave in a fully satisfactory manner in
...
@@ -224,7 +224,7 @@ WinEDA_SwapLayerFrame::WinEDA_SwapLayerFrame(WinEDA_GerberFrame *parent) :
...
@@ -224,7 +224,7 @@ WinEDA_SwapLayerFrame::WinEDA_SwapLayerFrame(WinEDA_GerberFrame *parent) :
// Provide another text string to specify which pcbnew layer that this
// Provide another text string to specify which pcbnew layer that this
// Gerber layer is initially mapped to, and set the initial text to
// Gerber layer is initially mapped to, and set the initial text to
// specify the appropriate pcbnew layer, and set the foreground color
// specify the appropriate pcbnew layer, and set the foreground color
// of the text to
blue (to indicate that the text can be chang
ed).
// of the text to
fushia (to indicate that the layer is being export
ed).
item_ID
=
ID_TEXT_0
+
ii
;
item_ID
=
ID_TEXT_0
+
ii
;
// When the first of these text strings is being added, determine what size is necessary to
// When the first of these text strings is being added, determine what size is necessary to
...
@@ -252,7 +252,7 @@ WinEDA_SwapLayerFrame::WinEDA_SwapLayerFrame(WinEDA_GerberFrame *parent) :
...
@@ -252,7 +252,7 @@ WinEDA_SwapLayerFrame::WinEDA_SwapLayerFrame(WinEDA_GerberFrame *parent) :
text
=
new
wxStaticText
(
this
,
item_ID
,
msg
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
text
=
new
wxStaticText
(
this
,
item_ID
,
msg
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
}
}
text
->
SetMinSize
(
goodSize
);
text
->
SetMinSize
(
goodSize
);
text
->
SetForegroundColour
(
*
wxBLUE
);
text
->
SetForegroundColour
(
wxColour
(
255
,
0
,
128
)
);
FlexColumnBoxSizer
->
Add
(
text
,
1
,
wxALIGN_LEFT
|
wxALIGN_CENTER_VERTICAL
|
wxLEFT
|
wxRIGHT
|
wxBOTTOM
,
5
);
FlexColumnBoxSizer
->
Add
(
text
,
1
,
wxALIGN_LEFT
|
wxALIGN_CENTER_VERTICAL
|
wxLEFT
|
wxRIGHT
|
wxBOTTOM
,
5
);
layer_list
[
ii
]
=
text
;
layer_list
[
ii
]
=
text
;
...
@@ -278,7 +278,7 @@ WinEDA_SwapLayerFrame::WinEDA_SwapLayerFrame(WinEDA_GerberFrame *parent) :
...
@@ -278,7 +278,7 @@ WinEDA_SwapLayerFrame::WinEDA_SwapLayerFrame(WinEDA_GerberFrame *parent) :
// using that type of sizer results in those buttons being automatically
// using that type of sizer results in those buttons being automatically
// located in positions appropriate for each (OS) version of KiCad.
// located in positions appropriate for each (OS) version of KiCad.
StdDialogButtonSizer
=
new
wxStdDialogButtonSizer
;
StdDialogButtonSizer
=
new
wxStdDialogButtonSizer
;
OuterBoxSizer
->
Add
(
StdDialogButtonSizer
,
0
,
wx
ALIGN_RIGHT
|
wxALL
,
10
);
OuterBoxSizer
->
Add
(
StdDialogButtonSizer
,
0
,
wx
GROW
|
wxALL
,
10
);
Button
=
new
wxButton
(
this
,
wxID_OK
,
_
(
"&OK"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
Button
=
new
wxButton
(
this
,
wxID_OK
,
_
(
"&OK"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
Button
->
SetForegroundColour
(
*
wxRED
);
Button
->
SetForegroundColour
(
*
wxRED
);
...
@@ -323,9 +323,19 @@ void WinEDA_SwapLayerFrame::Sel_Layer(wxCommandEvent& event)
...
@@ -323,9 +323,19 @@ void WinEDA_SwapLayerFrame::Sel_Layer(wxCommandEvent& event)
{
{
LayerLookUpTable
[
ButtonTable
[
ii
]]
=
jj
;
LayerLookUpTable
[
ButtonTable
[
ii
]]
=
jj
;
if
(
jj
==
NB_LAYERS
)
if
(
jj
==
NB_LAYERS
)
{
layer_list
[
ii
]
->
SetLabel
(
_
(
"Do not export"
)
);
layer_list
[
ii
]
->
SetLabel
(
_
(
"Do not export"
)
);
// Change the text color to blue (to highlight
// that this layer is *not* being exported)
layer_list
[
ii
]
->
SetForegroundColour
(
*
wxBLUE
);
}
else
else
{
layer_list
[
ii
]
->
SetLabel
(
ReturnPcbLayerName
(
jj
)
);
layer_list
[
ii
]
->
SetLabel
(
ReturnPcbLayerName
(
jj
)
);
// Change the text color to fushia (to highlight
// that this layer *is* being exported)
layer_list
[
ii
]
->
SetForegroundColour
(
wxColour
(
255
,
0
,
128
)
);
}
}
}
}
}
...
...
pcbnew/swap_layers.cpp
View file @
67feced1
...
@@ -125,9 +125,9 @@ WinEDA_SwapLayerFrame::WinEDA_SwapLayerFrame( WinEDA_BasePcbFrame* parent ) :
...
@@ -125,9 +125,9 @@ WinEDA_SwapLayerFrame::WinEDA_SwapLayerFrame( WinEDA_BasePcbFrame* parent ) :
// layer is mapped to), and a second static text string (to depict which layer
// layer is mapped to), and a second static text string (to depict which layer
// that the layer has been mapped to). Each of those items are placed into
// that the layer has been mapped to). Each of those items are placed into
// the left hand column, middle column, and right hand column (respectively)
// the left hand column, middle column, and right hand column (respectively)
// of the Flexgrid sizer, and the color of the second text string is set to
blue
// of the Flexgrid sizer, and the color of the second text string is set to
//
(to indicate that the actual text changes depending upon which
layer has been
//
fushia or blue (to respectively indicate whether the
layer has been
// s
elected by the child dialog box
).
// s
wapped to another layer or is not being swapped at all
).
// (Experimentation has shown that if a text control is used to depict which
// (Experimentation has shown that if a text control is used to depict which
// layer that each layer is mapped to (instead of a static text string), then
// layer that each layer is mapped to (instead of a static text string), then
// those controls do not behave in a fully satisfactory manner in the Linux
// those controls do not behave in a fully satisfactory manner in the Linux
...
@@ -165,7 +165,8 @@ WinEDA_SwapLayerFrame::WinEDA_SwapLayerFrame( WinEDA_BasePcbFrame* parent ) :
...
@@ -165,7 +165,8 @@ WinEDA_SwapLayerFrame::WinEDA_SwapLayerFrame( WinEDA_BasePcbFrame* parent ) :
// Provide another text string to specify which layer that this layer is
// Provide another text string to specify which layer that this layer is
// mapped to, set the initial text to "No Change" (to indicate that this
// mapped to, set the initial text to "No Change" (to indicate that this
// layer is currently unmapped to any other layer), and set the foreground
// layer is currently unmapped to any other layer), and set the foreground
// color of the text to blue (to indicate that the text can be changed).
// color of the text to blue (which also indicates that the layer is
// currently unmapped to any other layer).
item_ID
=
ID_TEXT_0
+
ii
;
item_ID
=
ID_TEXT_0
+
ii
;
// When the first of these text strings is being added, determine what size is necessary to
// When the first of these text strings is being added, determine what size is necessary to
...
@@ -213,7 +214,7 @@ WinEDA_SwapLayerFrame::WinEDA_SwapLayerFrame( WinEDA_BasePcbFrame* parent ) :
...
@@ -213,7 +214,7 @@ WinEDA_SwapLayerFrame::WinEDA_SwapLayerFrame( WinEDA_BasePcbFrame* parent ) :
// using that type of sizer results in those buttons being automatically
// using that type of sizer results in those buttons being automatically
// located in positions appropriate for each (OS) version of KiCad.
// located in positions appropriate for each (OS) version of KiCad.
StdDialogButtonSizer
=
new
wxStdDialogButtonSizer
;
StdDialogButtonSizer
=
new
wxStdDialogButtonSizer
;
OuterBoxSizer
->
Add
(
StdDialogButtonSizer
,
0
,
wx
ALIGN_RIGHT
|
wxALL
,
10
);
OuterBoxSizer
->
Add
(
StdDialogButtonSizer
,
0
,
wx
GROW
|
wxALL
,
10
);
Button
=
new
wxButton
(
this
,
wxID_OK
,
_
(
"&OK"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
Button
=
new
wxButton
(
this
,
wxID_OK
,
_
(
"&OK"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
Button
->
SetForegroundColour
(
*
wxRED
);
Button
->
SetForegroundColour
(
*
wxRED
);
...
@@ -270,9 +271,19 @@ void WinEDA_SwapLayerFrame::Sel_Layer( wxCommandEvent& event )
...
@@ -270,9 +271,19 @@ void WinEDA_SwapLayerFrame::Sel_Layer( wxCommandEvent& event )
{
{
New_Layer
[
ii
]
=
jj
;
New_Layer
[
ii
]
=
jj
;
if
(
jj
==
NB_LAYERS
)
if
(
jj
==
NB_LAYERS
)
{
layer_list
[
ii
]
->
SetLabel
(
_
(
"No Change"
)
);
layer_list
[
ii
]
->
SetLabel
(
_
(
"No Change"
)
);
// Change the text color to blue (to highlight
// that this layer is *not* being swapped)
layer_list
[
ii
]
->
SetForegroundColour
(
*
wxBLUE
);
}
else
else
{
layer_list
[
ii
]
->
SetLabel
(
ReturnPcbLayerName
(
jj
)
);
layer_list
[
ii
]
->
SetLabel
(
ReturnPcbLayerName
(
jj
)
);
// Change the text color to fushia (to highlight
// that this layer *is* being swapped)
layer_list
[
ii
]
->
SetForegroundColour
(
wxColour
(
255
,
0
,
128
)
);
}
}
}
}
}
...
...
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