40 #include <wx/dataview.h> 195 LSET aLayers,
bool aFpEditorMode )
204 wxDataViewColumn* checkColumn = aList->AppendToggleColumn( wxEmptyString );
205 wxDataViewColumn* layerColumn = aList->AppendIconTextColumn( wxEmptyString );
206 wxDataViewColumn* layerIDColumn = aList->AppendTextColumn( wxEmptyString );
207 layerIDColumn->SetHidden(
true );
211 for(
LSEQ layer = aLayers.
UIOrder(); layer; ++layer )
216 if( aFpEditorMode && layerID ==
In1_Cu )
217 layerName =
_(
"Inner layers" );
226 icon.CopyFromBitmap( bitmap );
228 wxVector<wxVariant> row;
229 row.push_back( wxVariant(
m_Layers.test( layerID ) ) );
230 row.push_back( wxVariant( wxDataViewIconText( layerName, icon ) ) );
232 aList->AppendItem( row );
235 aList->SetToggleValue(
true, (
unsigned) aList->GetItemCount() - 1, 0 );
238 int checkColSize = 22;
243 aList->SetIndent( 0 );
244 aList->SetMinClientSize( wxSize( checkColSize + layerColSize, aList->GetMinClientSize().y ) );
246 checkColumn->SetWidth( checkColSize );
247 layerColumn->SetWidth( layerColSize );
int m_HatchSmoothingLevel
void SetIslandRemovalMode(ISLAND_REMOVAL_MODE aRemove)
void SetCornerRadius(unsigned int aRadius)
void SetHatchThickness(int aThickness)
void SetZoneName(const wxString &aName)
bool GetDoNotAllowFootprints() const
const wxString GetLayerName(PCB_LAYER_ID aLayer) const
Return the name of a aLayer.
void SetDoNotAllowTracks(bool aEnable)
const bool GetDoNotAllowFootprints() const
int GetHatchThickness() const
unsigned GetPriority() const
const bool GetIsRuleArea() const
Accessors to parameters used in Rule Area zones:
bool GetIsRuleArea() const
Accessors to parameters used in Rule Area zones:
void SetBorderDisplayStyle(ZONE_BORDER_DISPLAY_STYLE aHatchStyle, int aHatchPitch, bool aRebuildHatch)
Set all hatch parameters for the zone.
static wxBitmap MakeBitmap(const KIGFX::COLOR4D &aColor, const KIGFX::COLOR4D &aBackground, const wxSize &aSize, const wxSize &aCheckerboardSize, const KIGFX::COLOR4D &aCheckerboardBackground)
double m_HatchSmoothingValue
long long int GetMinIslandArea() const
ZONE_BORDER_DISPLAY_STYLE m_ZoneBorderDisplayStyle
Option to show the zone area (outlines only, short hatches or full hatches.
void SetLayerSet(LSET aLayerSet) override
bool GetDoNotAllowVias() const
double m_HatchHoleMinArea
virtual LSET GetLayerSet() const override
Return a std::bitset of all layers on which the item physically resides.
double GetHatchSmoothingValue() const
bool SetNetCode(int aNetCode, bool aNoAssert)
Set net using a net code.
long long int m_minIslandArea
ISLAND_REMOVAL_MODE m_removeIslands
#define ZONE_THERMAL_RELIEF_COPPER_WIDTH_MIL
virtual void SetLocked(bool aLocked)
Modify the 'lock' status for of the item.
const ISLAND_REMOVAL_MODE GetIslandRemovalMode() const
void SetHV45(bool aConstrain)
virtual bool IsLocked() const
void SetPriority(unsigned aPriority)
void SetFillMode(ZONE_FILL_MODE aFillMode)
void SetupLayersList(wxDataViewListCtrl *aList, PCB_BASE_FRAME *aFrame, LSET aLayers, bool aFpEditorMode)
A helper routine for the various zone dialogs (copper, non-copper, keepout).
ZONE_FILL_MODE GetFillMode() const
ZONE_SETTINGS & operator<<(const ZONE &aSource)
operator << ( const ZONE& ) was Function ImportSetting copies settings from a given zone into this ob...
Classes used in Pcbnew, CvPcb and GerbView.
void SetIsRuleArea(bool aEnable)
void SetDoNotAllowFootprints(bool aEnable)
int GetThermalReliefGap() const
virtual COLOR_SETTINGS * GetColorSettings() const override
Helper to retrieve the current color settings.
void SetDoNotAllowVias(bool aEnable)
double GetHatchHoleMinArea() const
void SetHatchSmoothingValue(double aValue)
bool GetDoNotAllowPads() const
bool GetDoNotAllowCopperPour() const
LSET is a set of PCB_LAYER_IDs.
int GetMinThickness() const
void SetHatchGap(int aStep)
wxSize GetTextSize(const wxString &aSingleLine, wxWindow *aWindow)
Return the size of aSingleLine of text when it is rendered in aWindow using whatever font is currentl...
int m_cornerSmoothingType
int GetHatchSmoothingLevel() const
static int GetDefaultHatchPitch()
void SetDoNotAllowPads(bool aEnable)
void ExportSetting(ZONE &aTarget, bool aFullExport=true) const
Function ExportSetting copy settings to a given zone.
void SetDoNotAllowPads(bool aEnable)
int GetLocalClearance(wxString *aSource) const override
Return any local clearances set in the "classic" (ie: pre-rule) system.
void SetCornerSmoothingType(int aType)
bool GetDoNotAllowTracks() const
bool m_keepoutDoNotAllowPads
#define ZONE_CLEARANCE_MIL
void SetDoNotAllowVias(bool aEnable)
const bool GetDoNotAllowVias() const
Handle a list of polygons defining a copper zone.
void SetMinThickness(int aMinThickness)
void SetDoNotAllowTracks(bool aEnable)
ZONE_BORDER_DISPLAY_STYLE GetHatchStyle() const
void SetHatchHoleMinArea(double aPct)
void SetIsRuleArea(bool aEnable)
#define ZONE_THICKNESS_MIL
LSEQ is a sequence (and therefore also a set) of PCB_LAYER_IDs.
const bool GetDoNotAllowTracks() const
ZONE_CONNECTION m_padConnection
ZONE_SETTINGS handles zones parameters.
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
double GetHatchOrientation() const
void SetHatchSmoothingLevel(int aLevel)
Use thermal relief for pads.
unsigned int GetCornerRadius() const
ZONE_SETTINGS()
class ZONE_SETTINGS used to handle zones parameters
const bool GetDoNotAllowPads() const
int m_HatchBorderAlgorithm
ZONE_FILL_MODE m_FillMode
int GetHatchBorderAlgorithm() const
COLOR4D GetColor(int aLayer) const
const ISLAND_REMOVAL_MODE GetIslandRemovalMode() const
void SetPadConnection(ZONE_CONNECTION aPadConnection)
void SetMinIslandArea(long long int aArea)
long m_ThermalReliefSpokeWidth
void SetHatchBorderAlgorithm(int aAlgo)
static const wxSize CHECKERBOARD_SIZE(8, 8)
Information pertinent to a Pcbnew printed circuit board.
void SetDoNotAllowCopperPour(bool aEnable)
PCB_LAYER_ID
A quick note on layer IDs:
bool m_keepoutDoNotAllowCopperPour
void SetCornerRadius(int aRadius)
const bool GetDoNotAllowCopperPour() const
void SetHatchOrientation(double aStep)
bool m_keepoutDoNotAllowFootprints
void SetThermalReliefGap(int aThermalReliefGap)
void SetDoNotAllowCopperPour(bool aEnable)
long long int GetMinIslandArea() const
#define ZONE_THERMAL_RELIEF_GAP_MIL
void SetLocalClearance(int aClearance)
int GetThermalReliefSpokeWidth() const
bool m_keepoutDoNotAllowTracks
ZONE_CONNECTION GetPadConnection(PAD *aPad, wxString *aSource=nullptr) const
static const wxSize LAYER_BITMAP_SIZE(24, 16)
unsigned int m_cornerRadius
wxString GetZoneName() const
int GetCornerSmoothingType() const
double m_HatchOrientation
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
bool m_keepoutDoNotAllowVias
void SetDoNotAllowFootprints(bool aEnable)
void SetThermalReliefSpokeWidth(int aThermalReliefSpokeWidth)
A color representation with 4 components: red, green, blue, alpha.