KiCad PCB EDA Suite
dialog_copper_zones.cpp
Go to the documentation of this file.
1 /*
2  * This program source code file is part of KiCad, a free EDA CAD application.
3  *
4  * Copyright (C) 2019 Jean-Pierre Charras, jp.charras at wanadoo.fr
5  * Copyright (C) 2012 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
6  * Copyright (C) 1992-2019 KiCad Developers, see AUTHORS.txt for contributors.
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, you may find one here:
20  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
21  * or you may search the http://www.gnu.org website for the version 2 license,
22  * or you may write to the Free Software Foundation, Inc.,
23  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24  */
25 
26 #include <fctsys.h>
27 #include <kiface_i.h>
28 #include <confirm.h>
29 #include <pcb_edit_frame.h>
30 #include <pcbnew_settings.h>
31 #include <zones.h>
32 #include <bitmaps.h>
33 #include <widgets/unit_binder.h>
34 #include <class_zone.h>
35 #include <class_board.h>
36 
38 
39 
41 {
42 public:
43  DIALOG_COPPER_ZONE( PCB_BASE_FRAME* aParent, ZONE_SETTINGS* aSettings );
44 
45 private:
47 
48  bool m_settingsExported; // settings will be written to all other zones
49 
52 
55  static wxString m_netNameShowFilter; // the filter to show nets (default * "*"). Static
56  // to keep this pattern for an entire Pcbnew session
58 
64 
69 
70  bool TransferDataToWindow() override;
71  bool TransferDataFromWindow() override;
72 
78  bool AcceptOptions( bool aUseExportableSetupOnly = false );
79 
80  void OnStyleSelection( wxCommandEvent& event ) override;
81  void OnLayerSelection( wxDataViewEvent& event ) override;
82  void OnNetSortingOptionSelected( wxCommandEvent& event ) override;
83  void ExportSetupToOtherCopperZones( wxCommandEvent& event ) override;
84  void OnRunFiltersButtonClick( wxCommandEvent& event ) override;
85  void OnUpdateUI( wxUpdateUIEvent& ) override;
86  void OnButtonCancelClick( wxCommandEvent& event ) override;
87  void OnClose( wxCloseEvent& event ) override;
88 
90 };
91 
92 
93 // Initialize static member variables
94 wxString DIALOG_COPPER_ZONE::m_netNameShowFilter( wxT( "*" ) );
95 
96 
98 {
99  DIALOG_COPPER_ZONE dlg( aCaller, aSettings );
100 
101  return dlg.ShowModal();
102 }
103 
104 #define MIN_THICKNESS ZONE_THICKNESS_MIN_VALUE_MIL*IU_PER_MILS
105 
107  DIALOG_COPPER_ZONE_BASE( aParent ),
108  m_cornerSmoothingType( ZONE_SETTINGS::SMOOTHING_UNDEFINED ),
109  m_cornerRadius( aParent, m_cornerRadiusLabel, m_cornerRadiusCtrl, m_cornerRadiusUnits, true ),
110  m_clearance( aParent, m_clearanceLabel, m_clearanceCtrl, m_clearanceUnits, true ),
111  m_minWidth( aParent, m_minWidthLabel, m_minWidthCtrl, m_minWidthUnits, true ),
112  m_antipadClearance( aParent, m_antipadLabel, m_antipadCtrl, m_antipadUnits, true ),
113  m_spokeWidth( aParent, m_spokeWidthLabel, m_spokeWidthCtrl, m_spokeWidthUnits, true ),
114  m_gridStyleRotation( aParent, m_staticTextGrindOrient, m_tcGridStyleOrientation,
115  m_staticTextRotUnits, false ),
116  m_gridStyleThickness( aParent, m_staticTextStyleThickness,
117  m_tcGridStyleThickness, m_GridStyleThicknessUnits, false ),
118  m_gridStyleGap( aParent, m_staticTextGridGap, m_tcGridStyleGap, m_GridStyleGapUnits, false ),
119  m_islandThreshold( aParent, m_islandThresholdLabel,
120  m_tcIslandThreshold, m_islandThresholdUnits, false )
121 {
122  m_Parent = aParent;
124 
125  m_ptr = aSettings;
126  m_settings = *aSettings;
128 
129  m_settingsExported = false;
130 
131  m_NetFiltering = false;
132  m_NetSortingByPadCount = true; // false = alphabetic sort, true = pad count sort
133 
134  m_sdbSizerOK->SetDefault();
135 
136  m_cbRemoveIslands->Bind( wxEVT_CHOICE,
137  [&]( wxCommandEvent& )
138  {
139  // Area mode is index 2
140  bool val = m_cbRemoveIslands->GetSelection() == 2;
141 
142  m_tcIslandThreshold->Enable( val );
143  m_islandThresholdLabel->Enable( val );
144  m_islandThresholdUnits->Enable( val );
145  } );
146 
148 }
149 
150 
152 {
157 
159  {
161  m_OutlineAppearanceCtrl->SetSelection( 0 );
162  break;
164  m_OutlineAppearanceCtrl->SetSelection( 1 );
165  break;
167  m_OutlineAppearanceCtrl->SetSelection( 2 );
168  break;
169  }
170 
173 
174  switch( m_settings.GetPadConnection() )
175  {
176  default:
178  m_PadInZoneOpt->SetSelection( 1 );
179  break;
181  m_PadInZoneOpt->SetSelection( 2 );
182  break;
184  m_PadInZoneOpt->SetSelection( 3 );
185  break;
187  m_PadInZoneOpt->SetSelection( 0 );
188  break;
189  }
190 
191  // Do not enable/disable antipad clearance and spoke width. They might be needed if
192  // a module or pad overrides the zone to specify a thermal connection.
195 
197  m_islandThreshold.SetDoubleValue( static_cast<double>( m_settings.GetMinIslandArea() ) );
198 
199  m_cbRemoveIslands->SetSelection( static_cast<int>( m_settings.GetIslandRemovalMode() ) );
200 
202 
203  m_tcIslandThreshold->Enable( val );
204  m_islandThresholdLabel->Enable( val );
205  m_islandThresholdUnits->Enable( val );
206 
207  wxString netNameDoNotShowFilter = wxT( "Net-*" );
208  m_NetFiltering = false;
209  m_NetSortingByPadCount = true;
210 
211  auto cfg = m_Parent->GetPcbNewSettings();
212 
213  int opt = cfg->m_Zones.net_sort_mode;
214  m_NetFiltering = opt >= 2;
215  m_NetSortingByPadCount = opt % 2;
216 
217  netNameDoNotShowFilter = cfg->m_Zones.net_filter;
218 
220  m_DoNotShowNetNameFilter->SetValue( netNameDoNotShowFilter );
221  m_showAllNetsOpt->SetValue( !m_NetFiltering );
223 
224  // Build list of nets:
226 
228 
229  switch( m_settings.m_FillMode )
230  {
232  m_GridStyleCtrl->SetSelection( 1 ); break;
233  default:
234  m_GridStyleCtrl->SetSelection( 0 ); break;
235  }
236 
239 
240  // Gives a reasonable value to grid style parameters, if currently there are no defined
241  // parameters for grid pattern thickness and gap (if the value is 0)
242  // the grid pattern thickness default value is (arbitrary) m_ZoneMinThickness * 4
243  // or 1mm
244  // the grid pattern gap default value is (arbitrary) m_ZoneMinThickness * 6
245  // or 1.5 mm
246  int bestvalue = m_settings.m_HatchFillTypeThickness;
247 
248  if( bestvalue <= 0 ) // No defined value for m_HatchFillTypeThickness
249  bestvalue = std::max( m_settings.m_ZoneMinThickness * 4, Millimeter2iu( 1.0 ) );
250 
252 
253  bestvalue = m_settings.m_HatchFillTypeGap;
254 
255  if( bestvalue <= 0 ) // No defined value for m_HatchFillTypeGap
256  bestvalue = std::max( m_settings.m_ZoneMinThickness * 6, Millimeter2iu( 1.5 ) );
257 
258  m_gridStyleGap.SetValue( std::max( bestvalue, m_settings.m_ZoneMinThickness ) );
259 
262 
263  m_tcZoneName->SetValue( m_settings.m_Name );
264 
265  // Enable/Disable some widgets
266  wxCommandEvent event;
267  OnStyleSelection( event );
268 
269  Fit();
270 
271  return true;
272 }
273 
274 
275 void DIALOG_COPPER_ZONE::OnUpdateUI( wxUpdateUIEvent& )
276 {
277  if( m_ListNetNameSelection->GetSelection() < 0 )
278  m_ListNetNameSelection->SetSelection( 0 );
279 
280  bool noNetSelected = m_ListNetNameSelection->GetSelection() == 0;
281  bool enableSize = !noNetSelected && ( m_cbRemoveIslands->GetSelection() == 2 );
282 
283  m_bNoNetWarning->Show( noNetSelected );
284 
285  // Zones with no net never have islands removed
286  m_cbRemoveIslands->Enable( !noNetSelected );
287  m_islandThresholdLabel->Enable( enableSize );
288  m_islandThresholdUnits->Enable( enableSize );
289  m_tcIslandThreshold->Enable( enableSize );
290 
291  if( m_cornerSmoothingType != m_cornerSmoothingChoice->GetSelection() )
292  {
294 
296  m_cornerRadiusLabel->SetLabel( _( "Chamfer distance:" ) );
297  else
298  m_cornerRadiusLabel->SetLabel( _( "Fillet radius:" ) );
299  }
300 
302 }
303 
304 
305 void DIALOG_COPPER_ZONE::OnButtonCancelClick( wxCommandEvent& event )
306 {
307  // After an "Export Settings to Other Zones" cancel and close must return
308  // ZONE_EXPORT_VALUES instead of wxID_CANCEL.
309  Close( true );
310 }
311 
312 
314 {
316 
317  if( m_GridStyleCtrl->GetSelection() > 0 )
319  else
321 
322  if( !AcceptOptions() )
323  return false;
324 
325  m_settings.m_HatchFillTypeOrientation = m_gridStyleRotation.GetValue()/10.0; // value is returned in deci-degree
330 
331  *m_ptr = m_settings;
332  return true;
333 }
334 
335 
336 void DIALOG_COPPER_ZONE::OnClose( wxCloseEvent& event )
337 {
338  EndModal( m_settingsExported ? ZONE_EXPORT_VALUES : wxID_CANCEL );
339 }
340 
341 
342 bool DIALOG_COPPER_ZONE::AcceptOptions( bool aUseExportableSetupOnly )
343 {
344  if( !m_clearance.Validate( 0, Mils2iu( ZONE_CLEARANCE_MAX_VALUE_MIL ) ) )
345  return false;
346 
347  if( !m_minWidth.Validate( Mils2iu( ZONE_THICKNESS_MIN_VALUE_MIL ), INT_MAX ) )
348  return false;
349 
350  if( !m_cornerRadius.Validate( 0, INT_MAX ) )
351  return false;
352 
353  if( !m_spokeWidth.Validate( 0, INT_MAX ) )
354  return false;
355 
357 
359  {
360  int minThickness = m_minWidth.GetValue();
361 
362  if( !m_gridStyleThickness.Validate( minThickness, INT_MAX ) )
363  return false;
364 
365  if( !m_gridStyleGap.Validate( minThickness, INT_MAX ) )
366  return false;
367  }
368 
369  switch( m_PadInZoneOpt->GetSelection() )
370  {
371  case 3:
373  break;
374  case 2:
376  break;
377  case 1:
379  break;
380  case 0:
382  break;
383  }
384 
385  switch( m_OutlineAppearanceCtrl->GetSelection() )
386  {
387  case 0:
389  break;
390  case 1:
392  break;
393  case 2:
395  break;
396  }
397 
398  auto cfg = m_Parent->GetPcbNewSettings();
399 
400  cfg->m_Zones.hatching_style = static_cast<int>( m_settings.m_Zone_HatchingStyle );
401  cfg->m_Zones.net_filter = m_DoNotShowNetNameFilter->GetValue().ToStdString();
402 
404 
407 
409 
411  ? 0 : m_cornerRadius.GetValue() );
412 
414 
416 
419 
421  {
422  DisplayError( this, _( "Thermal spoke width cannot be smaller than the minimum width." ) );
423  return false;
424  }
425 
426  cfg->m_Zones.clearance = Iu2Mils( m_settings.m_ZoneClearance );
427  cfg->m_Zones.min_thickness = Iu2Mils( m_settings.m_ZoneMinThickness );
428  cfg->m_Zones.thermal_relief_gap = Iu2Mils( m_settings.m_ThermalReliefGap );
429  cfg->m_Zones.thermal_relief_copper_width = Iu2Mils( m_settings.m_ThermalReliefCopperBridge );
430 
432  static_cast<ISLAND_REMOVAL_MODE>( m_cbRemoveIslands->GetSelection() ) );
434 
435  // If we use only exportable to others zones parameters, exit here:
436  if( aUseExportableSetupOnly )
437  return true;
438 
439  // Get the layer selection for this zone
440  int layer = -1;
441  for( int ii = 0; ii < m_layers->GetItemCount(); ++ii )
442  {
443  if( m_layers->GetToggleValue( (unsigned) ii, 0 ) )
444  {
445  layer = ii;
446  break;
447  }
448  }
449 
450  if( layer < 0 )
451  {
452  DisplayError( this, _( "No layer selected." ) );
453  return false;
454  }
455 
456  NETINFO_ITEM* net = nullptr;
457 
458  // Search net_code for this net, if a net was selected
459  if( m_ListNetNameSelection->GetSelection() > 0 )
460  {
461  wxString netname = m_ListNetNameSelection->GetStringSelection();
462  net = m_Parent->GetBoard()->FindNet( netname );
463  }
464 
465  m_settings.m_NetcodeSelection = net ? net->GetNet() : 0;
466 
467  m_settings.m_Name = m_tcZoneName->GetValue();
468 
469  return true;
470 }
471 
472 
473 void DIALOG_COPPER_ZONE::OnStyleSelection( wxCommandEvent& event )
474 {
475  bool enable = m_GridStyleCtrl->GetSelection() >= 1;
476  m_tcGridStyleThickness->Enable( enable );
477  m_tcGridStyleGap->Enable( enable );
478  m_tcGridStyleOrientation->Enable( enable );
479  m_spinCtrlSmoothLevel->Enable( enable );
480  m_spinCtrlSmoothValue->Enable( enable );
481 }
482 
483 
484 void DIALOG_COPPER_ZONE::OnLayerSelection( wxDataViewEvent& event )
485 {
486  if( event.GetColumn() != 0 )
487  return;
488 
489  int row = m_layers->ItemToRow( event.GetItem() );
490 
491  wxVariant layerID;
492  m_layers->GetValue( layerID, row, 2 );
493  m_settings.m_Layers.set( ToLAYER_ID( layerID.GetInteger() ),
494  m_layers->GetToggleValue( row, 0 ) );
495 }
496 
497 
499 {
500  m_NetFiltering = !m_showAllNetsOpt->GetValue();
503 
505 
506  auto cfg = m_Parent->GetPcbNewSettings();
507 
508  int configValue = m_NetFiltering ? 2 : 0;
509 
511  configValue += 1;
512 
513  cfg->m_Zones.net_sort_mode = configValue;
514  cfg->m_Zones.net_filter = m_DoNotShowNetNameFilter->GetValue().ToStdString();
515 }
516 
517 
519 {
520  if( !AcceptOptions( true ) )
521  return;
522 
523  // Export settings ( but layer and netcode ) to others copper zones
524  BOARD* pcb = m_Parent->GetBoard();
525 
526  for( int ii = 0; ii < pcb->GetAreaCount(); ii++ )
527  {
528  ZONE_CONTAINER* zone = pcb->GetArea( ii );
529 
530  // Cannot export settings from a copper zone
531  // to a zone keepout:
532  if( zone->GetIsKeepout() )
533  continue;
534 
535  m_settings.ExportSetting( *zone, false ); // false = partial export
536  m_settingsExported = true;
537  m_Parent->OnModify();
538  }
539 }
540 
541 
542 void DIALOG_COPPER_ZONE::OnRunFiltersButtonClick( wxCommandEvent& event )
543 {
544  m_NetFiltering = true;
545  m_showAllNetsOpt->SetValue( false );
546 
548 }
549 
550 
552 {
553  wxArrayString listNetName;
554 
556 
557  if( m_NetFiltering )
558  {
559  wxString doNotShowFilter = m_DoNotShowNetNameFilter->GetValue();
560  wxString ShowFilter = m_ShowNetNameFilter->GetValue();
561 
562  for( unsigned ii = 0; ii < listNetName.GetCount(); ii++ )
563  {
564  if( listNetName[ii].Matches( doNotShowFilter ) )
565  {
566  listNetName.RemoveAt( ii );
567  ii--;
568  }
569  else if( !listNetName[ii].Matches( ShowFilter ) )
570  {
571  listNetName.RemoveAt( ii );
572  ii--;
573  }
574  }
575  }
576 
577  listNetName.Insert( wxT( "<no net>" ), 0 );
578 
579  // Ensure currently selected net for the zone is visible, regardless of filters
580  int selectedNetListNdx = 0;
581  int net_select = m_settings.m_NetcodeSelection;
582 
583  if( net_select > 0 )
584  {
585  NETINFO_ITEM* selectedNet = m_Parent->GetBoard()->FindNet( net_select );
586  if( selectedNet )
587  {
588  selectedNetListNdx = listNetName.Index( selectedNet->GetNetname() );
589 
590  if( wxNOT_FOUND == selectedNetListNdx )
591  {
592  // the currently selected net must *always* be visible.
593  // <no net> is the zero'th index, so pick next lowest
594  listNetName.Insert( selectedNet->GetNetname(), 1 );
595  selectedNetListNdx = 1;
596  }
597  }
598  }
599 
600  m_ListNetNameSelection->Clear();
601  m_ListNetNameSelection->InsertItems( listNetName, 0 );
602  m_ListNetNameSelection->SetSelection( selectedNetListNdx );
603  m_ListNetNameSelection->EnsureVisible( selectedNetListNdx );
604 }
605 
void OnRunFiltersButtonClick(wxCommandEvent &event) override
void DisplayError(wxWindow *aParent, const wxString &aText, int aDisplayTime)
Display an error or warning message box with aMessage.
Definition: confirm.cpp:239
void SetMinIslandArea(long long int aArea)
NETINFO_ITEM * FindNet(int aNetcode) const
Function FindNet searches for a net with the given netcode.
ZONE_CONTAINER handles a list of polygons defining a copper zone.
Definition: class_zone.h:61
void SetIslandRemovalMode(ISLAND_REMOVAL_MODE aRemove)
void OnButtonCancelClick(wxCommandEvent &event) override
LSET m_Layers
Layers that this zone exists on.
Definition: zone_settings.h:97
static wxString m_netNameShowFilter
This file is part of the common library.
long long int GetMinIslandArea() const
void SetCornerSmoothingType(int aType)
void OnLayerSelection(wxDataViewEvent &event) override
long m_ThermalReliefCopperBridge
thickness of the copper bridge in thermal reliefs
int m_HatchFillTypeSmoothingLevel
Grid pattern smoothing type, similar to corner smoothing type 0 = no smoothing, 1 = fillet,...
Definition: zone_settings.h:88
double m_HatchFillTypeOrientation
Grid style shape: orientation of grid lines in degrees.
Definition: zone_settings.h:87
void FinishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
int GetCornerSmoothingType() const
int m_HatchFillTypeGap
Grid style shape: clearance between lines (0 -> solid shape)
Definition: zone_settings.h:86
#define ZONE_CLEARANCE_MAX_VALUE_MIL
Definition: zones.h:34
void SetDataType(EDA_DATA_TYPE aDataType)
Used to override the datatype of the displayed property (default is DISTANCE)
Definition: unit_binder.cpp:87
wxString m_Name
Unique name for the current zone (can be blank)
Definition: zone_settings.h:95
#define ZONE_EXPORT_VALUES
Definition: zones.h:37
const ISLAND_REMOVAL_MODE GetIslandRemovalMode() const
PCBNEW_SETTINGS * GetPcbNewSettings()
Class DIALOG_COPPER_ZONE_BASE.
ZONE_CONNECTION GetPadConnection() const
void OnStyleSelection(wxCommandEvent &event) override
void SetInitialFocus(wxWindow *aWindow)
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.
Definition: dialog_shim.h:114
unsigned int GetCornerRadius() const
bool AcceptOptions(bool aUseExportableSetupOnly=false)
T NormalizeAngle180(T Angle)
Normalize angle to be in the -180.0 .. 180.0 range.
Definition: trigo.h:345
int m_NetcodeSelection
Net code selection for the current zone.
Definition: zone_settings.h:93
wxBitmap KiBitmap(BITMAP_DEF aBitmap)
Construct a wxBitmap from a memory record, held in a BITMAP_DEF.
Definition: bitmap.cpp:80
int GetAreaCount() const
Function GetAreaCount.
Definition: class_board.h:919
pads are covered by copper
void SetPadConnection(ZONE_CONNECTION aPadConnection)
PCB_BASE_FRAME * m_Parent
const BITMAP_OPAQUE dialog_warning_xpm[1]
wxSpinCtrlDouble * m_spinCtrlSmoothValue
bool TransferDataFromWindow() override
int m_ZonePriority
Priority (0 ... N) of the zone.
Definition: zone_settings.h:81
ZONE_HATCH_STYLE m_Zone_HatchingStyle
Option to show the zone area (outlines only, short hatches or full hatches.
int SortedNetnamesList(wxArrayString &aNames, bool aSortbyPadsCount)
Function SortedNetnamesList.
const wxString & GetNetname() const
Function GetNetname.
Definition: netinfo.h:231
int m_ZoneClearance
Minimal clearance value.
Definition: zone_settings.h:83
void ExportSetupToOtherCopperZones(wxCommandEvent &event) override
void ExportSetting(ZONE_CONTAINER &aTarget, bool aFullExport=true) const
Function ExportSetting copy settings to a given zone.
bool GetIsKeepout() const
Accessors to parameters used in Keepout zones:
Definition: class_zone.h:702
Thermal relief only for THT pads.
ZONE_SETTINGS handles zones parameters.
Definition: zone_settings.h:67
virtual bool Validate(double aMin, double aMax, EDA_UNITS aUnits=EDA_UNITS::UNSCALED, bool aUseMils=false)
Function Validate Validates the control against the given range, informing the user of any errors fou...
Use thermal relief for pads.
ZONE_FILL_MODE m_FillMode
Definition: zone_settings.h:79
virtual void OnModify()
Function OnModify Must be called after a change in order to set the "modify" flag of the current scre...
NETINFO_ITEM handles the data for a net.
Definition: netinfo.h:65
#define ZONE_THICKNESS_MIN_VALUE_MIL
Definition: zones.h:32
int GetNet() const
Function GetNet.
Definition: netinfo.h:223
UNIT_BINDER m_gridStyleThickness
BOARD holds information pertinent to a Pcbnew printed circuit board.
Definition: class_board.h:180
#define _(s)
Definition: 3d_actions.cpp:33
virtual void SetValue(int aValue)
Function SetValue Sets new value (in Internal Units) for the text field, taking care of units convers...
void SetCornerRadius(int aRadius)
double m_HatchFillTypeSmoothingValue
Grid pattern chamfer distance/fillet value.
Definition: zone_settings.h:90
DIALOG_COPPER_ZONE(PCB_BASE_FRAME *aParent, ZONE_SETTINGS *aSettings)
Pads are not covered.
void OnNetSortingOptionSelected(wxCommandEvent &event) override
virtual long long int GetValue()
Function GetValue Returns the current value in Internal Units.
int InvokeCopperZonesEditor(PCB_BASE_FRAME *aCaller, ZONE_SETTINGS *aSettings)
Function InvokeCopperZonesEditor invokes up a modal dialog window for copper zone editing.
void SetupLayersList(wxDataViewListCtrl *aList, PCB_BASE_FRAME *aFrame, bool aShowCopper, bool aFpEditorMode=false)
A helper routine for the various zone dialogs (copper, non-copper, keepout).
ZONE_CONTAINER * GetArea(int index) const
Function GetArea returns the Area (Zone Container) at a given index.
Definition: class_board.h:884
BOARD * GetBoard() const
virtual void SetDoubleValue(double aValue)
Function SetDoubleValue Sets new value (in Internal Units) for the text field, taking care of units c...
int m_HatchFillTypeThickness
Grid style shape: thickness of lines (if 0 -> solid shape)
Definition: zone_settings.h:85
bool TransferDataToWindow() override
PCB_LAYER_ID ToLAYER_ID(int aLayer)
Definition: lset.cpp:849
PCB_BASE_FRAME basic PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
long m_ThermalReliefGap
thickness of the gap in thermal reliefs
void OnClose(wxCloseEvent &event) override
int m_ZoneMinThickness
Min thickness value in filled areas.
Definition: zone_settings.h:84
virtual void SetUnits(EDA_UNITS aUnits, bool aUseMils=false)
Function SetUnits Normally not needed (as the UNIT_BINDER inherits from the parent frame),...
Definition: unit_binder.cpp:79
void OnUpdateUI(wxUpdateUIEvent &) override