bibleimportform

The bible import functions for OpenLP

class openlp.plugins.bibles.forms.bibleimportform.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.bibleimportform.WebDownload[source]

Bases: object

Provides an enumeration for the web bible types available to OpenLP.

BibleGateway = 1
Bibleserver = 2
Crosswalk = 0
Names = ['Crosswalk', 'BibleGateway', 'Bibleserver']
Unknown = -1