home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1263 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  3.7 KB  |  78 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(602, 245)
  18.         icon = QtGui.QIcon()
  19.         icon.addPixmap(QtGui.QPixmap(_fromUtf8(I('lt.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.old_location = QtGui.QLabel(Dialog)
  24.         self.old_location.setWordWrap(True)
  25.         self.old_location.setObjectName(_fromUtf8('old_location'))
  26.         self.gridLayout.addWidget(self.old_location, 0, 0, 1, 4)
  27.         self.label_2 = QtGui.QLabel(Dialog)
  28.         self.label_2.setObjectName(_fromUtf8('label_2'))
  29.         self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
  30.         self.existing_library = QtGui.QRadioButton(Dialog)
  31.         self.existing_library.setChecked(True)
  32.         self.existing_library.setObjectName(_fromUtf8('existing_library'))
  33.         self.gridLayout.addWidget(self.existing_library, 4, 0, 1, 4)
  34.         self.empty_library = QtGui.QRadioButton(Dialog)
  35.         self.empty_library.setObjectName(_fromUtf8('empty_library'))
  36.         self.gridLayout.addWidget(self.empty_library, 5, 0, 1, 3)
  37.         self.move_library = QtGui.QRadioButton(Dialog)
  38.         self.move_library.setObjectName(_fromUtf8('move_library'))
  39.         self.gridLayout.addWidget(self.move_library, 6, 0, 1, 3)
  40.         self.buttonBox = QtGui.QDialogButtonBox(Dialog)
  41.         self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
  42.         self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok)
  43.         self.buttonBox.setObjectName(_fromUtf8('buttonBox'))
  44.         self.gridLayout.addWidget(self.buttonBox, 8, 2, 1, 1)
  45.         spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  46.         self.gridLayout.addItem(spacerItem, 7, 2, 1, 1)
  47.         spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  48.         self.gridLayout.addItem(spacerItem1, 3, 0, 1, 1)
  49.         spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  50.         self.gridLayout.addItem(spacerItem2, 1, 0, 1, 1)
  51.         self.browse_button = QtGui.QToolButton(Dialog)
  52.         icon1 = QtGui.QIcon()
  53.         icon1.addPixmap(QtGui.QPixmap(_fromUtf8(I('document_open.png'))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  54.         self.browse_button.setIcon(icon1)
  55.         self.browse_button.setObjectName(_fromUtf8('browse_button'))
  56.         self.gridLayout.addWidget(self.browse_button, 2, 3, 1, 1)
  57.         self.location = HistoryLineEdit(Dialog)
  58.         self.location.setObjectName(_fromUtf8('location'))
  59.         self.gridLayout.addWidget(self.location, 2, 1, 1, 2)
  60.         self.label_2.setBuddy(self.location)
  61.         self.retranslateUi(Dialog)
  62.         QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8('accepted()')), Dialog.accept)
  63.         QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8('rejected()')), Dialog.reject)
  64.         QtCore.QMetaObject.connectSlotsByName(Dialog)
  65.  
  66.     
  67.     def retranslateUi(self, Dialog):
  68.         Dialog.setWindowTitle(_('Choose your calibre library'))
  69.         self.old_location.setText(_('Your calibre library is currently located at {0}'))
  70.         self.label_2.setText(_('New &Location:'))
  71.         self.existing_library.setText(_('Use &existing library at the new location'))
  72.         self.empty_library.setText(_('&Create an empty library at the new location'))
  73.         self.move_library.setText(_('&Move current library to new location'))
  74.         self.browse_button.setText(_('...'))
  75.  
  76.  
  77. from calibre.gui2.widgets import HistoryLineEdit
  78.