diff --git a/CircularZone/CircularZone.py b/CircularZone/CircularZone.py index 3741fa4..b7b9583 100644 --- a/CircularZone/CircularZone.py +++ b/CircularZone/CircularZone.py @@ -2,14 +2,17 @@ from math import * import pcbnew from .CircularZoneDlg import CircularZoneDlg import wx +import os class CircularZone(pcbnew.ActionPlugin): def defaults(self): - self.name = "Create a circular zone" - self.category = "Undefined" - self.description = "" + self.name = "Circular Zone\nKeepout Zone Generator" + self.category = "Modify PCB" + self.description = "Create a Circular Zone\nor a Circular Keepout Zone" + self.icon_file_name = os.path.join(os.path.dirname(__file__), "./round_keepout_area.png") + self.show_toolbar_button = True def build(self, center_x, center_y, radius, keepout, edge_count): sp = pcbnew.SHAPE_POLY_SET() diff --git a/CircularZone/round_keepout_area.png b/CircularZone/round_keepout_area.png new file mode 100644 index 0000000..03abbcf Binary files /dev/null and b/CircularZone/round_keepout_area.png differ diff --git a/CircularZone/round_keepout_area.svg b/CircularZone/round_keepout_area.svg new file mode 100644 index 0000000..30b4901 --- /dev/null +++ b/CircularZone/round_keepout_area.svg @@ -0,0 +1,216 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +