@ -46,17 +46,23 @@ DIALOG_COPPER_ZONE_BASE::DIALOG_COPPER_ZONE_BASE( wxWindow* parent, wxWindowID i
m_ShowNetNameFilter = new wxTextCtrl ( sbSizer3 - > GetStaticBox ( ) , ID_TEXTCTRL_NETNAMES_FILTER , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxTE_PROCESS_ENTER ) ;
m_ShowNetNameFilter - > SetToolTip ( _ ( " Pattern to filter net names in filtered list. \n Only net names matching this pattern are displayed. " ) ) ;
bFilteringSizer - > Add ( m_ShowNetNameFilter , 2 , wxALIGN_CENTER | wxBOTTOM , 5 ) ;
bFilteringSizer - > Add ( m_ShowNetNameFilter , 5 , wxALIGN_CENTER | wxBOTTOM , 5 ) ;
bFilteringSizer - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
m_hideAutoGenNetNamesOpt = new wxCheckBox ( sbSizer3 - > GetStaticBox ( ) , wxID_ANY , _ ( " Hide auto-generated net names " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_hideAutoGenNetNamesOpt - > SetValue ( true ) ;
bFilteringSizer - > Add ( m_hideAutoGenNetNamesOpt , 0 , wxALIGN_CENTER | wxBOTTOM | wxLEFT | wxRIGHT , 5 ) ;
bFilteringSizer - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
m_sortByPadsOpt = new wxCheckBox ( sbSizer3 - > GetStaticBox ( ) , wxID_ANY , _ ( " Sort nets by pad count " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bFilteringSizer - > Add ( m_sortByPadsOpt , 1 , wxALIGN_CENTER | wxBOTTOM | wxLEFT | wxRIGHT , 5 ) ;
bFilteringSizer - > Add ( m_sortByPadsOpt , 0 , wxALIGN_CENTER | wxBOTTOM | wxRIGHT | wxLEF T , 5 ) ;
bSizer8 - > Add ( bFilteringSizer , 0 , wxEXPAND , 20 ) ;
bSizer8 - > Add ( bFilteringSizer , 1 , wxEXPAND , 20 ) ;
sbSizer3 - > Add ( bSizer8 , 1 , wxEXPAND , 5 ) ;
@ -89,7 +95,7 @@ DIALOG_COPPER_ZONE_BASE::DIALOG_COPPER_ZONE_BASE( wxWindow* parent, wxWindowID i
m_zoneNameLabel - > Wrap ( - 1 ) ;
m_zoneNameLabel - > SetToolTip ( _ ( " A unique name for this zone to identify it for DRC " ) ) ;
fgSizer1 - > Add ( m_zoneNameLabel , 0 , wxBOTTOM | wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
fgSizer1 - > Add ( m_zoneNameLabel , 0 , wxALIGN_CENTER_VERTICAL | wxBOTTOM , 5 ) ;
m_tcZoneName = new wxTextCtrl ( sbGeneral - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer1 - > Add ( m_tcZoneName , 0 , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT | wxEXPAND , 5 ) ;
@ -98,7 +104,7 @@ DIALOG_COPPER_ZONE_BASE::DIALOG_COPPER_ZONE_BASE( wxWindow* parent, wxWindowID i
m_staticTextPriorityLevel - > Wrap ( - 1 ) ;
m_staticTextPriorityLevel - > SetToolTip ( _ ( " Zones are filled by priority level, level 3 has higher priority than level 2. \n When a zone is inside another zone: \n * If its priority is higher, its outlines are removed from the other zone. \n * If its priority is equal, a DRC error is set. " ) ) ;
fgSizer1 - > Add ( m_staticTextPriorityLevel , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
fgSizer1 - > Add ( m_staticTextPriorityLevel , 0 , wxBOTTOM , 5 ) ;
m_PriorityLevelCtrl = new wxSpinCtrl ( sbGeneral - > GetStaticBox ( ) , ID_M_PRIORITYLEVELCTRL , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 100 , 0 ) ;
fgSizer1 - > Add ( m_PriorityLevelCtrl , 0 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
@ -153,21 +159,20 @@ DIALOG_COPPER_ZONE_BASE::DIALOG_COPPER_ZONE_BASE( wxWindow* parent, wxWindowID i
m_cornerRadiusCtrl = new wxTextCtrl ( m_ExportableSetupSizer - > GetStaticBox ( ) , ID_M_CORNERSMOOTHINGCTRL , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
gbSizer1 - > Add ( m_cornerRadiusCtrl , wxGBPosition ( 5 , 1 ) , wxGBSpan ( 1 , 1 ) , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
m_cornerRadiusUnits = new wxStaticText ( m_ExportableSetupSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " units " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cornerRadiusUnits = new wxStaticText ( m_ExportableSetupSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " mm " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cornerRadiusUnits - > Wrap ( - 1 ) ;
gbSizer1 - > Add ( m_cornerRadiusUnits , wxGBPosition ( 5 , 2 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT , 5 ) ;
gbSizer1 - > AddGrowableCol ( 0 ) ;
gbSizer1 - > AddGrowableCol ( 1 ) ;
m_ExportableSetupSizer - > Add ( gbSizer1 , 1 , wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
m_ExportableSetupSizer - > Add ( gbSizer1 , 1 , wxEXPAND , 5 ) ;
bSizer7 - > Add ( m_ExportableSetupSizer , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 10 ) ;
bSizerMiddle - > Add ( bSizer7 , 1 , wxEXPAND , 5 ) ;
bSizerMiddle - > Add ( bSizer7 , 0 , wxEXPAND , 5 ) ;
wxStaticBoxSizer * sbSizer5 ;
sbSizer5 = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Electrical Properties " ) ) , wxVERTICAL ) ;
@ -181,12 +186,12 @@ DIALOG_COPPER_ZONE_BASE::DIALOG_COPPER_ZONE_BASE( wxWindow* parent, wxWindowID i
m_clearanceLabel - > Wrap ( - 1 ) ;
m_clearanceLabel - > SetToolTip ( _ ( " Copper clearance for this zone (set to 0 to use the netclass clearance) " ) ) ;
gbSizerSettings - > Add ( m_clearanceLabel , wxGBPosition ( 0 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxLEFT | wxRIGHT , 5 ) ;
gbSizerSettings - > Add ( m_clearanceLabel , wxGBPosition ( 0 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM , 5 ) ;
m_clearanceCtrl = new wxTextCtrl ( sbSizer5 - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
gbSizerSettings - > Add ( m_clearanceCtrl , wxGBPosition ( 0 , 1 ) , wxGBSpan ( 1 , 1 ) , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
m_clearanceUnits = new wxStaticText ( sbSizer5 - > GetStaticBox ( ) , wxID_ANY , _ ( " units " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_clearanceUnits = new wxStaticText ( sbSizer5 - > GetStaticBox ( ) , wxID_ANY , _ ( " mm " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_clearanceUnits - > Wrap ( - 1 ) ;
gbSizerSettings - > Add ( m_clearanceUnits , wxGBPosition ( 0 , 2 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT , 5 ) ;
@ -194,12 +199,12 @@ DIALOG_COPPER_ZONE_BASE::DIALOG_COPPER_ZONE_BASE( wxWindow* parent, wxWindowID i
m_minWidthLabel - > Wrap ( - 1 ) ;
m_minWidthLabel - > SetToolTip ( _ ( " Minimum thickness of filled areas. " ) ) ;
gbSizerSettings - > Add ( m_minWidthLabel , wxGBPosition ( 1 , 0 ) , wxGBSpan ( 1 , 1 ) , wxBOTTOM | wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
gbSizerSettings - > Add ( m_minWidthLabel , wxGBPosition ( 1 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM , 5 ) ;
m_minWidthCtrl = new wxTextCtrl ( sbSizer5 - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
gbSizerSettings - > Add ( m_minWidthCtrl , wxGBPosition ( 1 , 1 ) , wxGBSpan ( 1 , 1 ) , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
m_minWidthUnits = new wxStaticText ( sbSizer5 - > GetStaticBox ( ) , wxID_ANY , _ ( " units " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_minWidthUnits = new wxStaticText ( sbSizer5 - > GetStaticBox ( ) , wxID_ANY , _ ( " mm " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_minWidthUnits - > Wrap ( - 1 ) ;
gbSizerSettings - > Add ( m_minWidthUnits , wxGBPosition ( 1 , 2 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT , 5 ) ;
@ -216,7 +221,7 @@ DIALOG_COPPER_ZONE_BASE::DIALOG_COPPER_ZONE_BASE( wxWindow* parent, wxWindowID i
m_connectionLabel - > Wrap ( - 1 ) ;
m_connectionLabel - > SetToolTip ( _ ( " Default pad connection type to zone. \n This setting can be overridden by local pad settings " ) ) ;
gbSizerSettings - > Add ( m_connectionLabel , wxGBPosition ( 3 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
gbSizerSettings - > Add ( m_connectionLabel , wxGBPosition ( 3 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM , 5 ) ;
wxString m_PadInZoneOptChoices [ ] = { _ ( " Solid " ) , _ ( " Thermal reliefs " ) , _ ( " Reliefs for PTH " ) , _ ( " None " ) } ;
int m_PadInZoneOptNChoices = sizeof ( m_PadInZoneOptChoices ) / sizeof ( wxString ) ;
@ -228,37 +233,37 @@ DIALOG_COPPER_ZONE_BASE::DIALOG_COPPER_ZONE_BASE( wxWindow* parent, wxWindowID i
m_antipadLabel - > Wrap ( - 1 ) ;
m_antipadLabel - > SetToolTip ( _ ( " The distance that will be kept clear between the filled area of the zone and a pad connected by thermal relief spokes. " ) ) ;
gbSizerSettings - > Add ( m_antipadLabel , wxGBPosition ( 4 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
gbSizerSettings - > Add ( m_antipadLabel , wxGBPosition ( 4 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxTOP , 5 ) ;
m_antipadCtrl = new wxTextCtrl ( sbSizer5 - > GetStaticBox ( ) , wxID_ANTIPAD_SIZE , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_antipadCtrl - > SetToolTip ( _ ( " Clearance between pads in the same net and filled areas. " ) ) ;
gbSizerSettings - > Add ( m_antipadCtrl , wxGBPosition ( 4 , 1 ) , wxGBSpan ( 1 , 1 ) , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
m_antipadUnits = new wxStaticText ( sbSizer5 - > GetStaticBox ( ) , wxID_ANY , _ ( " units " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_antipadUnits = new wxStaticText ( sbSizer5 - > GetStaticBox ( ) , wxID_ANY , _ ( " mm " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_antipadUnits - > Wrap ( - 1 ) ;
gbSizerSettings - > Add ( m_antipadUnits , wxGBPosition ( 4 , 2 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxTOP | wxRIGHT , 5 ) ;
m_spokeWidthLabel = new wxStaticText ( sbSizer5 - > GetStaticBox ( ) , wxID_ANY , _ ( " Thermal relief spoke width: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_spokeWidthLabel - > Wrap ( - 1 ) ;
gbSizerSettings - > Add ( m_spokeWidthLabel , wxGBPosition ( 5 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
gbSizerSettings - > Add ( m_spokeWidthLabel , wxGBPosition ( 5 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM , 5 ) ;
m_spokeWidthCtrl = new wxTextCtrl ( sbSizer5 - > GetStaticBox ( ) , wxID_COPPER_BRIDGE_VALUE , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_spokeWidthCtrl - > SetToolTip ( _ ( " Width of copper in thermal reliefs. " ) ) ;
gbSizerSettings - > Add ( m_spokeWidthCtrl , wxGBPosition ( 5 , 1 ) , wxGBSpan ( 1 , 1 ) , wxEXPAND | wxALL , 5 ) ;
m_spokeWidthUnits = new wxStaticText ( sbSizer5 - > GetStaticBox ( ) , wxID_ANY , _ ( " units " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_spokeWidthUnits = new wxStaticText ( sbSizer5 - > GetStaticBox ( ) , wxID_ANY , _ ( " mm " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_spokeWidthUnits - > Wrap ( - 1 ) ;
gbSizerSettings - > Add ( m_spokeWidthUnits , wxGBPosition ( 5 , 2 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxRIGHT , 5 ) ;
gbSizerSettings - > AddGrowableCol ( 1 ) ;
sbSizer5 - > Add ( gbSizerSettings , 0 , wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
sbSizer5 - > Add ( gbSizerSettings , 0 , wxEXPAND , 5 ) ;
bSizerMiddle - > Add ( sbSizer5 , 1 , wxEXPAND | wxTOP | wxRIGHT , 10 ) ;
bSizerMiddle - > Add ( sbSizer5 , 0 , wxEXPAND | wxTOP | wxRIGHT , 10 ) ;
wxStaticBoxSizer * sbSizerZoneStyle ;
sbSizerZoneStyle = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Fill " ) ) , wxVERTICAL ) ;
@ -267,10 +272,11 @@ DIALOG_COPPER_ZONE_BASE::DIALOG_COPPER_ZONE_BASE( wxWindow* parent, wxWindowID i
gbSizer3 = new wxGridBagSizer ( 0 , 0 ) ;
gbSizer3 - > SetFlexibleDirection ( wxBOTH ) ;
gbSizer3 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
gbSizer3 - > SetEmptyCellSize ( wxSize ( - 1 , 10 ) ) ;
m_staticTextGridFillType = new wxStaticText ( sbSizerZoneStyle - > GetStaticBox ( ) , wxID_ANY , _ ( " Fill type: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextGridFillType - > Wrap ( - 1 ) ;
gbSizer3 - > Add ( m_staticTextGridFillType , wxGBPosition ( 0 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
gbSizer3 - > Add ( m_staticTextGridFillType , wxGBPosition ( 0 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM , 5 ) ;
wxString m_GridStyleCtrlChoices [ ] = { _ ( " Solid fill " ) , _ ( " Hatch pattern " ) } ;
int m_GridStyleCtrlNChoices = sizeof ( m_GridStyleCtrlChoices ) / sizeof ( wxString ) ;
@ -280,7 +286,7 @@ DIALOG_COPPER_ZONE_BASE::DIALOG_COPPER_ZONE_BASE( wxWindow* parent, wxWindowID i
m_staticTextGrindOrient = new wxStaticText ( sbSizerZoneStyle - > GetStaticBox ( ) , wxID_ANY , _ ( " Orientation: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextGrindOrient - > Wrap ( - 1 ) ;
gbSizer3 - > Add ( m_staticTextGrindOrient , wxGBPosition ( 1 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
gbSizer3 - > Add ( m_staticTextGrindOrient , wxGBPosition ( 1 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM , 5 ) ;
m_tcGridStyleOrientation = new wxTextCtrl ( sbSizerZoneStyle - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
gbSizer3 - > Add ( m_tcGridStyleOrientation , wxGBPosition ( 1 , 1 ) , wxGBSpan ( 1 , 1 ) , wxEXPAND | wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
@ -291,23 +297,23 @@ DIALOG_COPPER_ZONE_BASE::DIALOG_COPPER_ZONE_BASE( wxWindow* parent, wxWindowID i
m_staticTextStyleThickness = new wxStaticText ( sbSizerZoneStyle - > GetStaticBox ( ) , wxID_ANY , _ ( " Hatch width: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextStyleThickness - > Wrap ( - 1 ) ;
gbSizer3 - > Add ( m_staticTextStyleThickness , wxGBPosition ( 2 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
gbSizer3 - > Add ( m_staticTextStyleThickness , wxGBPosition ( 2 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM , 5 ) ;
m_tcGridStyleThickness = new wxTextCtrl ( sbSizerZoneStyle - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
gbSizer3 - > Add ( m_tcGridStyleThickness , wxGBPosition ( 2 , 1 ) , wxGBSpan ( 1 , 1 ) , wxEXPAND | wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
m_GridStyleThicknessUnits = new wxStaticText ( sbSizerZoneStyle - > GetStaticBox ( ) , wxID_ANY , _ ( " units " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_GridStyleThicknessUnits = new wxStaticText ( sbSizerZoneStyle - > GetStaticBox ( ) , wxID_ANY , _ ( " mm " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_GridStyleThicknessUnits - > Wrap ( - 1 ) ;
gbSizer3 - > Add ( m_GridStyleThicknessUnits , wxGBPosition ( 2 , 2 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT , 5 ) ;
m_staticTextGridGap = new wxStaticText ( sbSizerZoneStyle - > GetStaticBox ( ) , wxID_ANY , _ ( " Hatch gap: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextGridGap - > Wrap ( - 1 ) ;
gbSizer3 - > Add ( m_staticTextGridGap , wxGBPosition ( 3 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
gbSizer3 - > Add ( m_staticTextGridGap , wxGBPosition ( 3 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM , 5 ) ;
m_tcGridStyleGap = new wxTextCtrl ( sbSizerZoneStyle - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
gbSizer3 - > Add ( m_tcGridStyleGap , wxGBPosition ( 3 , 1 ) , wxGBSpan ( 1 , 1 ) , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
m_GridStyleGapUnits = new wxStaticText ( sbSizerZoneStyle - > GetStaticBox ( ) , wxID_ANY , _ ( " units " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_GridStyleGapUnits = new wxStaticText ( sbSizerZoneStyle - > GetStaticBox ( ) , wxID_ANY , _ ( " mm " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_GridStyleGapUnits - > Wrap ( - 1 ) ;
gbSizer3 - > Add ( m_GridStyleGapUnits , wxGBPosition ( 3 , 2 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT , 5 ) ;
@ -315,7 +321,7 @@ DIALOG_COPPER_ZONE_BASE::DIALOG_COPPER_ZONE_BASE( wxWindow* parent, wxWindowID i
m_staticTextGridSmoothingLevel - > Wrap ( - 1 ) ;
m_staticTextGridSmoothingLevel - > SetToolTip ( _ ( " Value of smoothing effort \n 0 = no smoothing \n 1 = chamfer \n 2 = round corners \n 3 = round corners (finer shape) " ) ) ;
gbSizer3 - > Add ( m_staticTextGridSmoothingLevel , wxGBPosition ( 4 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
gbSizer3 - > Add ( m_staticTextGridSmoothingLevel , wxGBPosition ( 4 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM , 5 ) ;
m_spinCtrlSmoothLevel = new wxSpinCtrl ( sbSizerZoneStyle - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 3 , 0 ) ;
gbSizer3 - > Add ( m_spinCtrlSmoothLevel , wxGBPosition ( 4 , 1 ) , wxGBSpan ( 1 , 1 ) , wxBOTTOM | wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
@ -324,7 +330,7 @@ DIALOG_COPPER_ZONE_BASE::DIALOG_COPPER_ZONE_BASE( wxWindow* parent, wxWindowID i
m_staticTextGridSmootingVal - > Wrap ( - 1 ) ;
m_staticTextGridSmootingVal - > SetToolTip ( _ ( " Ratio between smoothed corners size and the gap between lines \n 0 = no smoothing \n 1.0 = max radius/chamfer size (half gap value) " ) ) ;
gbSizer3 - > Add ( m_staticTextGridSmootingVal , wxGBPosition ( 5 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
gbSizer3 - > Add ( m_staticTextGridSmootingVal , wxGBPosition ( 5 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM , 5 ) ;
m_spinCtrlSmoothValue = new wxSpinCtrlDouble ( sbSizerZoneStyle - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 0 , 1 , 0.100000 , 0.1 ) ;
m_spinCtrlSmoothValue - > SetDigits ( 0 ) ;
@ -334,39 +340,39 @@ DIALOG_COPPER_ZONE_BASE::DIALOG_COPPER_ZONE_BASE( wxWindow* parent, wxWindowID i
m_staticText40 - > Wrap ( - 1 ) ;
m_staticText40 - > SetToolTip ( _ ( " Choose what to do with unconnected copper islands " ) ) ;
gbSizer3 - > Add ( m_staticText40 , wxGBPosition ( 6 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
gbSizer3 - > Add ( m_staticText40 , wxGBPosition ( 7 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM , 5 ) ;
wxString m_cbRemoveIslandsChoices [ ] = { _ ( " Always " ) , _ ( " Never " ) , _ ( " Below area limit " ) } ;
int m_cbRemoveIslandsNChoices = sizeof ( m_cbRemoveIslandsChoices ) / sizeof ( wxString ) ;
m_cbRemoveIslands = new wxChoice ( sbSizerZoneStyle - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_cbRemoveIslandsNChoices , m_cbRemoveIslandsChoices , 0 ) ;
m_cbRemoveIslands - > SetSelection ( 0 ) ;
gbSizer3 - > Add ( m_cbRemoveIslands , wxGBPosition ( 6 , 1 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
gbSizer3 - > Add ( m_cbRemoveIslands , wxGBPosition ( 7 , 1 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_islandThresholdLabel = new wxStaticText ( sbSizerZoneStyle - > GetStaticBox ( ) , wxID_ANY , _ ( " Minimum island size: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_islandThresholdLabel - > Wrap ( - 1 ) ;
m_islandThresholdLabel - > Enable ( false ) ;
m_islandThresholdLabel - > SetToolTip ( _ ( " Isolated islands smaller than this will be removed " ) ) ;
gbSizer3 - > Add ( m_islandThresholdLabel , wxGBPosition ( 7 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
gbSizer3 - > Add ( m_islandThresholdLabel , wxGBPosition ( 8 , 0 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM , 5 ) ;
m_tcIslandThreshold = new wxTextCtrl ( sbSizerZoneStyle - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_tcIslandThreshold - > Enable ( false ) ;
gbSizer3 - > Add ( m_tcIslandThreshold , wxGBPosition ( 7 , 1 ) , wxGBSpan ( 1 , 1 ) , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
gbSizer3 - > Add ( m_tcIslandThreshold , wxGBPosition ( 8 , 1 ) , wxGBSpan ( 1 , 1 ) , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL , 5 ) ;
m_islandThresholdUnits = new wxStaticText ( sbSizerZoneStyle - > GetStaticBox ( ) , wxID_ANY , _ ( " units " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_islandThresholdUnits = new wxStaticText ( sbSizerZoneStyle - > GetStaticBox ( ) , wxID_ANY , _ ( " mm " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_islandThresholdUnits - > Wrap ( - 1 ) ;
m_islandThresholdUnits - > Enable ( false ) ;
gbSizer3 - > Add ( m_islandThresholdUnits , wxGBPosition ( 7 , 2 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT , 5 ) ;
gbSizer3 - > Add ( m_islandThresholdUnits , wxGBPosition ( 8 , 2 ) , wxGBSpan ( 1 , 1 ) , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxRIGHT , 5 ) ;
gbSizer3 - > AddGrowableCol ( 1 ) ;
gbSizer3 - > AddGrowableCol ( 0 ) ;
sbSizerZoneStyle - > Add ( gbSizer3 , 1 , wxBOTTOM | wx EXPAND | wxLEFT | wxRIGHT , 5 ) ;
sbSizerZoneStyle - > Add ( gbSizer3 , 1 , wxEXPAND | wxBOTTOM , 5 ) ;
bSizerMiddle - > Add ( sbSizerZoneStyle , 1 , wxEXPAND | wxTOP | wxRIGHT , 10 ) ;
bSizerMiddle - > Add ( sbSizerZoneStyle , 0 , wxEXPAND | wxTOP | wxRIGHT , 10 ) ;
m_MainBoxSizer - > Add ( bSizerMiddle , 0 , wxEXPAND , 5 ) ;