Logo Search packages:      
Sourcecode: calibre version File versions  Download package

scheduler_ui.py

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '/home/kovid/work/calibre/src/calibre/gui2/dialogs/scheduler.ui'
#
# Created: Thu Oct 15 22:27:30 2009
#      by: PyQt4 UI code generator 4.5.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(767, 575)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(I("scheduler.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        Dialog.setWindowIcon(icon)
        self.gridLayout = QtGui.QGridLayout(Dialog)
        self.gridLayout.setObjectName("gridLayout")
        self.recipe_box = QtGui.QGroupBox(Dialog)
        self.recipe_box.setObjectName("recipe_box")
        self.verticalLayout = QtGui.QVBoxLayout(self.recipe_box)
        self.verticalLayout.setObjectName("verticalLayout")
        self.recipes = QtGui.QTreeView(self.recipe_box)
        self.recipes.setProperty("showDropIndicator", QtCore.QVariant(False))
        self.recipes.setIconSize(QtCore.QSize(16, 16))
        self.recipes.setAnimated(True)
        self.recipes.setHeaderHidden(True)
        self.recipes.setObjectName("recipes")
        self.verticalLayout.addWidget(self.recipes)
        self.download_all_button = QtGui.QPushButton(self.recipe_box)
        self.download_all_button.setObjectName("download_all_button")
        self.verticalLayout.addWidget(self.download_all_button)
        self.rnumber = QtGui.QLabel(self.recipe_box)
        self.rnumber.setObjectName("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("verticalLayout_3")
        self.scrollArea = QtGui.QScrollArea(Dialog)
        self.scrollArea.setFrameShape(QtGui.QFrame.NoFrame)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents = QtGui.QWidget(self.scrollArea)
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 375, 500))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.scrollAreaWidgetContents)
        self.verticalLayout_5.setMargin(0)
        self.verticalLayout_5.setObjectName("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("detail_box")
        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.tab)
        self.verticalLayout_2.setObjectName("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("blurb")
        self.verticalLayout_2.addWidget(self.blurb)
        self.schedule = QtGui.QCheckBox(self.tab)
        self.schedule.setObjectName("schedule")
        self.verticalLayout_2.addWidget(self.schedule)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.daily_button = QtGui.QRadioButton(self.tab)
        self.daily_button.setObjectName("daily_button")
        self.horizontalLayout_2.addWidget(self.daily_button)
        self.day = QtGui.QComboBox(self.tab)
        self.day.setObjectName("day")
        self.day.addItem(QtCore.QString())
        self.day.addItem(QtCore.QString())
        self.day.addItem(QtCore.QString())
        self.day.addItem(QtCore.QString())
        self.day.addItem(QtCore.QString())
        self.day.addItem(QtCore.QString())
        self.day.addItem(QtCore.QString())
        self.day.addItem(QtCore.QString())
        self.horizontalLayout_2.addWidget(self.day)
        self.label_4 = QtGui.QLabel(self.tab)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_2.addWidget(self.label_4)
        self.time = QtGui.QTimeEdit(self.tab)
        self.time.setObjectName("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("horizontalLayout")
        self.interval_button = QtGui.QRadioButton(self.tab)
        self.interval_button.setObjectName("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.0)
        self.interval.setMaximum(365.1)
        self.interval.setSingleStep(1.0)
        self.interval.setProperty("value", QtCore.QVariant(1.0))
        self.interval.setObjectName("interval")
        self.horizontalLayout.addWidget(self.interval)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.last_downloaded = QtGui.QLabel(self.tab)
        self.last_downloaded.setObjectName("last_downloaded")
        self.verticalLayout_2.addWidget(self.last_downloaded)
        self.account = QtGui.QGroupBox(self.tab)
        self.account.setObjectName("account")
        self.gridLayout_2 = QtGui.QGridLayout(self.account)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.username = QtGui.QLineEdit(self.account)
        self.username.setObjectName("username")
        self.gridLayout_2.addWidget(self.username, 0, 1, 1, 1)
        self.label_2 = QtGui.QLabel(self.account)
        self.label_2.setObjectName("label_2")
        self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 1)
        self.label_3 = QtGui.QLabel(self.account)
        self.label_3.setObjectName("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("password")
        self.gridLayout_2.addWidget(self.password, 1, 1, 1, 1)
        self.show_password = QtGui.QCheckBox(self.account)
        self.show_password.setObjectName("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("label")
        self.verticalLayout_2.addWidget(self.label)
        self.detail_box.addTab(self.tab, "")
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.tab_2)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.add_title_tag = QtGui.QCheckBox(self.tab_2)
        self.add_title_tag.setObjectName("add_title_tag")
        self.verticalLayout_4.addWidget(self.add_title_tag)
        self.label_5 = QtGui.QLabel(self.tab_2)
        self.label_5.setObjectName("label_5")
        self.verticalLayout_4.addWidget(self.label_5)
        self.custom_tags = QtGui.QLineEdit(self.tab_2)
        self.custom_tags.setObjectName("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, "")
        self.verticalLayout_5.addWidget(self.detail_box)
        self.download_button = QtGui.QPushButton(self.scrollAreaWidgetContents)
        self.download_button.setObjectName("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.Ok)
        self.buttonBox.setObjectName("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("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("accepted()"), Dialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), Dialog.reject)
        QtCore.QObject.connect(self.daily_button, QtCore.SIGNAL("toggled(bool)"), self.day.setEnabled)
        QtCore.QObject.connect(self.daily_button, QtCore.SIGNAL("toggled(bool)"), self.time.setEnabled)
        QtCore.QObject.connect(self.interval_button, QtCore.SIGNAL("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 "))



Generated by  Doxygen 1.6.0   Back to index