home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_1215 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  3.4 KB  |  82 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(400, 381)
  11.         self.verticalLayout = QtGui.QVBoxLayout(Form)
  12.         self.verticalLayout.setObjectName('verticalLayout')
  13.         self.label = QtGui.QLabel(Form)
  14.         self.label.setObjectName('label')
  15.         self.verticalLayout.addWidget(self.label)
  16.         self.tag = QtGui.QComboBox(Form)
  17.         self.tag.setEditable(True)
  18.         self.tag.setObjectName('tag')
  19.         self.tag.addItem('')
  20.         self.tag.addItem('')
  21.         self.tag.addItem('')
  22.         self.tag.addItem('')
  23.         self.tag.addItem('')
  24.         self.tag.addItem('')
  25.         self.tag.addItem('')
  26.         self.tag.addItem('')
  27.         self.tag.addItem('')
  28.         self.tag.addItem('')
  29.         self.tag.addItem('')
  30.         self.tag.addItem('')
  31.         self.verticalLayout.addWidget(self.tag)
  32.         self.label_2 = QtGui.QLabel(Form)
  33.         self.label_2.setObjectName('label_2')
  34.         self.verticalLayout.addWidget(self.label_2)
  35.         self.attribute = QtGui.QLineEdit(Form)
  36.         self.attribute.setObjectName('attribute')
  37.         self.verticalLayout.addWidget(self.attribute)
  38.         self.label_3 = QtGui.QLabel(Form)
  39.         self.label_3.setObjectName('label_3')
  40.         self.verticalLayout.addWidget(self.label_3)
  41.         self.label_4 = QtGui.QLabel(Form)
  42.         self.label_4.setObjectName('label_4')
  43.         self.verticalLayout.addWidget(self.label_4)
  44.         self.value = QtGui.QLineEdit(Form)
  45.         self.value.setObjectName('value')
  46.         self.verticalLayout.addWidget(self.value)
  47.         self.label_5 = QtGui.QLabel(Form)
  48.         self.label_5.setWordWrap(True)
  49.         self.label_5.setOpenExternalLinks(True)
  50.         self.label_5.setObjectName('label_5')
  51.         self.verticalLayout.addWidget(self.label_5)
  52.         spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  53.         self.verticalLayout.addItem(spacerItem)
  54.         self.label.setBuddy(self.tag)
  55.         self.label_2.setBuddy(self.attribute)
  56.         self.label_3.setBuddy(self.value)
  57.         self.retranslateUi(Form)
  58.         QtCore.QMetaObject.connectSlotsByName(Form)
  59.  
  60.     
  61.     def retranslateUi(self, Form):
  62.         Form.setWindowTitle(_('Form'))
  63.         self.label.setText(_('Match HTML &tags with tag name:'))
  64.         self.tag.setItemText(0, _('*'))
  65.         self.tag.setItemText(1, _('a'))
  66.         self.tag.setItemText(2, _('br'))
  67.         self.tag.setItemText(3, _('div'))
  68.         self.tag.setItemText(4, _('h1'))
  69.         self.tag.setItemText(5, _('h2'))
  70.         self.tag.setItemText(6, _('h3'))
  71.         self.tag.setItemText(7, _('h4'))
  72.         self.tag.setItemText(8, _('h5'))
  73.         self.tag.setItemText(9, _('h6'))
  74.         self.tag.setItemText(10, _('hr'))
  75.         self.tag.setItemText(11, _('span'))
  76.         self.label_2.setText(_('Having the &attribute:'))
  77.         self.label_3.setText(_('With &value:'))
  78.         self.label_4.setText(_('(A regular expression)'))
  79.         self.label_5.setText(_('<p>For example, to match all h2 tags that have class="chapter", set tag to <i>h2</i>, attribute to <i>class</i> and value to <i>chapter</i>.</p><p>Leaving attribute blank will match any attribute and leaving value blank will match any value. Setting tag to * will match any tag.</p><p>To learn more advanced usage of XPath see the <a href="http://calibre-ebook.com/user_manual/xpath.html">XPath Tutorial</a>.'))
  80.  
  81.  
  82.