Beispiel #1
0
    def __init__(self, obj, viewProvider, jvoVisibility=None):
        self.obj = obj
        self.obj.Proxy.obj = obj
        self.viewProvider = viewProvider
        self.form = FreeCADGui.PySideUic.loadUi(":/panels/HoldingTagsEdit.ui")
        self.getPoint = PathGetPoint.TaskPanel(self.form.removeEditAddGroup,
                                               True)
        self.jvo = PathUtils.findParentJob(obj).ViewObject
        if jvoVisibility is None:
            FreeCAD.ActiveDocument.openTransaction(
                translate("PathDressup_HoldingTags",
                          "Edit HoldingTags Dress-up"))
            self.jvoVisible = self.jvo.isVisible()
            if self.jvoVisible:
                self.jvo.hide()
        else:
            self.jvoVisible = jvoVisibility
        self.pt = FreeCAD.Vector(0, 0, 0)

        self.isDirty = True
        self.buttonBox = None
        self.tags = None
        self.Positions = None
        self.Disabled = None
        self.editItem = None
Beispiel #2
0
 def getForm(self):
     self.formLoc = FreeCADGui.PySideUic.loadUi(
         ":/panels/PageBaseLocationEdit.ui")
     self.formLoc.baseList.horizontalHeader().setResizeMode(
         QtGui.QHeaderView.Stretch)
     self.getPoint = PathGetPoint.TaskPanel(self.formLoc.addRemoveEdit)
     return self.formLoc