KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_ZONE_PROPERTIES Class Reference

#include <panel_zone_properties.h>

Inheritance diagram for PANEL_ZONE_PROPERTIES:
PANEL_ZONE_PROPERTIES_BASE

Public Member Functions

 PANEL_ZONE_PROPERTIES (wxWindow *aParent, PCB_BASE_FRAME *aFrame, ZONE_SETTINGS_BAG &aZonesSettingsBag)
 
 ~PANEL_ZONE_PROPERTIES () override
 
void SetZone (ZONE *new_zone)
 
ZONEGetZone () const
 
std::shared_ptr< ZONE_SETTINGSGetZoneSettings () const
 
bool TransferZoneSettingsFromWindow ()
 
bool TransferZoneSettingsToWindow ()
 

Protected Types

enum  {
  ID_M_PADINZONEOPT = 6000 , wxID_ANTIPAD_SIZE , wxID_COPPER_BRIDGE_VALUE , ID_M_OUTLINEAPPEARANCECTRL ,
  ID_M_CORNERSMOOTHINGCTRL , ID_CORNER_SMOOTHING
}
 

Protected Attributes

wxInfoBar * m_copperZoneInfoBar
 
wxStaticText * m_zoneNameLabel
 
wxTextCtrl * m_tcZoneName
 
wxStaticText * m_netLabel
 
NET_SELECTORm_netSelector
 
wxCheckBox * m_cbLocked
 
wxNotebook * m_notebook
 
wxPanel * m_clearancesPanel
 
wxStaticText * m_clearanceLabel
 
wxTextCtrl * m_clearanceCtrl
 
wxStaticText * m_clearanceUnits
 
wxStaticText * m_minWidthLabel
 
wxTextCtrl * m_minWidthCtrl
 
wxStaticText * m_minWidthUnits
 
wxStaticText * m_connectionLabel
 
wxChoice * m_PadInZoneOpt
 
wxStaticText * m_antipadLabel
 
wxTextCtrl * m_antipadCtrl
 
wxStaticText * m_antipadUnits
 
wxStaticText * m_spokeWidthLabel
 
wxTextCtrl * m_spokeWidthCtrl
 
wxStaticText * m_spokeWidthUnits
 
wxPanel * m_displayOverridesPanel
 
wxStaticText * m_staticTextStyle
 
wxChoice * m_OutlineDisplayCtrl
 
wxStaticText * m_stBorderHatchPitchText
 
wxTextCtrl * m_outlineHatchPitchCtrl
 
wxStaticText * m_outlineHatchUnits
 
wxPanel * m_hatchedFillPanel
 
wxCheckBox * m_cbHatched
 
wxStaticText * m_staticTextGrindOrient
 
wxTextCtrl * m_tcGridStyleOrientation
 
wxStaticText * m_staticTextRotUnits
 
wxStaticText * m_staticTextStyleThickness
 
wxTextCtrl * m_tcGridStyleThickness
 
wxStaticText * m_GridStyleThicknessUnits
 
wxStaticText * m_staticTextGridGap
 
wxTextCtrl * m_tcGridStyleGap
 
wxStaticText * m_GridStyleGapUnits
 
wxStaticText * m_staticTextGridSmoothingLevel
 
wxSpinCtrl * m_spinCtrlSmoothLevel
 
wxStaticText * m_staticTextGridSmootingVal
 
wxSpinCtrlDouble * m_spinCtrlSmoothValue
 
wxStaticText * m_offsetOverridesLabel
 
WX_GRIDm_layerSpecificOverrides
 
STD_BITMAP_BUTTONm_bpAddCustomLayer
 
STD_BITMAP_BUTTONm_bpDeleteCustomLayer
 
wxStaticText * m_cornerSmoothingLabel
 
wxChoice * m_cornerSmoothingChoice
 
wxStaticText * m_cornerRadiusLabel
 
wxTextCtrl * m_cornerRadiusCtrl
 
wxStaticText * m_cornerRadiusUnits
 
wxStaticText * m_staticText40
 
wxChoice * m_cbRemoveIslands
 
wxStaticText * m_islandThresholdLabel
 
wxTextCtrl * m_tcIslandThreshold
 
wxStaticText * m_islandThresholdUnits
 

Private Member Functions

bool AcceptOptions (bool aUseExportableSetupOnly=false)
 
void OnZoneNameChanged (wxCommandEvent &event) override
 
void onHatched (wxCommandEvent &event) override
 
void onNetSelector (wxCommandEvent &aEvent)
 
void OnRemoveIslandsSelection (wxCommandEvent &event) override
 
