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

# Form implementation generated from reading ui file '/home/kovid/work/calibre/src/calibre/gui2/preferences/adding.ui'
#
# Created: Sun Aug 14 17:45:54 2011
#      by: PyQt4 UI code generator 4.8.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s

class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(753, 339)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_6 = QtGui.QLabel(Form)
        self.label_6.setWordWrap(True)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout.addWidget(self.label_6, 0, 0, 1, 2)
        self.opt_read_file_metadata = QtGui.QCheckBox(Form)
        self.opt_read_file_metadata.setObjectName(_fromUtf8("opt_read_file_metadata"))
        self.gridLayout.addWidget(self.opt_read_file_metadata, 1, 0, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.opt_swap_author_names = QtGui.QCheckBox(Form)
        self.opt_swap_author_names.setObjectName(_fromUtf8("opt_swap_author_names"))
        self.horizontalLayout.addWidget(self.opt_swap_author_names)
        self.gridLayout.addLayout(self.horizontalLayout, 1, 1, 1, 1)
        self.opt_add_formats_to_existing = QtGui.QCheckBox(Form)
        self.opt_add_formats_to_existing.setObjectName(_fromUtf8("opt_add_formats_to_existing"))
        self.gridLayout.addWidget(self.opt_add_formats_to_existing, 3, 0, 1, 1)
        self.opt_automerge = QtGui.QComboBox(Form)
        self.opt_automerge.setObjectName(_fromUtf8("opt_automerge"))
        self.gridLayout.addWidget(self.opt_automerge, 3, 1, 1, 1)
        self.label_230 = QtGui.QLabel(Form)
        self.label_230.setObjectName(_fromUtf8("label_230"))
        self.gridLayout.addWidget(self.label_230, 4, 0, 1, 1)
        self.opt_new_book_tags = QtGui.QLineEdit(Form)
        self.opt_new_book_tags.setObjectName(_fromUtf8("opt_new_book_tags"))
        self.gridLayout.addWidget(self.opt_new_book_tags, 4, 1, 1, 1)
        self.metadata_box = QtGui.QGroupBox(Form)
        self.metadata_box.setObjectName(_fromUtf8("metadata_box"))
        self.verticalLayout = QtGui.QVBoxLayout(self.metadata_box)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        spacerItem1 = QtGui.QSpacerItem(20, 363, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem1)
        self.gridLayout.addWidget(self.metadata_box, 5, 0, 1, 2)
        self.opt_preserve_date_on_ctl = QtGui.QCheckBox(Form)
        self.opt_preserve_date_on_ctl.setObjectName(_fromUtf8("opt_preserve_date_on_ctl"))
        self.gridLayout.addWidget(self.opt_preserve_date_on_ctl, 2, 0, 1, 2)
        self.label_230.setBuddy(self.opt_new_book_tags)

        self.retranslateUi(Form)
        QtCore.QObject.connect(self.opt_add_formats_to_existing, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.opt_automerge.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        Form.setWindowTitle(_("Form"))
        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_file_metadata.setText(_("Read &metadata from file contents rather than file name"))
        self.opt_swap_author_names.setToolTip(_("Swap the firstname and lastname of the author. This affects only metadata read from file names."))
        self.opt_swap_author_names.setText(_("&Swap author firstname and lastname"))
        self.opt_add_formats_to_existing.setToolTip(_("Automerge: If books with similar titles and authors found, merge the incoming formats automatically into\n"
"existing book records. The box to the right controls what happens when an existing record already has\n"
"the incoming format. Note that this option also affects the Copy to library action.\n"
"\n"
"Title match ignores leading indefinite articles (\"the\", \"a\", \"an\"), punctuation, case, etc. Author match is exact."))
        self.opt_add_formats_to_existing.setText(_("&Automerge added books if they already exist in the calibre library:"))
        self.opt_automerge.setToolTip(_("Automerge: If books with similar titles and authors found, merge the incoming formats automatically into\n"
"existing book records. This box controls what happens when an existing record already has\n"
"the incoming format: \n"
"\n"
"Ignore duplicate incoming files - means that existing files in your calibre library will not be replaced\n"
"Overwrite existing duplicate files - means that existing files in your calibre library will be replaced\n"
"Create new record for each duplicate file - means that a new book entry will be created for each duplicate file\n"
"\n"
"Title matching ignores leading indefinite articles (\"the\", \"a\", \"an\"), punctuation, case, etc.\n"
"Author matching is exact."))
        self.label_230.setText(_("&Tags to apply when adding a book:"))
        self.opt_new_book_tags.setToolTip(_("A comma-separated list of tags that will be applied to books added to the library"))
        self.metadata_box.setTitle(_("&Configure metadata from file name"))
        self.opt_preserve_date_on_ctl.setText(_("When using the  \"&Copy to library\" action to copy books between libraries, preserve the date"))

