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

# Form implementation generated from reading ui file '/work/a/ports/deskutils/calibre/work/calibre/src/calibre/gui2/dialogs/config/add_save.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_TabWidget(object):
    def setupUi(self, TabWidget):
        TabWidget.setObjectName("TabWidget")
        TabWidget.resize(645, 516)
        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.tab)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_6 = QtGui.QLabel(self.tab)
        self.label_6.setWordWrap(True)
        self.label_6.setObjectName("label_6")
        self.verticalLayout_2.addWidget(self.label_6)
        self.opt_read_metadata_from_filename = QtGui.QCheckBox(self.tab)
        self.opt_read_metadata_from_filename.setObjectName("opt_read_metadata_from_filename")
        self.verticalLayout_2.addWidget(self.opt_read_metadata_from_filename)
        self.metadata_box = QtGui.QGroupBox(self.tab)
        self.metadata_box.setObjectName("metadata_box")
        self.verticalLayout = QtGui.QVBoxLayout(self.metadata_box)
        self.verticalLayout.setObjectName("verticalLayout")
        spacerItem = QtGui.QSpacerItem(20, 363, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.verticalLayout_2.addWidget(self.metadata_box)
        TabWidget.addTab(self.tab, "")
        self.tab1 = QtGui.QWidget()
        self.tab1.setObjectName("tab1")
        self.gridLayout = QtGui.QGridLayout(self.tab1)
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtGui.QLabel(self.tab1)
        self.label.setWordWrap(True)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 2)
        self.opt_save_cover = QtGui.QCheckBox(self.tab1)
        self.opt_save_cover.setObjectName("opt_save_cover")
        self.gridLayout.addWidget(self.opt_save_cover, 1, 0, 1, 1)
        self.opt_update_metadata = QtGui.QCheckBox(self.tab1)
        self.opt_update_metadata.setObjectName("opt_update_metadata")
        self.gridLayout.addWidget(self.opt_update_metadata, 2, 0, 1, 1)
        self.opt_write_opf = QtGui.QCheckBox(self.tab1)
        self.opt_write_opf.setObjectName("opt_write_opf")
        self.gridLayout.addWidget(self.opt_write_opf, 3, 0, 1, 2)
        self.opt_asciiize = QtGui.QCheckBox(self.tab1)
        self.opt_asciiize.setObjectName("opt_asciiize")
        self.gridLayout.addWidget(self.opt_asciiize, 4, 0, 1, 2)
        self.label_2 = QtGui.QLabel(self.tab1)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 5, 0, 1, 1)
        self.opt_timefmt = QtGui.QLineEdit(self.tab1)
        self.opt_timefmt.setObjectName("opt_timefmt")
        self.gridLayout.addWidget(self.opt_timefmt, 5, 1, 1, 1)
        self.label_3 = QtGui.QLabel(self.tab1)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 6, 0, 1, 1)
        self.opt_formats = QtGui.QLineEdit(self.tab1)
        self.opt_formats.setObjectName("opt_formats")
        self.gridLayout.addWidget(self.opt_formats, 6, 1, 1, 1)
        self.groupBox = QtGui.QGroupBox(self.tab1)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_4 = QtGui.QLabel(self.groupBox)
        self.label_4.setWordWrap(True)
        self.label_4.setObjectName("label_4")
        self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 1)
        self.label_5 = QtGui.QLabel(self.groupBox)
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 2, 0, 1, 1)
        self.template_variables = QtGui.QTextBrowser(self.groupBox)
        self.template_variables.setObjectName("template_variables")
        self.gridLayout_2.addWidget(self.template_variables, 3, 0, 1, 1)
        self.opt_template = HistoryBox(self.groupBox)
        self.opt_template.setObjectName("opt_template")
        self.gridLayout_2.addWidget(self.opt_template, 1, 0, 1, 1)
        self.gridLayout.addWidget(self.groupBox, 7, 0, 1, 2)
        self.opt_replace_whitespace = QtGui.QCheckBox(self.tab1)
        self.opt_replace_whitespace.setObjectName("opt_replace_whitespace")
        self.gridLayout.addWidget(self.opt_replace_whitespace, 1, 1, 1, 1)
        self.opt_to_lowercase = QtGui.QCheckBox(self.tab1)
        self.opt_to_lowercase.setObjectName("opt_to_lowercase")
        self.gridLayout.addWidget(self.opt_to_lowercase, 2, 1, 1, 1)
        TabWidget.addTab(self.tab1, "")
        self.label_2.setBuddy(self.opt_timefmt)
        self.label_3.setBuddy(self.opt_formats)

        self.retranslateUi(TabWidget)
        TabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(TabWidget)

    def retranslateUi(self, TabWidget):
        TabWidget.setWindowTitle(_("TabWidget"))
        self.label_6.setText(_("Here you can control how calibre will read metadata from the files you add to it. calibre can either read metadata from the contents of the file, or from the filename."))
        self.opt_read_metadata_from_filename.setText(_("Read metadata only from &file name"))
        self.metadata_box.setTitle(_("&Configure metadata from file name"))
        TabWidget.setTabText(TabWidget.indexOf(self.tab), _("&Adding books"))
        self.label.setText(_("Here you can control how calibre will save your books when you click the Save to Disk button:"))
        self.opt_save_cover.setText(_("Save &cover separately"))
        self.opt_update_metadata.setText(_("Update &metadata in saved copies"))
        self.opt_write_opf.setText(_("Save metadata in &OPF file"))
        self.opt_asciiize.setText(_("Convert non-English characters to &English equivalents"))
        self.label_2.setText(_("Format &dates as:"))
        self.label_3.setText(_("File &formats to save:"))
        self.groupBox.setTitle(_("Save &template"))
        self.label_4.setText(_("By adjusting the template below, you can control what folders the files are saved in and what filenames they are given. You can use the / character to indicate sub-folders. Available metadata variables are described below. If a particular book does not have some metadata, the variable will be replaced by the empty string."))
        self.label_5.setText(_("Available variables:"))
        self.opt_replace_whitespace.setText(_("Replace space with &underscores"))
        self.opt_to_lowercase.setText(_("Change paths to &lowercase"))
        TabWidget.setTabText(TabWidget.indexOf(self.tab1), _("&Saving books"))

from calibre.gui2.dialogs.config.history import HistoryBox
