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

behavior_ui.py

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

# Form implementation generated from reading ui file '/home/kovid/work/calibre/src/calibre/gui2/preferences/behavior.ui'
#
# Created: Sat Sep  4 12:53:16 2010
#      by: PyQt4 UI code generator 4.7.5
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s

class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(672, 563)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.opt_overwrite_author_title_metadata = QtGui.QCheckBox(Form)
        self.opt_overwrite_author_title_metadata.setObjectName(_fromUtf8("opt_overwrite_author_title_metadata"))
        self.gridLayout.addWidget(self.opt_overwrite_author_title_metadata, 0, 0, 1, 2)
        self.opt_get_social_metadata = QtGui.QCheckBox(Form)
        self.opt_get_social_metadata.setObjectName(_fromUtf8("opt_get_social_metadata"))
        self.gridLayout.addWidget(self.opt_get_social_metadata, 1, 0, 1, 2)
        self.opt_new_version_notification = QtGui.QCheckBox(Form)
        self.opt_new_version_notification.setObjectName(_fromUtf8("opt_new_version_notification"))
        self.gridLayout.addWidget(self.opt_new_version_notification, 2, 0, 1, 2)
        self.opt_upload_news_to_device = QtGui.QCheckBox(Form)
        self.opt_upload_news_to_device.setObjectName(_fromUtf8("opt_upload_news_to_device"))
        self.gridLayout.addWidget(self.opt_upload_news_to_device, 3, 0, 1, 2)
        self.opt_delete_news_from_library_on_upload = QtGui.QCheckBox(Form)
        self.opt_delete_news_from_library_on_upload.setObjectName(_fromUtf8("opt_delete_news_from_library_on_upload"))
        self.gridLayout.addWidget(self.opt_delete_news_from_library_on_upload, 4, 0, 1, 2)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1)
        self.opt_network_timeout = QtGui.QSpinBox(Form)
        self.opt_network_timeout.setMinimum(2)
        self.opt_network_timeout.setMaximum(120)
        self.opt_network_timeout.setProperty(_fromUtf8("value"), 5)
        self.opt_network_timeout.setObjectName(_fromUtf8("opt_network_timeout"))
        self.gridLayout_2.addWidget(self.opt_network_timeout, 1, 1, 1, 1)
        self.opt_worker_process_priority = QtGui.QComboBox(Form)
        self.opt_worker_process_priority.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToMinimumContentsLengthWithIcon)
        self.opt_worker_process_priority.setMinimumContentsLength(20)
        self.opt_worker_process_priority.setObjectName(_fromUtf8("opt_worker_process_priority"))
        self.opt_worker_process_priority.addItem(_fromUtf8(""))
        self.opt_worker_process_priority.addItem(_fromUtf8(""))
        self.opt_worker_process_priority.addItem(_fromUtf8(""))
        self.gridLayout_2.addWidget(self.opt_worker_process_priority, 2, 1, 1, 1)
        self.priority_label = QtGui.QLabel(Form)
        self.priority_label.setObjectName(_fromUtf8("priority_label"))
        self.gridLayout_2.addWidget(self.priority_label, 2, 0, 1, 1)
        self.label_23 = QtGui.QLabel(Form)
        self.label_23.setObjectName(_fromUtf8("label_23"))
        self.gridLayout_2.addWidget(self.label_23, 0, 0, 1, 1)
        self.opt_output_format = QtGui.QComboBox(Form)
        self.opt_output_format.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToMinimumContentsLengthWithIcon)
        self.opt_output_format.setMinimumContentsLength(10)
        self.opt_output_format.setObjectName(_fromUtf8("opt_output_format"))
        self.gridLayout_2.addWidget(self.opt_output_format, 0, 1, 1, 1)
        self.label_170 = QtGui.QLabel(Form)
        self.label_170.setObjectName(_fromUtf8("label_170"))
        self.gridLayout_2.addWidget(self.label_170, 3, 0, 1, 1)
        self.opt_gui_restriction = QtGui.QComboBox(Form)
        self.opt_gui_restriction.setMaximumSize(QtCore.QSize(250, 16777215))
        self.opt_gui_restriction.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToMinimumContentsLengthWithIcon)
        self.opt_gui_restriction.setMinimumContentsLength(15)
        self.opt_gui_restriction.setObjectName(_fromUtf8("opt_gui_restriction"))
        self.gridLayout_2.addWidget(self.opt_gui_restriction, 3, 1, 1, 1)
        self.opt_new_book_tags = QtGui.QLineEdit(Form)
        self.opt_new_book_tags.setObjectName(_fromUtf8("opt_new_book_tags"))
        self.gridLayout_2.addWidget(self.opt_new_book_tags, 4, 1, 1, 1)
        self.label_230 = QtGui.QLabel(Form)
        self.label_230.setObjectName(_fromUtf8("label_230"))
        self.gridLayout_2.addWidget(self.label_230, 4, 0, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_2, 5, 0, 1, 2)
        self.reset_confirmation_button = QtGui.QPushButton(Form)
        self.reset_confirmation_button.setObjectName(_fromUtf8("reset_confirmation_button"))
        self.gridLayout.addWidget(self.reset_confirmation_button, 6, 0, 1, 2)
        self.groupBox_5 = QtGui.QGroupBox(Form)
        self.groupBox_5.setObjectName(_fromUtf8("groupBox_5"))
        self.verticalLayout_11 = QtGui.QVBoxLayout(self.groupBox_5)
        self.verticalLayout_11.setObjectName(_fromUtf8("verticalLayout_11"))
        self.horizontalLayout_10 = QtGui.QHBoxLayout()
        self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10"))
        self.opt_input_order = QtGui.QListWidget(self.groupBox_5)
        self.opt_input_order.setAlternatingRowColors(True)
        self.opt_input_order.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.opt_input_order.setObjectName(_fromUtf8("opt_input_order"))
        self.horizontalLayout_10.addWidget(self.opt_input_order)
        self.verticalLayout_10 = QtGui.QVBoxLayout()
        self.verticalLayout_10.setObjectName(_fromUtf8("verticalLayout_10"))
        self.input_up_button = QtGui.QToolButton(self.groupBox_5)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("arrow-up.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.input_up_button.setIcon(icon)
        self.input_up_button.setObjectName(_fromUtf8("input_up_button"))
        self.verticalLayout_10.addWidget(self.input_up_button)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_10.addItem(spacerItem)
        self.input_down_button = QtGui.QToolButton(self.groupBox_5)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(I("arrow-down.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.input_down_button.setIcon(icon1)
        self.input_down_button.setObjectName(_fromUtf8("input_down_button"))
        self.verticalLayout_10.addWidget(self.input_down_button)
        self.horizontalLayout_10.addLayout(self.verticalLayout_10)
        self.verticalLayout_11.addLayout(self.horizontalLayout_10)
        self.gridLayout.addWidget(self.groupBox_5, 7, 0, 1, 1)
        self.groupBox_3 = QtGui.QGroupBox(Form)
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.gridLayout_4 = QtGui.QGridLayout(self.groupBox_3)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.opt_internally_viewed_formats = QtGui.QListWidget(self.groupBox_3)
        self.opt_internally_viewed_formats.setAlternatingRowColors(True)
        self.opt_internally_viewed_formats.setSelectionMode(QtGui.QAbstractItemView.NoSelection)
        self.opt_internally_viewed_formats.setObjectName(_fromUtf8("opt_internally_viewed_formats"))
        self.gridLayout_4.addWidget(self.opt_internally_viewed_formats, 0, 0, 1, 1)
        self.gridLayout.addWidget(self.groupBox_3, 7, 1, 1, 1)
        self.label_2.setBuddy(self.opt_network_timeout)
        self.priority_label.setBuddy(self.opt_worker_process_priority)
        self.label_23.setBuddy(self.opt_output_format)
        self.label_170.setBuddy(self.opt_gui_restriction)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        Form.setWindowTitle(_("Form"))
        self.opt_overwrite_author_title_metadata.setText(_("&Overwrite author and title by default when fetching metadata"))
        self.opt_get_social_metadata.setText(_("Download &social metadata (tags/ratings/etc.) by default"))
        self.opt_new_version_notification.setText(_("Show notification when &new version is available"))
        self.opt_upload_news_to_device.setText(_("Automatically send downloaded &news to ebook reader"))
        self.opt_delete_news_from_library_on_upload.setText(_("&Delete news from library when it is automatically sent to reader"))
        self.label_2.setText(_("Default network &timeout:"))
        self.opt_network_timeout.setToolTip(_("Set the default timeout for network fetches (i.e. anytime we go out to the internet to get information)"))
        self.opt_network_timeout.setSuffix(_(" seconds"))
        self.opt_worker_process_priority.setItemText(0, _("Normal"))
        self.opt_worker_process_priority.setItemText(1, _("High"))
        self.opt_worker_process_priority.setItemText(2, _("Low"))
        self.priority_label.setText(_("Job &priority:"))
        self.label_23.setText(_("Preferred &output format:"))
        self.label_170.setText(_("Restriction to apply when the current library is opened:"))
        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. "))
        self.opt_new_book_tags.setToolTip(_("A comma-separated list of tags that will be applied to books added to the library"))
        self.label_230.setText(_("Tags to apply when adding a book:"))
        self.reset_confirmation_button.setText(_("Reset all disabled &confirmation dialogs"))
        self.groupBox_5.setTitle(_("Preferred &input format order:"))
        self.input_up_button.setText(_("..."))
        self.input_down_button.setText(_("..."))
        self.groupBox_3.setTitle(_("Use internal &viewer for:"))



Generated by  Doxygen 1.6.0   Back to index