133 lines
2.9 KiB
C
133 lines
2.9 KiB
C
/*******************************************************/
|
|
/** cfg.h : configuration: definition des structures **/
|
|
/*******************************************************/
|
|
|
|
#ifndef eda_global
|
|
#define eda_global extern
|
|
#endif
|
|
|
|
#define INSETUP TRUE
|
|
|
|
#define GROUP wxT("/cvpcb")
|
|
#define GROUPCOMMON wxT("/common")
|
|
#define GROUPLIB wxT("/pcbnew/libraries")
|
|
#define GROUPEQU wxT("/cvpcb/libraries")
|
|
|
|
/* Liste des parametres */
|
|
|
|
static PARAM_CFG_BASE CommandCfg
|
|
(
|
|
GROUPLIB, /* identification de groupe */
|
|
PARAM_COMMAND_ERASE /* type */
|
|
);
|
|
|
|
static PARAM_CFG_LIBNAME_LIST LibNameBufCfg
|
|
(
|
|
wxT("LibName"), /* identification */
|
|
&g_LibName_List, /* Adresse du parametre */
|
|
GROUPLIB
|
|
);
|
|
|
|
static PARAM_CFG_LIBNAME_LIST EquivNameBufCfg
|
|
(
|
|
wxT("EquName"), /* identification */
|
|
&g_ListName_Equ, /* Adresse du parametre */
|
|
GROUPEQU
|
|
);
|
|
|
|
static PARAM_CFG_WXSTRING NetInExtBufCfg
|
|
(
|
|
wxT("NetIExt"), /* identification */
|
|
&NetInExtBuffer
|
|
);
|
|
|
|
static PARAM_CFG_WXSTRING NetDirBufCfg
|
|
(
|
|
wxT("NetDir"), /* identification */
|
|
&g_UserNetDirBuffer, /* Adresse du parametre */
|
|
GROUPCOMMON
|
|
);
|
|
|
|
static PARAM_CFG_WXSTRING UserLibDirBufCfg
|
|
(
|
|
wxT("LibDir"), /* identification */
|
|
&g_UserLibDirBuffer, /* Adresse du parametre */
|
|
GROUPLIB
|
|
);
|
|
|
|
static PARAM_CFG_BOOL DisplayPadFillCfg
|
|
(
|
|
INSETUP,
|
|
wxT("DiPadFi"), /* identification */
|
|
&DisplayOpt.DisplayPadFill, /* Adresse du parametre */
|
|
TRUE /* Valeur par defaut */
|
|
);
|
|
|
|
static PARAM_CFG_BOOL DisplayPadNumCfg
|
|
(
|
|
INSETUP,
|
|
wxT("DiPadNu"), /* identification */
|
|
&DisplayOpt.DisplayPadNum, /* Adresse du parametre */
|
|
TRUE /* Valeur par defaut */
|
|
);
|
|
|
|
static PARAM_CFG_BOOL DisplayPadNoConnCfg
|
|
(
|
|
INSETUP,
|
|
wxT("DiPadNC"), /* identification */
|
|
&DisplayOpt.DisplayPadNoConn, /* Adresse du parametre */
|
|
FALSE /* Valeur par defaut */
|
|
);
|
|
|
|
static PARAM_CFG_BOOL DisplayPadIsolCfg
|
|
(
|
|
INSETUP,
|
|
wxT("DiPadMg"), /* identification */
|
|
&DisplayOpt.DisplayPadIsol, /* Adresse du parametre */
|
|
FALSE /* Valeur par defaut */
|
|
);
|
|
|
|
static PARAM_CFG_INT DisplayModEdgeCfg
|
|
(
|
|
INSETUP,
|
|
wxT("DiModEd"), /* identification */
|
|
&DisplayOpt.DisplayModEdge, /* Adresse du parametre */
|
|
1, /* Valeur par defaut */
|
|
0, 1 /* Valeurs extremes */
|
|
);
|
|
|
|
static PARAM_CFG_INT DisplayModTextCfg
|
|
(
|
|
INSETUP,
|
|
wxT("DiModTx"), /* identification */
|
|
&DisplayOpt.DisplayModText, /* Adresse du parametre */
|
|
1, /* Valeur par defaut */
|
|
0, 1 /* Valeurs extremes */
|
|
);
|
|
|
|
static PARAM_CFG_BOOL DisplayPcbTrackFillCfg
|
|
(
|
|
INSETUP,
|
|
wxT("DiPcbTF"), /* identification */
|
|
&DisplayOpt.DisplayPcbTrackFill, /* Adresse du parametre */
|
|
TRUE /* Valeur par defaut */
|
|
);
|
|
|
|
static PARAM_CFG_BASE * ParamCfgList[] =
|
|
{
|
|
& CommandCfg,
|
|
& NetInExtBufCfg,
|
|
& NetDirBufCfg,
|
|
& UserLibDirBufCfg,
|
|
& LibNameBufCfg,
|
|
& EquivNameBufCfg,
|
|
& DisplayPadFillCfg,
|
|
& DisplayPadNumCfg,
|
|
& DisplayPadNoConnCfg,
|
|
& DisplayPadIsolCfg,
|
|
& DisplayModEdgeCfg,
|
|
& DisplayModTextCfg,
|
|
& DisplayPcbTrackFillCfg,
|
|
NULL
|
|
};
|