''

def quick_layout_set_menu(self):

    get = CONF.get
    names = get('quick_layouts', 'names')
    order = get('quick_layouts', 'order')
    active = get('quick_layouts', 'active')
    ql_actions = []
    ql_actions = [create_action(self, _('Spyder    Default    Layout'), triggered=(lambda : self.quick_layout_switch('default')))]
    for name in order:
        if (name in active):
            index = names.index(name)
            def trigger(i=index, self=self):
                return (lambda : self.quick_layout_switch(i))
            qli_act = create_action(self, name, triggered=trigger())
            ql_actions += [qli_act]
    self.ql_save = create_action(self, _('Save    current    layout'), triggered=(lambda : self.quick_layout_save()), context=Qt.ApplicationShortcut)
    self.ql_preferences = create_action(self, _('Layout    preferences'), triggered=(lambda : self.quick_layout_settings()), context=Qt.ApplicationShortcut)
    self.ql_reset = create_action(self, _('Reset    to    spyder    default'), triggered=self.reset_window_layout)
    self.register_shortcut(self.ql_save, '_', 'Save    current    layout')
    self.register_shortcut(self.ql_preferences, '_', 'Layout    preferences')
    ql_actions += [None]
    ql_actions += [self.ql_save, self.ql_preferences, self.ql_reset]
    self.quick_layout_menu.clear()
    add_actions(self.quick_layout_menu, ql_actions)
    if (len(order) == 0):
        self.ql_preferences.setEnabled(False)
    else:
        self.ql_preferences.setEnabled(True)
