# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7-22.2/eric/eric7/Preferences/ConfigurationPages/HelpViewersPage.ui'
#
# Created by: PyQt6 UI code generator 6.2.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt6 import QtCore, QtGui, QtWidgets


class Ui_HelpViewersPage(object):
    def setupUi(self, HelpViewersPage):
        HelpViewersPage.setObjectName("HelpViewersPage")
        HelpViewersPage.resize(520, 177)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(HelpViewersPage)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.headerLabel = QtWidgets.QLabel(HelpViewersPage)
        self.headerLabel.setObjectName("headerLabel")
        self.verticalLayout_2.addWidget(self.headerLabel)
        self.line17 = QtWidgets.QFrame(HelpViewersPage)
        self.line17.setFrameShape(QtWidgets.QFrame.Shape.HLine)
        self.line17.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
        self.line17.setFrameShape(QtWidgets.QFrame.Shape.HLine)
        self.line17.setObjectName("line17")
        self.verticalLayout_2.addWidget(self.line17)
        self.groupBox = QtWidgets.QGroupBox(HelpViewersPage)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.internalViewerButton = QtWidgets.QRadioButton(self.groupBox)
        self.internalViewerButton.setChecked(True)
        self.internalViewerButton.setObjectName("internalViewerButton")
        self.horizontalLayout_2.addWidget(self.internalViewerButton)
        self.helpBrowserButton = QtWidgets.QRadioButton(self.groupBox)
        self.helpBrowserButton.setObjectName("helpBrowserButton")
        self.horizontalLayout_2.addWidget(self.helpBrowserButton)
        self.qtAssistantButton = QtWidgets.QRadioButton(self.groupBox)
        self.qtAssistantButton.setObjectName("qtAssistantButton")
        self.horizontalLayout_2.addWidget(self.qtAssistantButton)
        self.webBrowserButton = QtWidgets.QRadioButton(self.groupBox)
        self.webBrowserButton.setObjectName("webBrowserButton")
        self.horizontalLayout_2.addWidget(self.webBrowserButton)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.customViewerButton = QtWidgets.QRadioButton(self.groupBox)
        self.customViewerButton.setObjectName("customViewerButton")
        self.horizontalLayout.addWidget(self.customViewerButton)
        self.customViewerPicker = EricPathPicker(self.groupBox)
        self.customViewerPicker.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.customViewerPicker.sizePolicy().hasHeightForWidth())
        self.customViewerPicker.setSizePolicy(sizePolicy)
        self.customViewerPicker.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus)
        self.customViewerPicker.setObjectName("customViewerPicker")
        self.horizontalLayout.addWidget(self.customViewerPicker)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.verticalLayout_2.addWidget(self.groupBox)
        spacerItem = QtWidgets.QSpacerItem(479, 121, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)

        self.retranslateUi(HelpViewersPage)
        self.customViewerButton.toggled['bool'].connect(self.customViewerPicker.setEnabled) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(HelpViewersPage)
        HelpViewersPage.setTabOrder(self.internalViewerButton, self.helpBrowserButton)
        HelpViewersPage.setTabOrder(self.helpBrowserButton, self.qtAssistantButton)
        HelpViewersPage.setTabOrder(self.qtAssistantButton, self.webBrowserButton)
        HelpViewersPage.setTabOrder(self.webBrowserButton, self.customViewerButton)
        HelpViewersPage.setTabOrder(self.customViewerButton, self.customViewerPicker)

    def retranslateUi(self, HelpViewersPage):
        _translate = QtCore.QCoreApplication.translate
        self.headerLabel.setText(_translate("HelpViewersPage", "<b>Configure help viewers</b>"))
        self.groupBox.setTitle(_translate("HelpViewersPage", "Help Viewer"))
        self.internalViewerButton.setToolTip(_translate("HelpViewersPage", "Select to use the internal help viewer"))
        self.internalViewerButton.setText(_translate("HelpViewersPage", "Internal Viewer"))
        self.helpBrowserButton.setToolTip(_translate("HelpViewersPage", "Select to use the Eric Web Browser"))
        self.helpBrowserButton.setText(_translate("HelpViewersPage", "Eric Web Browser"))
        self.qtAssistantButton.setToolTip(_translate("HelpViewersPage", "Select to use Qt Assistant"))
        self.qtAssistantButton.setText(_translate("HelpViewersPage", "Qt Assistant"))
        self.webBrowserButton.setToolTip(_translate("HelpViewersPage", "Select to use the configured web browser of the system"))
        self.webBrowserButton.setText(_translate("HelpViewersPage", "System Web Browser"))
        self.customViewerButton.setToolTip(_translate("HelpViewersPage", "Select to use a custom viewer"))
        self.customViewerButton.setText(_translate("HelpViewersPage", "Custom"))
        self.customViewerPicker.setToolTip(_translate("HelpViewersPage", "Enter the custom viewer to be used"))
from EricWidgets.EricPathPicker import EricPathPicker
