# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric4/eric4_0/eric4/Preferences/ConfigurationPages/HelpViewersPage.ui'
#
# Created: Sat Feb  3 15:33:42 2007
#      by: PyQt4 UI code generator 4-snapshot-20070125
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_HelpViewersPage(object):
    def setupUi(self, HelpViewersPage):
        HelpViewersPage.setObjectName("HelpViewersPage")
        HelpViewersPage.resize(QtCore.QSize(QtCore.QRect(0,0,491,440).size()).expandedTo(HelpViewersPage.minimumSizeHint()))

        self.vboxlayout = QtGui.QVBoxLayout(HelpViewersPage)
        self.vboxlayout.setMargin(6)
        self.vboxlayout.setSpacing(6)
        self.vboxlayout.setObjectName("vboxlayout")

        self.headerLabel = QtGui.QLabel(HelpViewersPage)
        self.headerLabel.setObjectName("headerLabel")
        self.vboxlayout.addWidget(self.headerLabel)

        self.line17 = QtGui.QFrame(HelpViewersPage)
        self.line17.setFrameShape(QtGui.QFrame.HLine)
        self.line17.setFrameShadow(QtGui.QFrame.Sunken)
        self.line17.setFrameShape(QtGui.QFrame.HLine)
        self.line17.setFrameShadow(QtGui.QFrame.Sunken)
        self.line17.setObjectName("line17")
        self.vboxlayout.addWidget(self.line17)

        self.groupBox = QtGui.QGroupBox(HelpViewersPage)
        self.groupBox.setObjectName("groupBox")

        self.gridlayout = QtGui.QGridLayout(self.groupBox)
        self.gridlayout.setMargin(6)
        self.gridlayout.setSpacing(6)
        self.gridlayout.setObjectName("gridlayout")

        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setMargin(0)
        self.hboxlayout.setSpacing(6)
        self.hboxlayout.setObjectName("hboxlayout")

        self.customViewerEdit = QtGui.QLineEdit(self.groupBox)
        self.customViewerEdit.setEnabled(False)
        self.customViewerEdit.setObjectName("customViewerEdit")
        self.hboxlayout.addWidget(self.customViewerEdit)

        self.customViewerSelectionButton = QtGui.QPushButton(self.groupBox)
        self.customViewerSelectionButton.setEnabled(False)
        self.customViewerSelectionButton.setObjectName("customViewerSelectionButton")
        self.hboxlayout.addWidget(self.customViewerSelectionButton)
        self.gridlayout.addLayout(self.hboxlayout,1,0,1,4)

        self.customViewerButton = QtGui.QRadioButton(self.groupBox)
        self.customViewerButton.setObjectName("customViewerButton")
        self.gridlayout.addWidget(self.customViewerButton,0,3,1,1)

        self.qtAssistantButton = QtGui.QRadioButton(self.groupBox)
        self.qtAssistantButton.setObjectName("qtAssistantButton")
        self.gridlayout.addWidget(self.qtAssistantButton,0,1,1,1)

        self.helpBrowserButton = QtGui.QRadioButton(self.groupBox)
        self.helpBrowserButton.setObjectName("helpBrowserButton")
        self.gridlayout.addWidget(self.helpBrowserButton,0,0,1,1)

        self.webBrowserButton = QtGui.QRadioButton(self.groupBox)
        self.webBrowserButton.setObjectName("webBrowserButton")
        self.gridlayout.addWidget(self.webBrowserButton,0,2,1,1)
        self.vboxlayout.addWidget(self.groupBox)

        self.helpBrowserGroup = QtGui.QGroupBox(HelpViewersPage)
        self.helpBrowserGroup.setObjectName("helpBrowserGroup")

        self.vboxlayout1 = QtGui.QVBoxLayout(self.helpBrowserGroup)
        self.vboxlayout1.setMargin(6)
        self.vboxlayout1.setSpacing(6)
        self.vboxlayout1.setObjectName("vboxlayout1")

        self.singleHelpWindowCheckBox = QtGui.QCheckBox(self.helpBrowserGroup)
        self.singleHelpWindowCheckBox.setObjectName("singleHelpWindowCheckBox")
        self.vboxlayout1.addWidget(self.singleHelpWindowCheckBox)

        self.saveGeometryCheckBox = QtGui.QCheckBox(self.helpBrowserGroup)
        self.saveGeometryCheckBox.setObjectName("saveGeometryCheckBox")
        self.vboxlayout1.addWidget(self.saveGeometryCheckBox)
        self.vboxlayout.addWidget(self.helpBrowserGroup)

        spacerItem = QtGui.QSpacerItem(479,121,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
        self.vboxlayout.addItem(spacerItem)

        self.retranslateUi(HelpViewersPage)
        QtCore.QObject.connect(self.customViewerButton,QtCore.SIGNAL("toggled(bool)"),self.customViewerEdit.setEnabled)
        QtCore.QObject.connect(self.customViewerButton,QtCore.SIGNAL("toggled(bool)"),self.customViewerSelectionButton.setEnabled)
        QtCore.QObject.connect(self.helpBrowserButton,QtCore.SIGNAL("toggled(bool)"),self.helpBrowserGroup.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(HelpViewersPage)
        HelpViewersPage.setTabOrder(self.helpBrowserButton,self.qtAssistantButton)
        HelpViewersPage.setTabOrder(self.qtAssistantButton,self.webBrowserButton)
        HelpViewersPage.setTabOrder(self.webBrowserButton,self.customViewerButton)
        HelpViewersPage.setTabOrder(self.customViewerButton,self.customViewerEdit)
        HelpViewersPage.setTabOrder(self.customViewerEdit,self.customViewerSelectionButton)

    def retranslateUi(self, HelpViewersPage):
        self.headerLabel.setText(QtGui.QApplication.translate("HelpViewersPage", "<b>Configure help viewers</b>", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("HelpViewersPage", "Help Viewer", None, QtGui.QApplication.UnicodeUTF8))
        self.customViewerEdit.setToolTip(QtGui.QApplication.translate("HelpViewersPage", "Enter the custom viewer to be used", None, QtGui.QApplication.UnicodeUTF8))
        self.customViewerSelectionButton.setToolTip(QtGui.QApplication.translate("HelpViewersPage", "Press to select the custom viewer via a file selection dialog", None, QtGui.QApplication.UnicodeUTF8))
        self.customViewerSelectionButton.setText(QtGui.QApplication.translate("HelpViewersPage", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.customViewerButton.setToolTip(QtGui.QApplication.translate("HelpViewersPage", "Select to use a custom viewer", None, QtGui.QApplication.UnicodeUTF8))
        self.customViewerButton.setText(QtGui.QApplication.translate("HelpViewersPage", "Custom", None, QtGui.QApplication.UnicodeUTF8))
        self.qtAssistantButton.setToolTip(QtGui.QApplication.translate("HelpViewersPage", "Select to use Qt Assistant", None, QtGui.QApplication.UnicodeUTF8))
        self.qtAssistantButton.setText(QtGui.QApplication.translate("HelpViewersPage", "Qt Assistant", None, QtGui.QApplication.UnicodeUTF8))
        self.helpBrowserButton.setToolTip(QtGui.QApplication.translate("HelpViewersPage", "Select to use the Eric help browser", None, QtGui.QApplication.UnicodeUTF8))
        self.helpBrowserButton.setText(QtGui.QApplication.translate("HelpViewersPage", "Eric Help Browser", None, QtGui.QApplication.UnicodeUTF8))
        self.webBrowserButton.setToolTip(QtGui.QApplication.translate("HelpViewersPage", "Select to use the configured web browser", None, QtGui.QApplication.UnicodeUTF8))
        self.webBrowserButton.setText(QtGui.QApplication.translate("HelpViewersPage", "Web Browser", None, QtGui.QApplication.UnicodeUTF8))
        self.helpBrowserGroup.setTitle(QtGui.QApplication.translate("HelpViewersPage", "Eric Help Browser", None, QtGui.QApplication.UnicodeUTF8))
        self.singleHelpWindowCheckBox.setToolTip(QtGui.QApplication.translate("HelpViewersPage", "Select to use a single help browser window only", None, QtGui.QApplication.UnicodeUTF8))
        self.singleHelpWindowCheckBox.setText(QtGui.QApplication.translate("HelpViewersPage", "Use single help browser window", None, QtGui.QApplication.UnicodeUTF8))
        self.saveGeometryCheckBox.setToolTip(QtGui.QApplication.translate("HelpViewersPage", "Select to save the window size and position", None, QtGui.QApplication.UnicodeUTF8))
        self.saveGeometryCheckBox.setText(QtGui.QApplication.translate("HelpViewersPage", "Save size and position upon exit", None, QtGui.QApplication.UnicodeUTF8))



if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    HelpViewersPage = QtGui.QWidget()
    ui = Ui_HelpViewersPage()
    ui.setupUi(HelpViewersPage)
    HelpViewersPage.show()
    sys.exit(app.exec_())