void OnCornerSmoothingSelection (wxCommandEvent &event) override
 
void OnAddLayerItem (wxCommandEvent &event) override
 
void OnDeleteLayerItem (wxCommandEvent &event) override
 
void updateInfoBar ()
 

Private Attributes

PCB_BASE_FRAMEm_frame
 
ZONE_SETTINGS_BAGm_zonesSettingsBag
 
ZONEm_zone
 
std::shared_ptr< ZONE_SETTINGSm_settings
 
LAYER_PROPERTIES_GRID_TABLEm_layerPropsTable
 
UNIT_BINDER m_outlineHatchPitch
 
UNIT_BINDER m_cornerRadius
 
UNIT_BINDER m_clearance
 
UNIT_BINDER m_minWidth
 
UNIT_BINDER m_antipadClearance
 
UNIT_BINDER m_spokeWidth
 
UNIT_BINDER m_gridStyleRotation
 
UNIT_BINDER m_gridStyleThickness
 
UNIT_BINDER m_gridStyleGap
 
UNIT_BINDER m_islandThreshold
 
bool m_isTeardrop
 
wxGridBagSizer * gbSizerGeneralProps
 

Static Private Attributes

static constexpr int INVALID_NET_CODE { 0 }
 

Detailed Description

Definition at line 41 of file panel_zone_properties.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
ID_M_PADINZONEOPT 
wxID_ANTIPAD_SIZE 
wxID_COPPER_BRIDGE_VALUE 
ID_M_OUTLINEAPPEARANCECTRL 
ID_M_CORNERSMOOTHINGCTRL 
ID_CORNER_SMOOTHING 

Definition at line 50 of file panel_zone_properties_base.h.

Constructor & Destructor Documentation

◆ PANEL_ZONE_PROPERTIES()

PANEL_ZONE_PROPERTIES::PANEL_ZONE_PROPERTIES ( wxWindow * aParent,
PCB_BASE_FRAME * aFrame,
ZONE_SETTINGS_BAG & aZonesSettingsBag )

Definition at line 47 of file panel_zone_properties.cpp.

References LSET::AllCuMask(), LSET::AllNonCuMask(), KiBitmapBundle(), m_antipadClearance, PANEL_ZONE_PROPERTIES_BASE::m_antipadCtrl, PANEL_ZONE_PROPERTIES_BASE::m_antipadLabel, PANEL_ZONE_PROPERTIES_BASE::m_antipadUnits, PANEL_ZONE_PROPERTIES_BASE::m_bpAddCustomLayer, PANEL_ZONE_PROPERTIES_BASE::m_bpDeleteCustomLayer, m_clearance, PANEL_ZONE_PROPERTIES_BASE::m_clearanceCtrl, PANEL_ZONE_PROPERTIES_BASE::m_clearanceLabel, PANEL_ZONE_PROPERTIES_BASE::m_clearanceUnits, m_cornerRadius, PANEL_ZONE_PROPERTIES_BASE::m_cornerRadiusCtrl, PANEL_ZONE_PROPERTIES_BASE::m_cornerRadiusLabel, PANEL_ZONE_PROPERTIES_BASE::m_cornerRadiusUnits, m_frame, m_gridStyleGap, PANEL_ZONE_PROPERTIES_BASE::m_GridStyleGapUnits, m_gridStyleRotation, m_gridStyleThickness, PANEL_ZONE_PROPERTIES_BASE::m_GridStyleThicknessUnits, m_islandThreshold, PANEL_ZONE_PROPERTIES_BASE::m_islandThresholdLabel, PANEL_ZONE_PROPERTIES_BASE::m_islandThresholdUnits, m_layerPropsTable, PANEL_ZONE_PROPERTIES_BASE::m_layerSpecificOverrides, m_minWidth, PANEL_ZONE_PROPERTIES_BASE::m_minWidthCtrl, PANEL_ZONE_PROPERTIES_BASE::m_minWidthLabel, PANEL_ZONE_PROPERTIES_BASE::m_minWidthUnits, PANEL_ZONE_PROPERTIES_BASE::m_netSelector, m_outlineHatchPitch, PANEL_ZONE_PROPERTIES_BASE::m_outlineHatchPitchCtrl, PANEL_ZONE_PROPERTIES_BASE::m_outlineHatchUnits, m_settings, m_spokeWidth, PANEL_ZONE_PROPERTIES_BASE::m_spokeWidthCtrl, PANEL_ZONE_PROPERTIES_BASE::m_spokeWidthLabel, PANEL_ZONE_PROPERTIES_BASE::m_spokeWidthUnits, PANEL_ZONE_PROPERTIES_BASE::m_staticTextGridGap, PANEL_ZONE_PROPERTIES_BASE::m_staticTextGrindOrient, PANEL_ZONE_PROPERTIES_BASE::m_staticTextRotUnits, PANEL_ZONE_PROPERTIES_BASE::m_staticTextStyleThickness, PANEL_ZONE_PROPERTIES_BASE::m_stBorderHatchPitchText, PANEL_ZONE_PROPERTIES_BASE::m_tcGridStyleGap, PANEL_ZONE_PROPERTIES_BASE::m_tcGridStyleOrientation, PANEL_ZONE_PROPERTIES_BASE::m_tcGridStyleThickness, PANEL_ZONE_PROPERTIES_BASE::m_tcIslandThreshold, m_zonesSettingsBag, onNetSelector(), PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE(), BASE_SET::set(), small_plus, and small_trash.

