Exemplo n.º 1
0
    def __init__(self, page):
        super(PointAndClick, self).__init__(i18n("Point and Click"), page)

        layout = QHBoxLayout(self)
        self.button = KPushButton(i18n("Enable Point and Click"))
        self.button.setFixedSize(self.button.sizeHint())
        l = QLabel(
            i18n(
                "Click this button if Point and Click does not work. "
                "See Shift+F1 (What's This) for more information."
            )
        )
        l.setWordWrap(True)
        l.setWhatsThis(
            i18n(
                "On its first run, Frescobaldi tries to auto-configure Okular "
                "(which provides the PDF preview) to call Frescobaldi when a "
                "clickable object is clicked."
                "\n\n"
                "But this setting can get lost when you move Frescobaldi to a "
                "different location or when other applications reconfigure Okular."
                "\n\n"
                "Click this button to configure Frescobaldi as 'custom editor' "
                "inside Okular.  This works best when all instances of Okular are "
                "closed and the PDF preview has not yet been opened."
            )
        )
        self.button.setWhatsThis(l.whatsThis())
        self.button.clicked.connect(self.installOkularPartRC)
        layout.addWidget(self.button)
        layout.addWidget(l)