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
|
|
|
|
|
2008-10-23 10:26:06 +00:00
|
|
|
#include "class_zone_setting.h"
|
|
|
|
|
2008-09-26 19:51:36 +00:00
|
|
|
|
|
|
|
// keys used to store net sort option in config file :
|
2008-10-23 10:26:06 +00:00
|
|
|
#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" )
|
|
|
|
#define ZONE_THERMAL_RELIEF_GAP_STRING_KEY wxT( "Zone_TH_Gap" )
|
2008-10-17 06:17:48 +00:00
|
|
|
#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
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-10-23 10:26:06 +00:00
|
|
|
enum { // How pads are covered by copper in zone
|
|
|
|
PAD_NOT_IN_ZONE, // Pads are not covered
|
|
|
|
THERMAL_PAD, // Use thermal relief for pads
|
|
|
|
PAD_IN_ZONE // pads are covered by copper
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-09-26 19:51:36 +00:00
|
|
|
/************************************************/
|
|
|
|
/* variables used in zone dialogs and functions */
|
|
|
|
/************************************************/
|
|
|
|
|
2008-10-23 10:26:06 +00:00
|
|
|
/* parametre grid size for automatic routing */
|
2008-10-20 05:59:58 +00:00
|
|
|
#if defined MAIN
|
2008-10-23 10:26:06 +00:00
|
|
|
int g_GridRoutingSize = 250;
|
2008-10-20 05:59:58 +00:00
|
|
|
#else
|
2008-10-23 10:26:06 +00:00
|
|
|
extern int g_GridRoutingSize;
|
2008-10-20 05:59:58 +00:00
|
|
|
#endif
|
|
|
|
|
2008-09-26 19:51:36 +00:00
|
|
|
eda_global bool g_Zone_45_Only
|
|
|
|
#ifdef MAIN
|
|
|
|
= FALSE
|
|
|
|
#endif
|
|
|
|
;
|
2008-10-09 19:13:25 +00:00
|
|
|
|
2008-10-23 10:26:06 +00:00
|
|
|
eda_global ZONE_SETTING g_Zone_Default_Setting; // Default setting used when creating a new zone
|
2008-09-26 19:51:36 +00:00
|
|
|
#endif // ifndef ZONES_H
|