'Setup toolbar'

def setup_toolbar(self, exclude_private, exclude_uppercase, exclude_capitalized, exclude_unsupported):

    self.setup_in_progress = True
    toolbar = []
    load_button = create_toolbutton(self, text=_('Import    data'), icon=ima.icon('fileimport'), triggered=(lambda : self.import_data()))
    self.save_button = create_toolbutton(self, text=_('Save    data'), icon=ima.icon('filesave'), triggered=(lambda : self.save_data(self.filename)))
    self.save_button.setEnabled(False)
    save_as_button = create_toolbutton(self, text=_('Save    data    as...'), icon=ima.icon('filesaveas'), triggered=self.save_data)
    toolbar += [load_button, self.save_button, save_as_button]
    self.exclude_private_action = create_action(self, _('Exclude    private    references'), tip=_('Exclude    references    which    name    starts    with    an    underscore'), toggled=(lambda state: self.sig_option_changed.emit('exclude_private', state)))
    self.exclude_private_action.setChecked(exclude_private)
    self.exclude_uppercase_action = create_action(self, _('Exclude    all-uppercase    references'), tip=_('Exclude    references    which    name    is    uppercase'), toggled=(lambda state: self.sig_option_changed.emit('exclude_uppercase', state)))
    self.exclude_uppercase_action.setChecked(exclude_uppercase)
    self.exclude_capitalized_action = create_action(self, _('Exclude    capitalized    references'), tip=_('Exclude    references    which    name    starts    with    an    uppercase    character'), toggled=(lambda state: self.sig_option_changed.emit('exclude_capitalized', state)))
    self.exclude_capitalized_action.setChecked(exclude_capitalized)
    self.exclude_unsupported_action = create_action(self, _('Exclude    unsupported    data    types'), tip=_("Exclude    references    to    unsupported    data    types    (i.e.    which    won't    be    handled/saved    correctly)"), toggled=(lambda state: self.sig_option_changed.emit('exclude_unsupported', state)))
    self.exclude_unsupported_action.setChecked(exclude_unsupported)
    self.setup_in_progress = False
    return toolbar
