'Return layout state'

def get_layout_settings(self):

    splitsettings = []
    for (editorstack, orientation) in self.iter_editorstacks():
        clines = []
        cfname = ''
        orientation = False
        if hasattr(editorstack, 'data'):
            clines = [finfo.editor.get_cursor_line_number() for finfo in editorstack.data]
            cfname = editorstack.get_current_filename()
        splitsettings.append(((orientation == Qt.Vertical), cfname, clines))
    return dict(hexstate=qbytearray_to_str(self.saveState()), sizes=self.sizes(), splitsettings=splitsettings)
