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
4e4776c3
Commit
4e4776c3
authored
Apr 02, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Showing module's value and reference text on proper layers.
parent
a97c9a1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
basepcbframe.cpp
pcbnew/basepcbframe.cpp
+1
-0
class_text_mod.cpp
pcbnew/class_text_mod.cpp
+18
-5
No files found.
pcbnew/basepcbframe.cpp
View file @
4e4776c3
...
...
@@ -92,6 +92,7 @@ const int m_galLayerOrder[] =
DRAW_N
,
COMMENT_N
,
ECO1_N
,
ECO2_N
,
EDGE_N
,
UNUSED_LAYER_29
,
UNUSED_LAYER_30
,
UNUSED_LAYER_31
,
ITEM_GAL_LAYER
(
MOD_TEXT_FR_VISIBLE
),
ITEM_GAL_LAYER
(
MOD_REFERENCES_VISIBLE
),
ITEM_GAL_LAYER
(
MOD_VALUES_VISIBLE
),
SILKSCREEN_N_FRONT
,
SOLDERPASTE_N_FRONT
,
ADHESIVE_N_FRONT
,
SOLDERMASK_N_FRONT
,
ITEM_GAL_LAYER
(
VIA_HOLES_VISIBLE
),
ITEM_GAL_LAYER
(
PAD_HOLES_VISIBLE
),
...
...
pcbnew/class_text_mod.cpp
View file @
4e4776c3
...
...
@@ -490,14 +490,27 @@ EDA_ITEM* TEXTE_MODULE::Clone() const
void
TEXTE_MODULE
::
ViewGetLayers
(
int
aLayers
[],
int
&
aCount
)
const
{
switch
(
GetParent
()
->
GetLayer
()
)
switch
(
m_Type
)
{
case
LAYER_N_BACK
:
aLayers
[
0
]
=
ITEM_GAL_LAYER
(
MOD_TEXT_BK_VISIBLE
);
// how about SILKSCREEN_N_BACK?
case
TEXT_is_REFERENCE
:
aLayers
[
0
]
=
ITEM_GAL_LAYER
(
MOD_REFERENCES_VISIBLE
);
break
;
case
TEXT_is_VALUE
:
aLayers
[
0
]
=
ITEM_GAL_LAYER
(
MOD_VALUES_VISIBLE
);
break
;
case
LAYER_N_FRONT
:
aLayers
[
0
]
=
ITEM_GAL_LAYER
(
MOD_TEXT_FR_VISIBLE
);
// how about SILKSCREEN_N_FRONT?
default
:
switch
(
GetParent
()
->
GetLayer
()
)
{
case
LAYER_N_BACK
:
aLayers
[
0
]
=
ITEM_GAL_LAYER
(
MOD_TEXT_BK_VISIBLE
);
// how about SILKSCREEN_N_BACK?
break
;
case
LAYER_N_FRONT
:
aLayers
[
0
]
=
ITEM_GAL_LAYER
(
MOD_TEXT_FR_VISIBLE
);
// how about SILKSCREEN_N_FRONT?
break
;
}
break
;
}
...
...
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