home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_1288 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  5.6 KB  |  124 lines

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