import weakref
from ufoLib import UFOReader
from defcon.objects.base import BaseObject
from defcon.objects.layer import Layer


class LayerSet(BaseObject):

    """
    This object manages all layers in the font.

    **This object posts the following notifications:**

    ============================
    Name
    ============================
    LayerSet.Changed
    LayerSet.LayersChanged
    LayerSet.LayerChanged
    LayerSet.DefaultLayerChanged
    LayerSet.LayerOrderChanged
    LayerSet.LayerAdded
    LayerSet.LayerDeleted
    LayerSet.LayerWillBeDeleted