home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1299 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  5.8 KB  |  141 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_TagEditor(object):
  14.     
  15.     def setupUi(self, TagEditor):
  16.         TagEditor.setObjectName(_fromUtf8('TagEditor'))
  17.         TagEditor.resize(588, 335)
  18.         icon = QtGui.QIcon()
  19.         icon.addPixmap(QtGui.QPixmap(_fromUtf8(I('chapters.png'))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  20.         TagEditor.setWindowIcon(icon)
  21.         self.gridlayout = QtGui.QGridLayout(TagEditor)
  22.         self.gridlayout.setObjectName(_fromUtf8('gridlayout'))
  23.         self.vboxlayout = QtGui.QVBoxLayout()
  24.         self.vboxlayout.setObjectName(_fromUtf8('vboxlayout'))
  25.         self.hboxlayout = QtGui.QHBoxLayout()
  26.         self.hboxlayout.setObjectName(_fromUtf8('hboxlayout'))
  27.         self.label = QtGui.QLabel(TagEditor)
  28.         self.label.setObjectName(_fromUtf8('label'))
  29.         self.hboxlayout.addWidget(self.label)
  30.         spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
  31.         self.hboxlayout.addItem(spacerItem)
  32.         self.vboxlayout.addLayout(self.hboxlayout)
  33.         self.hboxlayout1 = QtGui.QHBoxLayout()
  34.         self.hboxlayout1.setObjectName(_fromUtf8('hboxlayout1'))
  35.         self.delete_button = QtGui.QToolButton(TagEditor)
  36.         icon1 = QtGui.QIcon()
  37.         icon1.addPixmap(QtGui.QPixmap(_fromUtf8(I('trash.png'))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  38.         self.delete_button.setIcon(icon1)
  39.         self.delete_button.setObjectName(_fromUtf8('delete_button'))
  40.         self.hboxlayout1.addWidget(self.delete_button)
  41.         self.available_tags = QtGui.QListWidget(TagEditor)
  42.         self.available_tags.setAlternatingRowColors(True)
  43.         self.available_tags.setSelectionMode(QtGui.QAbstractItemView.MultiSelection)
  44.         self.available_tags.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
  45.         self.available_tags.setObjectName(_fromUtf8('available_tags'))
  46.         self.hboxlayout1.addWidget(self.available_tags)
  47.         self.vboxlayout.addLayout(self.hboxlayout1)
  48.         self.gridlayout.addLayout(self.vboxlayout, 0, 0, 1, 1)
  49.         self.vboxlayout1 = QtGui.QVBoxLayout()
  50.         self.vboxlayout1.setObjectName(_fromUtf8('vboxlayout1'))
  51.         spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  52.         self.vboxlayout1.addItem(spacerItem1)
  53.         self.apply_button = QtGui.QToolButton(TagEditor)
  54.         icon2 = QtGui.QIcon()
  55.         icon2.addPixmap(QtGui.QPixmap(_fromUtf8(I('forward.png'))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  56.         self.apply_button.setIcon(icon2)
  57.         self.apply_button.setObjectName(_fromUtf8('apply_button'))
  58.         self.vboxlayout1.addWidget(self.apply_button)
  59.         spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  60.         self.vboxlayout1.addItem(spacerItem2)
  61.         self.gridlayout.addLayout(self.vboxlayout1, 0, 1, 1, 1)
  62.         self.vboxlayout2 = QtGui.QVBoxLayout()
  63.         self.vboxlayout2.setObjectName(_fromUtf8('vboxlayout2'))
  64.         self.hboxlayout2 = QtGui.QHBoxLayout()
  65.         self.hboxlayout2.setObjectName(_fromUtf8('hboxlayout2'))
  66.         self.label_2 = QtGui.QLabel(TagEditor)
  67.         self.label_2.setObjectName(_fromUtf8('label_2'))
  68.         self.hboxlayout2.addWidget(self.label_2)
  69.         spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
  70.         self.hboxlayout2.addItem(spacerItem3)
  71.         self.vboxlayout2.addLayout(self.hboxlayout2)
  72.         self.applied_tags = QtGui.QListWidget(TagEditor)
  73.         self.applied_tags.setAlternatingRowColors(True)
  74.         self.applied_tags.setSelectionMode(QtGui.QAbstractItemView.MultiSelection)
  75.         self.applied_tags.setObjectName(_fromUtf8('applied_tags'))
  76.         self.vboxlayout2.addWidget(self.applied_tags)
  77.         self.gridlayout.addLayout(self.vboxlayout2, 0, 2, 1, 1)
  78.         self.vboxlayout3 = QtGui.QVBoxLayout()
  79.         self.vboxlayout3.setObjectName(_fromUtf8('vboxlayout3'))
  80.         spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  81.         self.vboxlayout3.addItem(spacerItem4)
  82.         self.unapply_button = QtGui.QToolButton(TagEditor)
  83.         icon3 = QtGui.QIcon()
  84.         icon3.addPixmap(QtGui.QPixmap(_fromUtf8(I('list_remove.png'))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  85.         self.unapply_button.setIcon(icon3)
  86.         self.unapply_button.setObjectName(_fromUtf8('unapply_button'))
  87.         self.vboxlayout3.addWidget(self.unapply_button)
  88.         spacerItem5 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  89.         self.vboxlayout3.addItem(spacerItem5)
  90.         self.gridlayout.addLayout(self.vboxlayout3, 0, 3, 1, 1)
  91.         self.hboxlayout3 = QtGui.QHBoxLayout()
  92.         self.hboxlayout3.setObjectName(_fromUtf8('hboxlayout3'))
  93.         spacerItem6 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
  94.         self.hboxlayout3.addItem(spacerItem6)
  95.         self.label_3 = QtGui.QLabel(TagEditor)
  96.         self.label_3.setObjectName(_fromUtf8('label_3'))
  97.         self.hboxlayout3.addWidget(self.label_3)
  98.         self.add_tag_input = EnLineEdit(TagEditor)
  99.         self.add_tag_input.setObjectName(_fromUtf8('add_tag_input'))
  100.         self.hboxlayout3.addWidget(self.add_tag_input)
  101.         self.add_tag_button = QtGui.QToolButton(TagEditor)
  102.         icon4 = QtGui.QIcon()
  103.         icon4.addPixmap(QtGui.QPixmap(_fromUtf8(I('plus.png'))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  104.         self.add_tag_button.setIcon(icon4)
  105.         self.add_tag_button.setObjectName(_fromUtf8('add_tag_button'))
  106.         self.hboxlayout3.addWidget(self.add_tag_button)
  107.         spacerItem7 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
  108.         self.hboxlayout3.addItem(spacerItem7)
  109.         self.gridlayout.addLayout(self.hboxlayout3, 1, 0, 1, 4)
  110.         self.buttonBox = QtGui.QDialogButtonBox(TagEditor)
  111.         self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
  112.         self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok)
  113.         self.buttonBox.setObjectName(_fromUtf8('buttonBox'))
  114.         self.gridlayout.addWidget(self.buttonBox, 2, 0, 1, 4)
  115.         self.label.setBuddy(self.available_tags)
  116.         self.label_2.setBuddy(self.applied_tags)
  117.         self.label_3.setBuddy(self.add_tag_input)
  118.         self.retranslateUi(TagEditor)
  119.         QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8('accepted()')), TagEditor.accept)
  120.         QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8('rejected()')), TagEditor.reject)
  121.         QtCore.QMetaObject.connectSlotsByName(TagEditor)
  122.  
  123.     
  124.     def retranslateUi(self, TagEditor):
  125.         TagEditor.setWindowTitle(_('Tag Editor'))
  126.         self.label.setText(_('A&vailable tags'))
  127.         self.delete_button.setToolTip(_('Delete tag from database. This will unapply the tag from all books and then remove it from the database.'))
  128.         self.delete_button.setText(_('...'))
  129.         self.apply_button.setToolTip(_('Apply tag to current book'))
  130.         self.apply_button.setText(_('...'))
  131.         self.label_2.setText(_('A&pplied tags'))
  132.         self.unapply_button.setToolTip(_('Unapply (remove) tag from current book'))
  133.         self.unapply_button.setText(_('...'))
  134.         self.label_3.setText(_('&Add tag:'))
  135.         self.add_tag_input.setToolTip(_('If the tag you want is not in the available list, you can add it here. Accepts a comma separated list of tags.'))
  136.         self.add_tag_button.setToolTip(_('Add tag to available tags and apply it to current book'))
  137.         self.add_tag_button.setText(_('...'))
  138.  
  139.  
  140. from calibre.gui2.widgets import EnLineEdit
  141.