home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- from PyQt4 import QtCore, QtGui
-
- class Ui_Dialog(object):
-
- def setupUi(self, Dialog):
- Dialog.setObjectName('Dialog')
- Dialog.resize(602, 245)
- icon = QtGui.QIcon()
- icon.addPixmap(QtGui.QPixmap(I('lt.png')), QtGui.QIcon.Normal, QtGui.QIcon.Off)
- Dialog.setWindowIcon(icon)
- self.gridLayout = QtGui.QGridLayout(Dialog)
- self.gridLayout.setObjectName('gridLayout')
- self.old_location = QtGui.QLabel(Dialog)
- self.old_location.setWordWrap(True)
- self.old_location.setObjectName('old_location')
- self.gridLayout.addWidget(self.old_location, 0, 0, 1, 4)
- self.label_2 = QtGui.QLabel(Dialog)
- self.label_2.setObjectName('label_2')
- self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
- self.existing_library = QtGui.QRadioButton(Dialog)
- self.existing_library.setChecked(True)
- self.existing_library.setObjectName('existing_library')
- self.gridLayout.addWidget(self.existing_library, 4, 0, 1, 4)
- self.empty_library = QtGui.QRadioButton(Dialog)
- self.empty_library.setObjectName('empty_library')
- self.gridLayout.addWidget(self.empty_library, 5, 0, 1, 3)
- self.move_library = QtGui.QRadioButton(Dialog)
- self.move_library.setObjectName('move_library')
- self.gridLayout.addWidget(self.move_library, 6, 0, 1, 3)
- self.buttonBox = QtGui.QDialogButtonBox(Dialog)
- self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
- self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok)
- self.buttonBox.setObjectName('buttonBox')
- self.gridLayout.addWidget(self.buttonBox, 8, 2, 1, 1)
- spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
- self.gridLayout.addItem(spacerItem, 7, 2, 1, 1)
- spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
- self.gridLayout.addItem(spacerItem1, 3, 0, 1, 1)
- spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
- self.gridLayout.addItem(spacerItem2, 1, 0, 1, 1)
- self.browse_button = QtGui.QToolButton(Dialog)
- icon1 = QtGui.QIcon()
- icon1.addPixmap(QtGui.QPixmap(I('document_open.svg')), QtGui.QIcon.Normal, QtGui.QIcon.Off)
- self.browse_button.setIcon(icon1)
- self.browse_button.setObjectName('browse_button')
- self.gridLayout.addWidget(self.browse_button, 2, 3, 1, 1)
- self.location = HistoryLineEdit(Dialog)
- self.location.setObjectName('location')
- self.gridLayout.addWidget(self.location, 2, 1, 1, 2)
- self.label_2.setBuddy(self.location)
- self.retranslateUi(Dialog)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL('accepted()'), Dialog.accept)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL('rejected()'), Dialog.reject)
- QtCore.QMetaObject.connectSlotsByName(Dialog)
-
-
- def retranslateUi(self, Dialog):
- Dialog.setWindowTitle(_('Choose your calibre library'))
- self.old_location.setText(_('Your calibre library is currently located at {0}'))
- self.label_2.setText(_('New &Location:'))
- self.existing_library.setText(_('Use &existing library at the new location'))
- self.empty_library.setText(_('&Create an empty library at the new location'))
- self.move_library.setText(_('&Move current library to new location'))
- self.browse_button.setText(_('...'))
-
-
- from calibre.gui2.widgets import HistoryLineEdit
-