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

# Form implementation generated from reading ui file '/work/a/ports/deskutils/calibre/work/calibre/src/calibre/gui2/filename_pattern.ui'
#
# Created: Mon Feb 22 19:36:38 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_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(335, 540)
        self.vboxlayout = QtGui.QVBoxLayout(Form)
        self.vboxlayout.setObjectName("vboxlayout")
        self.label = QtGui.QLabel(Form)
        self.label.setTextFormat(QtCore.Qt.RichText)
        self.label.setWordWrap(True)
        self.label.setOpenExternalLinks(True)
        self.label.setObjectName("label")
        self.vboxlayout.addWidget(self.label)
        self.groupBox = QtGui.QGroupBox(Form)
        self.groupBox.setObjectName("groupBox")
        self.vboxlayout1 = QtGui.QVBoxLayout(self.groupBox)
        self.vboxlayout1.setObjectName("vboxlayout1")
        self.re = QtGui.QLineEdit(self.groupBox)
        self.re.setObjectName("re")
        self.vboxlayout1.addWidget(self.re)
        self.vboxlayout.addWidget(self.groupBox)
        self.groupBox_2 = QtGui.QGroupBox(Form)
        self.groupBox_2.setObjectName("groupBox_2")
        self.verticalLayout = QtGui.QVBoxLayout(self.groupBox_2)
        self.verticalLayout.setObjectName("verticalLayout")
        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setObjectName("hboxlayout")
        self.hboxlayout1 = QtGui.QHBoxLayout()
        self.hboxlayout1.setObjectName("hboxlayout1")
        self.label_2 = QtGui.QLabel(self.groupBox_2)
        self.label_2.setObjectName("label_2")
        self.hboxlayout1.addWidget(self.label_2)
        self.filename = QtGui.QLineEdit(self.groupBox_2)
        self.filename.setObjectName("filename")
        self.hboxlayout1.addWidget(self.filename)
        self.hboxlayout.addLayout(self.hboxlayout1)
        self.test_button = QtGui.QPushButton(self.groupBox_2)
        self.test_button.setObjectName("test_button")
        self.hboxlayout.addWidget(self.test_button)
        self.verticalLayout.addLayout(self.hboxlayout)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.label_3 = QtGui.QLabel(self.groupBox_2)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1)
        self.title = QtGui.QLineEdit(self.groupBox_2)
        self.title.setReadOnly(True)
        self.title.setObjectName("title")
        self.gridLayout.addWidget(self.title, 0, 1, 1, 2)
        self.label_4 = QtGui.QLabel(self.groupBox_2)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 1, 0, 1, 1)
        self.authors = QtGui.QLineEdit(self.groupBox_2)
        self.authors.setReadOnly(True)
        self.authors.setObjectName("authors")
        self.gridLayout.addWidget(self.authors, 1, 1, 1, 2)
        self.label_5 = QtGui.QLabel(self.groupBox_2)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 2, 0, 1, 1)
        self.series = QtGui.QLineEdit(self.groupBox_2)
        self.series.setReadOnly(True)
        self.series.setObjectName("series")
        self.gridLayout.addWidget(self.series, 2, 1, 1, 2)
        self.label_6 = QtGui.QLabel(self.groupBox_2)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 3, 0, 2, 1)
        self.series_index = QtGui.QLineEdit(self.groupBox_2)
        self.series_index.setReadOnly(True)
        self.series_index.setObjectName("series_index")
        self.gridLayout.addWidget(self.series_index, 3, 1, 2, 2)
        self.label_7 = QtGui.QLabel(self.groupBox_2)
        self.label_7.setObjectName("label_7")
        self.gridLayout.addWidget(self.label_7, 5, 0, 1, 1)
        self.isbn = QtGui.QLineEdit(self.groupBox_2)
        self.isbn.setReadOnly(True)
        self.isbn.setObjectName("isbn")
        self.gridLayout.addWidget(self.isbn, 5, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.vboxlayout.addWidget(self.groupBox_2)
        self.label_2.setBuddy(self.filename)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        Form.setWindowTitle(_("Form"))
        self.label.setText(_("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Candara\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Set a regular expression pattern to use when trying to guess ebook metadata from filenames. </p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">A <a href=\"http://docs.python.org/lib/re-syntax.html\"><span style=\" text-decoration: underline; color:#0000ff;\">reference</span></a> on the syntax of regular expressions is available.</p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Use the <span style=\" font-weight:600;\">Test</span> functionality below to test your regular expression on a few sample filenames. The group names for the various metadata entries are documented in tooltips.</p></body></html>"))
        self.groupBox.setTitle(_("Regular &expression"))
        self.groupBox_2.setTitle(_("&Test"))
        self.label_2.setText(_("File &name:"))
        self.test_button.setText(_("Test"))
        self.label_3.setText(_("Title:"))
        self.title.setToolTip(_("Regular expression (?P&lt;title&gt;)"))
        self.title.setText(_("No match"))
        self.label_4.setText(_("Authors:"))
        self.authors.setToolTip(_("Regular expression (?P<author>)"))
        self.authors.setText(_("No match"))
        self.label_5.setText(_("Series:"))
        self.series.setToolTip(_("Regular expression (?P<series>)"))
        self.series.setText(_("No match"))
        self.label_6.setText(_("Series index:"))
        self.series_index.setToolTip(_("Regular expression (?P<series_index>)"))
        self.series_index.setText(_("No match"))
        self.label_7.setText(_("ISBN:"))
        self.isbn.setToolTip(_("Regular expression (?P<isbn>)"))
        self.isbn.setText(_("No match"))

