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
d124cf45
Commit
d124cf45
authored
Feb 06, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverted changes introduced by the revision 4655.
parent
fff616c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
class_board_design_settings.h
include/class_board_design_settings.h
+3
-3
kicad_plugin.cpp
pcbnew/kicad_plugin.cpp
+1
-1
legacy_plugin.cpp
pcbnew/legacy_plugin.cpp
+2
-2
No files found.
include/class_board_design_settings.h
View file @
d124cf45
...
@@ -100,7 +100,7 @@ public:
...
@@ -100,7 +100,7 @@ public:
* returns a bit-mask of all the element categories that are visible
* returns a bit-mask of all the element categories that are visible
* @return int - the visible element categories in bit-mapped form.
* @return int - the visible element categories in bit-mapped form.
*/
*/
long
GetVisibleElements
()
const
int
GetVisibleElements
()
const
{
{
return
m_VisibleElements
;
return
m_VisibleElements
;
}
}
...
@@ -110,7 +110,7 @@ public:
...
@@ -110,7 +110,7 @@ public:
* changes the bit-mask of visible element categories
* changes the bit-mask of visible element categories
* @param aMask = The new bit-mask of visible element categories
* @param aMask = The new bit-mask of visible element categories
*/
*/
void
SetVisibleElements
(
long
aMask
)
void
SetVisibleElements
(
int
aMask
)
{
{
m_VisibleElements
=
aMask
;
m_VisibleElements
=
aMask
;
}
}
...
@@ -198,7 +198,7 @@ private:
...
@@ -198,7 +198,7 @@ private:
int
m_CopperLayerCount
;
///< Number of copper layers for this design
int
m_CopperLayerCount
;
///< Number of copper layers for this design
LAYER_MSK
m_EnabledLayers
;
///< Bit-mask for layer enabling
LAYER_MSK
m_EnabledLayers
;
///< Bit-mask for layer enabling
LAYER_MSK
m_VisibleLayers
;
///< Bit-mask for layer visibility
LAYER_MSK
m_VisibleLayers
;
///< Bit-mask for layer visibility
long
m_VisibleElements
;
///< Bit-mask for element category visibility
int
m_VisibleElements
;
///< Bit-mask for element category visibility
int
m_boardThickness
;
///< Board thickness for 3D viewer
int
m_boardThickness
;
///< Board thickness for 3D viewer
};
};
...
...
pcbnew/kicad_plugin.cpp
View file @
d124cf45
...
@@ -647,7 +647,7 @@ void PCB_IO::format( BOARD* aBoard, int aNestLevel ) const
...
@@ -647,7 +647,7 @@ void PCB_IO::format( BOARD* aBoard, int aNestLevel ) const
FMTIU
(
aBoard
->
GetGridOrigin
().
x
).
c_str
(),
FMTIU
(
aBoard
->
GetGridOrigin
().
x
).
c_str
(),
FMTIU
(
aBoard
->
GetGridOrigin
().
y
).
c_str
()
);
FMTIU
(
aBoard
->
GetGridOrigin
().
y
).
c_str
()
);
m_out
->
Print
(
aNestLevel
+
1
,
"(visible_elements %
l
X)
\n
"
,
m_out
->
Print
(
aNestLevel
+
1
,
"(visible_elements %X)
\n
"
,
aBoard
->
GetDesignSettings
().
GetVisibleElements
()
);
aBoard
->
GetDesignSettings
().
GetVisibleElements
()
);
aBoard
->
GetPlotOptions
().
Format
(
m_out
,
aNestLevel
+
1
);
aBoard
->
GetPlotOptions
().
Format
(
m_out
,
aNestLevel
+
1
);
...
...
pcbnew/legacy_plugin.cpp
View file @
d124cf45
...
@@ -870,7 +870,7 @@ void LEGACY_PLUGIN::loadSETUP()
...
@@ -870,7 +870,7 @@ void LEGACY_PLUGIN::loadSETUP()
else
if
(
TESTLINE
(
"VisibleElements"
)
)
else
if
(
TESTLINE
(
"VisibleElements"
)
)
{
{
long
visibleElements
=
hexParse
(
line
+
SZ
(
"VisibleElements"
)
);
int
visibleElements
=
hexParse
(
line
+
SZ
(
"VisibleElements"
)
);
bds
.
SetVisibleElements
(
visibleElements
);
bds
.
SetVisibleElements
(
visibleElements
);
}
}
...
@@ -3071,7 +3071,7 @@ void LEGACY_PLUGIN::saveSETUP( const BOARD* aBoard ) const
...
@@ -3071,7 +3071,7 @@ void LEGACY_PLUGIN::saveSETUP( const BOARD* aBoard ) const
fprintf
(
m_fp
,
"GridOrigin %s
\n
"
,
fmtBIUPoint
(
aBoard
->
GetGridOrigin
()
).
c_str
()
);
fprintf
(
m_fp
,
"GridOrigin %s
\n
"
,
fmtBIUPoint
(
aBoard
->
GetGridOrigin
()
).
c_str
()
);
fprintf
(
m_fp
,
"AuxiliaryAxisOrg %s
\n
"
,
fmtBIUPoint
(
aBoard
->
GetAuxOrigin
()
).
c_str
()
);
fprintf
(
m_fp
,
"AuxiliaryAxisOrg %s
\n
"
,
fmtBIUPoint
(
aBoard
->
GetAuxOrigin
()
).
c_str
()
);
fprintf
(
m_fp
,
"VisibleElements %
l
X
\n
"
,
bds
.
GetVisibleElements
()
);
fprintf
(
m_fp
,
"VisibleElements %X
\n
"
,
bds
.
GetVisibleElements
()
);
{
{
STRING_FORMATTER
sf
;
STRING_FORMATTER
sf
;
...
...
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