◆ ~PANEL_ZONE_PROPERTIES()

PANEL_ZONE_PROPERTIES::~PANEL_ZONE_PROPERTIES ( )
override

Member Function Documentation

◆ AcceptOptions()

◆ GetZone()

ZONE * PANEL_ZONE_PROPERTIES::GetZone ( ) const
inline

Definition at line 49 of file panel_zone_properties.h.

References m_zone.

◆ GetZoneSettings()

std::shared_ptr< ZONE_SETTINGS > PANEL_ZONE_PROPERTIES::GetZoneSettings ( ) const
inline

Definition at line 51 of file panel_zone_properties.h.

References m_settings.

◆ OnAddLayerItem()

void PANEL_ZONE_PROPERTIES::OnAddLayerItem ( wxCommandEvent & event)
overrideprivatevirtual

◆ OnCornerSmoothingSelection()

void PANEL_ZONE_PROPERTIES::OnCornerSmoothingSelection ( wxCommandEvent & event)
overrideprivatevirtual

◆ OnDeleteLayerItem()

void PANEL_ZONE_PROPERTIES::OnDeleteLayerItem ( wxCommandEvent & event)
overrideprivatevirtual

◆ onHatched()

◆ onNetSelector()

◆ OnRemoveIslandsSelection()

void PANEL_ZONE_PROPERTIES::OnRemoveIslandsSelection ( wxCommandEvent & event)
overrideprivatevirtual

◆ OnZoneNameChanged()

void PANEL_ZONE_PROPERTIES::OnZoneNameChanged ( wxCommandEvent & event)
overrideprivatevirtual

Reimplemented from PANEL_ZONE_PROPERTIES_BASE.

Definition at line 238 of file panel_zone_properties.cpp.

References PANEL_ZONE_PROPERTIES_BASE::m_tcZoneName.

◆ SetZone()

void PANEL_ZONE_PROPERTIES::SetZone ( ZONE * new_zone)

◆ TransferZoneSettingsFromWindow()

bool PANEL_ZONE_PROPERTIES::TransferZoneSettingsFromWindow ( )

◆ TransferZoneSettingsToWindow()

◆ updateInfoBar()

void PANEL_ZONE_PROPERTIES::updateInfoBar ( )
private

Member Data Documentation

◆ gbSizerGeneralProps

wxGridBagSizer* PANEL_ZONE_PROPERTIES_BASE::gbSizerGeneralProps
privateinherited

Definition at line 47 of file panel_zone_properties_base.h.

Referenced by PANEL_ZONE_PROPERTIES_BASE().

◆ INVALID_NET_CODE

int PANEL_ZONE_PROPERTIES::INVALID_NET_CODE { 0 }
staticconstexprprivate

Definition at line 57 of file panel_zone_properties.h.

Referenced by onNetSelector(), and updateInfoBar().

◆ m_antipadClearance

UNIT_BINDER PANEL_ZONE_PROPERTIES::m_antipadClearance
private

◆ m_antipadCtrl

wxTextCtrl* PANEL_ZONE_PROPERTIES_BASE::m_antipadCtrl
protectedinherited

◆ m_antipadLabel

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_antipadLabel
protectedinherited

◆ m_antipadUnits

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_antipadUnits
protectedinherited

◆ m_bpAddCustomLayer

STD_BITMAP_BUTTON* PANEL_ZONE_PROPERTIES_BASE::m_bpAddCustomLayer
protectedinherited

◆ m_bpDeleteCustomLayer

STD_BITMAP_BUTTON* PANEL_ZONE_PROPERTIES_BASE::m_bpDeleteCustomLayer
protectedinherited

◆ m_cbHatched

◆ m_cbLocked

