'Return a serialized (storable) representation of the state of
all Docks in this DockArea.'

def saveState(self):

    if (self.topContainer is None):
        main = None
    else:
        main = self.childState(self.topContainer)
    state = {'main': main, 'float': []}
    for a in self.tempAreas:
        geo = a.win.geometry()
        geo = (geo.x(), geo.y(), geo.width(), geo.height())
        state['float'].append((a.saveState(), geo))
    return state
