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

# Form implementation generated from reading ui file '/work/a/ports/deskutils/calibre/work/calibre/src/calibre/gui2/viewer/config.ui'
#
# Created: Mon Feb 22 19:36:47 2010
#      by: PyQt4 UI code generator 4.7
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(479, 574)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(I("config.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        Dialog.setWindowIcon(icon)
        self.gridLayout_4 = QtGui.QGridLayout(Dialog)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.buttonBox = QtGui.QDialogButtonBox(Dialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.gridLayout_4.addWidget(self.buttonBox, 1, 0, 1, 1)
        self.tabs = QtGui.QTabWidget(Dialog)
        self.tabs.setObjectName("tabs")
        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.tab)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.groupBox = QtGui.QGroupBox(self.tab)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_3 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtGui.QLabel(self.groupBox)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.serif_family = QtGui.QFontComboBox(self.groupBox)
        self.serif_family.setObjectName("serif_family")
        self.gridLayout.addWidget(self.serif_family, 0, 1, 1, 1)
        self.label_2 = QtGui.QLabel(self.groupBox)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.sans_family = QtGui.QFontComboBox(self.groupBox)
        self.sans_family.setObjectName("sans_family")
        self.gridLayout.addWidget(self.sans_family, 1, 1, 1, 1)
        self.label_3 = QtGui.QLabel(self.groupBox)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
        self.mono_family = QtGui.QFontComboBox(self.groupBox)
        self.mono_family.setObjectName("mono_family")
        self.gridLayout.addWidget(self.mono_family, 2, 1, 1, 1)
        self.gridLayout_3.addLayout(self.gridLayout, 0, 0, 1, 1)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_4 = QtGui.QLabel(self.groupBox)
        self.label_4.setObjectName("label_4")
        self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 1)
        self.default_font_size = QtGui.QSpinBox(self.groupBox)
        self.default_font_size.setMinimum(8)
        self.default_font_size.setMaximum(40)
        self.default_font_size.setObjectName("default_font_size")
        self.gridLayout_2.addWidget(self.default_font_size, 0, 1, 1, 1)
        self.label_5 = QtGui.QLabel(self.groupBox)
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 1, 0, 1, 1)
        self.mono_font_size = QtGui.QSpinBox(self.groupBox)
        self.mono_font_size.setMinimum(8)
        self.mono_font_size.setMaximum(50)
        self.mono_font_size.setObjectName("mono_font_size")
        self.gridLayout_2.addWidget(self.mono_font_size, 1, 1, 1, 1)
        self.label_6 = QtGui.QLabel(self.groupBox)
        self.label_6.setObjectName("label_6")
        self.gridLayout_2.addWidget(self.label_6, 2, 0, 1, 1)
        self.standard_font = QtGui.QComboBox(self.groupBox)
        self.standard_font.setObjectName("standard_font")
        self.standard_font.addItem("")
        self.standard_font.addItem("")
        self.standard_font.addItem("")
        self.gridLayout_2.addWidget(self.standard_font, 2, 1, 1, 1)
        self.opt_remember_window_size = QtGui.QCheckBox(self.groupBox)
        self.opt_remember_window_size.setObjectName("opt_remember_window_size")
        self.gridLayout_2.addWidget(self.opt_remember_window_size, 6, 0, 1, 2)
        self.max_view_width = QtGui.QSpinBox(self.groupBox)
        self.max_view_width.setMinimum(100)
        self.max_view_width.setMaximum(10000)
        self.max_view_width.setObjectName("max_view_width")
        self.gridLayout_2.addWidget(self.max_view_width, 3, 1, 1, 1)
        self.label_7 = QtGui.QLabel(self.groupBox)
        self.label_7.setObjectName("label_7")
        self.gridLayout_2.addWidget(self.label_7, 3, 0, 1, 1)
        self.hyphenate = QtGui.QCheckBox(self.groupBox)
        self.hyphenate.setObjectName("hyphenate")
        self.gridLayout_2.addWidget(self.hyphenate, 4, 0, 1, 2)
        self.hyphenate_default_lang = QtGui.QComboBox(self.groupBox)
        self.hyphenate_default_lang.setObjectName("hyphenate_default_lang")
        self.gridLayout_2.addWidget(self.hyphenate_default_lang, 5, 1, 1, 1)
        self.label_8 = QtGui.QLabel(self.groupBox)
        self.label_8.setObjectName("label_8")
        self.gridLayout_2.addWidget(self.label_8, 5, 0, 1, 1)
        self.gridLayout_3.addLayout(self.gridLayout_2, 1, 0, 1, 1)
        self.groupBox_2 = QtGui.QGroupBox(self.groupBox)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_5 = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.css = QtGui.QPlainTextEdit(self.groupBox_2)
        self.css.setObjectName("css")
        self.gridLayout_5.addWidget(self.css, 1, 0, 1, 1)
        self.gridLayout_3.addWidget(self.groupBox_2, 3, 0, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox)
        self.tabs.addTab(self.tab, "")
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.verticalLayout = QtGui.QVBoxLayout(self.tab_2)
        self.verticalLayout.setObjectName("verticalLayout")
        self.label_9 = QtGui.QLabel(self.tab_2)
        self.label_9.setWordWrap(True)
        self.label_9.setObjectName("label_9")
        self.verticalLayout.addWidget(self.label_9)
        self.tabs.addTab(self.tab_2, "")
        self.gridLayout_4.addWidget(self.tabs, 0, 0, 1, 1)
        self.label.setBuddy(self.serif_family)
        self.label_2.setBuddy(self.sans_family)
        self.label_3.setBuddy(self.mono_family)
        self.label_4.setBuddy(self.default_font_size)
        self.label_5.setBuddy(self.mono_font_size)
        self.label_6.setBuddy(self.standard_font)
        self.label_7.setBuddy(self.max_view_width)
        self.label_8.setBuddy(self.hyphenate_default_lang)

        self.retranslateUi(Dialog)
        self.tabs.setCurrentIndex(0)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), Dialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), Dialog.reject)
        QtCore.QObject.connect(self.hyphenate, QtCore.SIGNAL("toggled(bool)"), self.hyphenate_default_lang.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        Dialog.setTabOrder(self.serif_family, self.sans_family)
        Dialog.setTabOrder(self.sans_family, self.mono_family)
        Dialog.setTabOrder(self.mono_family, self.default_font_size)
        Dialog.setTabOrder(self.default_font_size, self.mono_font_size)
        Dialog.setTabOrder(self.mono_font_size, self.standard_font)
        Dialog.setTabOrder(self.standard_font, self.max_view_width)
        Dialog.setTabOrder(self.max_view_width, self.opt_remember_window_size)
        Dialog.setTabOrder(self.opt_remember_window_size, self.css)
        Dialog.setTabOrder(self.css, self.buttonBox)

    def retranslateUi(self, Dialog):
        Dialog.setWindowTitle(_("Configure Ebook viewer"))
        self.groupBox.setTitle(_("&Font options"))
        self.label.setText(_("Se&rif family:"))
        self.label_2.setText(_("&Sans family:"))
        self.label_3.setText(_("&Monospace family:"))
        self.label_4.setText(_("&Default font size:"))
        self.default_font_size.setSuffix(_(" px"))
        self.label_5.setText(_("Monospace &font size:"))
        self.mono_font_size.setSuffix(_(" px"))
        self.label_6.setText(_("S&tandard font:"))
        self.standard_font.setItemText(0, _("Serif"))
        self.standard_font.setItemText(1, _("Sans-serif"))
        self.standard_font.setItemText(2, _("Monospace"))
        self.opt_remember_window_size.setText(_("Remember last used &window size"))
        self.max_view_width.setSuffix(_(" px"))
        self.label_7.setText(_("Maximum &view width:"))
        self.hyphenate.setText(_("H&yphenate (break line in the middle of large words)"))
        self.hyphenate_default_lang.setToolTip(_("The default language to use for hyphenation rules. If the book does not specify a language, this will be used."))
        self.label_8.setText(_("Default &language for hyphenation:"))
        self.groupBox_2.setTitle(_("&User stylesheet"))
        self.tabs.setTabText(self.tabs.indexOf(self.tab), _("&General"))
        self.label_9.setText(_("Double click to change a keyborad shortcut"))
        self.tabs.setTabText(self.tabs.indexOf(self.tab_2), _("&Keyboard shortcuts"))


