home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1308 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  6.0 KB  |  131 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from PyQt4 import QtCore, QtGui
  5.  
  6. try:
  7.     _fromUtf8 = QtCore.QString.fromUtf8
  8. except AttributeError:
  9.     
  10.     _fromUtf8 = lambda s: s
  11.  
  12.  
  13. class Ui_Form(object):
  14.     
  15.     def setupUi(self, Form):
  16.         Form.setObjectName(_fromUtf8('Form'))
  17.         Form.resize(335, 570)
  18.         self.vboxlayout = QtGui.QVBoxLayout(Form)
  19.         self.vboxlayout.setObjectName(_fromUtf8('vboxlayout'))
  20.         self.label = QtGui.QLabel(Form)
  21.         self.label.setTextFormat(QtCore.Qt.RichText)
  22.         self.label.setWordWrap(True)
  23.         self.label.setOpenExternalLinks(True)
  24.         self.label.setObjectName(_fromUtf8('label'))
  25.         self.vboxlayout.addWidget(self.label)
  26.         self.groupBox = QtGui.QGroupBox(Form)
  27.         self.groupBox.setObjectName(_fromUtf8('groupBox'))
  28.         self.vboxlayout1 = QtGui.QVBoxLayout(self.groupBox)
  29.         self.vboxlayout1.setObjectName(_fromUtf8('vboxlayout1'))
  30.         self.re = QtGui.QLineEdit(self.groupBox)
  31.         self.re.setObjectName(_fromUtf8('re'))
  32.         self.vboxlayout1.addWidget(self.re)
  33.         self.vboxlayout.addWidget(self.groupBox)
  34.         self.groupBox_2 = QtGui.QGroupBox(Form)
  35.         self.groupBox_2.setObjectName(_fromUtf8('groupBox_2'))
  36.         self.verticalLayout = QtGui.QVBoxLayout(self.groupBox_2)
  37.         self.verticalLayout.setObjectName(_fromUtf8('verticalLayout'))
  38.         self.hboxlayout = QtGui.QHBoxLayout()
  39.         self.hboxlayout.setObjectName(_fromUtf8('hboxlayout'))
  40.         self.hboxlayout1 = QtGui.QHBoxLayout()
  41.         self.hboxlayout1.setObjectName(_fromUtf8('hboxlayout1'))
  42.         self.label_2 = QtGui.QLabel(self.groupBox_2)
  43.         self.label_2.setObjectName(_fromUtf8('label_2'))
  44.         self.hboxlayout1.addWidget(self.label_2)
  45.         self.filename = QtGui.QLineEdit(self.groupBox_2)
  46.         self.filename.setObjectName(_fromUtf8('filename'))
  47.         self.hboxlayout1.addWidget(self.filename)
  48.         self.hboxlayout.addLayout(self.hboxlayout1)
  49.         self.test_button = QtGui.QPushButton(self.groupBox_2)
  50.         self.test_button.setObjectName(_fromUtf8('test_button'))
  51.         self.hboxlayout.addWidget(self.test_button)
  52.         self.verticalLayout.addLayout(self.hboxlayout)
  53.         self.gridLayout = QtGui.QGridLayout()
  54.         self.gridLayout.setObjectName(_fromUtf8('gridLayout'))
  55.         self.scrollArea = QtGui.QScrollArea(self.groupBox_2)
  56.         self.scrollArea.setWidgetResizable(True)
  57.         self.scrollArea.setObjectName(_fromUtf8('scrollArea'))
  58.         self.scrollAreaWidgetContents = QtGui.QWidget(self.scrollArea)
  59.         self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 301, 234))
  60.         self.scrollAreaWidgetContents.setObjectName(_fromUtf8('scrollAreaWidgetContents'))
  61.         self.gridLayout_2 = QtGui.QGridLayout(self.scrollAreaWidgetContents)
  62.         self.gridLayout_2.setObjectName(_fromUtf8('gridLayout_2'))
  63.         self.label_3 = QtGui.QLabel(self.scrollAreaWidgetContents)
  64.         self.label_3.setObjectName(_fromUtf8('label_3'))
  65.         self.gridLayout_2.addWidget(self.label_3, 0, 0, 1, 1)
  66.         self.title = QtGui.QLineEdit(self.scrollAreaWidgetContents)
  67.         self.title.setReadOnly(True)
  68.         self.title.setObjectName(_fromUtf8('title'))
  69.         self.gridLayout_2.addWidget(self.title, 0, 1, 1, 1)
  70.         self.label_4 = QtGui.QLabel(self.scrollAreaWidgetContents)
  71.         self.label_4.setObjectName(_fromUtf8('label_4'))
  72.         self.gridLayout_2.addWidget(self.label_4, 1, 0, 1, 1)
  73.         self.authors = QtGui.QLineEdit(self.scrollAreaWidgetContents)
  74.         self.authors.setReadOnly(True)
  75.         self.authors.setObjectName(_fromUtf8('authors'))
  76.         self.gridLayout_2.addWidget(self.authors, 1, 1, 1, 1)
  77.         self.label_5 = QtGui.QLabel(self.scrollAreaWidgetContents)
  78.         self.label_5.setObjectName(_fromUtf8('label_5'))
  79.         self.gridLayout_2.addWidget(self.label_5, 2, 0, 1, 1)
  80.         self.series = QtGui.QLineEdit(self.scrollAreaWidgetContents)
  81.         self.series.setReadOnly(True)
  82.         self.series.setObjectName(_fromUtf8('series'))
  83.         self.gridLayout_2.addWidget(self.series, 2, 1, 1, 1)
  84.         self.label_6 = QtGui.QLabel(self.scrollAreaWidgetContents)
  85.         self.label_6.setObjectName(_fromUtf8('label_6'))
  86.         self.gridLayout_2.addWidget(self.label_6, 3, 0, 1, 1)
  87.         self.series_index = QtGui.QLineEdit(self.scrollAreaWidgetContents)
  88.         self.series_index.setReadOnly(True)
  89.         self.series_index.setObjectName(_fromUtf8('series_index'))
  90.         self.gridLayout_2.addWidget(self.series_index, 3, 1, 1, 1)
  91.         self.label_7 = QtGui.QLabel(self.scrollAreaWidgetContents)
  92.         self.label_7.setObjectName(_fromUtf8('label_7'))
  93.         self.gridLayout_2.addWidget(self.label_7, 4, 0, 1, 1)
  94.         self.isbn = QtGui.QLineEdit(self.scrollAreaWidgetContents)
  95.         self.isbn.setReadOnly(True)
  96.         self.isbn.setObjectName(_fromUtf8('isbn'))
  97.         self.gridLayout_2.addWidget(self.isbn, 4, 1, 1, 1)
  98.         self.scrollArea.setWidget(self.scrollAreaWidgetContents)
  99.         self.gridLayout.addWidget(self.scrollArea, 0, 0, 1, 2)
  100.         self.verticalLayout.addLayout(self.gridLayout)
  101.         self.vboxlayout.addWidget(self.groupBox_2)
  102.         self.label_2.setBuddy(self.filename)
  103.         self.retranslateUi(Form)
  104.         QtCore.QMetaObject.connectSlotsByName(Form)
  105.  
  106.     
  107.     def retranslateUi(self, Form):
  108.         Form.setWindowTitle(_('Form'))
  109.         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">\np, 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>'))
  110.         self.groupBox.setTitle(_('Regular &expression'))
  111.         self.groupBox_2.setTitle(_('&Test'))
  112.         self.label_2.setText(_('File &name:'))
  113.         self.test_button.setText(_('Test'))
  114.         self.label_3.setText(_('Title:'))
  115.         self.title.setToolTip(_('Regular expression (?P<title>)'))
  116.         self.title.setText(_('No match'))
  117.         self.label_4.setText(_('Authors:'))
  118.         self.authors.setToolTip(_('Regular expression (?P<author>)'))
  119.         self.authors.setText(_('No match'))
  120.         self.label_5.setText(_('Series:'))
  121.         self.series.setToolTip(_('Regular expression (?P<series>)'))
  122.         self.series.setText(_('No match'))
  123.         self.label_6.setText(_('Series index:'))
  124.         self.series_index.setToolTip(_('Regular expression (?P<series_index>)'))
  125.         self.series_index.setText(_('No match'))
  126.         self.label_7.setText(_('ISBN:'))
  127.         self.isbn.setToolTip(_('Regular expression (?P<isbn>)'))
  128.         self.isbn.setText(_('No match'))
  129.  
  130.  
  131.