~raoul-snyman/openlp/fix-macos-pdf-test

« back to all changes in this revision

Viewing changes to openlp/plugins/presentations/lib/mediaitem.py

  • Committer: Raoul Snyman
  • Date: 2019-02-14 07:04:30 UTC
  • mfrom: (2766.3.118 webengine-migrate)
  • Revision ID: raoul@snyman.info-20190214070430-nxe1vaeaapq3ult5
Migration from WebKit to Webengine. Also introduced reveal.js for slide rendering, new screen setup dialogs and many other changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
from PyQt5 import QtCore, QtWidgets
25
25
 
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
38
37
 
 
38
 
39
39
log = logging.getLogger(__name__)
40
40
 
41
41
 
56
56
        self.controllers = controllers
57
57
        super(PresentationMediaItem, self).__init__(parent, plugin)
58
58
 
59
 
    def retranslateUi(self):
 
59
    def retranslate_ui(self):
60
60
        """
61
61
        The name of the plugin media displayed in UI
62
62
        """