[Draft] Group object for dimension styles

This commit is contained in:
carlopav
2020-03-22 14:34:53 +01:00
committed by Yorik van Havre
parent 33f6d01192
commit 4855564bb8
6 changed files with 106 additions and 449 deletions

View File

@@ -52,4 +52,28 @@ class DraftAnnotation:
pass
def onChanged(self, obj, prop):
pass
pass
class AnnotationStylesContainer:
"""The Annotation Container"""
def __init__(self, obj):
self.Type = "AnnotationContainer"
obj.Proxy = self
def execute(self, obj):
g = obj.Group
g.sort(key=lambda o: o.Label)
obj.Group = g
def __getstate__(self):
if hasattr(self, "Type"):
return self.Type
def __setstate__(self, state):
if state:
self.Type = state