43class wxDataViewListCtrl;
278 case 0:
return _(
"Layer" );
279 case 1:
return _(
"Offset X" );
280 case 2:
return _(
"Offset Y" );
281 default:
return wxEmptyString;
285 bool CanGetValueAs(
int aRow,
int aCol,
const wxString& aTypeName )
override
289 case 0:
return aTypeName == wxGRID_VALUE_NUMBER;
290 case 1:
return aTypeName == wxGRID_VALUE_STRING;
291 case 2:
return aTypeName == wxGRID_VALUE_STRING;
292 default: wxFAIL;
return false;
296 bool CanSetValueAs(
int aRow,
int aCol,
const wxString& aTypeName )
override
301 wxString
GetValue(
int aRow,
int aCol )
override;
302 void SetValue(
int aRow,
int aCol,
const wxString& aValue )
override;
308 bool AppendRows(
size_t aNumRows = 1 )
override;
309 bool DeleteRows(
size_t aPos,
size_t aNumRows )
override;
311 const std::vector<std::pair<PCB_LAYER_ID, ZONE_LAYER_PROPERTIES>>&
GetItems() {
return m_items; }
319 std::vector<std::pair<PCB_LAYER_ID, ZONE_LAYER_PROPERTIES>>
m_items;
A lightweight representation of a component class.
~LAYER_PROPERTIES_GRID_TABLE() override
wxString GetColLabelValue(int aCol) override
wxString GetValue(int aRow, int aCol) override
bool CanGetValueAs(int aRow, int aCol, const wxString &aTypeName) override
const std::vector< std::pair< PCB_LAYER_ID, ZONE_LAYER_PROPERTIES > > & GetItems()
void SetValueAsLong(int aRow, int aCol, long aValue) override
void SetValue(int aRow, int aCol, const wxString &aValue) override
int GetNumberRows() override
std::function< LSET()> m_getLayersFunc
void AddItem(PCB_LAYER_ID aLayer, const ZONE_LAYER_PROPERTIES &aProps)
std::vector< std::pair< PCB_LAYER_ID, ZONE_LAYER_PROPERTIES > > m_items
long GetValueAsLong(int aRow, int aCol) override
bool AppendRows(size_t aNumRows=1) override
bool DeleteRows(size_t aPos, size_t aNumRows) override
bool CanSetValueAs(int aRow, int aCol, const wxString &aTypeName) override
void onUnitsChanged(wxCommandEvent &aEvent)
LAYER_PROPERTIES_GRID_TABLE(PCB_BASE_FRAME *aFrame, std::function< LSET()> getLayers)
int GetNumberCols() override
LSET is a set of PCB_LAYER_IDs.
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
ZONE_SETTINGS handles zones parameters.
bool m_keepoutDoNotAllowPads
void SetIsRuleArea(bool aEnable)
bool operator==(const ZONE_SETTINGS &aOther) const
bool operator!=(const ZONE_SETTINGS &aOther) const
unsigned int m_cornerRadius
bool GetDoNotAllowTracks() const
wxString GetPlacementAreaSource() const
EDA_ANGLE m_HatchOrientation
int m_HatchBorderAlgorithm
void SetDoNotAllowVias(bool aEnable)
bool GetDoNotAllowFootprints() const
long long int m_minIslandArea
void SetIslandRemovalMode(ISLAND_REMOVAL_MODE aRemove)
bool m_keepoutDoNotAllowTracks
bool GetDoNotAllowPads() const
double m_HatchSmoothingValue
PLACEMENT_SOURCE_T GetPlacementAreaSourceType() const
PLACEMENT_SOURCE_T m_placementAreaSourceType
void SetMinIslandArea(long long int aArea)
void ExportSetting(ZONE &aTarget, bool aFullExport=true) const
Function ExportSetting copy settings to a given zone.
bool GetIsRuleArea() const
bool GetDoNotAllowZoneFills() const
int m_cornerSmoothingType
void SetDoNotAllowTracks(bool aEnable)
bool m_keepoutDoNotAllowZoneFills
bool GetDoNotAllowVias() const
wxString m_placementAreaSource
ISLAND_REMOVAL_MODE m_removeIslands
void SetPlacementAreaSource(const wxString &aSource)
double m_HatchHoleMinArea
void SetPadConnection(ZONE_CONNECTION aPadConnection)
long long int GetMinIslandArea() const
long m_ThermalReliefSpokeWidth
void SetPlacementAreaEnabled(bool aEnabled)
ZONE_CONNECTION GetPadConnection() const
TEARDROP_TYPE m_TeardropType
bool m_placementAreaEnabled
Placement rule area data.
static const ZONE_SETTINGS & GetDefaultSettings()
void SetCornerRadius(int aRadius)
bool GetPlacementAreaEnabled() const
Accessors to parameters used in Rule Area zones:
std::map< PCB_LAYER_ID, ZONE_LAYER_PROPERTIES > m_LayerProperties
bool HasKeepoutParametersSet() const
Accessor to determine if any keepout parameters are set.
int GetCornerSmoothingType() const
ZONE_FILL_MODE m_FillMode
ZONE_CONNECTION m_padConnection
void SetDoNotAllowFootprints(bool aEnable)
void SetDoNotAllowPads(bool aEnable)
void SetCornerSmoothingType(int aType)
ZONE_SETTINGS & operator<<(const ZONE &aSource)
operator << ( const ZONE& ) was Function ImportSetting copies settings from a given zone into this ob...
void CopyFrom(const ZONE_SETTINGS &aOther, bool aCopyFull=true)
Function CopyFrom copy settings from a different ZONE_SETTINGS object.
int m_HatchSmoothingLevel
void SetDoNotAllowZoneFills(bool aEnable)
void SetupLayersList(wxDataViewListCtrl *aList, PCB_BASE_FRAME *aFrame, LSET aLayers)
A helper routine for the various zone dialogs (copper, non-copper, keepout).
unsigned int GetCornerRadius() const
ISLAND_REMOVAL_MODE GetIslandRemovalMode() const
ZONE_BORDER_DISPLAY_STYLE m_ZoneBorderDisplayStyle
Option to show the zone area (outlines only, short hatches or full hatches.
bool m_keepoutDoNotAllowFootprints
bool m_keepoutDoNotAllowVias
void SetPlacementAreaSourceType(PLACEMENT_SOURCE_T aType)
Handle a list of polygons defining a copper zone.
PCB_LAYER_ID
A quick note on layer IDs:
std::optional< VECTOR2I > hatching_offset
bool operator==(const ZONE_LAYER_PROPERTIES &aOther) const
TEARDROP_TYPE
define the type of a teardrop: on a via or pad, or a track end
ISLAND_REMOVAL_MODE
Whether or not to remove isolated islands from a zone.
ZONE_BORDER_DISPLAY_STYLE
Zone border styles.
ZONE_CONNECTION
How pads are covered by copper in zone.