songimportform¶
The song import functions for OpenLP.
-
class
openlp.plugins.songs.forms.songimportform.
SongImportForm
(parent, plugin)[source]¶ Bases:
openlp.core.ui.lib.wizard.OpenLPWizard
,openlp.core.common.registryproperties.RegistryProperties
This is the Song Import Wizard, which allows easy importing of Songs into OpenLP from other formats like OpenLyrics, OpenSong and CCLI.
-
completeChanged
¶
-
get_files
(title, listbox, filters='')[source]¶ Opens a QFileDialog and writes the filenames to the given listbox.
Parameters: - title – The title of the dialog (str).
- listbox – A listbox (QListWidget).
- filters –
The file extension filters. It should contain the file descriptions as well as the file extensions. For example:
'SongBeamer Files (*.sng)'
-
get_list_of_files
(list_box)[source]¶ Return a list of file from the list_box
Parameters: list_box – The source list box
Add a file or directory.
Browse for files or a directory.
Copy the error report to the clipboard.
Save the error report to a file.
-
on_filepath_edit_text_changed
()[source]¶ Called when the content of the Filename/Folder edit box changes.
Remove a file from the list.
-
perform_wizard
()[source]¶ Perform the actual import. This method pulls in the correct importer class, and then runs the
do_import
method of the importer to do the actual importing.
-