home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1291 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  9.1 KB  |  228 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_Dialog(object):
  14.     
  15.     def setupUi(self, Dialog):
  16.         Dialog.setObjectName(_fromUtf8('Dialog'))
  17.         Dialog.resize(767, 575)
  18.         icon = QtGui.QIcon()
  19.         icon.addPixmap(QtGui.QPixmap(_fromUtf8(I('scheduler.png'))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  20.         Dialog.setWindowIcon(icon)
  21.         self.gridLayout = QtGui.QGridLayout(Dialog)
  22.         self.gridLayout.setObjectName(_fromUtf8('gridLayout'))
  23.         self.recipe_box = QtGui.QGroupBox(Dialog)
  24.         self.recipe_box.setObjectName(_fromUtf8('recipe_box'))
  25.         self.verticalLayout = QtGui.QVBoxLayout(self.recipe_box)
  26.         self.verticalLayout.setObjectName(_fromUtf8('verticalLayout'))
  27.         self.recipes = QtGui.QTreeView(self.recipe_box)
  28.         self.recipes.setProperty(_fromUtf8('showDropIndicator'), False)
  29.         self.recipes.setIconSize(QtCore.QSize(16, 16))
  30.         self.recipes.setAnimated(True)
  31.         self.recipes.setHeaderHidden(True)
  32.         self.recipes.setObjectName(_fromUtf8('recipes'))
  33.         self.verticalLayout.addWidget(self.recipes)
  34.         self.download_all_button = QtGui.QPushButton(self.recipe_box)
  35.         self.download_all_button.setObjectName(_fromUtf8('download_all_button'))
  36.         self.verticalLayout.addWidget(self.download_all_button)
  37.         self.rnumber = QtGui.QLabel(self.recipe_box)
  38.         self.rnumber.setText(_fromUtf8(''))
  39.         self.rnumber.setObjectName(_fromUtf8('rnumber'))
  40.         self.verticalLayout.addWidget(self.rnumber)
  41.         self.gridLayout.addWidget(self.recipe_box, 0, 0, 3, 1)
  42.         self.verticalLayout_3 = QtGui.QVBoxLayout()
  43.         self.verticalLayout_3.setObjectName(_fromUtf8('verticalLayout_3'))
  44.         self.scrollArea = QtGui.QScrollArea(Dialog)
  45.         self.scrollArea.setFrameShape(QtGui.QFrame.NoFrame)
  46.         self.scrollArea.setWidgetResizable(True)
  47.         self.scrollArea.setObjectName(_fromUtf8('scrollArea'))
  48.         self.scrollAreaWidgetContents = QtGui.QWidget(self.scrollArea)
  49.         self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 375, 502))
  50.         self.scrollAreaWidgetContents.setObjectName(_fromUtf8('scrollAreaWidgetContents'))
  51.         self.verticalLayout_5 = QtGui.QVBoxLayout(self.scrollAreaWidgetContents)
  52.         self.verticalLayout_5.setMargin(0)
  53.         self.verticalLayout_5.setObjectName(_fromUtf8('verticalLayout_5'))
  54.         self.detail_box = QtGui.QTabWidget(self.scrollAreaWidgetContents)
  55.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
  56.         sizePolicy.setHorizontalStretch(0)
  57.         sizePolicy.setVerticalStretch(100)
  58.         sizePolicy.setHeightForWidth(self.detail_box.sizePolicy().hasHeightForWidth())
  59.         self.detail_box.setSizePolicy(sizePolicy)
  60.         self.detail_box.setObjectName(_fromUtf8('detail_box'))
  61.         self.tab = QtGui.QWidget()
  62.         self.tab.setObjectName(_fromUtf8('tab'))
  63.         self.verticalLayout_2 = QtGui.QVBoxLayout(self.tab)
  64.         self.verticalLayout_2.setObjectName(_fromUtf8('verticalLayout_2'))
  65.         self.blurb = QtGui.QLabel(self.tab)
  66.         self.blurb.setTextFormat(QtCore.Qt.RichText)
  67.         self.blurb.setWordWrap(True)
  68.         self.blurb.setOpenExternalLinks(True)
  69.         self.blurb.setObjectName(_fromUtf8('blurb'))
  70.         self.verticalLayout_2.addWidget(self.blurb)
  71.         self.schedule = QtGui.QCheckBox(self.tab)
  72.         self.schedule.setObjectName(_fromUtf8('schedule'))
  73.         self.verticalLayout_2.addWidget(self.schedule)
  74.         self.horizontalLayout_2 = QtGui.QHBoxLayout()
  75.         self.horizontalLayout_2.setObjectName(_fromUtf8('horizontalLayout_2'))
  76.         self.daily_button = QtGui.QRadioButton(self.tab)
  77.         self.daily_button.setObjectName(_fromUtf8('daily_button'))
  78.         self.horizontalLayout_2.addWidget(self.daily_button)
  79.         self.day = QtGui.QComboBox(self.tab)
  80.         self.day.setObjectName(_fromUtf8('day'))
  81.         self.day.addItem(_fromUtf8(''))
  82.         self.day.addItem(_fromUtf8(''))
  83.         self.day.addItem(_fromUtf8(''))
  84.         self.day.addItem(_fromUtf8(''))
  85.         self.day.addItem(_fromUtf8(''))
  86.         self.day.addItem(_fromUtf8(''))
  87.         self.day.addItem(_fromUtf8(''))
  88.         self.day.addItem(_fromUtf8(''))
  89.         self.horizontalLayout_2.addWidget(self.day)
  90.         self.label_4 = QtGui.QLabel(self.tab)
  91.         self.label_4.setObjectName(_fromUtf8('label_4'))
  92.         self.horizontalLayout_2.addWidget(self.label_4)
  93.         self.time = QtGui.QTimeEdit(self.tab)
  94.         self.time.setObjectName(_fromUtf8('time'))
  95.         self.horizontalLayout_2.addWidget(self.time)
  96.         spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
  97.         self.horizontalLayout_2.addItem(spacerItem)
  98.         self.verticalLayout_2.addLayout(self.horizontalLayout_2)
  99.         self.horizontalLayout = QtGui.QHBoxLayout()
  100.         self.horizontalLayout.setObjectName(_fromUtf8('horizontalLayout'))
  101.         self.interval_button = QtGui.QRadioButton(self.tab)
  102.         self.interval_button.setObjectName(_fromUtf8('interval_button'))
  103.         self.horizontalLayout.addWidget(self.interval_button)
  104.         self.interval = QtGui.QDoubleSpinBox(self.tab)
  105.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
  106.         sizePolicy.setHorizontalStretch(0)
  107.         sizePolicy.setVerticalStretch(0)
  108.         sizePolicy.setHeightForWidth(self.interval.sizePolicy().hasHeightForWidth())
  109.         self.interval.setSizePolicy(sizePolicy)
  110.         self.interval.setDecimals(1)
  111.         self.interval.setMinimum(0)
  112.         self.interval.setMaximum(365.1)
  113.         self.interval.setSingleStep(1)
  114.         self.interval.setProperty(_fromUtf8('value'), 1)
  115.         self.interval.setObjectName(_fromUtf8('interval'))
  116.         self.horizontalLayout.addWidget(self.interval)
  117.         self.verticalLayout_2.addLayout(self.horizontalLayout)
  118.         self.last_downloaded = QtGui.QLabel(self.tab)
  119.         self.last_downloaded.setText(_fromUtf8(''))
  120.         self.last_downloaded.setObjectName(_fromUtf8('last_downloaded'))
  121.         self.verticalLayout_2.addWidget(self.last_downloaded)
  122.         self.account = QtGui.QGroupBox(self.tab)
  123.         self.account.setObjectName(_fromUtf8('account'))
  124.         self.gridLayout_2 = QtGui.QGridLayout(self.account)
  125.         self.gridLayout_2.setObjectName(_fromUtf8('gridLayout_2'))
  126.         self.username = QtGui.QLineEdit(self.account)
  127.         self.username.setObjectName(_fromUtf8('username'))
  128.         self.gridLayout_2.addWidget(self.username, 0, 1, 1, 1)
  129.         self.label_2 = QtGui.QLabel(self.account)
  130.         self.label_2.setObjectName(_fromUtf8('label_2'))
  131.         self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 1)
  132.         self.label_3 = QtGui.QLabel(self.account)
  133.         self.label_3.setObjectName(_fromUtf8('label_3'))
  134.         self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1)
  135.         self.password = QtGui.QLineEdit(self.account)
  136.         self.password.setEchoMode(QtGui.QLineEdit.Password)
  137.         self.password.setObjectName(_fromUtf8('password'))
  138.         self.gridLayout_2.addWidget(self.password, 1, 1, 1, 1)
  139.         self.show_password = QtGui.QCheckBox(self.account)
  140.         self.show_password.setObjectName(_fromUtf8('show_password'))
  141.         self.gridLayout_2.addWidget(self.show_password, 2, 0, 1, 1)
  142.         self.verticalLayout_2.addWidget(self.account)
  143.         self.label = QtGui.QLabel(self.tab)
  144.         self.label.setWordWrap(True)
  145.         self.label.setObjectName(_fromUtf8('label'))
  146.         self.verticalLayout_2.addWidget(self.label)
  147.         self.detail_box.addTab(self.tab, _fromUtf8(''))
  148.         self.tab_2 = QtGui.QWidget()
  149.         self.tab_2.setObjectName(_fromUtf8('tab_2'))
  150.         self.verticalLayout_4 = QtGui.QVBoxLayout(self.tab_2)
  151.         self.verticalLayout_4.setObjectName(_fromUtf8('verticalLayout_4'))
  152.         self.add_title_tag = QtGui.QCheckBox(self.tab_2)
  153.         self.add_title_tag.setObjectName(_fromUtf8('add_title_tag'))
  154.         self.verticalLayout_4.addWidget(self.add_title_tag)
  155.         self.label_5 = QtGui.QLabel(self.tab_2)
  156.         self.label_5.setObjectName(_fromUtf8('label_5'))
  157.         self.verticalLayout_4.addWidget(self.label_5)
  158.         self.custom_tags = QtGui.QLineEdit(self.tab_2)
  159.         self.custom_tags.setObjectName(_fromUtf8('custom_tags'))
  160.         self.verticalLayout_4.addWidget(self.custom_tags)
  161.         spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  162.         self.verticalLayout_4.addItem(spacerItem1)
  163.         self.detail_box.addTab(self.tab_2, _fromUtf8(''))
  164.         self.verticalLayout_5.addWidget(self.detail_box)
  165.         self.download_button = QtGui.QPushButton(self.scrollAreaWidgetContents)
  166.         self.download_button.setObjectName(_fromUtf8('download_button'))
  167.         self.verticalLayout_5.addWidget(self.download_button)
  168.         self.scrollArea.setWidget(self.scrollAreaWidgetContents)
  169.         self.verticalLayout_3.addWidget(self.scrollArea)
  170.         self.gridLayout.addLayout(self.verticalLayout_3, 0, 1, 1, 1)
  171.         self.buttonBox = QtGui.QDialogButtonBox(Dialog)
  172.         self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
  173.         self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Save)
  174.         self.buttonBox.setObjectName(_fromUtf8('buttonBox'))
  175.         self.gridLayout.addWidget(self.buttonBox, 2, 1, 1, 1)
  176.         self.old_news = QtGui.QSpinBox(Dialog)
  177.         self.old_news.setMaximum(1000)
  178.         self.old_news.setObjectName(_fromUtf8('old_news'))
  179.         self.gridLayout.addWidget(self.old_news, 1, 1, 1, 1)
  180.         self.label_2.setBuddy(self.username)
  181.         self.label_3.setBuddy(self.password)
  182.         self.label_5.setBuddy(self.custom_tags)
  183.         self.retranslateUi(Dialog)
  184.         self.detail_box.setCurrentIndex(0)
  185.         QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8('accepted()')), Dialog.accept)
  186.         QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8('rejected()')), Dialog.reject)
  187.         QtCore.QObject.connect(self.daily_button, QtCore.SIGNAL(_fromUtf8('toggled(bool)')), self.day.setEnabled)
  188.         QtCore.QObject.connect(self.daily_button, QtCore.SIGNAL(_fromUtf8('toggled(bool)')), self.time.setEnabled)
  189.         QtCore.QObject.connect(self.interval_button, QtCore.SIGNAL(_fromUtf8('toggled(bool)')), self.interval.setEnabled)
  190.         QtCore.QMetaObject.connectSlotsByName(Dialog)
  191.  
  192.     
  193.     def retranslateUi(self, Dialog):
  194.         Dialog.setWindowTitle(_('Schedule news download'))
  195.         self.recipe_box.setTitle(_('Recipes'))
  196.         self.download_all_button.setToolTip(_('Download all scheduled recipes at once'))
  197.         self.download_all_button.setText(_('Download &all scheduled'))
  198.         self.blurb.setText(_('blurb'))
  199.         self.schedule.setText(_('&Schedule for download:'))
  200.         self.daily_button.setText(_('Every '))
  201.         self.day.setItemText(0, _('day'))
  202.         self.day.setItemText(1, _('Monday'))
  203.         self.day.setItemText(2, _('Tuesday'))
  204.         self.day.setItemText(3, _('Wednesday'))
  205.         self.day.setItemText(4, _('Thursday'))
  206.         self.day.setItemText(5, _('Friday'))
  207.         self.day.setItemText(6, _('Saturday'))
  208.         self.day.setItemText(7, _('Sunday'))
  209.         self.label_4.setText(_('at'))
  210.         self.interval_button.setText(_('Every '))
  211.         self.interval.setToolTip(_('Interval at which to download this recipe. A value of zero means that the recipe will be downloaded every hour.'))
  212.         self.interval.setSuffix(_(' days'))
  213.         self.account.setTitle(_('&Account'))
  214.         self.label_2.setText(_('&Username:'))
  215.         self.label_3.setText(_('&Password:'))
  216.         self.show_password.setText(_('&Show password'))
  217.         self.label.setText(_('For the scheduling to work, you must leave calibre running.'))
  218.         self.detail_box.setTabText(self.detail_box.indexOf(self.tab), _('&Schedule'))
  219.         self.add_title_tag.setText(_('Add &title as tag'))
  220.         self.label_5.setText(_('&Extra  tags:'))
  221.         self.detail_box.setTabText(self.detail_box.indexOf(self.tab_2), _('&Advanced'))
  222.         self.download_button.setText(_('&Download now'))
  223.         self.old_news.setToolTip(_('Delete downloaded news older than the specified number of days. Set to zero to disable.'))
  224.         self.old_news.setSuffix(_(' days'))
  225.         self.old_news.setPrefix(_('Delete downloaded news older than '))
  226.  
  227.  
  228.