home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1254 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  2.6 KB  |  50 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_Dialog(object):
  14.     
  15.     def setupUi(self, Dialog):
  16.         Dialog.setObjectName(_fromUtf8('Dialog'))
  17.         Dialog.resize(678, 430)
  18.         icon = QtGui.QIcon()
  19.         icon.addPixmap(QtGui.QPixmap(_fromUtf8(I('add_book.png'))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  20.         Dialog.setWindowIcon(icon)
  21.         self.gridLayout = QtGui.QGridLayout(Dialog)
  22.         self.gridLayout.setObjectName(_fromUtf8('gridLayout'))
  23.         self.isbn_box = QtGui.QPlainTextEdit(Dialog)
  24.         self.isbn_box.setObjectName(_fromUtf8('isbn_box'))
  25.         self.gridLayout.addWidget(self.isbn_box, 0, 0, 1, 1)
  26.         self.label = QtGui.QLabel(Dialog)
  27.         self.label.setWordWrap(True)
  28.         self.label.setObjectName(_fromUtf8('label'))
  29.         self.gridLayout.addWidget(self.label, 0, 1, 1, 1)
  30.         self.buttonBox = QtGui.QDialogButtonBox(Dialog)
  31.         self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
  32.         self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok)
  33.         self.buttonBox.setObjectName(_fromUtf8('buttonBox'))
  34.         self.gridLayout.addWidget(self.buttonBox, 2, 0, 1, 2)
  35.         self.paste_button = QtGui.QPushButton(Dialog)
  36.         self.paste_button.setObjectName(_fromUtf8('paste_button'))
  37.         self.gridLayout.addWidget(self.paste_button, 1, 0, 1, 1)
  38.         self.retranslateUi(Dialog)
  39.         QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8('accepted()')), Dialog.accept)
  40.         QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8('rejected()')), Dialog.reject)
  41.         QtCore.QMetaObject.connectSlotsByName(Dialog)
  42.  
  43.     
  44.     def retranslateUi(self, Dialog):
  45.         Dialog.setWindowTitle(_('Add books by ISBN'))
  46.         self.label.setText(_('<p>Enter a list of ISBNs in the box to the left, one per line. calibre will automatically create entries for books based on the ISBN and download metadata and covers for them.<p>Any invalid ISBNs in the list will be ignored.'))
  47.         self.paste_button.setText(_('&Paste from clipboard'))
  48.  
  49.  
  50.