songsplugin¶
The songsplugin
module contains the Plugin class
for the Songs plugin.
-
class
openlp.plugins.songs.songsplugin.
SongsPlugin
[source]¶ Bases:
openlp.core.lib.plugin.Plugin
This plugin enables the user to create, edit and display songs. Songs are divided into verses, and the verse order can be specified. Authors, topics and song books can be assigned to songs as well.
-
static
about
()[source]¶ Provides information for the plugin manager to display.
Returns: A translatable string with some basic information about the Songs plugin
Give the Songs plugin the opportunity to add items to the Export menu.
Parameters: export_menu – The actual Export menu item, so that your actions can use it as their parent.
Give the Songs plugin the opportunity to add items to the Import menu.
Parameters: import_menu – The actual Import menu item, so that your actions can use it as their parent.
Give the Songs plugin the opportunity to add items to the Tools menu.
Parameters: tools_menu – The actual Tools menu item, so that your actions can use it as their parent.
-
first_time
()[source]¶ If the first time wizard has run, this function is run to import all the new songs into the database.
-
import_songs
(import_format, **kwargs)[source]¶ Add the correct importer class
Parameters: - import_format – The import_format to be used
- kwargs – The arguments
Returns: the correct importer
-
static