wxCheckBox* PANEL_ZONE_PROPERTIES_BASE::m_cbLocked
protectedinherited

◆ m_cbRemoveIslands

◆ m_clearance

UNIT_BINDER PANEL_ZONE_PROPERTIES::m_clearance
private

◆ m_clearanceCtrl

wxTextCtrl* PANEL_ZONE_PROPERTIES_BASE::m_clearanceCtrl
protectedinherited

◆ m_clearanceLabel

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_clearanceLabel
protectedinherited

◆ m_clearancesPanel

wxPanel* PANEL_ZONE_PROPERTIES_BASE::m_clearancesPanel
protectedinherited

Definition at line 67 of file panel_zone_properties_base.h.

Referenced by PANEL_ZONE_PROPERTIES_BASE().

◆ m_clearanceUnits

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_clearanceUnits
protectedinherited

◆ m_connectionLabel

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_connectionLabel
protectedinherited

Definition at line 74 of file panel_zone_properties_base.h.

Referenced by PANEL_ZONE_PROPERTIES_BASE().

◆ m_copperZoneInfoBar

wxInfoBar* PANEL_ZONE_PROPERTIES_BASE::m_copperZoneInfoBar
protectedinherited

◆ m_cornerRadius

UNIT_BINDER PANEL_ZONE_PROPERTIES::m_cornerRadius
private

◆ m_cornerRadiusCtrl

wxTextCtrl* PANEL_ZONE_PROPERTIES_BASE::m_cornerRadiusCtrl
protectedinherited

◆ m_cornerRadiusLabel

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_cornerRadiusLabel
protectedinherited

◆ m_cornerRadiusUnits

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_cornerRadiusUnits
protectedinherited

◆ m_cornerSmoothingChoice

◆ m_cornerSmoothingLabel

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_cornerSmoothingLabel
protectedinherited

Definition at line 107 of file panel_zone_properties_base.h.

Referenced by PANEL_ZONE_PROPERTIES_BASE().

◆ m_displayOverridesPanel

wxPanel* PANEL_ZONE_PROPERTIES_BASE::m_displayOverridesPanel
protectedinherited

Definition at line 82 of file panel_zone_properties_base.h.

Referenced by PANEL_ZONE_PROPERTIES_BASE().

◆ m_frame

PCB_BASE_FRAME* PANEL_ZONE_PROPERTIES::m_frame
private

Definition at line 77 of file panel_zone_properties.h.

Referenced by PANEL_ZONE_PROPERTIES().

◆ m_gridStyleGap

UNIT_BINDER PANEL_ZONE_PROPERTIES::m_gridStyleGap
private

◆ m_GridStyleGapUnits

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_GridStyleGapUnits
protectedinherited

◆ m_gridStyleRotation

UNIT_BINDER PANEL_ZONE_PROPERTIES::m_gridStyleRotation
private

◆ m_gridStyleThickness

UNIT_BINDER PANEL_ZONE_PROPERTIES::m_gridStyleThickness
private

◆ m_GridStyleThicknessUnits

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_GridStyleThicknessUnits
protectedinherited

◆ m_hatchedFillPanel

wxPanel* PANEL_ZONE_PROPERTIES_BASE::m_hatchedFillPanel
protectedinherited

Definition at line 88 of file panel_zone_properties_base.h.

Referenced by PANEL_ZONE_PROPERTIES_BASE().

◆ m_islandThreshold

UNIT_BINDER PANEL_ZONE_PROPERTIES::m_islandThreshold
private

◆ m_islandThresholdLabel

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_islandThresholdLabel
protectedinherited

◆ m_islandThresholdUnits

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_islandThresholdUnits
protectedinherited

◆ m_isTeardrop

bool PANEL_ZONE_PROPERTIES::m_isTeardrop
private

Definition at line 96 of file panel_zone_properties.h.

Referenced by SetZone(), and TransferZoneSettingsToWindow().

◆ m_layerPropsTable

LAYER_PROPERTIES_GRID_TABLE* PANEL_ZONE_PROPERTIES::m_layerPropsTable
private

◆ m_layerSpecificOverrides

◆ m_minWidth

UNIT_BINDER PANEL_ZONE_PROPERTIES::m_minWidth
private

◆ m_minWidthCtrl

wxTextCtrl* PANEL_ZONE_PROPERTIES_BASE::m_minWidthCtrl
protectedinherited

◆ m_minWidthLabel

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_minWidthLabel
protectedinherited

◆ m_minWidthUnits

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_minWidthUnits
protectedinherited

◆ m_netLabel

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_netLabel
protectedinherited

Definition at line 63 of file panel_zone_properties_base.h.

