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

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from PyQt4 import QtCore, QtGui
  5.  
  6. class Ui_Dialog(object):
  7.     
  8.     def setupUi(self, Dialog):
  9.         Dialog.setObjectName('Dialog')
  10.         Dialog.resize(602, 245)
  11.         icon = QtGui.QIcon()
  12.         icon.addPixmap(QtGui.QPixmap(I('lt.png')), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  13.         Dialog.setWindowIcon(icon)
  14.         self.gridLayout = QtGui.QGridLayout(Dialog)
  15.         self.gridLayout.setObjectName('gridLayout')
  16.         self.old_location = QtGui.QLabel(Dialog)
  17.         self.old_location.setWordWrap(True)
  18.         self.old_location.setObjectName('old_location')
  19.         self.gridLayout.addWidget(self.old_location, 0, 0, 1, 4)
  20.         self.label_2 = QtGui.QLabel(Dialog)
  21.         self.label_2.setObjectName('label_2')
  22.         self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
  23.         self.existing_library = QtGui.QRadioButton(Dialog)
  24.         self.existing_library.setChecked(True)
  25.         self.existing_library.setObjectName('existing_library')
  26.         self.gridLayout.addWidget(self.existing_library, 4, 0, 1, 4)
  27.         self.empty_library = QtGui.QRadioButton(Dialog)
  28.         self.empty_library.setObjectName('empty_library')
  29.         self.gridLayout.addWidget(self.empty_library, 5, 0, 1, 3)
  30.         self.move_library = QtGui.QRadioButton(Dialog)
  31.         self.move_library.setObjectName('move_library')
  32.         self.gridLayout.addWidget(self.move_library, 6, 0, 1, 3)
  33.         self.buttonBox = QtGui.QDialogButtonBox(Dialog)
  34.         self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
  35.         self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok)
  36.         self.buttonBox.setObjectName('buttonBox')
  37.         self.gridLayout.addWidget(self.buttonBox, 8, 2, 1, 1)
  38.         spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  39.         self.gridLayout.addItem(spacerItem, 7, 2, 1, 1)
  40.         spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  41.         self.gridLayout.addItem(spacerItem1, 3, 0, 1, 1)
  42.         spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  43.         self.gridLayout.addItem(spacerItem2, 1, 0, 1, 1)
  44.         self.browse_button = QtGui.QToolButton(Dialog)
  45.         icon1 = QtGui.QIcon()
  46.         icon1.addPixmap(QtGui.QPixmap(I('document_open.svg')), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  47.         self.browse_button.setIcon(icon1)
  48.         self.browse_button.setObjectName('browse_button')
  49.         self.gridLayout.addWidget(self.browse_button, 2, 3, 1, 1)
  50.         self.location = HistoryLineEdit(Dialog)
  51.         self.location.setObjectName('location')
  52.         self.gridLayout.addWidget(self.location, 2, 1, 1, 2)
  53.         self.label_2.setBuddy(self.location)
  54.         self.retranslateUi(Dialog)
  55.         QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL('accepted()'), Dialog.accept)
  56.         QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL('rejected()'), Dialog.reject)
  57.         QtCore.QMetaObject.connectSlotsByName(Dialog)
  58.  
  59.     
  60.     def retranslateUi(self, Dialog):
  61.         Dialog.setWindowTitle(_('Choose your calibre library'))
  62.         self.old_location.setText(_('Your calibre library is currently located at {0}'))
  63.         self.label_2.setText(_('New &Location:'))
  64.         self.existing_library.setText(_('Use &existing library at the new location'))
  65.         self.empty_library.setText(_('&Create an empty library at the new location'))
  66.         self.move_library.setText(_('&Move current library to new location'))
  67.         self.browse_button.setText(_('...'))
  68.  
  69.  
  70. from calibre.gui2.widgets import HistoryLineEdit
  71.