KiCad PCB EDA Suite
|
#include <panel_zone_properties.h>
Public Member Functions | |
PANEL_ZONE_PROPERTIES (wxWindow *aParent, PCB_BASE_FRAME *aPcb, ZONES_CONTAINER &aZoneContainer) | |
void | ActivateSelectedZone (ZONE *new_zone) override |
void | OnUserConfirmChange () override |
std::shared_ptr< ZONE_SETTINGS > | GetZoneSettings () const |
bool | TransferZoneSettingsFromWindow () |
ZONE * | GetZone () const |
void | OnZoneSelectionChanged (ZONE *aZone) |
Inform the subscriber about the zone selection change. | |
ZONE * | GetSelectedZone () const |
Private Member Functions | |
bool | TransferZoneSettingsToWindow () |
bool | AcceptOptions (bool aUseExportableSetupOnly=false) |
void | OnStyleSelection (wxCommandEvent &event) override |
void | OnUpdateUI (wxUpdateUIEvent &) override |
void | OnRemoveIslandsSelection (wxCommandEvent &event) override |
void | OnZoneNameChanged (wxCommandEvent &event) override |
Static Private Attributes | |
static constexpr int | INVALID_NET_CODE { 0 } |
static constexpr int | DEFAULT_SORT_CONFIG { -1 } |
static constexpr int | NO_PERSISTENT_SORT_MODE { 0 } |
static constexpr int | HIDE_ANONYMOUS_NETS { 1 << 0 } |
static constexpr int | SORT_BY_PAD_COUNT { 1 << 1 } |
Definition at line 43 of file panel_zone_properties.h.
PANEL_ZONE_PROPERTIES::PANEL_ZONE_PROPERTIES | ( | wxWindow * | aParent, |
PCB_BASE_FRAME * | aPcb, | ||
ZONES_CONTAINER & | aZoneContainer | ||
) |
Definition at line 44 of file panel_zone_properties.cpp.
References UNIT_BINDER::Enable(), PANEL_ZONE_PROPERTIES_BASE::m_cbRemoveIslands, and m_islandThreshold.
|
private |
aUseExportableSetupOnly | is true to use exportable parameters only (used to export this setup to other zones). |
Definition at line 229 of file panel_zone_properties.cpp.
References _, DisplayErrorMessage(), UNIT_BINDER::GetIntValue(), UNIT_BINDER::GetValue(), m_antipadClearance, PANEL_ZONE_PROPERTIES_BASE::m_cbLocked, PANEL_ZONE_PROPERTIES_BASE::m_cbRemoveIslands, m_clearance, m_cornerRadius, PANEL_ZONE_PROPERTIES_BASE::m_cornerSmoothingChoice, m_gridStyleGap, m_gridStyleRotation, m_gridStyleThickness, m_islandThreshold, m_minThickness, PANEL_ZONE_PROPERTIES_BASE::m_OutlineDisplayCtrl, m_outlineHatchPitch, PANEL_ZONE_PROPERTIES_BASE::m_PadInZoneOpt, m_settings, m_spokeWidth, PANEL_ZONE_PROPERTIES_BASE::m_tcZoneName, EDA_IU_SCALE::mmToIU(), NormalizeAngle180(), pcbIUScale, UNIT_BINDER::SetValue(), ZONE_SETTINGS::SMOOTHING_NONE, UNIT_BINDER::Validate(), ZONE_BORDER_HATCH_MAXDIST_MM, ZONE_BORDER_HATCH_MINDIST_MM, ZONE_CLEARANCE_MAX_VALUE_MM, and ZONE_THICKNESS_MIN_VALUE_MM.
Referenced by TransferZoneSettingsFromWindow().
|
overridevirtual |
Implements ZONE_SELECTION_CHANGE_NOTIFIER.
Definition at line 75 of file panel_zone_properties.cpp.
References ZONES_CONTAINER::GetZoneSettings(), m_isTeardrop, m_settings, m_ZoneContainer, TransferZoneSettingsFromWindow(), and TransferZoneSettingsToWindow().
|
inlineinherited |
Definition at line 54 of file zone_selection_change_notifier.h.
References ZONE_SELECTION_CHANGE_NOTIFIER::m_zone.
|
inlineinherited |
Definition at line 40 of file zone_selection_change_notifier.h.
References ZONE_SELECTION_CHANGE_NOTIFIER::m_zone.
Referenced by DIALOG_ZONE_MANAGER::OnZoneNameUpdate().
|
inline |
Definition at line 56 of file panel_zone_properties.h.
References m_settings.
Referenced by DIALOG_ZONE_MANAGER::OnOk().
|
overrideprivatevirtual |
Reimplemented from PANEL_ZONE_PROPERTIES_BASE.
Definition at line 193 of file panel_zone_properties.cpp.
References UNIT_BINDER::Enable(), PANEL_ZONE_PROPERTIES_BASE::m_cbRemoveIslands, and m_islandThreshold.
|
overrideprivatevirtual |
Reimplemented from PANEL_ZONE_PROPERTIES_BASE.
Definition at line 311 of file panel_zone_properties.cpp.
References PANEL_ZONE_PROPERTIES_BASE::m_GridStyleCtrl, PANEL_ZONE_PROPERTIES_BASE::m_spinCtrlSmoothLevel, PANEL_ZONE_PROPERTIES_BASE::m_spinCtrlSmoothValue, PANEL_ZONE_PROPERTIES_BASE::m_tcGridStyleGap, PANEL_ZONE_PROPERTIES_BASE::m_tcGridStyleOrientation, and PANEL_ZONE_PROPERTIES_BASE::m_tcGridStyleThickness.
Referenced by TransferZoneSettingsToWindow().
|
overrideprivatevirtual |
Reimplemented from PANEL_ZONE_PROPERTIES_BASE.
Definition at line 177 of file panel_zone_properties.cpp.
References _, PANEL_ZONE_PROPERTIES_BASE::m_cornerRadiusCtrl, PANEL_ZONE_PROPERTIES_BASE::m_cornerRadiusLabel, PANEL_ZONE_PROPERTIES_BASE::m_cornerSmoothingChoice, m_cornerSmoothingType, ZONE_SETTINGS::SMOOTHING_CHAMFER, and ZONE_SETTINGS::SMOOTHING_NONE.
|
overridevirtual |
Implements ZONE_MANAGEMENT_BASE.
Definition at line 86 of file panel_zone_properties.cpp.
References TransferZoneSettingsFromWindow().
|
overrideprivatevirtual |
Reimplemented from PANEL_ZONE_PROPERTIES_BASE.
Definition at line 198 of file panel_zone_properties.cpp.
References PANEL_ZONE_PROPERTIES_BASE::m_tcZoneName.
|
inlineinherited |
Inform the subscriber about the zone selection change.
aZone | The current zone selection from the publisher |
Definition at line 46 of file zone_selection_change_notifier.h.
References ZONE_SELECTION_CHANGE_NOTIFIER::ActivateSelectedZone(), and ZONE_SELECTION_CHANGE_NOTIFIER::m_zone.
bool PANEL_ZONE_PROPERTIES::TransferZoneSettingsFromWindow | ( | ) |
Definition at line 206 of file panel_zone_properties.cpp.
References AcceptOptions(), UNIT_BINDER::GetAngleValue(), UNIT_BINDER::GetIntValue(), PANEL_ZONE_PROPERTIES_BASE::m_GridStyleCtrl, m_gridStyleGap, m_gridStyleRotation, m_gridStyleThickness, m_settings, PANEL_ZONE_PROPERTIES_BASE::m_spinCtrlSmoothLevel, and PANEL_ZONE_PROPERTIES_BASE::m_spinCtrlSmoothValue.
Referenced by ActivateSelectedZone(), DIALOG_ZONE_MANAGER::OnUpdateDisplayedZonesClick(), and OnUserConfirmChange().
|
private |
Definition at line 92 of file panel_zone_properties.cpp.
References UNIT_BINDER::Enable(), m_antipadClearance, PANEL_ZONE_PROPERTIES_BASE::m_cbLocked, PANEL_ZONE_PROPERTIES_BASE::m_cbRemoveIslands, m_clearance, m_cornerRadius, PANEL_ZONE_PROPERTIES_BASE::m_cornerSmoothingChoice, PANEL_ZONE_PROPERTIES_BASE::m_GridStyleCtrl, m_gridStyleGap, m_gridStyleRotation, m_gridStyleThickness, m_islandThreshold, m_isTeardrop, m_minThickness, PANEL_ZONE_PROPERTIES_BASE::m_OutlineDisplayCtrl, m_outlineHatchPitch, PANEL_ZONE_PROPERTIES_BASE::m_PadInZoneOpt, m_settings, PANEL_ZONE_PROPERTIES_BASE::m_spinCtrlSmoothLevel, PANEL_ZONE_PROPERTIES_BASE::m_spinCtrlSmoothValue, m_spokeWidth, PANEL_ZONE_PROPERTIES_BASE::m_tcZoneName, OnStyleSelection(), UNIT_BINDER::SetAngleValue(), UNIT_BINDER::SetDataType(), UNIT_BINDER::SetDoubleValue(), UNIT_BINDER::SetUnits(), and UNIT_BINDER::SetValue().
Referenced by ActivateSelectedZone().
|
staticconstexprprivate |
Definition at line 63 of file panel_zone_properties.h.
|
staticconstexprprivate |
Definition at line 65 of file panel_zone_properties.h.
|
staticconstexprprivate |
Definition at line 61 of file panel_zone_properties.h.
|
private |
Definition at line 95 of file panel_zone_properties.h.
Referenced by AcceptOptions(), and TransferZoneSettingsToWindow().
|
protectedinherited |
Definition at line 63 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 62 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 64 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 41 of file panel_zone_properties_base.h.
Referenced by AcceptOptions(), PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE(), and TransferZoneSettingsToWindow().
|
protectedinherited |
|
private |
Definition at line 93 of file panel_zone_properties.h.
Referenced by AcceptOptions(), and TransferZoneSettingsToWindow().
|
protectedinherited |
Definition at line 54 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 53 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 55 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 60 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
private |
Definition at line 92 of file panel_zone_properties.h.
Referenced by AcceptOptions(), and TransferZoneSettingsToWindow().
|
protectedinherited |
Definition at line 51 of file panel_zone_properties_base.h.
Referenced by OnUpdateUI(), and PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 50 of file panel_zone_properties_base.h.
Referenced by OnUpdateUI(), and PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 52 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 49 of file panel_zone_properties_base.h.
Referenced by AcceptOptions(), OnUpdateUI(), PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE(), and TransferZoneSettingsToWindow().
|
private |
Definition at line 89 of file panel_zone_properties.h.
Referenced by OnUpdateUI().
|
protectedinherited |
Definition at line 69 of file panel_zone_properties_base.h.
Referenced by OnStyleSelection(), PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE(), TransferZoneSettingsFromWindow(), TransferZoneSettingsToWindow(), and PANEL_ZONE_PROPERTIES_BASE::~PANEL_ZONE_PROPERTIES_BASE().
|
private |
Definition at line 100 of file panel_zone_properties.h.
Referenced by AcceptOptions(), TransferZoneSettingsFromWindow(), and TransferZoneSettingsToWindow().
|
protectedinherited |
Definition at line 78 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
private |
Definition at line 98 of file panel_zone_properties.h.
Referenced by AcceptOptions(), TransferZoneSettingsFromWindow(), and TransferZoneSettingsToWindow().
|
private |
Definition at line 99 of file panel_zone_properties.h.
Referenced by AcceptOptions(), TransferZoneSettingsFromWindow(), and TransferZoneSettingsToWindow().
|
protectedinherited |
Definition at line 75 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
private |
Definition at line 101 of file panel_zone_properties.h.
Referenced by AcceptOptions(), OnRemoveIslandsSelection(), PANEL_ZONE_PROPERTIES(), and TransferZoneSettingsToWindow().
|
protectedinherited |
Definition at line 86 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 88 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
private |
Definition at line 102 of file panel_zone_properties.h.
Referenced by ActivateSelectedZone(), and TransferZoneSettingsToWindow().
|
private |
Definition at line 94 of file panel_zone_properties.h.
Referenced by AcceptOptions(), and TransferZoneSettingsToWindow().
|
protectedinherited |
Definition at line 57 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 56 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 58 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 43 of file panel_zone_properties_base.h.
Referenced by AcceptOptions(), PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE(), and TransferZoneSettingsToWindow().
|
private |
Definition at line 90 of file panel_zone_properties.h.
Referenced by AcceptOptions(), and TransferZoneSettingsToWindow().
|
protectedinherited |
Definition at line 45 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 46 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 61 of file panel_zone_properties_base.h.
Referenced by AcceptOptions(), PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE(), and TransferZoneSettingsToWindow().
|
private |
Definition at line 85 of file panel_zone_properties.h.
|
private |
Definition at line 87 of file panel_zone_properties.h.
Referenced by AcceptOptions(), ActivateSelectedZone(), GetZoneSettings(), TransferZoneSettingsFromWindow(), and TransferZoneSettingsToWindow().
|
protectedinherited |
Definition at line 80 of file panel_zone_properties_base.h.
Referenced by OnStyleSelection(), PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE(), TransferZoneSettingsFromWindow(), and TransferZoneSettingsToWindow().
|
protectedinherited |
Definition at line 82 of file panel_zone_properties_base.h.
Referenced by OnStyleSelection(), PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE(), TransferZoneSettingsFromWindow(), and TransferZoneSettingsToWindow().
|
private |
Definition at line 96 of file panel_zone_properties.h.
Referenced by AcceptOptions(), and TransferZoneSettingsToWindow().
|
protectedinherited |
Definition at line 66 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 65 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 67 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 59 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 47 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 83 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 84 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 68 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 76 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 79 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 81 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 70 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 72 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 48 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 42 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 73 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 44 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 77 of file panel_zone_properties_base.h.
Referenced by OnStyleSelection(), and PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 71 of file panel_zone_properties_base.h.
Referenced by OnStyleSelection(), and PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 74 of file panel_zone_properties_base.h.
Referenced by OnStyleSelection(), and PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 87 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
protectedinherited |
Definition at line 40 of file panel_zone_properties_base.h.
Referenced by AcceptOptions(), OnZoneNameChanged(), PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE(), TransferZoneSettingsToWindow(), and PANEL_ZONE_PROPERTIES_BASE::~PANEL_ZONE_PROPERTIES_BASE().
|
privateinherited |
Definition at line 60 of file zone_selection_change_notifier.h.
Referenced by ZONE_SELECTION_CHANGE_NOTIFIER::GetSelectedZone(), ZONE_SELECTION_CHANGE_NOTIFIER::GetZone(), and ZONE_SELECTION_CHANGE_NOTIFIER::OnZoneSelectionChanged().
|
private |
Definition at line 84 of file panel_zone_properties.h.
Referenced by ActivateSelectedZone().
|
protectedinherited |
Definition at line 39 of file panel_zone_properties_base.h.
Referenced by PANEL_ZONE_PROPERTIES_BASE::PANEL_ZONE_PROPERTIES_BASE().
|
staticconstexprprivate |
Definition at line 64 of file panel_zone_properties.h.
|
staticconstexprprivate |
Definition at line 66 of file panel_zone_properties.h.