'Create a QAction that will be added to either the plugins toolbar or
the plugins menu depending on ``for_toolbar``. For example::
def create_action(self, for_toolbar=True):
ac = QAction(get_icons(\'myicon.png\'), \'Do something\')
if for_toolbar:
# We want the toolbar button to have a popup menu
menu = QMenu()
ac.setMenu(menu)
menu.addAction(\'Do something else\')
subaction = menu.addAction(\'And another\')
# Register a keyboard shortcut for this toolbar action be
# careful to do this for only one of the toolbar action or
# the menu action, not both.
self.register_shortcut(ac, \'some-unique-name\', default_keys=(\'Ctrl+K\',))
return ac
.. seealso:: Method :meth:`register_shortcut`.'

def create_action(self, for_toolbar=True):

    raise NotImplementedError()
