'Return toolbar buttons list.'

def get_toolbar_buttons(self):

    buttons = []
    if (self.stop_button is None):
        self.stop_button = create_toolbutton(self, text=_('Stop'), icon=self.stop_icon, tip=_('Stop    the    current    command'))
        self.disable_stop_button()
        self.stop_button.clicked.connect(self.stop_button_click_handler)
    if (self.stop_button is not None):
        buttons.append(self.stop_button)
    if (self.options_button is None):
        options = self.get_options_menu()
        if options:
            self.options_button = create_toolbutton(self, text=_('Options'), icon=ima.icon('tooloptions'))
            self.options_button.setPopupMode(QToolButton.InstantPopup)
            menu = QMenu(self)
            add_actions(menu, options)
            self.options_button.setMenu(menu)
    if (self.options_button is not None):
        buttons.append(self.options_button)
    return buttons
