24
24
from PyQt5 import QtCore, QtWidgets
26
from openlp.core.common.i18n import UiStrings, translate, get_natural_key
26
from openlp.core.common.i18n import UiStrings, get_natural_key, translate
27
27
from openlp.core.common.path import path_to_str, str_to_path
28
28
from openlp.core.common.registry import Registry
29
29
from openlp.core.common.settings import Settings
30
from openlp.core.lib import ServiceItemContext, build_icon, check_item_selected, \
31
create_thumb, validate_thumb
30
from openlp.core.lib import ServiceItemContext, build_icon, check_item_selected, create_thumb, validate_thumb
32
31
from openlp.core.lib.mediamanageritem import MediaManagerItem
33
32
from openlp.core.lib.serviceitem import ItemCapabilities
34
from openlp.core.lib.ui import critical_error_message_box, create_horizontal_adjusting_combo_box
33
from openlp.core.lib.ui import create_horizontal_adjusting_combo_box, critical_error_message_box
35
34
from openlp.core.ui.icons import UiIcons
36
35
from openlp.plugins.presentations.lib.messagelistener import MessageListener
37
36
from openlp.plugins.presentations.lib.pdfcontroller import PDF_CONTROLLER_FILETYPES
39
39
log = logging.getLogger(__name__)
56
56
self.controllers = controllers
57
57
super(PresentationMediaItem, self).__init__(parent, plugin)
59
def retranslateUi(self):
59
def retranslate_ui(self):
61
61
The name of the plugin media displayed in UI