Footprint wizards: fix some issues due to C++ code change.
Some constants were renamed, breaking some wizards.
This commit is contained in:
parent
c0afeed13d
commit
eb16fec7ec
|
@ -133,7 +133,7 @@ class FPC_FootprintWizard(FootprintWizardBase.FootprintWizard):
|
|||
self.draw.Line(-xstart, posy, -xend, yend)
|
||||
|
||||
# set SMD attribute
|
||||
self.module.SetAttributes(pcbnew.MOD_CMS)
|
||||
self.module.SetAttributes(pcbnew.MOD_SMD)
|
||||
|
||||
# vertical segment at left of the pad
|
||||
xstart = xend
|
||||
|
|
|
@ -164,6 +164,6 @@ class BGAWizard(FootprintWizardBase.FootprintWizard):
|
|||
self.draw.Reference(0, -ypos, text_size)
|
||||
|
||||
# set SMD attribute
|
||||
self.module.SetAttributes(pcbnew.MOD_CMS)
|
||||
self.module.SetAttributes(pcbnew.MOD_SMD)
|
||||
|
||||
BGAWizard().register()
|
||||
|
|
|
@ -227,7 +227,7 @@ class QFNWizard(FootprintWizardBase.FootprintWizard):
|
|||
self.draw.Reference(0, -text_offset, text_size)
|
||||
|
||||
# set SMD attribute
|
||||
self.module.SetAttributes(pcbnew.MOD_CMS)
|
||||
self.module.SetAttributes(pcbnew.MOD_SMD)
|
||||
|
||||
QFNWizard().register()
|
||||
|
||||
|
|
|
@ -166,6 +166,6 @@ class QFPWizard(FootprintWizardBase.FootprintWizard):
|
|||
self.draw.Reference(0, -text_offset, text_size)
|
||||
|
||||
# set SMD attribute
|
||||
self.module.SetAttributes(pcbnew.MOD_CMS)
|
||||
self.module.SetAttributes(pcbnew.MOD_SMD)
|
||||
|
||||
QFPWizard().register()
|
||||
|
|
|
@ -150,7 +150,7 @@ class QRCodeWizard(FootprintWizardBase.FootprintWizard):
|
|||
self.module.Value().SetPos0(pos)
|
||||
self.module.Value().SetTextHeight(self.textHeight)
|
||||
self.module.Value().SetTextWidth(self.textWidth)
|
||||
self.module.Value().SetThickness(self.textThickness)
|
||||
self.module.Value().SetTextThickness(self.textThickness)
|
||||
|
||||
# Add Reference field
|
||||
pos = pcbnew.wxPoint(0, textPosition)
|
||||
|
|
|
@ -132,9 +132,9 @@ class RowedFootprint(FootprintWizardBase.FootprintWizard):
|
|||
|
||||
# set the attribute
|
||||
if self.GetName() == "S-DIP":
|
||||
self.module.SetAttributes(pcbnew.MOD_DEFAULT)
|
||||
self.module.SetAttributes(pcbnew.MOD_THROUGH_HOLE)
|
||||
elif self.GetName() == "SOIC":
|
||||
self.module.SetAttributes(pcbnew.MOD_CMS)
|
||||
self.module.SetAttributes(pcbnew.MOD_SMD)
|
||||
|
||||
class SDIPWizard(RowedFootprint):
|
||||
|
||||
|
|
|
@ -189,7 +189,7 @@ class TouchSliderWizard(FootprintWizardBase.FootprintWizard):
|
|||
self.draw.Reference(0, -ypos, t_size)
|
||||
|
||||
# set SMD attribute
|
||||
self.module.SetAttributes(MOD_CMS)
|
||||
self.module.SetAttributes(MOD_SMD)
|
||||
|
||||
# starting pad
|
||||
band_width = touch_width/bands
|
||||
|
|
|
@ -113,9 +113,9 @@ class RowedFootprint(FootprintWizardBase.FootprintWizard):
|
|||
|
||||
# set SMD attribute
|
||||
if self.GetName() == "ZIP":
|
||||
self.module.SetAttributes(pcbnew.MOD_DEFAULT)
|
||||
self.module.SetAttributes(pcbnew.MOD_THROUGH_HOLE)
|
||||
elif self.GetName() == "ZOIC":
|
||||
self.module.SetAttributes(pcbnew.MOD_CMS)
|
||||
self.module.SetAttributes(pcbnew.MOD_SMD)
|
||||
|
||||
def DrawBox(self, sizex, sizey):
|
||||
|
||||
|
|
Loading…
Reference in New Issue