

def visit_QDockArea(self, area):
    ' Visit a QDockArea node.\n\n        This visitor generates an AreaLayout for the area and pushes\n        it onto the stack.\n\n        '
    central = area.centralWidget()
    if (central is None):
        layout = AreaLayout()
    else:
        self.visit(central)
        layout = AreaLayout(self.stack.pop())
    bar_data = defaultdict(list)
    for (container, position) in area.dockBarContainers():
        bar_data[position].append(container.objectName())
    for (bar_pos, names) in bar_data.iteritems():
        bar = DockBarLayout(*names, position=self.BAR_POSITIONS[names])
        layout.dock_bars.append(bar)
    maxed = area.maximizedWidget()
    if (maxed is not None):
        name = maxed.objectName()
        for item in layout.find_all(ItemLayout):
            if (item.name == name):
                item.maximized = True
                break
    self.stack.append(layout)

dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/docking/layout_saver.py LayoutSaver.visit_QDockArea/VarMisuse@128/213 `bar_pos`->`names`