home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- from PyQt4 import QtCore, QtGui
-
- try:
- _fromUtf8 = QtCore.QString.fromUtf8
- except AttributeError:
-
- _fromUtf8 = lambda s: s
-
-
- class Ui_Dialog(object):
-
- def setupUi(self, Dialog):
- Dialog.setObjectName(_fromUtf8('Dialog'))
- Dialog.resize(767, 575)
- icon = QtGui.QIcon()
- icon.addPixmap(QtGui.QPixmap(_fromUtf8(I('scheduler.png'))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
- Dialog.setWindowIcon(icon)
- self.gridLayout = QtGui.QGridLayout(Dialog)
- self.gridLayout.setObjectName(_fromUtf8('gridLayout'))
- self.recipe_box = QtGui.QGroupBox(Dialog)
- self.recipe_box.setObjectName(_fromUtf8('recipe_box'))
- self.verticalLayout = QtGui.QVBoxLayout(self.recipe_box)
- self.verticalLayout.setObjectName(_fromUtf8('verticalLayout'))
- self.recipes = QtGui.QTreeView(self.recipe_box)
- self.recipes.setProperty(_fromUtf8('showDropIndicator'), False)
- self.recipes.setIconSize(QtCore.QSize(16, 16))
- self.recipes.setAnimated(True)
- self.recipes.setHeaderHidden(True)
- self.recipes.setObjectName(_fromUtf8('recipes'))
- self.verticalLayout.addWidget(self.recipes)
- self.download_all_button = QtGui.QPushButton(self.recipe_box)
- self.download_all_button.setObjectName(_fromUtf8('download_all_button'))
- self.verticalLayout.addWidget(self.download_all_button)
- self.rnumber = QtGui.QLabel(self.recipe_box)
- self.rnumber.setText(_fromUtf8(''))
- self.rnumber.setObjectName(_fromUtf8('rnumber'))
- self.verticalLayout.addWidget(self.rnumber)
- self.gridLayout.addWidget(self.recipe_box, 0, 0, 3, 1)
- self.verticalLayout_3 = QtGui.QVBoxLayout()
- self.verticalLayout_3.setObjectName(_fromUtf8('verticalLayout_3'))
- self.scrollArea = QtGui.QScrollArea(Dialog)
- self.scrollArea.setFrameShape(QtGui.QFrame.NoFrame)
- self.scrollArea.setWidgetResizable(True)
- self.scrollArea.setObjectName(_fromUtf8('scrollArea'))
- self.scrollAreaWidgetContents = QtGui.QWidget(self.scrollArea)
- self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 375, 502))
- self.scrollAreaWidgetContents.setObjectName(_fromUtf8('scrollAreaWidgetContents'))
- self.verticalLayout_5 = QtGui.QVBoxLayout(self.scrollAreaWidgetContents)
- self.verticalLayout_5.setMargin(0)
- self.verticalLayout_5.setObjectName(_fromUtf8('verticalLayout_5'))
- self.detail_box = QtGui.QTabWidget(self.scrollAreaWidgetContents)
- sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(100)
- sizePolicy.setHeightForWidth(self.detail_box.sizePolicy().hasHeightForWidth())
- self.detail_box.setSizePolicy(sizePolicy)
- self.detail_box.setObjectName(_fromUtf8('detail_box'))
- self.tab = QtGui.QWidget()
- self.tab.setObjectName(_fromUtf8('tab'))
- self.verticalLayout_2 = QtGui.QVBoxLayout(self.tab)
- self.verticalLayout_2.setObjectName(_fromUtf8('verticalLayout_2'))
- self.blurb = QtGui.QLabel(self.tab)
- self.blurb.setTextFormat(QtCore.Qt.RichText)
- self.blurb.setWordWrap(True)
- self.blurb.setOpenExternalLinks(True)
- self.blurb.setObjectName(_fromUtf8('blurb'))
- self.verticalLayout_2.addWidget(self.blurb)
- self.schedule = QtGui.QCheckBox(self.tab)
- self.schedule.setObjectName(_fromUtf8('schedule'))
- self.verticalLayout_2.addWidget(self.schedule)
- self.horizontalLayout_2 = QtGui.QHBoxLayout()
- self.horizontalLayout_2.setObjectName(_fromUtf8('horizontalLayout_2'))
- self.daily_button = QtGui.QRadioButton(self.tab)
- self.daily_button.setObjectName(_fromUtf8('daily_button'))
- self.horizontalLayout_2.addWidget(self.daily_button)
- self.day = QtGui.QComboBox(self.tab)
- self.day.setObjectName(_fromUtf8('day'))
- self.day.addItem(_fromUtf8(''))
- self.day.addItem(_fromUtf8(''))
- self.day.addItem(_fromUtf8(''))
- self.day.addItem(_fromUtf8(''))
- self.day.addItem(_fromUtf8(''))
- self.day.addItem(_fromUtf8(''))
- self.day.addItem(_fromUtf8(''))
- self.day.addItem(_fromUtf8(''))
- self.horizontalLayout_2.addWidget(self.day)
- self.label_4 = QtGui.QLabel(self.tab)
- self.label_4.setObjectName(_fromUtf8('label_4'))
- self.horizontalLayout_2.addWidget(self.label_4)
- self.time = QtGui.QTimeEdit(self.tab)
- self.time.setObjectName(_fromUtf8('time'))
- self.horizontalLayout_2.addWidget(self.time)
- spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
- self.horizontalLayout_2.addItem(spacerItem)
- self.verticalLayout_2.addLayout(self.horizontalLayout_2)
- self.horizontalLayout = QtGui.QHBoxLayout()
- self.horizontalLayout.setObjectName(_fromUtf8('horizontalLayout'))
- self.interval_button = QtGui.QRadioButton(self.tab)
- self.interval_button.setObjectName(_fromUtf8('interval_button'))
- self.horizontalLayout.addWidget(self.interval_button)
- self.interval = QtGui.QDoubleSpinBox(self.tab)
- sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
- sizePolicy.setHorizontalStretch(0)
- sizePolicy.setVerticalStretch(0)
- sizePolicy.setHeightForWidth(self.interval.sizePolicy().hasHeightForWidth())
- self.interval.setSizePolicy(sizePolicy)
- self.interval.setDecimals(1)
- self.interval.setMinimum(0)
- self.interval.setMaximum(365.1)
- self.interval.setSingleStep(1)
- self.interval.setProperty(_fromUtf8('value'), 1)
- self.interval.setObjectName(_fromUtf8('interval'))
- self.horizontalLayout.addWidget(self.interval)
- self.verticalLayout_2.addLayout(self.horizontalLayout)
- self.last_downloaded = QtGui.QLabel(self.tab)
- self.last_downloaded.setText(_fromUtf8(''))
- self.last_downloaded.setObjectName(_fromUtf8('last_downloaded'))
- self.verticalLayout_2.addWidget(self.last_downloaded)
- self.account = QtGui.QGroupBox(self.tab)
- self.account.setObjectName(_fromUtf8('account'))
- self.gridLayout_2 = QtGui.QGridLayout(self.account)
- self.gridLayout_2.setObjectName(_fromUtf8('gridLayout_2'))
- self.username = QtGui.QLineEdit(self.account)
- self.username.setObjectName(_fromUtf8('username'))
- self.gridLayout_2.addWidget(self.username, 0, 1, 1, 1)
- self.label_2 = QtGui.QLabel(self.account)
- self.label_2.setObjectName(_fromUtf8('label_2'))
- self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 1)
- self.label_3 = QtGui.QLabel(self.account)
- self.label_3.setObjectName(_fromUtf8('label_3'))
- self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1)
- self.password = QtGui.QLineEdit(self.account)
- self.password.setEchoMode(QtGui.QLineEdit.Password)
- self.password.setObjectName(_fromUtf8('password'))
- self.gridLayout_2.addWidget(self.password, 1, 1, 1, 1)
- self.show_password = QtGui.QCheckBox(self.account)
- self.show_password.setObjectName(_fromUtf8('show_password'))
- self.gridLayout_2.addWidget(self.show_password, 2, 0, 1, 1)
- self.verticalLayout_2.addWidget(self.account)
- self.label = QtGui.QLabel(self.tab)
- self.label.setWordWrap(True)
- self.label.setObjectName(_fromUtf8('label'))
- self.verticalLayout_2.addWidget(self.label)
- self.detail_box.addTab(self.tab, _fromUtf8(''))
- self.tab_2 = QtGui.QWidget()
- self.tab_2.setObjectName(_fromUtf8('tab_2'))
- self.verticalLayout_4 = QtGui.QVBoxLayout(self.tab_2)
- self.verticalLayout_4.setObjectName(_fromUtf8('verticalLayout_4'))
- self.add_title_tag = QtGui.QCheckBox(self.tab_2)
- self.add_title_tag.setObjectName(_fromUtf8('add_title_tag'))
- self.verticalLayout_4.addWidget(self.add_title_tag)
- self.label_5 = QtGui.QLabel(self.tab_2)
- self.label_5.setObjectName(_fromUtf8('label_5'))
- self.verticalLayout_4.addWidget(self.label_5)
- self.custom_tags = QtGui.QLineEdit(self.tab_2)
- self.custom_tags.setObjectName(_fromUtf8('custom_tags'))
- self.verticalLayout_4.addWidget(self.custom_tags)
- spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
- self.verticalLayout_4.addItem(spacerItem1)
- self.detail_box.addTab(self.tab_2, _fromUtf8(''))
- self.verticalLayout_5.addWidget(self.detail_box)
- self.download_button = QtGui.QPushButton(self.scrollAreaWidgetContents)
- self.download_button.setObjectName(_fromUtf8('download_button'))
- self.verticalLayout_5.addWidget(self.download_button)
- self.scrollArea.setWidget(self.scrollAreaWidgetContents)
- self.verticalLayout_3.addWidget(self.scrollArea)
- self.gridLayout.addLayout(self.verticalLayout_3, 0, 1, 1, 1)
- self.buttonBox = QtGui.QDialogButtonBox(Dialog)
- self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
- self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Save)
- self.buttonBox.setObjectName(_fromUtf8('buttonBox'))
- self.gridLayout.addWidget(self.buttonBox, 2, 1, 1, 1)
- self.old_news = QtGui.QSpinBox(Dialog)
- self.old_news.setMaximum(1000)
- self.old_news.setObjectName(_fromUtf8('old_news'))
- self.gridLayout.addWidget(self.old_news, 1, 1, 1, 1)
- self.label_2.setBuddy(self.username)
- self.label_3.setBuddy(self.password)
- self.label_5.setBuddy(self.custom_tags)
- self.retranslateUi(Dialog)
- self.detail_box.setCurrentIndex(0)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8('accepted()')), Dialog.accept)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8('rejected()')), Dialog.reject)
- QtCore.QObject.connect(self.daily_button, QtCore.SIGNAL(_fromUtf8('toggled(bool)')), self.day.setEnabled)
- QtCore.QObject.connect(self.daily_button, QtCore.SIGNAL(_fromUtf8('toggled(bool)')), self.time.setEnabled)
- QtCore.QObject.connect(self.interval_button, QtCore.SIGNAL(_fromUtf8('toggled(bool)')), self.interval.setEnabled)
- QtCore.QMetaObject.connectSlotsByName(Dialog)
-
-
- def retranslateUi(self, Dialog):
- Dialog.setWindowTitle(_('Schedule news download'))
- self.recipe_box.setTitle(_('Recipes'))
- self.download_all_button.setToolTip(_('Download all scheduled recipes at once'))
- self.download_all_button.setText(_('Download &all scheduled'))
- self.blurb.setText(_('blurb'))
- self.schedule.setText(_('&Schedule for download:'))
- self.daily_button.setText(_('Every '))
- self.day.setItemText(0, _('day'))
- self.day.setItemText(1, _('Monday'))
- self.day.setItemText(2, _('Tuesday'))
- self.day.setItemText(3, _('Wednesday'))
- self.day.setItemText(4, _('Thursday'))
- self.day.setItemText(5, _('Friday'))
- self.day.setItemText(6, _('Saturday'))
- self.day.setItemText(7, _('Sunday'))
- self.label_4.setText(_('at'))
- self.interval_button.setText(_('Every '))
- self.interval.setToolTip(_('Interval at which to download this recipe. A value of zero means that the recipe will be downloaded every hour.'))
- self.interval.setSuffix(_(' days'))
- self.account.setTitle(_('&Account'))
- self.label_2.setText(_('&Username:'))
- self.label_3.setText(_('&Password:'))
- self.show_password.setText(_('&Show password'))
- self.label.setText(_('For the scheduling to work, you must leave calibre running.'))
- self.detail_box.setTabText(self.detail_box.indexOf(self.tab), _('&Schedule'))
- self.add_title_tag.setText(_('Add &title as tag'))
- self.label_5.setText(_('&Extra tags:'))
- self.detail_box.setTabText(self.detail_box.indexOf(self.tab_2), _('&Advanced'))
- self.download_button.setText(_('&Download now'))
- self.old_news.setToolTip(_('Delete downloaded news older than the specified number of days. Set to zero to disable.'))
- self.old_news.setSuffix(_(' days'))
- self.old_news.setPrefix(_('Delete downloaded news older than '))
-
-
-