songusageplugin

class openlp.plugins.songusage.songusageplugin.SongUsagePlugin[source]

Bases: openlp.core.lib.plugin.Plugin

Song Usage Plugin class

static about()[source]

The plugin about text

Returns:the text to be displayed
add_tools_menu_item(tools_menu)[source]

Give the SongUsage 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.
check_pre_conditions()[source]

Check the plugin can run.

display_song_usage(item)[source]

Song Usage for which has been displayed

Parameters:item – Item displayed
finalise()[source]

Tidy up on exit

initialise()[source]
on_song_usage_delete()[source]

Request the delete form to be displayed

on_song_usage_report()[source]

Display the song usage report generator screen

print_song_usage(item)[source]

Song Usage for which has been printed

Parameters:item – Item printed
set_button_state()[source]

Keep buttons inline. Turn of signals to stop dead loop but we need the button and check box set correctly.

set_plugin_text_strings()[source]

Called to define all translatable texts of the plugin

toggle_song_usage_state()[source]

Manage the state of the audit collection and amend the UI when necessary,