songselectform

The songselectform module contains the GUI for the SongSelect importer

class openlp.plugins.songs.forms.songselectform.SearchWorker(importer, search_text)[source]

Bases: PyQt5.QtCore.QObject

Run the actual SongSelect search, and notify the GUI when we find each song.

finished
found_song
quit
show_info
start()[source]

Run a search and then parse the results page of the search.

class openlp.plugins.songs.forms.songselectform.SongSelectForm(parent=None, plugin=None, db_manager=None)[source]

Bases: PyQt5.QtWidgets.QDialog, openlp.plugins.songs.forms.songselectdialog.Ui_SongSelectDialog

The SongSelectForm class is the SongSelect dialog.

application

Adds the openlp to the class dynamically. Windows needs to access the application in a dynamic manner.

done(r)[source]

Log out of SongSelect.

Parameters:r – The result of the dialog.
exec()[source]

Execute the dialog. This method sets everything back to its initial values.

initialise()[source]

Initialise the SongSelectForm

on_back_button_clicked()[source]

Go back to the search page.

on_import_button_clicked()[source]

Import a song from SongSelect.

on_login_button_clicked()[source]

Log the user in to SongSelect.

on_save_password_checkbox_toggled(checked)[source]

Show a warning dialog when the user toggles the save checkbox on or off.

Parameters:checked – If the combobox is checked or not
on_search_button_clicked()[source]

Run a search on SongSelect.

on_search_finished()[source]

Slot which is called when the search is completed.

on_search_found_song(song)[source]

Add a song to the list when one is found. :param song:

on_search_results_widget_double_clicked(current_item)[source]

View a song from SongSelect

Parameters:current_item
on_search_results_widget_selection_changed()[source]

Enable or disable the view button when the selection changes.

on_search_show_info(title, message)[source]

Show an informational message from the search thread :param title: :param message:

on_stop_button_clicked()[source]

Stop the search when the stop button is clicked.

on_view_button_clicked()[source]

View a song from SongSelect.

set_progress_visible(is_visible)[source]

Show or hide the search progress, including the stop button.