Referenced by PANEL_ZONE_PROPERTIES_BASE().

◆ m_netSelector

◆ m_notebook

wxNotebook* PANEL_ZONE_PROPERTIES_BASE::m_notebook
protectedinherited

Definition at line 66 of file panel_zone_properties_base.h.

Referenced by PANEL_ZONE_PROPERTIES_BASE().

◆ m_offsetOverridesLabel

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_offsetOverridesLabel
protectedinherited

◆ m_OutlineDisplayCtrl

wxChoice* PANEL_ZONE_PROPERTIES_BASE::m_OutlineDisplayCtrl
protectedinherited

◆ m_outlineHatchPitch

UNIT_BINDER PANEL_ZONE_PROPERTIES::m_outlineHatchPitch
private

◆ m_outlineHatchPitchCtrl

wxTextCtrl* PANEL_ZONE_PROPERTIES_BASE::m_outlineHatchPitchCtrl
protectedinherited

◆ m_outlineHatchUnits

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_outlineHatchUnits
protectedinherited

◆ m_PadInZoneOpt

wxChoice* PANEL_ZONE_PROPERTIES_BASE::m_PadInZoneOpt
protectedinherited

◆ m_settings

std::shared_ptr<ZONE_SETTINGS> PANEL_ZONE_PROPERTIES::m_settings
private

◆ m_spinCtrlSmoothLevel

wxSpinCtrl* PANEL_ZONE_PROPERTIES_BASE::m_spinCtrlSmoothLevel
protectedinherited

◆ m_spinCtrlSmoothValue

wxSpinCtrlDouble* PANEL_ZONE_PROPERTIES_BASE::m_spinCtrlSmoothValue
protectedinherited

◆ m_spokeWidth

UNIT_BINDER PANEL_ZONE_PROPERTIES::m_spokeWidth
private

◆ m_spokeWidthCtrl

wxTextCtrl* PANEL_ZONE_PROPERTIES_BASE::m_spokeWidthCtrl
protectedinherited

◆ m_spokeWidthLabel

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_spokeWidthLabel
protectedinherited

◆ m_spokeWidthUnits

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_spokeWidthUnits
protectedinherited

◆ m_staticText40

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_staticText40
protectedinherited

◆ m_staticTextGridGap

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_staticTextGridGap
protectedinherited

◆ m_staticTextGridSmoothingLevel

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_staticTextGridSmoothingLevel
protectedinherited

◆ m_staticTextGridSmootingVal

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_staticTextGridSmootingVal
protectedinherited

◆ m_staticTextGrindOrient

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_staticTextGrindOrient
protectedinherited

◆ m_staticTextRotUnits

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_staticTextRotUnits
protectedinherited

◆ m_staticTextStyle

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_staticTextStyle
protectedinherited

Definition at line 83 of file panel_zone_properties_base.h.

Referenced by PANEL_ZONE_PROPERTIES_BASE().

◆ m_staticTextStyleThickness

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_staticTextStyleThickness
protectedinherited

◆ m_stBorderHatchPitchText

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_stBorderHatchPitchText
protectedinherited

◆ m_tcGridStyleGap

wxTextCtrl* PANEL_ZONE_PROPERTIES_BASE::m_tcGridStyleGap
protectedinherited

◆ m_tcGridStyleOrientation

wxTextCtrl* PANEL_ZONE_PROPERTIES_BASE::m_tcGridStyleOrientation
protectedinherited

◆ m_tcGridStyleThickness

wxTextCtrl* PANEL_ZONE_PROPERTIES_BASE::m_tcGridStyleThickness
protectedinherited

◆ m_tcIslandThreshold

wxTextCtrl* PANEL_ZONE_PROPERTIES_BASE::m_tcIslandThreshold
protectedinherited

◆ m_tcZoneName

◆ m_zone

ZONE* PANEL_ZONE_PROPERTIES::m_zone
private

Definition at line 79 of file panel_zone_properties.h.

Referenced by GetZone(), and SetZone().

◆ m_zoneNameLabel

wxStaticText* PANEL_ZONE_PROPERTIES_BASE::m_zoneNameLabel
protectedinherited

Definition at line 61 of file panel_zone_properties_base.h.

Referenced by PANEL_ZONE_PROPERTIES_BASE().

◆ m_zonesSettingsBag

ZONE_SETTINGS_BAG& PANEL_ZONE_PROPERTIES::m_zonesSettingsBag
private

Definition at line 78 of file panel_zone_properties.h.

Referenced by PANEL_ZONE_PROPERTIES(), and SetZone().


The documentation for this class was generated from the following files: