2009-11-09 14:00:22 +00:00
|
|
|
/*************************/
|
|
|
|
/** gerberview_config.h **/
|
|
|
|
/*************************/
|
2009-03-28 20:02:34 +00:00
|
|
|
|
|
|
|
#include "param_config.h"
|
2010-01-29 20:36:12 +00:00
|
|
|
#include "colors_selection.h"
|
2009-03-28 20:02:34 +00:00
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
#define GROUP wxT("/gerbview")
|
|
|
|
|
|
|
|
#define INSETUP TRUE
|
|
|
|
|
2010-01-29 20:36:12 +00:00
|
|
|
/* Useful macro : */
|
|
|
|
#define LOC_COLOR(numlayer) &g_ColorsSettings.m_LayersColors[numlayer]
|
|
|
|
|
2010-01-31 20:01:46 +00:00
|
|
|
/* Config parameters list */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
static PARAM_CFG_WXSTRING PhotoExtBufCfg
|
|
|
|
(
|
2010-10-09 11:03:03 +00:00
|
|
|
INSETUP,
|
|
|
|
wxT("GerberFileExt"),
|
2009-11-09 14:00:22 +00:00
|
|
|
&g_PhotoFilenameExt
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_WXSTRING PenExtBufCfg
|
|
|
|
(
|
2010-10-09 11:03:03 +00:00
|
|
|
INSETUP,
|
|
|
|
wxT("PenFileExt"),
|
2009-11-09 14:00:22 +00:00
|
|
|
&g_PenFilenameExt
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_WXSTRING DrillExtBufCfg
|
|
|
|
(
|
2010-10-09 11:03:03 +00:00
|
|
|
INSETUP,
|
|
|
|
wxT("DrillFileExt"),
|
2009-11-09 14:00:22 +00:00
|
|
|
&g_DrillFilenameExt
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
2010-10-09 11:03:03 +00:00
|
|
|
static PARAM_CFG_INT UnitsSelectionOptCfg // Units; 0 inches, 1 mm
|
2007-06-05 12:10:51 +00:00
|
|
|
(
|
2010-10-09 11:03:03 +00:00
|
|
|
INSETUP,
|
2010-09-28 14:42:05 +00:00
|
|
|
wxT("Units"),
|
2010-07-12 14:07:09 +00:00
|
|
|
(int*)&g_UserUnit,
|
|
|
|
MILLIMETRES
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer0Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLay0"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(0),
|
2009-11-09 14:00:22 +00:00
|
|
|
GREEN
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer1Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLay1"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(1),
|
2009-11-09 14:00:22 +00:00
|
|
|
BLUE
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer2Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLay2"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(2),
|
2009-11-09 14:00:22 +00:00
|
|
|
LIGHTGRAY
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer3Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLay3"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(3),
|
2009-11-09 14:00:22 +00:00
|
|
|
5
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer4Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLay4"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(4),
|
2009-11-09 14:00:22 +00:00
|
|
|
4
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer5Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLay5"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(5),
|
2009-11-09 14:00:22 +00:00
|
|
|
5
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer6Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLay6"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(6),
|
2009-11-09 14:00:22 +00:00
|
|
|
6
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer7Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLay7"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(7),
|
2009-11-09 14:00:22 +00:00
|
|
|
5
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer8Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLay8"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(8),
|
2009-11-09 14:00:22 +00:00
|
|
|
7
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer9Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLay9"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(9),
|
2009-11-09 14:00:22 +00:00
|
|
|
1
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer10Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayA"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(10),
|
2009-11-09 14:00:22 +00:00
|
|
|
2
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer11Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayB"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(11),
|
2009-11-09 14:00:22 +00:00
|
|
|
3
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer12Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayC"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(12),
|
2009-11-09 14:00:22 +00:00
|
|
|
12
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer13Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayD"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(13),
|
2009-11-09 14:00:22 +00:00
|
|
|
13
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer14Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayE"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(14),
|
2009-11-09 14:00:22 +00:00
|
|
|
14
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer15Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayF"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(15),
|
2009-11-09 14:00:22 +00:00
|
|
|
RED
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer16Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayG"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(16),
|
2009-11-09 14:00:22 +00:00
|
|
|
1
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer17Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayH"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(17),
|
2009-11-09 14:00:22 +00:00
|
|
|
5
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer18Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayI"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(18),
|
2009-11-09 14:00:22 +00:00
|
|
|
11
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer19Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayJ"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(19),
|
2009-11-09 14:00:22 +00:00
|
|
|
4
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer20Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayK"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(20),
|
2009-11-09 14:00:22 +00:00
|
|
|
5
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer21Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayL"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(21),
|
2009-11-09 14:00:22 +00:00
|
|
|
3
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer22Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayM"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(22),
|
2009-11-09 14:00:22 +00:00
|
|
|
6
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer23Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayN"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(23),
|
2009-11-09 14:00:22 +00:00
|
|
|
5
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer24Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayO"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(24),
|
2009-11-09 14:00:22 +00:00
|
|
|
LIGHTGRAY
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer25Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayP"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(25),
|
2009-11-09 14:00:22 +00:00
|
|
|
1
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer26Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayQ"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(26),
|
2009-11-09 14:00:22 +00:00
|
|
|
2
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer27Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayR"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(27),
|
2009-11-09 14:00:22 +00:00
|
|
|
14
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer28Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayS"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(28),
|
2009-11-09 14:00:22 +00:00
|
|
|
YELLOW
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer29Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayT"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(29),
|
2009-11-09 14:00:22 +00:00
|
|
|
13
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer30Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayU"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(30),
|
2009-11-09 14:00:22 +00:00
|
|
|
14
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static PARAM_CFG_SETCOLOR ColorLayer31Cfg
|
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
wxT("ColLayV"),
|
2010-01-29 20:36:12 +00:00
|
|
|
LOC_COLOR(31),
|
2009-11-09 14:00:22 +00:00
|
|
|
7
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
2010-10-09 11:03:03 +00:00
|
|
|
static PARAM_CFG_SETCOLOR DCodesDisplayOptCfg
|
2007-06-05 12:10:51 +00:00
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2010-10-09 11:03:03 +00:00
|
|
|
wxT("DCodeVisible"),
|
2010-01-29 20:36:12 +00:00
|
|
|
&g_ColorsSettings.m_ItemsColors[DCODES_VISIBLE],
|
2009-11-09 14:00:22 +00:00
|
|
|
WHITE
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
2010-10-09 11:03:03 +00:00
|
|
|
static PARAM_CFG_BOOL DisplayPolairCoordinatesOptCfg
|
2007-06-05 12:10:51 +00:00
|
|
|
(
|
2009-05-21 17:42:42 +00:00
|
|
|
INSETUP,
|
2010-10-09 11:03:03 +00:00
|
|
|
wxT("DisplayPolairCoordinates"),
|
2009-11-09 14:00:22 +00:00
|
|
|
&DisplayOpt.DisplayPolarCood,
|
|
|
|
FALSE
|
2007-06-05 12:10:51 +00:00
|
|
|
);
|
|
|
|
|
2009-03-28 20:02:34 +00:00
|
|
|
PARAM_CFG_BASE * ParamCfgList[] =
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2009-05-21 17:42:42 +00:00
|
|
|
& PhotoExtBufCfg,
|
|
|
|
& PenExtBufCfg,
|
|
|
|
& DrillExtBufCfg,
|
2010-10-09 11:03:03 +00:00
|
|
|
& UnitsSelectionOptCfg,
|
2009-05-21 17:42:42 +00:00
|
|
|
& ColorLayer0Cfg,
|
|
|
|
& ColorLayer1Cfg,
|
|
|
|
& ColorLayer2Cfg,
|
|
|
|
& ColorLayer3Cfg,
|
|
|
|
& ColorLayer4Cfg,
|
|
|
|
& ColorLayer5Cfg,
|
|
|
|
& ColorLayer6Cfg,
|
|
|
|
& ColorLayer7Cfg,
|
|
|
|
& ColorLayer8Cfg,
|
|
|
|
& ColorLayer9Cfg,
|
|
|
|
& ColorLayer10Cfg,
|
|
|
|
& ColorLayer11Cfg,
|
|
|
|
& ColorLayer12Cfg,
|
|
|
|
& ColorLayer13Cfg,
|
|
|
|
& ColorLayer14Cfg,
|
|
|
|
& ColorLayer15Cfg,
|
|
|
|
& ColorLayer16Cfg,
|
|
|
|
& ColorLayer17Cfg,
|
|
|
|
& ColorLayer18Cfg,
|
|
|
|
& ColorLayer19Cfg,
|
|
|
|
& ColorLayer20Cfg,
|
|
|
|
& ColorLayer21Cfg,
|
|
|
|
& ColorLayer22Cfg,
|
|
|
|
& ColorLayer23Cfg,
|
|
|
|
& ColorLayer24Cfg,
|
|
|
|
& ColorLayer25Cfg,
|
|
|
|
& ColorLayer26Cfg,
|
|
|
|
& ColorLayer27Cfg,
|
|
|
|
& ColorLayer28Cfg,
|
|
|
|
& ColorLayer29Cfg,
|
|
|
|
& ColorLayer30Cfg,
|
|
|
|
& ColorLayer31Cfg,
|
2010-10-09 11:03:03 +00:00
|
|
|
& DCodesDisplayOptCfg,
|
|
|
|
& DisplayPolairCoordinatesOptCfg,
|
2009-05-21 17:42:42 +00:00
|
|
|
NULL
|
2007-06-05 12:10:51 +00:00
|
|
|
};
|