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

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from PyQt4 import QtCore, QtGui
  5.  
  6. class Ui_MetadataSingleDialog(object):
  7.     
  8.     def setupUi(self, MetadataSingleDialog):
  9.         MetadataSingleDialog.setObjectName('MetadataSingleDialog')
  10.         MetadataSingleDialog.resize(887, 750)
  11.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding)
  12.         sizePolicy.setHorizontalStretch(0)
  13.         sizePolicy.setVerticalStretch(0)
  14.         sizePolicy.setHeightForWidth(MetadataSingleDialog.sizePolicy().hasHeightForWidth())
  15.         MetadataSingleDialog.setSizePolicy(sizePolicy)
  16.         icon = QtGui.QIcon()
  17.         icon.addPixmap(QtGui.QPixmap(I('edit_input.svg')), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  18.         MetadataSingleDialog.setWindowIcon(icon)
  19.         MetadataSingleDialog.setSizeGripEnabled(True)
  20.         MetadataSingleDialog.setModal(True)
  21.         self.verticalLayout_6 = QtGui.QVBoxLayout(MetadataSingleDialog)
  22.         self.verticalLayout_6.setObjectName('verticalLayout_6')
  23.         self.scrollArea = QtGui.QScrollArea(MetadataSingleDialog)
  24.         self.scrollArea.setFrameShape(QtGui.QFrame.NoFrame)
  25.         self.scrollArea.setWidgetResizable(True)
  26.         self.scrollArea.setObjectName('scrollArea')
  27.         self.scrollAreaWidgetContents = QtGui.QWidget(self.scrollArea)
  28.         self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 879, 711))
  29.         self.scrollAreaWidgetContents.setObjectName('scrollAreaWidgetContents')
  30.         self.verticalLayout_5 = QtGui.QVBoxLayout(self.scrollAreaWidgetContents)
  31.         self.verticalLayout_5.setMargin(0)
  32.         self.verticalLayout_5.setObjectName('verticalLayout_5')
  33.         self.central_widget = QtGui.QTabWidget(self.scrollAreaWidgetContents)
  34.         self.central_widget.setMinimumSize(QtCore.QSize(800, 665))
  35.         self.central_widget.setObjectName('central_widget')
  36.         self.central_tabWidgetPage1 = QtGui.QWidget()
  37.         self.central_tabWidgetPage1.setObjectName('central_tabWidgetPage1')
  38.         self.verticalLayout_3 = QtGui.QVBoxLayout(self.central_tabWidgetPage1)
  39.         self.verticalLayout_3.setObjectName('verticalLayout_3')
  40.         self.splitter = QtGui.QSplitter(self.central_tabWidgetPage1)
  41.         self.splitter.setOrientation(QtCore.Qt.Horizontal)
  42.         self.splitter.setObjectName('splitter')
  43.         self.layoutWidget = QtGui.QWidget(self.splitter)
  44.         self.layoutWidget.setObjectName('layoutWidget')
  45.         self.vboxlayout = QtGui.QVBoxLayout(self.layoutWidget)
  46.         self.vboxlayout.setObjectName('vboxlayout')
  47.         self.meta_box = QtGui.QGroupBox(self.layoutWidget)
  48.         self.meta_box.setObjectName('meta_box')
  49.         self.gridLayout_3 = QtGui.QGridLayout(self.meta_box)
  50.         self.gridLayout_3.setObjectName('gridLayout_3')
  51.         self.label = QtGui.QLabel(self.meta_box)
  52.         self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter)
  53.         self.label.setObjectName('label')
  54.         self.gridLayout_3.addWidget(self.label, 0, 0, 1, 1)
  55.         self.title = EnLineEdit(self.meta_box)
  56.         self.title.setObjectName('title')
  57.         self.gridLayout_3.addWidget(self.title, 0, 1, 1, 1)
  58.         self.swap_button = QtGui.QToolButton(self.meta_box)
  59.         icon1 = QtGui.QIcon()
  60.         icon1.addPixmap(QtGui.QPixmap(I('swap.svg')), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  61.         self.swap_button.setIcon(icon1)
  62.         self.swap_button.setIconSize(QtCore.QSize(16, 16))
  63.         self.swap_button.setObjectName('swap_button')
  64.         self.gridLayout_3.addWidget(self.swap_button, 0, 2, 2, 1)
  65.         self.label_2 = QtGui.QLabel(self.meta_box)
  66.         self.label_2.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter)
  67.         self.label_2.setObjectName('label_2')
  68.         self.gridLayout_3.addWidget(self.label_2, 1, 0, 1, 1)
  69.         self.label_8 = QtGui.QLabel(self.meta_box)
  70.         self.label_8.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter)
  71.         self.label_8.setObjectName('label_8')
  72.         self.gridLayout_3.addWidget(self.label_8, 2, 0, 1, 1)
  73.         self.horizontalLayout = QtGui.QHBoxLayout()
  74.         self.horizontalLayout.setObjectName('horizontalLayout')
  75.         self.author_sort = EnLineEdit(self.meta_box)
  76.         self.author_sort.setObjectName('author_sort')
  77.         self.horizontalLayout.addWidget(self.author_sort)
  78.         self.auto_author_sort = QtGui.QToolButton(self.meta_box)
  79.         icon2 = QtGui.QIcon()
  80.         icon2.addPixmap(QtGui.QPixmap(I('auto_author_sort.svg')), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  81.         self.auto_author_sort.setIcon(icon2)
  82.         self.auto_author_sort.setObjectName('auto_author_sort')
  83.         self.horizontalLayout.addWidget(self.auto_author_sort)
  84.         self.gridLayout_3.addLayout(self.horizontalLayout, 2, 1, 1, 2)
  85.         self.label_6 = QtGui.QLabel(self.meta_box)
  86.         self.label_6.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter)
  87.         self.label_6.setObjectName('label_6')
  88.         self.gridLayout_3.addWidget(self.label_6, 3, 0, 1, 1)
  89.         self.rating = QtGui.QSpinBox(self.meta_box)
  90.         self.rating.setButtonSymbols(QtGui.QAbstractSpinBox.PlusMinus)
  91.         self.rating.setMaximum(5)
  92.         self.rating.setObjectName('rating')
  93.         self.gridLayout_3.addWidget(self.rating, 3, 1, 1, 2)
  94.         self.label_3 = QtGui.QLabel(self.meta_box)
  95.         self.label_3.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter)
  96.         self.label_3.setObjectName('label_3')
  97.         self.gridLayout_3.addWidget(self.label_3, 4, 0, 1, 1)
  98.         self.label_4 = QtGui.QLabel(self.meta_box)
  99.         self.label_4.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter)
  100.         self.label_4.setObjectName('label_4')
  101.         self.gridLayout_3.addWidget(self.label_4, 5, 0, 1, 1)
  102.         self._2 = QtGui.QHBoxLayout()
  103.         self._2.setObjectName('_2')
  104.         self.tags = TagsLineEdit(self.meta_box)
  105.         self.tags.setObjectName('tags')
  106.         self._2.addWidget(self.tags)
  107.         self.tag_editor_button = QtGui.QToolButton(self.meta_box)
  108.         icon3 = QtGui.QIcon()
  109.         icon3.addPixmap(QtGui.QPixmap(I('chapters.svg')), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  110.         self.tag_editor_button.setIcon(icon3)
  111.         self.tag_editor_button.setObjectName('tag_editor_button')
  112.         self._2.addWidget(self.tag_editor_button)
  113.         self.gridLayout_3.addLayout(self._2, 5, 1, 1, 2)
  114.         self.label_7 = QtGui.QLabel(self.meta_box)
  115.         self.label_7.setTextFormat(QtCore.Qt.PlainText)
  116.         self.label_7.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter)
  117.         self.label_7.setObjectName('label_7')
  118.         self.gridLayout_3.addWidget(self.label_7, 6, 0, 1, 1)
  119.         self._3 = QtGui.QHBoxLayout()
  120.         self._3.setSpacing(5)
  121.         self._3.setObjectName('_3')
  122.         self.series = EnComboBox(self.meta_box)
  123.         self.series.setEditable(True)
  124.         self.series.setInsertPolicy(QtGui.QComboBox.InsertAlphabetically)
  125.         self.series.setObjectName('series')
  126.         self._3.addWidget(self.series)
  127.         self.remove_series_button = QtGui.QToolButton(self.meta_box)
  128.         icon4 = QtGui.QIcon()
  129.         icon4.addPixmap(QtGui.QPixmap(I('trash.svg')), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  130.         self.remove_series_button.setIcon(icon4)
  131.         self.remove_series_button.setObjectName('remove_series_button')
  132.         self._3.addWidget(self.remove_series_button)
  133.         self.gridLayout_3.addLayout(self._3, 6, 1, 1, 2)
  134.         self.label_9 = QtGui.QLabel(self.meta_box)
  135.         self.label_9.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter)
  136.         self.label_9.setObjectName('label_9')
  137.         self.gridLayout_3.addWidget(self.label_9, 8, 0, 1, 1)
  138.         self.isbn = QtGui.QLineEdit(self.meta_box)
  139.         self.isbn.setObjectName('isbn')
  140.         self.gridLayout_3.addWidget(self.isbn, 8, 1, 1, 2)
  141.         self.label_10 = QtGui.QLabel(self.meta_box)
  142.         self.label_10.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter)
  143.         self.label_10.setObjectName('label_10')
  144.         self.gridLayout_3.addWidget(self.label_10, 10, 0, 1, 1)
  145.         self.publisher = EnComboBox(self.meta_box)
  146.         self.publisher.setEditable(True)
  147.         self.publisher.setObjectName('publisher')
  148.         self.gridLayout_3.addWidget(self.publisher, 4, 1, 1, 2)
  149.         self.series_index = QtGui.QDoubleSpinBox(self.meta_box)
  150.         self.series_index.setEnabled(False)
  151.         self.series_index.setMaximum(9999.99)
  152.         self.series_index.setObjectName('series_index')
  153.         self.gridLayout_3.addWidget(self.series_index, 7, 1, 1, 2)
  154.         self.pubdate = QtGui.QDateEdit(self.meta_box)
  155.         self.pubdate.setCalendarPopup(True)
  156.         self.pubdate.setObjectName('pubdate')
  157.         self.gridLayout_3.addWidget(self.pubdate, 10, 1, 1, 2)
  158.         self.authors = EnComboBox(self.meta_box)
  159.         self.authors.setEditable(True)
  160.         self.authors.setObjectName('authors')
  161.         self.gridLayout_3.addWidget(self.authors, 1, 1, 1, 1)
  162.         self.date = QtGui.QDateEdit(self.meta_box)
  163.         self.date.setCalendarPopup(True)
  164.         self.date.setObjectName('date')
  165.         self.gridLayout_3.addWidget(self.date, 9, 1, 1, 2)
  166.         self.label_11 = QtGui.QLabel(self.meta_box)
  167.         self.label_11.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter)
  168.         self.label_11.setObjectName('label_11')
  169.         self.gridLayout_3.addWidget(self.label_11, 9, 0, 1, 1)
  170.         self.vboxlayout.addWidget(self.meta_box)
  171.         self.groupBox_2 = QtGui.QGroupBox(self.layoutWidget)
  172.         self.groupBox_2.setObjectName('groupBox_2')
  173.         self.gridLayout_4 = QtGui.QGridLayout(self.groupBox_2)
  174.         self.gridLayout_4.setObjectName('gridLayout_4')
  175.         self.comments = QtGui.QTextEdit(self.groupBox_2)
  176.         self.comments.setTabChangesFocus(True)
  177.         self.comments.setAcceptRichText(False)
  178.         self.comments.setObjectName('comments')
  179.         self.gridLayout_4.addWidget(self.comments, 0, 0, 1, 1)
  180.         self.vboxlayout.addWidget(self.groupBox_2)
  181.         self.fetch_metadata_button = QtGui.QPushButton(self.layoutWidget)
  182.         self.fetch_metadata_button.setObjectName('fetch_metadata_button')
  183.         self.vboxlayout.addWidget(self.fetch_metadata_button)
  184.         self.layoutWidget_2 = QtGui.QWidget(self.splitter)
  185.         self.layoutWidget_2.setObjectName('layoutWidget_2')
  186.         self.verticalLayout_2 = QtGui.QVBoxLayout(self.layoutWidget_2)
  187.         self.verticalLayout_2.setObjectName('verticalLayout_2')
  188.         self.af_group_box = QtGui.QGroupBox(self.layoutWidget_2)
  189.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
  190.         sizePolicy.setHorizontalStretch(0)
  191.         sizePolicy.setVerticalStretch(0)
  192.         sizePolicy.setHeightForWidth(self.af_group_box.sizePolicy().hasHeightForWidth())
  193.         self.af_group_box.setSizePolicy(sizePolicy)
  194.         self.af_group_box.setObjectName('af_group_box')
  195.         self.verticalLayout = QtGui.QVBoxLayout(self.af_group_box)
  196.         self.verticalLayout.setObjectName('verticalLayout')
  197.         self.gridLayout = QtGui.QGridLayout()
  198.         self.gridLayout.setObjectName('gridLayout')
  199.         self.formats = FormatList(self.af_group_box)
  200.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
  201.         sizePolicy.setHorizontalStretch(0)
  202.         sizePolicy.setVerticalStretch(0)
  203.         sizePolicy.setHeightForWidth(self.formats.sizePolicy().hasHeightForWidth())
  204.         self.formats.setSizePolicy(sizePolicy)
  205.         self.formats.setMaximumSize(QtCore.QSize(16777215, 130))
  206.         self.formats.setDragDropMode(QtGui.QAbstractItemView.DropOnly)
  207.         self.formats.setIconSize(QtCore.QSize(64, 64))
  208.         self.formats.setObjectName('formats')
  209.         self.gridLayout.addWidget(self.formats, 0, 1, 3, 1)
  210.         self.add_format_button = QtGui.QToolButton(self.af_group_box)
  211.         icon5 = QtGui.QIcon()
  212.         icon5.addPixmap(QtGui.QPixmap(I('add_book.svg')), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  213.         self.add_format_button.setIcon(icon5)
  214.         self.add_format_button.setIconSize(QtCore.QSize(32, 32))
  215.         self.add_format_button.setObjectName('add_format_button')
  216.         self.gridLayout.addWidget(self.add_format_button, 0, 2, 1, 1)
  217.         self.remove_format_button = QtGui.QToolButton(self.af_group_box)
  218.         self.remove_format_button.setIcon(icon4)
  219.         self.remove_format_button.setIconSize(QtCore.QSize(32, 32))
  220.         self.remove_format_button.setObjectName('remove_format_button')
  221.         self.gridLayout.addWidget(self.remove_format_button, 2, 2, 1, 1)
  222.         self.button_set_cover = QtGui.QToolButton(self.af_group_box)
  223.         icon6 = QtGui.QIcon()
  224.         icon6.addPixmap(QtGui.QPixmap(I('book.svg')), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  225.         self.button_set_cover.setIcon(icon6)
  226.         self.button_set_cover.setIconSize(QtCore.QSize(32, 32))
  227.         self.button_set_cover.setObjectName('button_set_cover')
  228.         self.gridLayout.addWidget(self.button_set_cover, 0, 0, 1, 1)
  229.         self.button_set_metadata = QtGui.QToolButton(self.af_group_box)
  230.         self.button_set_metadata.setText('')
  231.         self.button_set_metadata.setIcon(icon)
  232.         self.button_set_metadata.setIconSize(QtCore.QSize(32, 32))
  233.         self.button_set_metadata.setObjectName('button_set_metadata')
  234.         self.gridLayout.addWidget(self.button_set_metadata, 2, 0, 1, 1)
  235.         self.verticalLayout.addLayout(self.gridLayout)
  236.         self.verticalLayout_2.addWidget(self.af_group_box)
  237.         self.bc_box = QtGui.QGroupBox(self.layoutWidget_2)
  238.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
  239.         sizePolicy.setHorizontalStretch(0)
  240.         sizePolicy.setVerticalStretch(10)
  241.         sizePolicy.setHeightForWidth(self.bc_box.sizePolicy().hasHeightForWidth())
  242.         self.bc_box.setSizePolicy(sizePolicy)
  243.         self.bc_box.setObjectName('bc_box')
  244.         self.verticalLayout_4 = QtGui.QVBoxLayout(self.bc_box)
  245.         self.verticalLayout_4.setObjectName('verticalLayout_4')
  246.         self.cover = ImageView(self.bc_box)
  247.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
  248.         sizePolicy.setHorizontalStretch(0)
  249.         sizePolicy.setVerticalStretch(100)
  250.         sizePolicy.setHeightForWidth(self.cover.sizePolicy().hasHeightForWidth())
  251.         self.cover.setSizePolicy(sizePolicy)
  252.         self.cover.setObjectName('cover')
  253.         self.verticalLayout_4.addWidget(self.cover)
  254.         self._4 = QtGui.QVBoxLayout()
  255.         self._4.setSpacing(6)
  256.         self._4.setSizeConstraint(QtGui.QLayout.SetMaximumSize)
  257.         self._4.setMargin(0)
  258.         self._4.setObjectName('_4')
  259.         self.label_5 = QtGui.QLabel(self.bc_box)
  260.         self.label_5.setObjectName('label_5')
  261.         self._4.addWidget(self.label_5)
  262.         self._5 = QtGui.QHBoxLayout()
  263.         self._5.setSpacing(6)
  264.         self._5.setMargin(0)
  265.         self._5.setObjectName('_5')
  266.         self.cover_path = QtGui.QLineEdit(self.bc_box)
  267.         self.cover_path.setReadOnly(True)
  268.         self.cover_path.setObjectName('cover_path')
  269.         self._5.addWidget(self.cover_path)
  270.         self.cover_button = QtGui.QToolButton(self.bc_box)
  271.         icon7 = QtGui.QIcon()
  272.         icon7.addPixmap(QtGui.QPixmap(I('document_open.svg')), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  273.         self.cover_button.setIcon(icon7)
  274.         self.cover_button.setObjectName('cover_button')
  275.         self._5.addWidget(self.cover_button)
  276.         self.reset_cover = QtGui.QToolButton(self.bc_box)
  277.         self.reset_cover.setIcon(icon4)
  278.         self.reset_cover.setObjectName('reset_cover')
  279.         self._5.addWidget(self.reset_cover)
  280.         self._4.addLayout(self._5)
  281.         self.verticalLayout_4.addLayout(self._4)
  282.         self._6 = QtGui.QHBoxLayout()
  283.         self._6.setObjectName('_6')
  284.         self.fetch_cover_button = QtGui.QPushButton(self.bc_box)
  285.         self.fetch_cover_button.setObjectName('fetch_cover_button')
  286.         self._6.addWidget(self.fetch_cover_button)
  287.         self.generate_cover_button = QtGui.QPushButton(self.bc_box)
  288.         self.generate_cover_button.setObjectName('generate_cover_button')
  289.         self._6.addWidget(self.generate_cover_button)
  290.         self.verticalLayout_4.addLayout(self._6)
  291.         self.verticalLayout_2.addWidget(self.bc_box)
  292.         self.verticalLayout_3.addWidget(self.splitter)
  293.         self.central_widget.addTab(self.central_tabWidgetPage1, '')
  294.         self.tab = QtGui.QWidget()
  295.         self.tab.setObjectName('tab')
  296.         self.gridLayout_2 = QtGui.QGridLayout(self.tab)
  297.         self.gridLayout_2.setObjectName('gridLayout_2')
  298.         self.central_widget.addTab(self.tab, '')
  299.         self.verticalLayout_5.addWidget(self.central_widget)
  300.         self.scrollArea.setWidget(self.scrollAreaWidgetContents)
  301.         self.verticalLayout_6.addWidget(self.scrollArea)
  302.         self.button_box = QtGui.QDialogButtonBox(MetadataSingleDialog)
  303.         self.button_box.setOrientation(QtCore.Qt.Horizontal)
  304.         self.button_box.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok)
  305.         self.button_box.setObjectName('button_box')
  306.         self.verticalLayout_6.addWidget(self.button_box)
  307.         self.label.setBuddy(self.title)
  308.         self.label_2.setBuddy(self.authors)
  309.         self.label_8.setBuddy(self.author_sort)
  310.         self.label_6.setBuddy(self.rating)
  311.         self.label_3.setBuddy(self.publisher)
  312.         self.label_4.setBuddy(self.tags)
  313.         self.label_7.setBuddy(self.series)
  314.         self.label_9.setBuddy(self.isbn)
  315.         self.label_10.setBuddy(self.pubdate)
  316.         self.label_11.setBuddy(self.date)
  317.         self.label_5.setBuddy(self.cover_path)
  318.         self.retranslateUi(MetadataSingleDialog)
  319.         self.central_widget.setCurrentIndex(0)
  320.         QtCore.QObject.connect(self.button_box, QtCore.SIGNAL('accepted()'), MetadataSingleDialog.accept)
  321.         QtCore.QObject.connect(self.button_box, QtCore.SIGNAL('rejected()'), MetadataSingleDialog.reject)
  322.         QtCore.QMetaObject.connectSlotsByName(MetadataSingleDialog)
  323.         MetadataSingleDialog.setTabOrder(self.title, self.swap_button)
  324.         MetadataSingleDialog.setTabOrder(self.swap_button, self.authors)
  325.         MetadataSingleDialog.setTabOrder(self.authors, self.author_sort)
  326.         MetadataSingleDialog.setTabOrder(self.author_sort, self.auto_author_sort)
  327.         MetadataSingleDialog.setTabOrder(self.auto_author_sort, self.rating)
  328.         MetadataSingleDialog.setTabOrder(self.rating, self.publisher)
  329.         MetadataSingleDialog.setTabOrder(self.publisher, self.tags)
  330.         MetadataSingleDialog.setTabOrder(self.tags, self.tag_editor_button)
  331.         MetadataSingleDialog.setTabOrder(self.tag_editor_button, self.series)
  332.         MetadataSingleDialog.setTabOrder(self.series, self.remove_series_button)
  333.         MetadataSingleDialog.setTabOrder(self.remove_series_button, self.series_index)
  334.         MetadataSingleDialog.setTabOrder(self.series_index, self.isbn)
  335.         MetadataSingleDialog.setTabOrder(self.isbn, self.date)
  336.         MetadataSingleDialog.setTabOrder(self.date, self.pubdate)
  337.         MetadataSingleDialog.setTabOrder(self.pubdate, self.comments)
  338.         MetadataSingleDialog.setTabOrder(self.comments, self.fetch_metadata_button)
  339.         MetadataSingleDialog.setTabOrder(self.fetch_metadata_button, self.add_format_button)
  340.         MetadataSingleDialog.setTabOrder(self.add_format_button, self.remove_format_button)
  341.         MetadataSingleDialog.setTabOrder(self.remove_format_button, self.button_set_cover)
  342.         MetadataSingleDialog.setTabOrder(self.button_set_cover, self.button_set_metadata)
  343.         MetadataSingleDialog.setTabOrder(self.button_set_metadata, self.formats)
  344.         MetadataSingleDialog.setTabOrder(self.formats, self.cover_path)
  345.         MetadataSingleDialog.setTabOrder(self.cover_path, self.cover_button)
  346.         MetadataSingleDialog.setTabOrder(self.cover_button, self.reset_cover)
  347.         MetadataSingleDialog.setTabOrder(self.reset_cover, self.fetch_cover_button)
  348.         MetadataSingleDialog.setTabOrder(self.fetch_cover_button, self.generate_cover_button)
  349.         MetadataSingleDialog.setTabOrder(self.generate_cover_button, self.scrollArea)
  350.         MetadataSingleDialog.setTabOrder(self.scrollArea, self.central_widget)
  351.         MetadataSingleDialog.setTabOrder(self.central_widget, self.button_box)
  352.  
  353.     
  354.     def retranslateUi(self, MetadataSingleDialog):
  355.         MetadataSingleDialog.setWindowTitle(_('Edit Meta Information'))
  356.         self.meta_box.setTitle(_('Meta information'))
  357.         self.label.setText(_('&Title: '))
  358.         self.title.setToolTip(_('Change the title of this book'))
  359.         self.swap_button.setToolTip(_('Swap the author and title'))
  360.         self.swap_button.setText(_('...'))
  361.         self.label_2.setText(_('&Author(s): '))
  362.         self.label_8.setText(_('Author S&ort: '))
  363.         self.author_sort.setToolTip(_('Specify how the author(s) of this book should be sorted. For example Charles Dickens should be sorted as Dickens, Charles.'))
  364.         self.auto_author_sort.setToolTip(_('Automatically create the author sort entry based on the current author entry'))
  365.         self.auto_author_sort.setText(_('...'))
  366.         self.label_6.setText(_('&Rating:'))
  367.         self.rating.setToolTip(_('Rating of this book. 0-5 stars'))
  368.         self.rating.setWhatsThis(_('Rating of this book. 0-5 stars'))
  369.         self.rating.setSuffix(_(' stars'))
  370.         self.label_3.setText(_('&Publisher: '))
  371.         self.label_4.setText(_('Ta&gs: '))
  372.         self.tags.setToolTip(_('Tags categorize the book. This is particularly useful while searching. <br><br>They can be any words or phrases, separated by commas.'))
  373.         self.tag_editor_button.setToolTip(_('Open Tag Editor'))
  374.         self.tag_editor_button.setText(_('Open Tag Editor'))
  375.         self.label_7.setText(_('&Series:'))
  376.         self.series.setToolTip(_('List of known series. You can add new series.'))
  377.         self.series.setWhatsThis(_('List of known series. You can add new series.'))
  378.         self.remove_series_button.setToolTip(_('Remove unused series (Series that have no books)'))
  379.         self.remove_series_button.setText(_('...'))
  380.         self.label_9.setText(_('IS&BN:'))
  381.         self.label_10.setText(_('Publishe&d:'))
  382.         self.series_index.setPrefix(_('Book '))
  383.         self.pubdate.setDisplayFormat('MMM yyyy')
  384.         self.date.setDisplayFormat(_('dd MMM yyyy'))
  385.         self.label_11.setText(_('&Date:'))
  386.         self.groupBox_2.setTitle(_('&Comments'))
  387.         self.fetch_metadata_button.setText(_('&Fetch metadata from server'))
  388.         self.af_group_box.setTitle(_('Available Formats'))
  389.         self.add_format_button.setToolTip(_('Add a new format for this book to the database'))
  390.         self.add_format_button.setText(_('...'))
  391.         self.remove_format_button.setToolTip(_('Remove the selected formats for this book from the database.'))
  392.         self.remove_format_button.setText(_('...'))
  393.         self.button_set_cover.setToolTip(_('Set the cover for the book from the selected format'))
  394.         self.button_set_cover.setText(_('...'))
  395.         self.button_set_metadata.setToolTip(_('Update metadata from the metadata in the selected format'))
  396.         self.bc_box.setTitle(_('Book Cover'))
  397.         self.label_5.setText(_('Change &cover image:'))
  398.         self.cover_button.setToolTip(_('Browse for an image to use as the cover of this book.'))
  399.         self.cover_button.setText(_('...'))
  400.         self.reset_cover.setToolTip(_('Reset cover to default'))
  401.         self.reset_cover.setText(_('...'))
  402.         self.fetch_cover_button.setText(_('Download &cover'))
  403.         self.generate_cover_button.setToolTip(_('Generate a default cover based on the title and author'))
  404.         self.generate_cover_button.setText(_('&Generate cover'))
  405.         self.central_widget.setTabText(self.central_widget.indexOf(self.central_tabWidgetPage1), _('&Basic metadata'))
  406.         self.central_widget.setTabText(self.central_widget.indexOf(self.tab), _('&Custom metadata'))
  407.  
  408.  
  409. from calibre.gui2.widgets import TagsLineEdit, EnLineEdit, EnComboBox
  410. from calibre.gui2.widgets import FormatList, ImageView
  411.