forms

The forms module contains all the ui functionality for the bibles plugin.

class openlp.plugins.bibles.forms.BookNameForm(parent=None)[source]

Bases: PyQt5.QtWidgets.QDialog, openlp.plugins.bibles.forms.booknamedialog.Ui_BookNameDialog

Class to manage a dialog which help the user to refer a book name a to a english book name

accept()[source]
custom_signals()[source]

Set up the signals used in the booknameform.

exec(name, books, max_books)[source]
on_check_box_index_changed(index)[source]

Reload Combobox if CheckBox state has changed

reload_combo_box()[source]

Reload the Combobox items

class openlp.plugins.bibles.forms.LanguageForm(parent=None)[source]

Bases: PyQt5.QtWidgets.QDialog, openlp.plugins.bibles.forms.languagedialog.Ui_LanguageDialog

Class to manage a dialog which ask the user for a language.

accept()[source]
exec(bible_name)[source]
class openlp.plugins.bibles.forms.BibleImportForm(parent, manager, bible_plugin)[source]

Bases: openlp.core.ui.lib.wizard.OpenLPWizard

This is the Bible Import Wizard, which allows easy importing of Bibles into OpenLP from other formats like OSIS, CSV and OpenSong.

add_custom_pages()[source]

Add the bible import specific wizard pages.

custom_init()[source]

Perform any custom initialisation for bible importing.

custom_signals()[source]

Set up the signals used in the bible importer.

on_csv_books_browse_button_clicked()[source]

Show the file open dialog for the books CSV file.

on_csv_verses_browse_button_clicked()[source]

Show the file open dialog for the verses CSV file.

on_current_index_changed(index)[source]

Called when the format combo box’s index changed. We have to check if the import is available and accordingly to disable or enable the next button.

on_open_song_browse_button_clicked()[source]

Show the file open dialog for the OpenSong file.

on_osis_browse_button_clicked()[source]

Show the file open dialog for the OSIS file.

on_sword_browse_button_clicked()[source]

Show the file open dialog for the SWORD folder.

on_sword_zipbrowse_button_clicked()[source]

Show the file open dialog for a SWORD zip-file.

on_web_source_combo_box_index_changed(index)[source]

Setup the list of Bibles when you select a different source on the web download page.

Parameters:index – The index of the combo box.
on_web_update_button_clicked()[source]

Download list of bibles from Crosswalk, BibleServer and BibleGateway.

on_wordproject_browse_button_clicked()[source]

Show the file open dialog for the WordProject file.

on_zefania_browse_button_clicked()[source]

Show the file open dialog for the Zefania file.

perform_wizard()[source]

Perform the actual import.

pre_wizard()[source]

Prepare the UI for the import.

register_fields()[source]

Register the bible import wizard fields.

retranslateUi()[source]

Allow for localisation of the bible import wizard.

set_defaults()[source]

Set default values for the wizard pages.

setupUi(image)[source]

Set up the UI for the bible wizard.

validateCurrentPage()[source]

Validate the current page before moving on to the next page.

class openlp.plugins.bibles.forms.EditBibleForm(media_item, parent, manager)[source]

Bases: PyQt5.QtWidgets.QDialog, openlp.plugins.bibles.forms.editbibledialog.Ui_EditBibleDialog, openlp.core.common.registryproperties.RegistryProperties

Class to manage the editing of a bible

accept()[source]

Exit Dialog and save data

load_bible(bible)[source]

Loads a bible.

bible

Parameters:bible – The name of the bible.
reject()[source]

Exit Dialog and do not save

validate_book(new_book_name, abbreviation)[source]

Validate a book.

validate_meta(name, copyright)[source]

Validate the Meta before saving.