editverseform

class openlp.plugins.songs.forms.editverseform.EditVerseForm(parent=None)[source]

Bases: PyQt5.QtWidgets.QDialog, openlp.plugins.songs.forms.editversedialog.Ui_EditVerseDialog

This is the form that is used to edit the verses of the song.

accept()[source]

Test if any invalid chords has been entered before closing the verse editor

get_all_verses()[source]

Extract all the verses

Returns:The text
get_verse()[source]

Extract the verse text

Returns:The text
insert_verse(verse_tag, verse_num=1)[source]

Insert a verse

Parameters:
  • verse_tag – The verse tag
  • verse_num – The verse number
on_cursor_position_changed()[source]

The cursor position has been changed

on_insert_button_clicked()[source]

The insert button has been pressed

on_split_button_clicked()[source]

The split button has been pressed

on_transepose_down_button_clicked()[source]

The transpose down button clicked

on_transepose_up_button_clicked()[source]

The transpose up button clicked

on_verse_type_combo_box_changed()[source]

The verse type combo has been changed

set_verse(text, single=False, tag='v1')[source]

Save the verse

Parameters:
  • text – The text
  • single – is this a single verse
  • tag – The tag
update_suggested_verse_number()[source]

Adjusts the verse number SpinBox in regard to the selected verse type and the cursor’s position.