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
813d303c
Commit
813d303c
authored
Nov 10, 2007
by
CHARRAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove eeconfig.h error, and wxWidget version dependent trivial compile warning
parent
abd7e400
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
315 additions
and
308 deletions
+315
-308
eeconfig.h
eeschema/eeconfig.h
+293
-293
netlist.h
eeschema/netlist.h
+21
-14
zones.cpp
pcbnew/zones.cpp
+1
-1
No files found.
eeschema/eeconfig.h
View file @
813d303c
/************************************************************/
/** eeconfig.h : configuration: definition des structures **/
/************************************************************/
/************************************************************/
/** eeconfig.h : configuration: definition des structures **/
/************************************************************/
#ifndef eda_global
#define eda_global extern
#endif
#define GROUP
wxT("/eeschema"
)
#define GROUPCOMMON wxT(
"/common"
)
#define GROUPLIB
wxT("libraries"
)
#define GROUP
wxT( "/eeschema"
)
#define GROUPCOMMON wxT(
"/common"
)
#define GROUPLIB
wxT( "libraries"
)
#include "netlist.h"
/* Definitions generales liees au calcul de netliste */
#include "netlist.h"
/* Definitions generales liees au calcul de netliste */
/* variables importees */
extern
int
g_PenMinWidth
;
/* saving parameters option : */
#define INSETUP TRUE
// used when the parameter is saved in general config
// if not used, the parameter is saved in the loca config (project config)
#define INSETUP TRUE
// used when the parameter is saved in general config
// if not used, the parameter is saved in the loca config (project config)
/* Liste des parametres */
static
PARAM_CFG_WXSTRING
UserLibDirBufCfg
(
wxT
(
"LibDir"
),
/* Ident String */
&
g_UserLibDirBuffer
/* Parameter address */
);
(
wxT
(
"LibDir"
),
/* Ident String */
&
g_UserLibDirBuffer
/* Parameter address */
);
static
PARAM_CFG_LIBNAME_LIST
LibNameBufCfg
(
wxT
(
"LibName"
),
/* Ident String */
&
g_LibName_List
,
/* Parameter address */
GROUPLIB
/* Groupe */
wxT
(
"LibName"
),
/* Ident String */
&
g_LibName_List
,
/* Parameter address */
GROUPLIB
/* Groupe */
);
static
PARAM_CFG_INT
NetFormatCfg
(
wxT
(
"NetFmt"
),
/* Ident String */
&
g_NetFormat
,
/* Parameter address */
NET_TYPE_PCBNEW
,
/* Default value */
NET_TYPE_UNINIT
,
NET_TYPE_CUSTOM1
/* Min and Max values
for the parameter */
/*NET_TYPE_NOT_INIT, NET_TYPE_MAX-1*/
wxT
(
"NetFmt"
),
/* Ident String */
&
g_NetFormat
,
/* Parameter address */
NET_TYPE_PCBNEW
,
/* Default value */
NET_TYPE_PCBNEW
,
/* Min value
for the parameter */
NET_TYPE_CUSTOM_MAX
/* Max value for the parameter */
);
static
PARAM_CFG_INT
UnitCfg
(
INSETUP
,
wxT
(
"Unite"
),
/* Ident String */
&
g_UnitMetric
,
/* Parameter address */
0
,
/* Default value */
0
,
1
/* Min and Max values for the parameter */
INSETUP
,
wxT
(
"Unite"
),
/* Ident String */
&
g_UnitMetric
,
/* Parameter address */
0
,
/* Default value */
0
,
1
/* Min and Max values for the parameter */
);
static
PARAM_CFG_INT
CursorShapeCfg
(
INSETUP
,
wxT
(
"CuShape"
),
/* Ident String */
&
g_CursorShape
,
/* Parameter address */
0
,
/* Default value */
0
,
1
/* Min and Max values for the parameter */
INSETUP
,
wxT
(
"CuShape"
),
/* Ident String */
&
g_CursorShape
,
/* Parameter address */
0
,
/* Default value */
0
,
1
/* Min and Max values for the parameter */
);
static
PARAM_CFG_INT
ShowGridCfg
(
INSETUP
,
wxT
(
"ShGrid"
),
/* Ident String */
&
g_ShowGrid
,
/* Parameter address */
0
,
1
,
/* Min and Max values for the parameter */
1
/* Default value */
INSETUP
,
wxT
(
"ShGrid"
),
/* Ident String */
&
g_ShowGrid
,
/* Parameter address */
0
,
1
,
/* Min and Max values for the parameter */
1
/* Default value */
);
static
PARAM_CFG_SETCOLOR
DrawBgColorCfg
(
INSETUP
,
wxT
(
"BgColor"
),
/* Ident String */
&
g_DrawBgColor
,
/* Parameter address */
WHITE
/* Default value */
INSETUP
,
wxT
(
"BgColor"
),
/* Ident String */
&
g_DrawBgColor
,
/* Parameter address */
WHITE
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerWireCfg
(
INSETUP
,
wxT
(
"ColWire"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_WIRE
],
/* Parameter address */
GREEN
/* Default value */
INSETUP
,
wxT
(
"ColWire"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_WIRE
],
/* Parameter address */
GREEN
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerBusCfg
(
INSETUP
,
wxT
(
"ColorBus"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_BUS
],
/* Parameter address */
BLUE
/* Default value */
INSETUP
,
wxT
(
"ColorBus"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_BUS
],
/* Parameter address */
BLUE
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerJunctionCfg
(
INSETUP
,
wxT
(
"ColorConn"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_JUNCTION
],
/* Parameter address */
GREEN
/* Default value */
INSETUP
,
wxT
(
"ColorConn"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_JUNCTION
],
/* Parameter address */
GREEN
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerLLabelCfg
(
INSETUP
,
wxT
(
"ColorLlab"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_LOCLABEL
],
/* Parameter address */
BLACK
/* Default value */
INSETUP
,
wxT
(
"ColorLlab"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_LOCLABEL
],
/* Parameter address */
BLACK
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerGLabelCfg
(
INSETUP
,
wxT
(
"ColorGlab"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_GLOBLABEL
],
/* Parameter address */
BROWN
/* Default value */
INSETUP
,
wxT
(
"ColorGlab"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_GLOBLABEL
],
/* Parameter address */
BROWN
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerPinFunCfg
(
INSETUP
,
wxT
(
"ColorPinF"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_PINFUN
],
/* Parameter address */
MAGENTA
/* Default value */
INSETUP
,
wxT
(
"ColorPinF"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_PINFUN
],
/* Parameter address */
MAGENTA
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerPinNumCfg
(
INSETUP
,
wxT
(
"ColPinN"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_PINNUM
],
/* Parameter address */
RED
/* Default value */
INSETUP
,
wxT
(
"ColPinN"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_PINNUM
],
/* Parameter address */
RED
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerPinNamCfg
(
INSETUP
,
wxT
(
"ColorPNam"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_PINNAM
],
/* Parameter address */
CYAN
/* Default value */
INSETUP
,
wxT
(
"ColorPNam"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_PINNAM
],
/* Parameter address */
CYAN
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerFieldsCfg
(
INSETUP
,
wxT
(
"ColorField"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_FIELDS
],
/* Parameter address */
MAGENTA
/* Default value */
INSETUP
,
wxT
(
"ColorField"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_FIELDS
],
/* Parameter address */
MAGENTA
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerReferenceCfg
(
INSETUP
,
wxT
(
"ColorRef"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_REFERENCEPART
],
/* Parameter address */
CYAN
/* Default value */
INSETUP
,
wxT
(
"ColorRef"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_REFERENCEPART
],
/* Parameter address */
CYAN
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerValueCfg
(
INSETUP
,
wxT
(
"ColorValue"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_VALUEPART
],
/* Parameter address */
CYAN
/* Default value */
INSETUP
,
wxT
(
"ColorValue"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_VALUEPART
],
/* Parameter address */
CYAN
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerNotesCfg
(
INSETUP
,
wxT
(
"ColorNote"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_NOTES
],
/* Parameter address */
LIGHTBLUE
/* Default value */
INSETUP
,
wxT
(
"ColorNote"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_NOTES
],
/* Parameter address */
LIGHTBLUE
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerBodyCfg
(
INSETUP
,
wxT
(
"ColorBody"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_DEVICE
],
/* Parameter address */
RED
/* Default value */
INSETUP
,
wxT
(
"ColorBody"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_DEVICE
],
/* Parameter address */
RED
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerBodyBackgroundCfg
(
INSETUP
,
wxT
(
"ColorBodyBg"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_DEVICE_BACKGROUND
],
/* Parameter address */
LIGHTYELLOW
/* Default value */
INSETUP
,
wxT
(
"ColorBodyBg"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_DEVICE_BACKGROUND
],
/* Parameter address */
LIGHTYELLOW
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerNetNameCfg
(
INSETUP
,
wxT
(
"ColorNetN"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_NETNAM
],
/* Parameter address */
DARKGRAY
/* Default value */
INSETUP
,
wxT
(
"ColorNetN"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_NETNAM
],
/* Parameter address */
DARKGRAY
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerPinCfg
(
INSETUP
,
wxT
(
"ColorPin"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_PIN
],
/* Parameter address */
RED
/* Default value */
INSETUP
,
wxT
(
"ColorPin"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_PIN
],
/* Parameter address */
RED
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerSheetCfg
(
INSETUP
,
wxT
(
"ColorSheet"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_SHEET
],
/* Parameter address */
MAGENTA
/* Default value */
INSETUP
,
wxT
(
"ColorSheet"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_SHEET
],
/* Parameter address */
MAGENTA
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerSheetFileNameCfg
(
INSETUP
,
wxT
(
"ColorSheetFileName"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_SHEETFILENAME
],
/* Parameter address */
BROWN
/* Default value */
INSETUP
,
wxT
(
"ColorSheetFileName"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_SHEETFILENAME
],
/* Parameter address */
BROWN
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerSheetNameCfg
(
INSETUP
,
wxT
(
"ColorSheetName"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_SHEETNAME
],
/* Parameter address */
CYAN
/* Default value */
INSETUP
,
wxT
(
"ColorSheetName"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_SHEETNAME
],
/* Parameter address */
CYAN
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerSheetLabelCfg
(
INSETUP
,
wxT
(
"ColorSheetLab"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_SHEETLABEL
],
/* Parameter address */
BROWN
/* Default value */
INSETUP
,
wxT
(
"ColorSheetLab"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_SHEETLABEL
],
/* Parameter address */
BROWN
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerNoConnectCfg
(
INSETUP
,
wxT
(
"ColorNoCo"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_NOCONNECT
],
/* Parameter address */
BLUE
/* Default value */
INSETUP
,
wxT
(
"ColorNoCo"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_NOCONNECT
],
/* Parameter address */
BLUE
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerErcWarnCfg
(
INSETUP
,
wxT
(
"ColorErcW"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_ERC_WARN
],
/* Parameter address */
GREEN
/* Default value */
INSETUP
,
wxT
(
"ColorErcW"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_ERC_WARN
],
/* Parameter address */
GREEN
/* Default value */
);
static
PARAM_CFG_SETCOLOR
ColorLayerErcErrCfg
(
INSETUP
,
wxT
(
"ColorErcE"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_ERC_ERR
],
/* Parameter address */
RED
/* Default value */
INSETUP
,
wxT
(
"ColorErcE"
),
/* Ident String */
&
g_LayerDescr
.
LayerColor
[
LAYER_ERC_ERR
],
/* Parameter address */
RED
/* Default value */
);
static
PARAM_CFG_INT
PlotMarginCfg
(
INSETUP
,
wxT
(
"Pltmarg"
),
/* Ident String */
&
g_PlotMargin
,
/* Parameter address */
300
,
/* Default value */
0
,
10000
/* Min and Max values for the parameter */
INSETUP
,
wxT
(
"Pltmarg"
),
/* Ident String */
&
g_PlotMargin
,
/* Parameter address */
300
,
/* Default value */
0
,
10000
/* Min and Max values for the parameter */
);
static
PARAM_CFG_INT
HPGLSpeed
(
wxT
(
"HPGLSpd"
),
/* Ident String */
&
g_HPGL_Pen_Descr
.
m_Pen_Speed
,
/* Parameter address */
20
,
/* Default value */
2
,
45
/* Min and Max values for the parameter */
wxT
(
"HPGLSpd"
),
/* Ident String */
&
g_HPGL_Pen_Descr
.
m_Pen_Speed
,
/* Parameter address */
20
,
/* Default value */
2
,
45
/* Min and Max values for the parameter */
);
static
PARAM_CFG_INT
HPGLDiam
(
wxT
(
"HPGLDm"
),
/* Ident String */
&
g_HPGL_Pen_Descr
.
m_Pen_Diam
,
/* Parameter address */
15
,
/* Default value */
1
,
150
/* Min and Max values for the parameter */
wxT
(
"HPGLDm"
),
/* Ident String */
&
g_HPGL_Pen_Descr
.
m_Pen_Diam
,
/* Parameter address */
15
,
/* Default value */
1
,
150
/* Min and Max values for the parameter */
);
static
PARAM_CFG_INT
HPGLPenNum
(
wxT
(
"HPGLNum"
),
/* Ident String */
&
g_HPGL_Pen_Descr
.
m_Pen_Num
,
/* Parameter address */
1
,
/* Default value */
1
,
8
/* Min and Max values for the parameter */
wxT
(
"HPGLNum"
),
/* Ident String */
&
g_HPGL_Pen_Descr
.
m_Pen_Num
,
/* Parameter address */
1
,
/* Default value */
1
,
8
/* Min and Max values for the parameter */
);
static
PARAM_CFG_INT
PlotSheetOffsetX_A4
(
wxT
(
"offX_A4"
),
/* Ident String */
&
g_Sheet_A4
.
m_Offset
.
x
/* Parameter address */
wxT
(
"offX_A4"
),
/* Ident String */
&
g_Sheet_A4
.
m_Offset
.
x
/* Parameter address */
);
static
PARAM_CFG_INT
PlotSheetOffsetY_A4
(
wxT
(
"offY_A4"
),
/* Ident String */
&
g_Sheet_A4
.
m_Offset
.
y
/* Parameter address */
wxT
(
"offY_A4"
),
/* Ident String */
&
g_Sheet_A4
.
m_Offset
.
y
/* Parameter address */
);
static
PARAM_CFG_INT
PlotSheetOffsetX_A3
(
wxT
(
"offX_A3"
),
/* Ident String */
&
g_Sheet_A3
.
m_Offset
.
x
/* Parameter address */
wxT
(
"offX_A3"
),
/* Ident String */
&
g_Sheet_A3
.
m_Offset
.
x
/* Parameter address */
);
static
PARAM_CFG_INT
PlotSheetOffsetY_A3
(
wxT
(
"offY_A3"
),
/* Ident String */
&
g_Sheet_A3
.
m_Offset
.
y
/* Parameter address */
wxT
(
"offY_A3"
),
/* Ident String */
&
g_Sheet_A3
.
m_Offset
.
y
/* Parameter address */
);
static
PARAM_CFG_INT
PlotSheetOffsetX_A2
(
wxT
(
"offX_A2"
),
/* Ident String */
&
g_Sheet_A2
.
m_Offset
.
x
/* Parameter address */
wxT
(
"offX_A2"
),
/* Ident String */
&
g_Sheet_A2
.
m_Offset
.
x
/* Parameter address */
);
static
PARAM_CFG_INT
PlotSheetOffsetY_A2
(
wxT
(
"offY_A2"
),
/* Ident String */
&
g_Sheet_A2
.
m_Offset
.
y
/* Parameter address */
wxT
(
"offY_A2"
),
/* Ident String */
&
g_Sheet_A2
.
m_Offset
.
y
/* Parameter address */
);
static
PARAM_CFG_INT
PlotSheetOffsetX_A1
(
wxT
(
"offX_A1"
),
/* Ident String */
&
g_Sheet_A1
.
m_Offset
.
x
/* Parameter address */
wxT
(
"offX_A1"
),
/* Ident String */
&
g_Sheet_A1
.
m_Offset
.
x
/* Parameter address */
);
static
PARAM_CFG_INT
PlotSheetOffsetY_A1
(
wxT
(
"offY_A1"
),
/* Ident String */
&
g_Sheet_A1
.
m_Offset
.
y
/* Parameter address */
wxT
(
"offY_A1"
),
/* Ident String */
&
g_Sheet_A1
.
m_Offset
.
y
/* Parameter address */
);
static
PARAM_CFG_INT
PlotSheetOffsetX_A0
(
wxT
(
"offX_A0"
),
/* Ident String */
&
g_Sheet_A0
.
m_Offset
.
x
/* Parameter address */
wxT
(
"offX_A0"
),
/* Ident String */
&
g_Sheet_A0
.
m_Offset
.
x
/* Parameter address */
);
static
PARAM_CFG_INT
PlotSheetOffsetY_A0
(
wxT
(
"offY_A0"
),
/* Ident String */
&
g_Sheet_A0
.
m_Offset
.
y
/* Parameter address */
wxT
(
"offY_A0"
),
/* Ident String */
&
g_Sheet_A0
.
m_Offset
.
y
/* Parameter address */
);
static
PARAM_CFG_INT
PlotSheetOffsetX_A
static
PARAM_CFG_INT
PlotSheetOffsetX_A
(
wxT
(
"offX_A"
),
/* Ident String */
&
g_Sheet_A
.
m_Offset
.
x
/* Parameter address */
wxT
(
"offX_A"
),
/* Ident String */
&
g_Sheet_A
.
m_Offset
.
x
/* Parameter address */
);
static
PARAM_CFG_INT
PlotSheetOffsetY_A
static
PARAM_CFG_INT
PlotSheetOffsetY_A
(
wxT
(
"offY_A"
),
/* Ident String */
&
g_Sheet_A
.
m_Offset
.
y
/* Parameter address */
wxT
(
"offY_A"
),
/* Ident String */
&
g_Sheet_A
.
m_Offset
.
y
/* Parameter address */
);
static
PARAM_CFG_INT
PlotSheetOffsetX_B
static
PARAM_CFG_INT
PlotSheetOffsetX_B
(
wxT
(
"offX_B"
),
/* Ident String */
&
g_Sheet_B
.
m_Offset
.
x
/* Parameter address */
wxT
(
"offX_B"
),
/* Ident String */
&
g_Sheet_B
.
m_Offset
.
x
/* Parameter address */
);
static
PARAM_CFG_INT
PlotSheetOffsetY_B
static
PARAM_CFG_INT
PlotSheetOffsetY_B
(
wxT
(
"offY_B"
),
/* Ident String */
&
g_Sheet_B
.
m_Offset
.
y
/* Parameter address */
wxT
(
"offY_B"
),
/* Ident String */
&
g_Sheet_B
.
m_Offset
.
y
/* Parameter address */
);
static
PARAM_CFG_INT
PlotSheetOffsetX_C
static
PARAM_CFG_INT
PlotSheetOffsetX_C
(
wxT
(
"offX_C"
),
/* Ident String */
&
g_Sheet_C
.
m_Offset
.
x
/* Parameter address */
wxT
(
"offX_C"
),
/* Ident String */
&
g_Sheet_C
.
m_Offset
.
x
/* Parameter address */
);
static
PARAM_CFG_INT
PlotSheetOffsetY_C
static
PARAM_CFG_INT
PlotSheetOffsetY_C
(
wxT
(
"offY_C"
),
/* Ident String */
&
g_Sheet_C
.
m_Offset
.
y
/* Parameter address */
wxT
(
"offY_C"
),
/* Ident String */
&
g_Sheet_C
.
m_Offset
.
y
/* Parameter address */
);
static
PARAM_CFG_INT
PlotSheetOffsetX_D
static
PARAM_CFG_INT
PlotSheetOffsetX_D
(
wxT
(
"offX_D"
),
/* Ident String */
&
g_Sheet_D
.
m_Offset
.
x
/* Parameter address */
wxT
(
"offX_D"
),
/* Ident String */
&
g_Sheet_D
.
m_Offset
.
x
/* Parameter address */
);
static
PARAM_CFG_INT
PlotSheetOffsetY_D
static
PARAM_CFG_INT
PlotSheetOffsetY_D
(
wxT
(
"offY_D"
),
/* Ident String */
&
g_Sheet_D
.
m_Offset
.
y
/* Parameter address */
wxT
(
"offY_D"
),
/* Ident String */
&
g_Sheet_D
.
m_Offset
.
y
/* Parameter address */
);
static
PARAM_CFG_INT
PlotSheetOffsetX_E
static
PARAM_CFG_INT
PlotSheetOffsetX_E
(
wxT
(
"offX_E"
),
/* Ident String */
&
g_Sheet_E
.
m_Offset
.
x
/* Parameter address */
wxT
(
"offX_E"
),
/* Ident String */
&
g_Sheet_E
.
m_Offset
.
x
/* Parameter address */
);
static
PARAM_CFG_INT
PlotSheetOffsetY_E
static
PARAM_CFG_INT
PlotSheetOffsetY_E
(
wxT
(
"offY_E"
),
/* Ident String */
&
g_Sheet_E
.
m_Offset
.
y
/* Parameter address */
wxT
(
"offY_E"
),
/* Ident String */
&
g_Sheet_E
.
m_Offset
.
y
/* Parameter address */
);
static
PARAM_CFG_INT
CfgRepeatDeltaX
static
PARAM_CFG_INT
CfgRepeatDeltaX
(
wxT
(
"RptD_X"
),
/* Ident String */
&
g_RepeatStep
.
x
,
/* parameter address */
0
,
/* Default value */
-
1000
,
+
1000
/* Min and Max values for the parameter */
wxT
(
"RptD_X"
),
/* Ident String */
&
g_RepeatStep
.
x
,
/* parameter address */
0
,
/* Default value */
-
1000
,
+
1000
/* Min and Max values for the parameter */
);
static
PARAM_CFG_INT
CfgRepeatDeltaY
static
PARAM_CFG_INT
CfgRepeatDeltaY
(
wxT
(
"RptD_Y"
),
/* Ident String */
&
g_RepeatStep
.
y
,
/* Parameter address */
100
,
/* Default value */
-
1000
,
+
1000
/* Min and Max values for the parameter */
wxT
(
"RptD_Y"
),
/* Ident String */
&
g_RepeatStep
.
y
,
/* Parameter address */
100
,
/* Default value */
-
1000
,
+
1000
/* Min and Max values for the parameter */
);
static
PARAM_CFG_INT
CfgRepeatDeltaLabel
static
PARAM_CFG_INT
CfgRepeatDeltaLabel
(
wxT
(
"RptLab"
),
/* Ident String */
&
g_RepeatDeltaLabel
,
/* Parameter address */
1
,
/* Default value */
-
10
,
+
10
/* Min and Max values for the parameter */
wxT
(
"RptLab"
),
/* Ident String */
&
g_RepeatDeltaLabel
,
/* Parameter address */
1
,
/* Default value */
-
10
,
+
10
/* Min and Max values for the parameter */
);
static
PARAM_CFG_WXSTRING
CfgSimulatorCommandLine
(
wxT
(
"SimCmd"
),
/* Ident String */
&
g_SimulatorCommandLine
/* Parameter address */
wxT
(
"SimCmd"
),
/* Ident String */
&
g_SimulatorCommandLine
/* Parameter address */
);
static
PARAM_CFG_INT
OptNetListUseNamesCfg
(
wxT
(
"UseNetN"
),
/* Ident String */
&
g_OptNetListUseNames
,
/* Parameter address */
0
,
/* Default value */
0
,
1
/* Min and Max values for the parameter */
wxT
(
"UseNetN"
),
/* Ident String */
&
g_OptNetListUseNames
,
/* Parameter address */
0
,
/* Default value */
0
,
1
/* Min and Max values for the parameter */
);
static
PARAM_CFG_INT
OptDefaultLabelSizeCfg
(
wxT
(
"LabSize"
),
/* Ident String */
&
g_DefaultTextLabelSize
,
/* Parameter address */
DEFAULT_SIZE_TEXT
,
/* Default value */
0
,
1000
/* Min and Max values for the parameter */
);
PARAM_CFG_BASE
*
ParamCfgList
[]
=
{
&
UserLibDirBufCfg
,
&
LibNameBufCfg
,
&
NetFormatCfg
,
&
UnitCfg
,
&
CursorShapeCfg
,
&
ShowGridCfg
,
&
DrawBgColorCfg
,
&
ColorLayerWireCfg
,
&
ColorLayerBusCfg
,
&
ColorLayerJunctionCfg
,
&
ColorLayerLLabelCfg
,
&
ColorLayerGLabelCfg
,
&
ColorLayerPinFunCfg
,
&
ColorLayerPinNumCfg
,
&
ColorLayerPinNamCfg
,
&
ColorLayerFieldsCfg
,
&
ColorLayerReferenceCfg
,
&
ColorLayerValueCfg
,
&
ColorLayerNotesCfg
,
&
ColorLayerBodyCfg
,
&
ColorLayerBodyBackgroundCfg
,
&
ColorLayerNetNameCfg
,
&
ColorLayerPinCfg
,
&
ColorLayerSheetCfg
,
&
ColorLayerSheetFileNameCfg
,
&
ColorLayerSheetNameCfg
,
&
ColorLayerSheetLabelCfg
,
&
ColorLayerNoConnectCfg
,
&
ColorLayerErcWarnCfg
,
&
ColorLayerErcErrCfg
,
&
PlotMarginCfg
,
&
HPGLSpeed
,
&
HPGLDiam
,
&
HPGLPenNum
,
&
PlotSheetOffsetX_A4
,
&
PlotSheetOffsetY_A4
,
&
PlotSheetOffsetX_A3
,
&
PlotSheetOffsetY_A3
,
&
PlotSheetOffsetX_A2
,
&
PlotSheetOffsetY_A2
,
&
PlotSheetOffsetX_A1
,
&
PlotSheetOffsetY_A1
,
&
PlotSheetOffsetX_A0
,
&
PlotSheetOffsetY_A0
,
&
PlotSheetOffsetX_A
,
&
PlotSheetOffsetY_A
,
&
PlotSheetOffsetX_B
,
&
PlotSheetOffsetY_B
,
&
PlotSheetOffsetX_C
,
&
PlotSheetOffsetY_C
,
&
PlotSheetOffsetX_D
,
&
PlotSheetOffsetY_D
,
&
PlotSheetOffsetX_E
,
&
PlotSheetOffsetY_E
,
&
CfgRepeatDeltaX
,
&
CfgRepeatDeltaY
,
&
CfgRepeatDeltaLabel
,
&
CfgSimulatorCommandLine
,
&
OptNetListUseNamesCfg
,
&
OptDefaultLabelSizeCfg
,
NULL
wxT
(
"LabSize"
),
/* Ident String */
&
g_DefaultTextLabelSize
,
/* Parameter address */
DEFAULT_SIZE_TEXT
,
/* Default value */
0
,
1000
/* Min and Max values for the parameter */
);
PARAM_CFG_BASE
*
ParamCfgList
[]
=
{
&
UserLibDirBufCfg
,
&
LibNameBufCfg
,
&
NetFormatCfg
,
&
UnitCfg
,
&
CursorShapeCfg
,
&
ShowGridCfg
,
&
DrawBgColorCfg
,
&
ColorLayerWireCfg
,
&
ColorLayerBusCfg
,
&
ColorLayerJunctionCfg
,
&
ColorLayerLLabelCfg
,
&
ColorLayerGLabelCfg
,
&
ColorLayerPinFunCfg
,
&
ColorLayerPinNumCfg
,
&
ColorLayerPinNamCfg
,
&
ColorLayerFieldsCfg
,
&
ColorLayerReferenceCfg
,
&
ColorLayerValueCfg
,
&
ColorLayerNotesCfg
,
&
ColorLayerBodyCfg
,
&
ColorLayerBodyBackgroundCfg
,
&
ColorLayerNetNameCfg
,
&
ColorLayerPinCfg
,
&
ColorLayerSheetCfg
,
&
ColorLayerSheetFileNameCfg
,
&
ColorLayerSheetNameCfg
,
&
ColorLayerSheetLabelCfg
,
&
ColorLayerNoConnectCfg
,
&
ColorLayerErcWarnCfg
,
&
ColorLayerErcErrCfg
,
&
PlotMarginCfg
,
&
HPGLSpeed
,
&
HPGLDiam
,
&
HPGLPenNum
,
&
PlotSheetOffsetX_A4
,
&
PlotSheetOffsetY_A4
,
&
PlotSheetOffsetX_A3
,
&
PlotSheetOffsetY_A3
,
&
PlotSheetOffsetX_A2
,
&
PlotSheetOffsetY_A2
,
&
PlotSheetOffsetX_A1
,
&
PlotSheetOffsetY_A1
,
&
PlotSheetOffsetX_A0
,
&
PlotSheetOffsetY_A0
,
&
PlotSheetOffsetX_A
,
&
PlotSheetOffsetY_A
,
&
PlotSheetOffsetX_B
,
&
PlotSheetOffsetY_B
,
&
PlotSheetOffsetX_C
,
&
PlotSheetOffsetY_C
,
&
PlotSheetOffsetX_D
,
&
PlotSheetOffsetY_D
,
&
PlotSheetOffsetX_E
,
&
PlotSheetOffsetY_E
,
&
CfgRepeatDeltaX
,
&
CfgRepeatDeltaY
,
&
CfgRepeatDeltaLabel
,
&
CfgSimulatorCommandLine
,
&
OptNetListUseNamesCfg
,
&
OptDefaultLabelSizeCfg
,
NULL
};
eeschema/netlist.h
View file @
813d303c
...
...
@@ -13,7 +13,7 @@
#define ISBUS 1
#define CUSTOMPANEL_COUNTMAX 8 // Max number of netlist plugins
/* Id to select netlist type */
typedef
enum
{
NET_TYPE_UNINIT
=
0
,
...
...
@@ -21,8 +21,13 @@ typedef enum {
NET_TYPE_ORCADPCB2
,
NET_TYPE_CADSTAR
,
NET_TYPE_SPICE
,
NET_TYPE_CUSTOM1
// NET_TYPE_CUSTOM1 is the first id for user netlist format
}
TypeNetForm
;
NET_TYPE_CUSTOM1
,
/* NET_TYPE_CUSTOM1
* is the first id for user netlist format
* NET_TYPE_CUSTOM1+CUSTOMPANEL_COUNTMAX-1
* is the last id for user netlist format
*/
NET_TYPE_CUSTOM_MAX
=
NET_TYPE_CUSTOM1
+
CUSTOMPANEL_COUNTMAX
-
1
}
TypeNetForm
;
/* Max pin number per component and footprint */
...
...
@@ -44,10 +49,10 @@ enum NetObjetType { /* Type des objets de Net */
};
enum
IsConnectType
{
/* Valeur du Flag de connection */
UNCONNECT
,
/* Pin ou Label non connecte */
NOCONNECT
,
/* Pin volontairement non connectee (Symb. NoConnect utilise) */
CONNECT
/* connexion normale */
enum
IsConnectType
{
/* Valeur du Flag de connection */
UNCONNECT
,
/* Pin ou Label non connecte */
NOCONNECT
,
/* Pin volontairement non connectee (Symb. NoConnect utilise) */
CONNECT
/* connexion normale */
};
...
...
@@ -62,9 +67,9 @@ public:
SCH_SCREEN
*
m_Screen
;
/* Ecran d'appartenance */
NetObjetType
m_Type
;
int
m_ElectricalType
;
/* Pour Pins et sheet labels: type electrique */
private
:
private
:
int
m_NetCode
;
/* pour elements simples */
public
:
public
:
int
m_BusNetCode
;
/* pour connexions type bus */
int
m_Member
;
/* pour les labels type BUSWIRE ( labels de bus eclate )
* numero de membre */
...
...
@@ -75,8 +80,9 @@ public:
const
wxString
*
m_Label
;
/* Tous types Labels:pointeur sur la wxString definissant le label */
wxPoint
m_Start
,
m_End
;
#if defined(DEBUG)
#if defined
(DEBUG)
void
Show
(
std
::
ostream
&
out
,
int
ndx
);
#endif
void
SetNet
(
int
aNetCode
)
{
m_NetCode
=
aNetCode
;
}
...
...
@@ -108,8 +114,10 @@ eda_global int g_NbrObjNet;
eda_global
ObjetNetListStruct
*
g_TabObjNet
;
/* Prototypes: */
void
WriteNetList
(
WinEDA_SchematicFrame
*
frame
,
const
wxString
&
FileNameNL
,
bool
use_netnames
);
void
FreeTabNetList
(
ObjetNetListStruct
*
TabNetItems
,
int
NbrNetItems
);
void
WriteNetList
(
WinEDA_SchematicFrame
*
frame
,
const
wxString
&
FileNameNL
,
bool
use_netnames
);
void
FreeTabNetList
(
ObjetNetListStruct
*
TabNetItems
,
int
NbrNetItems
);
/** Function ReturnUserNetlistTypeName
* to retrieve user netlist type names
...
...
@@ -118,8 +126,7 @@ void FreeTabNetList( ObjetNetListStruct* TabNetItems, int NbrNetItems );
* this function must be called first with "first_item" = true
* and after with "first_item" = false to get all the other existing netlist names
*/
#define CUSTOMPANEL_COUNTMAX 8 // Max number of netlist plugins
wxString
ReturnUserNetlistTypeName
(
bool
first_item
);
wxString
ReturnUserNetlistTypeName
(
bool
first_item
);
#endif
pcbnew/zones.cpp
View file @
813d303c
...
...
@@ -249,7 +249,7 @@ void WinEDA_ZoneFrame::CreateControls()
static
const
int
GridList
[
4
]
=
{
50
,
100
,
250
,
500
};
int
selection
=
0
;
for
(
int
ii
=
0
;
ii
<
m_GridCtrl
->
GetCount
();
ii
++
)
for
(
unsigned
ii
=
0
;
ii
<
(
unsigned
)
m_GridCtrl
->
GetCount
();
ii
++
)
{
wxString
msg
=
ReturnStringFromValue
(
g_UnitMetric
,
GridList
[
ii
],
...
...
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