2008-09-26 19:51:36 +00:00
|
|
|
/************************************************/
|
|
|
|
/* constants used in zone dialogs and functions */
|
|
|
|
/************************************************/
|
|
|
|
|
|
|
|
#ifndef ZONES_H
|
|
|
|
#define ZONES_H
|
|
|
|
|
|
|
|
|
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
|
|
|
|
2009-08-23 15:22:44 +00:00
|
|
|
// Exit codes for dialog edit zones
|
2008-09-26 19:51:36 +00:00
|
|
|
enum zone_cmd {
|
2009-08-23 15:22:44 +00:00
|
|
|
ZONE_ABORT, // if no change
|
|
|
|
ZONE_OK, // if new values accepted
|
|
|
|
ZONE_EXPORT_VALUES // if values are exported to others zones
|
2008-09-26 19:51:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
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 */
|
|
|
|
/************************************************/
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
extern bool g_Zone_45_Only;
|
|
|
|
|
|
|
|
// Default setting used when creating a new zone
|
|
|
|
extern ZONE_SETTING g_Zone_Default_Setting;
|
|
|
|
|
2008-09-26 19:51:36 +00:00
|
|
|
#endif // ifndef ZONES_H
|