alertform

class openlp.plugins.alerts.forms.alertform.AlertForm(plugin)[source]

Bases: PyQt5.QtWidgets.QDialog, openlp.plugins.alerts.forms.alertdialog.Ui_AlertDialog

Provide UI for the alert system

exec()[source]

Execute the dialog and return the exit code.

load_list()[source]

Loads the list with alerts.

on_current_row_changed(row)[source]

Called when the alert_list_widget’s current row has been changed. This enables or disables buttons which require an item to act on.

Parameters:row – The row (int). If there is no current row, the value is -1.
on_delete_button_clicked()[source]

Deletes the selected item.

on_display_clicked()[source]

Display the current alert text.

on_display_close_clicked()[source]

Close the alert preview.

on_double_click()[source]

List item has been double clicked to display it.

on_new_click()[source]

Create a new alert.

on_save_all()[source]

Save the alert, we are editing.

on_single_click()[source]

List item has been single clicked to add it to the edit field so it can be changed.

on_text_changed()[source]

Enable save button when data has been changed by editing the form.

trigger_alert(text)[source]

Prepares the alert text for displaying.

Parameters:text – The alert text.