2008-09-26 19:51:36 +00:00
|
|
|
/************************************************/
|
|
|
|
/* constants used in zone dialogs and functions */
|
|
|
|
/************************************************/
|
|
|
|
|
|
|
|
#ifndef ZONES_H
|
|
|
|
#define ZONES_H
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef eda_global
|
|
|
|
#define eda_global extern
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// keys used to store net sort option in config file :
|
|
|
|
#define ZONE_NET_OUTLINES_HATCH_OPTION_KEY wxT( "Zone_Ouline_Hatch_Opt" )
|
|
|
|
#define ZONE_NET_SORT_OPTION_KEY wxT( "Zone_NetSort_Opt" )
|
|
|
|
#define ZONE_NET_FILTER_STRING_KEY wxT( "Zone_Filter_Opt" )
|
2008-10-17 06:17:48 +00:00
|
|
|
#define ZONE_THERMAL_RELIEF_GAP_STRING_KEY wxT( "Zone_TH_Gap" )
|
|
|
|
#define ZONE_THERMAL_RELIEF_COPPER_WIDTH_STRING_KEY wxT( "Zone_TH_Copper_Width" )
|
2008-09-26 19:51:36 +00:00
|
|
|
|
|
|
|
enum zone_cmd {
|
|
|
|
ZONE_ABORT,
|
|
|
|
ZONE_OK
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/************************************************/
|
|
|
|
/* variables used in zone dialogs and functions */
|
|
|
|
/************************************************/
|
|
|
|
|
2008-10-20 05:59:58 +00:00
|
|
|
/* parametre grid size for automatic routing and zone filling */
|
|
|
|
#if defined MAIN
|
|
|
|
int g_GridRoutingSize = 250;
|
|
|
|
#else
|
|
|
|
extern int g_GridRoutingSize;
|
|
|
|
#endif
|
|
|
|
|
2008-10-19 18:18:45 +00:00
|
|
|
// @todo: make a class like ZONE_GENERAL_SETTING instead of many global variables
|
2008-09-26 19:51:36 +00:00
|
|
|
eda_global bool g_Zone_45_Only
|
|
|
|
#ifdef MAIN
|
|
|
|
= FALSE
|
|
|
|
#endif
|
|
|
|
;
|
2008-10-10 11:31:46 +00:00
|
|
|
eda_global int g_NetcodeSelection; // Net code selection for the current zone
|
2008-09-26 19:51:36 +00:00
|
|
|
eda_global int g_CurrentZone_Layer; // Layer used to create the current zone
|
|
|
|
eda_global int g_Zone_Hatching; // Option to show the zone area (outlines only, short hatches or full hatches
|
2008-10-10 11:31:46 +00:00
|
|
|
eda_global int g_Zone_Arc_Approximation; // Option to select number of segments to approximate a circle
|
|
|
|
// 16 or 32 segments
|
2008-10-15 17:14:51 +00:00
|
|
|
eda_global int g_FilledAreasShowMode; // Used to select draw options for filled areas in a zone (currently normal =0, sketch = 1)
|
2008-10-17 06:17:48 +00:00
|
|
|
eda_global long g_ThermalReliefGapValue // tickness of the gap in thermal reliefs
|
|
|
|
#ifdef MAIN
|
|
|
|
= 200
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
eda_global long g_ThermalReliefCopperBridgeValue // tickness of the copper bridge in thermal reliefs
|
|
|
|
#ifdef MAIN
|
|
|
|
= 200
|
|
|
|
#endif
|
|
|
|
;
|
2008-09-26 19:51:36 +00:00
|
|
|
|
2008-10-09 19:13:25 +00:00
|
|
|
eda_global ZONE_CONTAINER::m_PadInZone g_Zone_Pad_Options
|
|
|
|
#ifdef MAIN
|
|
|
|
= ZONE_CONTAINER::THERMAL_PAD
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
|
2008-09-26 19:51:36 +00:00
|
|
|
#endif // ifndef ZONES_H
|