kicad footprint plugins wizards: avoid spaces in generated footprint names (which often creates issues in filenames)

This commit is contained in:
unknown 2015-08-23 14:44:56 +02:00 committed by jean-pierre charras
parent bb3dc5771c
commit d6b1aa764e
3 changed files with 5 additions and 5 deletions

View File

@ -56,7 +56,7 @@ class BGAWizard(HFPW.HelpfulFootprintWizardPlugin):
pins = (self.parameters["Pads"]["*row count"] pins = (self.parameters["Pads"]["*row count"]
* self.parameters["Pads"]["*column count"]) * self.parameters["Pads"]["*column count"])
return "BGA %d" % pins return "BGA_%d" % pins
def GetReferencePrefix(self): def GetReferencePrefix(self):
return "U" return "U"

View File

@ -47,7 +47,7 @@ class QFPWizard(HelpfulFootprintWizardPlugin.HelpfulFootprintWizardPlugin):
self.CheckParamBool("Pads", "*oval") self.CheckParamBool("Pads", "*oval")
def GetValue(self): def GetValue(self):
return "QFP %d" % self.parameters["Pads"]["*n"] return "QFP_%d" % self.parameters["Pads"]["*n"]
def BuildThisFootprint(self): def BuildThisFootprint(self):

View File

@ -101,7 +101,7 @@ class RowedFootprint(HFPW.HelpfulFootprintWizardPlugin):
class SDIPWizard(RowedFootprint): class SDIPWizard(RowedFootprint):
def GetName(self): def GetName(self):
return "S/DIP" return "S-DIP"
def GetDescription(self): def GetDescription(self):
return "Single/Dual Inline Package Footprint Wizard" return "Single/Dual Inline Package Footprint Wizard"
@ -128,7 +128,7 @@ class SDIPWizard(RowedFootprint):
else: # triple and up aren't really a thing, but call it something! else: # triple and up aren't really a thing, but call it something!
name = "xIP" name = "xIP"
return "%s %d" % (name, self.parameters["Pads"]["*n"]) return "%s-%d" % (name, self.parameters["Pads"]["*n"])
def GetPad(self): def GetPad(self):
pad_length = self.parameters["Pads"]["pad length"] pad_length = self.parameters["Pads"]["pad length"]
@ -177,7 +177,7 @@ class SOICWizard(RowedFootprint):
return "SOIC, MSOP, SSOP, TSSOP, etc, footprint wizard" return "SOIC, MSOP, SSOP, TSSOP, etc, footprint wizard"
def GetValue(self): def GetValue(self):
return "%s %d" % ("SOIC", self.parameters["Pads"]["*n"]) return "%s-%d" % ("SOIC", self.parameters["Pads"]["*n"])
def GenerateParameterList(self): def GenerateParameterList(self):
RowedFootprint.GenerateParameterList(self) RowedFootprint.GenerateParameterList(self)