themeform

The Theme wizard

class openlp.core.ui.themeform.ThemeForm(parent)[source]

Bases: PyQt5.QtWidgets.QWizard, openlp.core.ui.themewizard.Ui_ThemeWizard, openlp.core.common.registryproperties.RegistryProperties

This is the Theme Import Wizard, which allows easy creation and editing of OpenLP themes.

accept()[source]

Lets save the theme as Finish has been triggered

calculate_lines()[source]

Calculate the number of lines on a page by rendering text

exec(edit=False)[source]

Run the wizard.

initializePage(page_id)[source]

Set up the pages for Initial run through dialog

on_background_combo_box_current_index_changed(index)[source]

Background style Combo box has changed.

on_color_changed(color)[source]

Background / Gradient 1 _color button pushed.

on_current_id_changed(page_id)[source]

Detects Page changes and updates as appropriate. :param page_id: current page number

on_custom_1_button_clicked(number)[source]

Generate layout preview and display the form.

Set the footer colour value

Change state as Footer Area _position check box changed NOTE the font_footer_override is the inverse of the check box value

on_gradient_combo_box_current_index_changed(index)[source]

Background gradient Combo box has changed.

on_gradient_end_color_changed(color)[source]

Gradient 2 _color button pushed.

on_gradient_start_color_changed(color)[source]

Gradient 2 _color button pushed.

on_image_color_changed(color)[source]

Background / Gradient 1 _color button pushed.

on_image_path_edit_path_changed(filename)[source]

Background Image button pushed.

on_main_color_changed(color)[source]

Set the main colour value

on_main_position_check_box_state_changed(value)[source]

Change state as Main Area _position check box changed NOTE the font_main_override is the inverse of the check box value

on_outline_check_check_box_state_changed(state)[source]

Change state as Outline check box changed

on_outline_color_changed(color)[source]

Set the outline colour value

on_shadow_check_check_box_state_changed(state)[source]

Change state as Shadow check box changed

on_shadow_color_changed(color)[source]

Set the shadow colour value

on_video_color_changed(color)[source]

Background / Gradient 1 _color button pushed.

on_video_path_edit_path_changed(filename)[source]

Background video button pushed.

registerFields()[source]

Map field names to screen names,

resizeEvent(event=None)[source]

Rescale the theme preview thumbnail on resize events.

set_alignment_page_values()[source]

Handle the display and state of the Alignments page.

set_background_page_values()[source]

Handle the display and state of the Background page.

set_defaults()[source]

Set up display at start of theme edit.

Handle the display and state of the Footer Area page.

set_main_area_page_values()[source]

Handle the display and state of the Main Area page.

set_position_page_values()[source]

Handle the display and state of the _position page.

set_preview_page_values()[source]

Handle the display and state of the Preview page.

update_lines_text(lines)[source]

Updates the lines on a page on the wizard :param lines: then number of lines to be displayed

update_theme()[source]

Update the theme object from the UI for fields not already updated when the are changed.

validateCurrentPage()[source]

Validate the current page