home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1334 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  7.1 KB  |  158 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_Form(object):
  14.     
  15.     def setupUi(self, Form):
  16.         Form.setObjectName(_fromUtf8('Form'))
  17.         Form.resize(672, 563)
  18.         self.gridLayout = QtGui.QGridLayout(Form)
  19.         self.gridLayout.setObjectName(_fromUtf8('gridLayout'))
  20.         self.opt_overwrite_author_title_metadata = QtGui.QCheckBox(Form)
  21.         self.opt_overwrite_author_title_metadata.setObjectName(_fromUtf8('opt_overwrite_author_title_metadata'))
  22.         self.gridLayout.addWidget(self.opt_overwrite_author_title_metadata, 0, 0, 1, 2)
  23.         self.opt_get_social_metadata = QtGui.QCheckBox(Form)
  24.         self.opt_get_social_metadata.setObjectName(_fromUtf8('opt_get_social_metadata'))
  25.         self.gridLayout.addWidget(self.opt_get_social_metadata, 1, 0, 1, 2)
  26.         self.opt_new_version_notification = QtGui.QCheckBox(Form)
  27.         self.opt_new_version_notification.setObjectName(_fromUtf8('opt_new_version_notification'))
  28.         self.gridLayout.addWidget(self.opt_new_version_notification, 2, 0, 1, 2)
  29.         self.opt_upload_news_to_device = QtGui.QCheckBox(Form)
  30.         self.opt_upload_news_to_device.setObjectName(_fromUtf8('opt_upload_news_to_device'))
  31.         self.gridLayout.addWidget(self.opt_upload_news_to_device, 3, 0, 1, 2)
  32.         self.opt_delete_news_from_library_on_upload = QtGui.QCheckBox(Form)
  33.         self.opt_delete_news_from_library_on_upload.setObjectName(_fromUtf8('opt_delete_news_from_library_on_upload'))
  34.         self.gridLayout.addWidget(self.opt_delete_news_from_library_on_upload, 4, 0, 1, 2)
  35.         self.gridLayout_2 = QtGui.QGridLayout()
  36.         self.gridLayout_2.setObjectName(_fromUtf8('gridLayout_2'))
  37.         self.label_2 = QtGui.QLabel(Form)
  38.         self.label_2.setObjectName(_fromUtf8('label_2'))
  39.         self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1)
  40.         self.opt_network_timeout = QtGui.QSpinBox(Form)
  41.         self.opt_network_timeout.setMinimum(2)
  42.         self.opt_network_timeout.setMaximum(120)
  43.         self.opt_network_timeout.setProperty(_fromUtf8('value'), 5)
  44.         self.opt_network_timeout.setObjectName(_fromUtf8('opt_network_timeout'))
  45.         self.gridLayout_2.addWidget(self.opt_network_timeout, 1, 1, 1, 1)
  46.         self.opt_worker_process_priority = QtGui.QComboBox(Form)
  47.         self.opt_worker_process_priority.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToMinimumContentsLengthWithIcon)
  48.         self.opt_worker_process_priority.setMinimumContentsLength(20)
  49.         self.opt_worker_process_priority.setObjectName(_fromUtf8('opt_worker_process_priority'))
  50.         self.opt_worker_process_priority.addItem(_fromUtf8(''))
  51.         self.opt_worker_process_priority.addItem(_fromUtf8(''))
  52.         self.opt_worker_process_priority.addItem(_fromUtf8(''))
  53.         self.gridLayout_2.addWidget(self.opt_worker_process_priority, 2, 1, 1, 1)
  54.         self.priority_label = QtGui.QLabel(Form)
  55.         self.priority_label.setObjectName(_fromUtf8('priority_label'))
  56.         self.gridLayout_2.addWidget(self.priority_label, 2, 0, 1, 1)
  57.         self.label_23 = QtGui.QLabel(Form)
  58.         self.label_23.setObjectName(_fromUtf8('label_23'))
  59.         self.gridLayout_2.addWidget(self.label_23, 0, 0, 1, 1)
  60.         self.opt_output_format = QtGui.QComboBox(Form)
  61.         self.opt_output_format.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToMinimumContentsLengthWithIcon)
  62.         self.opt_output_format.setMinimumContentsLength(10)
  63.         self.opt_output_format.setObjectName(_fromUtf8('opt_output_format'))
  64.         self.gridLayout_2.addWidget(self.opt_output_format, 0, 1, 1, 1)
  65.         self.label_170 = QtGui.QLabel(Form)
  66.         self.label_170.setObjectName(_fromUtf8('label_170'))
  67.         self.gridLayout_2.addWidget(self.label_170, 3, 0, 1, 1)
  68.         self.opt_gui_restriction = QtGui.QComboBox(Form)
  69.         self.opt_gui_restriction.setMaximumSize(QtCore.QSize(250, 16777215))
  70.         self.opt_gui_restriction.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToMinimumContentsLengthWithIcon)
  71.         self.opt_gui_restriction.setMinimumContentsLength(15)
  72.         self.opt_gui_restriction.setObjectName(_fromUtf8('opt_gui_restriction'))
  73.         self.gridLayout_2.addWidget(self.opt_gui_restriction, 3, 1, 1, 1)
  74.         self.opt_new_book_tags = QtGui.QLineEdit(Form)
  75.         self.opt_new_book_tags.setObjectName(_fromUtf8('opt_new_book_tags'))
  76.         self.gridLayout_2.addWidget(self.opt_new_book_tags, 4, 1, 1, 1)
  77.         self.label_230 = QtGui.QLabel(Form)
  78.         self.label_230.setObjectName(_fromUtf8('label_230'))
  79.         self.gridLayout_2.addWidget(self.label_230, 4, 0, 1, 1)
  80.         self.gridLayout.addLayout(self.gridLayout_2, 5, 0, 1, 2)
  81.         self.reset_confirmation_button = QtGui.QPushButton(Form)
  82.         self.reset_confirmation_button.setObjectName(_fromUtf8('reset_confirmation_button'))
  83.         self.gridLayout.addWidget(self.reset_confirmation_button, 6, 0, 1, 2)
  84.         self.groupBox_5 = QtGui.QGroupBox(Form)
  85.         self.groupBox_5.setObjectName(_fromUtf8('groupBox_5'))
  86.         self.verticalLayout_11 = QtGui.QVBoxLayout(self.groupBox_5)
  87.         self.verticalLayout_11.setObjectName(_fromUtf8('verticalLayout_11'))
  88.         self.horizontalLayout_10 = QtGui.QHBoxLayout()
  89.         self.horizontalLayout_10.setObjectName(_fromUtf8('horizontalLayout_10'))
  90.         self.opt_input_order = QtGui.QListWidget(self.groupBox_5)
  91.         self.opt_input_order.setAlternatingRowColors(True)
  92.         self.opt_input_order.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
  93.         self.opt_input_order.setObjectName(_fromUtf8('opt_input_order'))
  94.         self.horizontalLayout_10.addWidget(self.opt_input_order)
  95.         self.verticalLayout_10 = QtGui.QVBoxLayout()
  96.         self.verticalLayout_10.setObjectName(_fromUtf8('verticalLayout_10'))
  97.         self.input_up_button = QtGui.QToolButton(self.groupBox_5)
  98.         icon = QtGui.QIcon()
  99.         icon.addPixmap(QtGui.QPixmap(_fromUtf8(I('arrow-up.png'))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  100.         self.input_up_button.setIcon(icon)
  101.         self.input_up_button.setObjectName(_fromUtf8('input_up_button'))
  102.         self.verticalLayout_10.addWidget(self.input_up_button)
  103.         spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  104.         self.verticalLayout_10.addItem(spacerItem)
  105.         self.input_down_button = QtGui.QToolButton(self.groupBox_5)
  106.         icon1 = QtGui.QIcon()
  107.         icon1.addPixmap(QtGui.QPixmap(_fromUtf8(I('arrow-down.png'))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  108.         self.input_down_button.setIcon(icon1)
  109.         self.input_down_button.setObjectName(_fromUtf8('input_down_button'))
  110.         self.verticalLayout_10.addWidget(self.input_down_button)
  111.         self.horizontalLayout_10.addLayout(self.verticalLayout_10)
  112.         self.verticalLayout_11.addLayout(self.horizontalLayout_10)
  113.         self.gridLayout.addWidget(self.groupBox_5, 7, 0, 1, 1)
  114.         self.groupBox_3 = QtGui.QGroupBox(Form)
  115.         self.groupBox_3.setObjectName(_fromUtf8('groupBox_3'))
  116.         self.gridLayout_4 = QtGui.QGridLayout(self.groupBox_3)
  117.         self.gridLayout_4.setObjectName(_fromUtf8('gridLayout_4'))
  118.         self.opt_internally_viewed_formats = QtGui.QListWidget(self.groupBox_3)
  119.         self.opt_internally_viewed_formats.setAlternatingRowColors(True)
  120.         self.opt_internally_viewed_formats.setSelectionMode(QtGui.QAbstractItemView.NoSelection)
  121.         self.opt_internally_viewed_formats.setObjectName(_fromUtf8('opt_internally_viewed_formats'))
  122.         self.gridLayout_4.addWidget(self.opt_internally_viewed_formats, 0, 0, 1, 1)
  123.         self.gridLayout.addWidget(self.groupBox_3, 7, 1, 1, 1)
  124.         self.label_2.setBuddy(self.opt_network_timeout)
  125.         self.priority_label.setBuddy(self.opt_worker_process_priority)
  126.         self.label_23.setBuddy(self.opt_output_format)
  127.         self.label_170.setBuddy(self.opt_gui_restriction)
  128.         self.retranslateUi(Form)
  129.         QtCore.QMetaObject.connectSlotsByName(Form)
  130.  
  131.     
  132.     def retranslateUi(self, Form):
  133.         Form.setWindowTitle(_('Form'))
  134.         self.opt_overwrite_author_title_metadata.setText(_('&Overwrite author and title by default when fetching metadata'))
  135.         self.opt_get_social_metadata.setText(_('Download &social metadata (tags/ratings/etc.) by default'))
  136.         self.opt_new_version_notification.setText(_('Show notification when &new version is available'))
  137.         self.opt_upload_news_to_device.setText(_('Automatically send downloaded &news to ebook reader'))
  138.         self.opt_delete_news_from_library_on_upload.setText(_('&Delete news from library when it is automatically sent to reader'))
  139.         self.label_2.setText(_('Default network &timeout:'))
  140.         self.opt_network_timeout.setToolTip(_('Set the default timeout for network fetches (i.e. anytime we go out to the internet to get information)'))
  141.         self.opt_network_timeout.setSuffix(_(' seconds'))
  142.         self.opt_worker_process_priority.setItemText(0, _('Normal'))
  143.         self.opt_worker_process_priority.setItemText(1, _('High'))
  144.         self.opt_worker_process_priority.setItemText(2, _('Low'))
  145.         self.priority_label.setText(_('Job &priority:'))
  146.         self.label_23.setText(_('Preferred &output format:'))
  147.         self.label_170.setText(_('Restriction to apply when the current library is opened:'))
  148.         self.opt_gui_restriction.setToolTip(_('Apply this restriction on calibre startup if the current library is being used. Also applied when switching to this library. Note that this setting is per library. '))
  149.         self.opt_new_book_tags.setToolTip(_('A comma-separated list of tags that will be applied to books added to the library'))
  150.         self.label_230.setText(_('Tags to apply when adding a book:'))
  151.         self.reset_confirmation_button.setText(_('Reset all disabled &confirmation dialogs'))
  152.         self.groupBox_5.setTitle(_('Preferred &input format order:'))
  153.         self.input_up_button.setText(_('...'))
  154.         self.input_down_button.setText(_('...'))
  155.         self.groupBox_3.setTitle(_('Use internal &viewer for:'))
  156.  
  157.  
  158.