hasii2011 / pyut

A UML Diagrammer implemented in Python
GNU Affero General Public License v3.0
11 stars 4 forks source link

Do not allow link labels to be deleted #511

Closed hasii2011 closed 11 months ago

hasii2011 commented 1 year ago

Might need to subclass OglText to something like OglLabel

hasii2011 commented 1 year ago

Will be aided this Ogl issue

hasii2011 commented 11 months ago

UmlFrames.getUmlObject()

has this code when I fixed issue #522

    def getUmlObjects(self) -> UmlObjects:
        """
        TODO:  Make this a property

        Retrieve UML objects from the UML Frame

        Returns:  The Uml objects on this diagram
        """
        umlObjects: UmlObjects = UmlObjects([])

        for s in self._diagram.GetShapes():
            # This is a duplicate of the UmlObject, since I cannot use NewType
            if isinstance(s, (OglClass, OglLink, OglNote, OglText, OglSDMessage, OglSDInstance, OglActor, OglUseCase, OglInterface2)):
                umlObjects.append(s)

        return umlObjects
hasii2011 commented 11 months ago

done as result of #522