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

config_ui.py

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

# Form implementation generated from reading ui file '/home/kovid/work/calibre/src/calibre/gui2/dialogs/config/config.ui'
#
# Created: Sun Jun  6 09:46:05 2010
#      by: PyQt4 UI code generator 4.7.3
#
# 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(884, 730)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(I("config.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        Dialog.setWindowIcon(icon)
        self.gridlayout = QtGui.QGridLayout(Dialog)
        self.gridlayout.setObjectName("gridlayout")
        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setObjectName("hboxlayout")
        self.category_view = QtGui.QListView(Dialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.category_view.sizePolicy().hasHeightForWidth())
        self.category_view.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.category_view.setFont(font)
        self.category_view.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.category_view.setTabKeyNavigation(True)
        self.category_view.setProperty("showDropIndicator", False)
        self.category_view.setIconSize(QtCore.QSize(48, 48))
        self.category_view.setVerticalScrollMode(QtGui.QAbstractItemView.ScrollPerItem)
        self.category_view.setHorizontalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel)
        self.category_view.setFlow(QtGui.QListView.TopToBottom)
        self.category_view.setSpacing(20)
        self.category_view.setViewMode(QtGui.QListView.ListMode)
        self.category_view.setObjectName("category_view")
        self.hboxlayout.addWidget(self.category_view)
        self.scrollArea = QtGui.QScrollArea(Dialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.scrollArea.sizePolicy().hasHeightForWidth())
        self.scrollArea.setSizePolicy(sizePolicy)
        self.scrollArea.setFrameShadow(QtGui.QFrame.Plain)
        self.scrollArea.setLineWidth(0)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents = QtGui.QWidget(self.scrollArea)
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 608, 683))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.gridLayout_7 = QtGui.QGridLayout(self.scrollAreaWidgetContents)
        self.gridLayout_7.setMargin(0)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.stackedWidget = QtGui.QStackedWidget(self.scrollAreaWidgetContents)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(100)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.stackedWidget.sizePolicy().hasHeightForWidth())
        self.stackedWidget.setSizePolicy(sizePolicy)
        self.stackedWidget.setLineWidth(0)
        self.stackedWidget.setObjectName("stackedWidget")
        self.page_3 = QtGui.QWidget()
        self.page_3.setObjectName("page_3")
        self.verticalLayout = QtGui.QVBoxLayout(self.page_3)
        self.verticalLayout.setObjectName("verticalLayout")
        self._2 = QtGui.QVBoxLayout()
        self._2.setObjectName("_2")
        self.label = QtGui.QLabel(self.page_3)
        self.label.setMaximumSize(QtCore.QSize(16777215, 70))
        self.label.setWordWrap(True)
        self.label.setObjectName("label")
        self._2.addWidget(self.label)
        self._3 = QtGui.QHBoxLayout()
        self._3.setObjectName("_3")
        self.location = QtGui.QLineEdit(self.page_3)
        self.location.setObjectName("location")
        self._3.addWidget(self.location)
        self.browse_button = QtGui.QToolButton(self.page_3)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(I("mimetypes/dir.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.browse_button.setIcon(icon1)
        self.browse_button.setObjectName("browse_button")
        self._3.addWidget(self.browse_button)
        self._2.addLayout(self._3)
        self.verticalLayout.addLayout(self._2)
        self.new_version_notification = QtGui.QCheckBox(self.page_3)
        self.new_version_notification.setObjectName("new_version_notification")
        self.verticalLayout.addWidget(self.new_version_notification)
        self.opt_get_social_metadata = QtGui.QCheckBox(self.page_3)
        self.opt_get_social_metadata.setObjectName("opt_get_social_metadata")
        self.verticalLayout.addWidget(self.opt_get_social_metadata)
        self.opt_overwrite_author_title_metadata = QtGui.QCheckBox(self.page_3)
        self.opt_overwrite_author_title_metadata.setObjectName("opt_overwrite_author_title_metadata")
        self.verticalLayout.addWidget(self.opt_overwrite_author_title_metadata)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_2 = QtGui.QLabel(self.page_3)
        self.label_2.setObjectName("label_2")
        self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1)
        self.timeout = QtGui.QSpinBox(self.page_3)
        self.timeout.setMinimum(2)
        self.timeout.setMaximum(120)
        self.timeout.setProperty("value", 5)
        self.timeout.setObjectName("timeout")
        self.gridLayout_2.addWidget(self.timeout, 1, 1, 1, 1)
        self.language = QtGui.QComboBox(self.page_3)
        self.language.setObjectName("language")
        self.gridLayout_2.addWidget(self.language, 2, 1, 1, 1)
        self.label_7 = QtGui.QLabel(self.page_3)
        self.label_7.setObjectName("label_7")
        self.gridLayout_2.addWidget(self.label_7, 2, 0, 1, 1)
        self.priority = QtGui.QComboBox(self.page_3)
        self.priority.setObjectName("priority")
        self.priority.addItem("")
        self.priority.addItem("")
        self.priority.addItem("")
        self.gridLayout_2.addWidget(self.priority, 3, 1, 1, 1)
        self.priority_label = QtGui.QLabel(self.page_3)
        self.priority_label.setObjectName("priority_label")
        self.gridLayout_2.addWidget(self.priority_label, 3, 0, 1, 1)
        self.label_23 = QtGui.QLabel(self.page_3)
        self.label_23.setObjectName("label_23")
        self.gridLayout_2.addWidget(self.label_23, 0, 0, 1, 1)
        self.output_format = QtGui.QComboBox(self.page_3)
        self.output_format.setObjectName("output_format")
        self.gridLayout_2.addWidget(self.output_format, 0, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout_2)
        self.groupBox_5 = QtGui.QGroupBox(self.page_3)
        self.groupBox_5.setObjectName("groupBox_5")
        self.verticalLayout_11 = QtGui.QVBoxLayout(self.groupBox_5)
        self.verticalLayout_11.setObjectName("verticalLayout_11")
        self.horizontalLayout_10 = QtGui.QHBoxLayout()
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.input_order = QtGui.QListWidget(self.groupBox_5)
        self.input_order.setAlternatingRowColors(True)
        self.input_order.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.input_order.setObjectName("input_order")
        self.horizontalLayout_10.addWidget(self.input_order)
        self.verticalLayout_10 = QtGui.QVBoxLayout()
        self.verticalLayout_10.setObjectName("verticalLayout_10")
        self.input_up = QtGui.QToolButton(self.groupBox_5)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(I("arrow-up.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.input_up.setIcon(icon2)
        self.input_up.setObjectName("input_up")
        self.verticalLayout_10.addWidget(self.input_up)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_10.addItem(spacerItem)
        self.input_down = QtGui.QToolButton(self.groupBox_5)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(I("arrow-down.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.input_down.setIcon(icon3)
        self.input_down.setObjectName("input_down")
        self.verticalLayout_10.addWidget(self.input_down)
        self.horizontalLayout_10.addLayout(self.verticalLayout_10)
        self.verticalLayout_11.addLayout(self.horizontalLayout_10)
        self.verticalLayout.addWidget(self.groupBox_5)
        self.stackedWidget.addWidget(self.page_3)
        self.page = QtGui.QWidget()
        self.page.setObjectName("page")
        self.gridLayout_8 = QtGui.QGridLayout(self.page)
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.roman_numerals = QtGui.QCheckBox(self.page)
        self.roman_numerals.setChecked(True)
        self.roman_numerals.setObjectName("roman_numerals")
        self.gridLayout_8.addWidget(self.roman_numerals, 0, 0, 1, 1)
        self.systray_icon = QtGui.QCheckBox(self.page)
        self.systray_icon.setObjectName("systray_icon")
        self.gridLayout_8.addWidget(self.systray_icon, 1, 0, 1, 1)
        self.systray_notifications = QtGui.QCheckBox(self.page)
        self.systray_notifications.setObjectName("systray_notifications")
        self.gridLayout_8.addWidget(self.systray_notifications, 1, 1, 1, 1)
        self.show_splash_screen = QtGui.QCheckBox(self.page)
        self.show_splash_screen.setObjectName("show_splash_screen")
        self.gridLayout_8.addWidget(self.show_splash_screen, 2, 0, 1, 2)
        self.separate_cover_flow = QtGui.QCheckBox(self.page)
        self.separate_cover_flow.setObjectName("separate_cover_flow")
        self.gridLayout_8.addWidget(self.separate_cover_flow, 3, 0, 1, 2)
        self.search_as_you_type = QtGui.QCheckBox(self.page)
        self.search_as_you_type.setChecked(True)
        self.search_as_you_type.setObjectName("search_as_you_type")
        self.gridLayout_8.addWidget(self.search_as_you_type, 4, 0, 1, 1)
        self.sync_news = QtGui.QCheckBox(self.page)
        self.sync_news.setObjectName("sync_news")
        self.gridLayout_8.addWidget(self.sync_news, 5, 0, 1, 2)
        self.delete_news = QtGui.QCheckBox(self.page)
        self.delete_news.setObjectName("delete_news")
        self.gridLayout_8.addWidget(self.delete_news, 6, 0, 1, 2)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_6 = QtGui.QLabel(self.page)
        self.label_6.setObjectName("label_6")
        self.horizontalLayout.addWidget(self.label_6)
        self.cover_browse = QtGui.QSpinBox(self.page)
        self.cover_browse.setObjectName("cover_browse")
        self.horizontalLayout.addWidget(self.cover_browse)
        self.gridLayout_8.addLayout(self.horizontalLayout, 7, 0, 1, 2)
        self.groupBox_2 = QtGui.QGroupBox(self.page)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout.setObjectName("gridLayout")
        self.toolbar_button_size = QtGui.QComboBox(self.groupBox_2)
        self.toolbar_button_size.setObjectName("toolbar_button_size")
        self.toolbar_button_size.addItem("")
        self.toolbar_button_size.addItem("")
        self.toolbar_button_size.addItem("")
        self.gridLayout.addWidget(self.toolbar_button_size, 0, 1, 1, 1)
        self.label_4 = QtGui.QLabel(self.groupBox_2)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 0, 0, 1, 1)
        self.show_toolbar_text = QtGui.QCheckBox(self.groupBox_2)
        self.show_toolbar_text.setChecked(True)
        self.show_toolbar_text.setObjectName("show_toolbar_text")
        self.gridLayout.addWidget(self.show_toolbar_text, 1, 0, 1, 1)
        self.gridLayout_8.addWidget(self.groupBox_2, 8, 0, 1, 2)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.groupBox = QtGui.QGroupBox(self.page)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_7 = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.columns = QtGui.QListWidget(self.groupBox)
        self.columns.setAlternatingRowColors(True)
        self.columns.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.columns.setObjectName("columns")
        self.horizontalLayout_3.addWidget(self.columns)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.column_up = QtGui.QToolButton(self.groupBox)
        self.column_up.setIcon(icon2)
        self.column_up.setObjectName("column_up")
        self.verticalLayout_3.addWidget(self.column_up)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem1)
        self.del_custcol_button = QtGui.QToolButton(self.groupBox)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(I("minus.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.del_custcol_button.setIcon(icon4)
        self.del_custcol_button.setObjectName("del_custcol_button")
        self.verticalLayout_3.addWidget(self.del_custcol_button)
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem2)
        self.add_custcol_button = QtGui.QToolButton(self.groupBox)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(I("plus.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.add_custcol_button.setIcon(icon5)
        self.add_custcol_button.setObjectName("add_custcol_button")
        self.verticalLayout_3.addWidget(self.add_custcol_button)
        spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem3)
        self.edit_custcol_button = QtGui.QToolButton(self.groupBox)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(I("edit_input.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.edit_custcol_button.setIcon(icon6)
        self.edit_custcol_button.setObjectName("edit_custcol_button")
        self.verticalLayout_3.addWidget(self.edit_custcol_button)
        spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem4)
        self.column_down = QtGui.QToolButton(self.groupBox)
        self.column_down.setIcon(icon3)
        self.column_down.setObjectName("column_down")
        self.verticalLayout_3.addWidget(self.column_down)
        self.horizontalLayout_3.addLayout(self.verticalLayout_3)
        self.verticalLayout_7.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_7.addWidget(self.groupBox)
        self.groupBox_3 = QtGui.QGroupBox(self.page)
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout_4 = QtGui.QGridLayout(self.groupBox_3)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.viewer = QtGui.QListWidget(self.groupBox_3)
        self.viewer.setAlternatingRowColors(True)
        self.viewer.setSelectionMode(QtGui.QAbstractItemView.NoSelection)
        self.viewer.setObjectName("viewer")
        self.gridLayout_4.addWidget(self.viewer, 0, 0, 1, 1)
        self.horizontalLayout_7.addWidget(self.groupBox_3)
        self.gridLayout_8.addLayout(self.horizontalLayout_7, 9, 0, 1, 2)
        self.stackedWidget.addWidget(self.page)
        self.page_6 = QtGui.QWidget()
        self.page_6.setObjectName("page_6")
        self.gridLayout_6 = QtGui.QGridLayout(self.page_6)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.email_view = QtGui.QTableView(self.page_6)
        self.email_view.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
        self.email_view.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.email_view.setObjectName("email_view")
        self.horizontalLayout_8.addWidget(self.email_view)
        self.verticalLayout_8 = QtGui.QVBoxLayout()
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.email_add = QtGui.QToolButton(self.page_6)
        self.email_add.setIcon(icon5)
        self.email_add.setIconSize(QtCore.QSize(24, 24))
        self.email_add.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
        self.email_add.setObjectName("email_add")
        self.verticalLayout_8.addWidget(self.email_add)
        self.email_make_default = QtGui.QPushButton(self.page_6)
        self.email_make_default.setObjectName("email_make_default")
        self.verticalLayout_8.addWidget(self.email_make_default)
        self.email_remove = QtGui.QToolButton(self.page_6)
        self.email_remove.setIcon(icon4)
        self.email_remove.setIconSize(QtCore.QSize(24, 24))
        self.email_remove.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
        self.email_remove.setObjectName("email_remove")
        self.verticalLayout_8.addWidget(self.email_remove)
        self.horizontalLayout_8.addLayout(self.verticalLayout_8)
        self.gridLayout_6.addLayout(self.horizontalLayout_8, 1, 0, 1, 2)
        self.label_22 = QtGui.QLabel(self.page_6)
        self.label_22.setWordWrap(True)
        self.label_22.setObjectName("label_22")
        self.gridLayout_6.addWidget(self.label_22, 0, 0, 1, 2)
        self.send_email_widget = SendEmail(self.page_6)
        self.send_email_widget.setObjectName("send_email_widget")
        self.gridLayout_6.addWidget(self.send_email_widget, 2, 0, 1, 2)
        self.stackedWidget.addWidget(self.page_6)
        self.page_7 = QtGui.QWidget()
        self.page_7.setObjectName("page_7")
        self.verticalLayout_9 = QtGui.QVBoxLayout(self.page_7)
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.add_save = AddSave(self.page_7)
        self.add_save.setObjectName("add_save")
        self.verticalLayout_9.addWidget(self.add_save)
        self.stackedWidget.addWidget(self.page_7)
        self.page_2 = QtGui.QWidget()
        self.page_2.setObjectName("page_2")
        self.gridLayout_3 = QtGui.QGridLayout(self.page_2)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.label_5 = QtGui.QLabel(self.page_2)
        self.label_5.setObjectName("label_5")
        self.gridLayout_3.addWidget(self.label_5, 0, 0, 1, 1)
        self.opt_worker_limit = QtGui.QSpinBox(self.page_2)
        self.opt_worker_limit.setMinimum(2)
        self.opt_worker_limit.setMaximum(10000)
        self.opt_worker_limit.setSingleStep(2)
        self.opt_worker_limit.setObjectName("opt_worker_limit")
        self.gridLayout_3.addWidget(self.opt_worker_limit, 0, 1, 1, 1)
        self.compact_button = QtGui.QPushButton(self.page_2)
        self.compact_button.setObjectName("compact_button")
        self.gridLayout_3.addWidget(self.compact_button, 3, 0, 1, 2)
        self.button_osx_symlinks = QtGui.QPushButton(self.page_2)
        self.button_osx_symlinks.setObjectName("button_osx_symlinks")
        self.gridLayout_3.addWidget(self.button_osx_symlinks, 5, 0, 1, 2)
        self.button_open_config_dir = QtGui.QPushButton(self.page_2)
        self.button_open_config_dir.setObjectName("button_open_config_dir")
        self.gridLayout_3.addWidget(self.button_open_config_dir, 4, 0, 1, 2)
        self.opt_enforce_cpu_limit = QtGui.QCheckBox(self.page_2)
        self.opt_enforce_cpu_limit.setObjectName("opt_enforce_cpu_limit")
        self.gridLayout_3.addWidget(self.opt_enforce_cpu_limit, 1, 0, 1, 1)
        self.device_detection_button = QtGui.QPushButton(self.page_2)
        self.device_detection_button.setObjectName("device_detection_button")
        self.gridLayout_3.addWidget(self.device_detection_button, 2, 0, 1, 2)
        self.stackedWidget.addWidget(self.page_2)
        self.page_4 = QtGui.QWidget()
        self.page_4.setObjectName("page_4")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.page_4)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_9 = QtGui.QLabel(self.page_4)
        self.label_9.setWordWrap(True)
        self.label_9.setObjectName("label_9")
        self.verticalLayout_2.addWidget(self.label_9)
        self.gridLayout_5 = QtGui.QGridLayout()
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.label_10 = QtGui.QLabel(self.page_4)
        self.label_10.setObjectName("label_10")
        self.gridLayout_5.addWidget(self.label_10, 0, 0, 1, 1)
        self.port = QtGui.QSpinBox(self.page_4)
        self.port.setMaximum(65535)
        self.port.setProperty("value", 8080)
        self.port.setObjectName("port")
        self.gridLayout_5.addWidget(self.port, 0, 1, 1, 1)
        self.label_11 = QtGui.QLabel(self.page_4)
        self.label_11.setObjectName("label_11")
        self.gridLayout_5.addWidget(self.label_11, 1, 0, 1, 1)
        self.username = QtGui.QLineEdit(self.page_4)
        self.username.setObjectName("username")
        self.gridLayout_5.addWidget(self.username, 1, 1, 1, 1)
        self.label_12 = QtGui.QLabel(self.page_4)
        self.label_12.setObjectName("label_12")
        self.gridLayout_5.addWidget(self.label_12, 2, 0, 1, 1)
        self.password = QtGui.QLineEdit(self.page_4)
        self.password.setObjectName("password")
        self.gridLayout_5.addWidget(self.password, 2, 1, 1, 1)
        self.max_cover_size = QtGui.QLineEdit(self.page_4)
        self.max_cover_size.setText("")
        self.max_cover_size.setObjectName("max_cover_size")
        self.gridLayout_5.addWidget(self.max_cover_size, 4, 1, 1, 1)
        self.label_3 = QtGui.QLabel(self.page_4)
        self.label_3.setObjectName("label_3")
        self.gridLayout_5.addWidget(self.label_3, 4, 0, 1, 1)
        self.show_server_password = QtGui.QCheckBox(self.page_4)
        self.show_server_password.setObjectName("show_server_password")
        self.gridLayout_5.addWidget(self.show_server_password, 3, 1, 1, 1)
        self.label_15 = QtGui.QLabel(self.page_4)
        self.label_15.setObjectName("label_15")
        self.gridLayout_5.addWidget(self.label_15, 5, 0, 1, 1)
        self.opt_max_opds_items = QtGui.QSpinBox(self.page_4)
        self.opt_max_opds_items.setMinimum(10)
        self.opt_max_opds_items.setMaximum(10000)
        self.opt_max_opds_items.setObjectName("opt_max_opds_items")
        self.gridLayout_5.addWidget(self.opt_max_opds_items, 5, 1, 1, 1)
        self.opt_max_opds_ungrouped_items = QtGui.QSpinBox(self.page_4)
        self.opt_max_opds_ungrouped_items.setMinimum(25)
        self.opt_max_opds_ungrouped_items.setMaximum(1000000)
        self.opt_max_opds_ungrouped_items.setObjectName("opt_max_opds_ungrouped_items")
        self.gridLayout_5.addWidget(self.opt_max_opds_ungrouped_items, 6, 1, 1, 1)
        self.label_16 = QtGui.QLabel(self.page_4)
        self.label_16.setObjectName("label_16")
        self.gridLayout_5.addWidget(self.label_16, 6, 0, 1, 1)
        self.verticalLayout_2.addLayout(self.gridLayout_5)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.start = QtGui.QPushButton(self.page_4)
        self.start.setObjectName("start")
        self.horizontalLayout_2.addWidget(self.start)
        self.stop = QtGui.QPushButton(self.page_4)
        self.stop.setObjectName("stop")
        self.horizontalLayout_2.addWidget(self.stop)
        spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem5)
        self.test = QtGui.QPushButton(self.page_4)
        self.test.setObjectName("test")
        self.horizontalLayout_2.addWidget(self.test)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.auto_launch = QtGui.QCheckBox(self.page_4)
        self.auto_launch.setObjectName("auto_launch")
        self.verticalLayout_2.addWidget(self.auto_launch)
        self.view_logs = QtGui.QPushButton(self.page_4)
        self.view_logs.setObjectName("view_logs")
        self.verticalLayout_2.addWidget(self.view_logs)
        spacerItem6 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem6)
        self.label_13 = QtGui.QLabel(self.page_4)
        self.label_13.setWordWrap(True)
        self.label_13.setObjectName("label_13")
        self.verticalLayout_2.addWidget(self.label_13)
        spacerItem7 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem7)
        self.stackedWidget.addWidget(self.page_4)
        self.page_5 = QtGui.QWidget()
        self.page_5.setObjectName("page_5")
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.page_5)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.label_8 = QtGui.QLabel(self.page_5)
        self.label_8.setWordWrap(True)
        self.label_8.setObjectName("label_8")
        self.verticalLayout_6.addWidget(self.label_8)
        self.plugin_view = QtGui.QTreeView(self.page_5)
        self.plugin_view.setAlternatingRowColors(True)
        self.plugin_view.setIconSize(QtCore.QSize(32, 32))
        self.plugin_view.setAnimated(True)
        self.plugin_view.setWordWrap(True)
        self.plugin_view.setHeaderHidden(True)
        self.plugin_view.setObjectName("plugin_view")
        self.verticalLayout_6.addWidget(self.plugin_view)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.toggle_plugin = QtGui.QPushButton(self.page_5)
        self.toggle_plugin.setObjectName("toggle_plugin")
        self.horizontalLayout_6.addWidget(self.toggle_plugin)
        self.customize_plugin = QtGui.QPushButton(self.page_5)
        self.customize_plugin.setObjectName("customize_plugin")
        self.horizontalLayout_6.addWidget(self.customize_plugin)
        self.remove_plugin = QtGui.QPushButton(self.page_5)
        self.remove_plugin.setObjectName("remove_plugin")
        self.horizontalLayout_6.addWidget(self.remove_plugin)
        self.verticalLayout_6.addLayout(self.horizontalLayout_6)
        self.groupBox_4 = QtGui.QGroupBox(self.page_5)
        self.groupBox_4.setObjectName("groupBox_4")
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.groupBox_4)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.label_14 = QtGui.QLabel(self.groupBox_4)
        self.label_14.setObjectName("label_14")
        self.horizontalLayout_5.addWidget(self.label_14)
        self.plugin_path = QtGui.QLineEdit(self.groupBox_4)
        self.plugin_path.setObjectName("plugin_path")
        self.horizontalLayout_5.addWidget(self.plugin_path)
        self.button_plugin_browse = QtGui.QToolButton(self.groupBox_4)
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(I("document_open.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.button_plugin_browse.setIcon(icon7)
        self.button_plugin_browse.setObjectName("button_plugin_browse")
        self.horizontalLayout_5.addWidget(self.button_plugin_browse)
        self.verticalLayout_5.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        spacerItem8 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem8)
        self.button_plugin_add = QtGui.QPushButton(self.groupBox_4)
        self.button_plugin_add.setObjectName("button_plugin_add")
        self.horizontalLayout_4.addWidget(self.button_plugin_add)
        self.verticalLayout_5.addLayout(self.horizontalLayout_4)
        self.verticalLayout_6.addWidget(self.groupBox_4)
        self.stackedWidget.addWidget(self.page_5)
        self.gridLayout_7.addWidget(self.stackedWidget, 0, 0, 1, 1)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.hboxlayout.addWidget(self.scrollArea)
        self.gridlayout.addLayout(self.hboxlayout, 1, 0, 1, 1)
        self.buttonBox = QtGui.QDialogButtonBox(Dialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.gridlayout.addWidget(self.buttonBox, 2, 0, 1, 1)
        self.label.setBuddy(self.location)
        self.label_2.setBuddy(self.timeout)
        self.label_7.setBuddy(self.language)
        self.priority_label.setBuddy(self.priority)
        self.label_23.setBuddy(self.output_format)
        self.label_6.setBuddy(self.cover_browse)
        self.label_4.setBuddy(self.toolbar_button_size)
        self.label_5.setBuddy(self.opt_worker_limit)
        self.label_10.setBuddy(self.port)
        self.label_11.setBuddy(self.username)
        self.label_12.setBuddy(self.password)
        self.label_3.setBuddy(self.max_cover_size)
        self.label_15.setBuddy(self.opt_max_opds_items)
        self.label_16.setBuddy(self.opt_max_opds_ungrouped_items)
        self.label_14.setBuddy(self.plugin_path)

        self.retranslateUi(Dialog)
        self.stackedWidget.setCurrentIndex(0)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), Dialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), Dialog.reject)
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        Dialog.setWindowTitle(_("Preferences"))
        self.label.setText(_("&Location of ebooks (The ebooks are stored in folders sorted by author and metadata is stored in the file metadata.db)"))
        self.browse_button.setToolTip(_("Browse for the new database location"))
        self.browse_button.setText(_("..."))
        self.new_version_notification.setText(_("Show notification when &new version is available"))
        self.opt_get_social_metadata.setText(_("Download &social metadata (tags/ratings/etc.) by default"))
        self.opt_overwrite_author_title_metadata.setText(_("&Overwrite author and title by default when fetching metadata"))
        self.label_2.setText(_("Default network &timeout:"))
        self.timeout.setToolTip(_("Set the default timeout for network fetches (i.e. anytime we go out to the internet to get information)"))
        self.timeout.setSuffix(_(" seconds"))
        self.label_7.setText(_("Choose &language (requires restart):"))
        self.priority.setItemText(0, _("Normal"))
        self.priority.setItemText(1, _("High"))
        self.priority.setItemText(2, _("Low"))
        self.priority_label.setText(_("Job &priority:"))
        self.label_23.setText(_("Preferred &output format:"))
        self.groupBox_5.setTitle(_("Preferred &input format order:"))
        self.input_up.setText(_("..."))
        self.input_down.setText(_("..."))
        self.roman_numerals.setText(_("Use &Roman numerals for series number"))
        self.systray_icon.setText(_("Enable system &tray icon (needs restart)"))
        self.systray_notifications.setText(_("Show &notifications in system tray"))
        self.show_splash_screen.setText(_("Show &splash screen at startup"))
        self.separate_cover_flow.setText(_("Show cover &browser in a separate window (needs restart)"))
        self.search_as_you_type.setText(_("Search as you type"))
        self.sync_news.setText(_("Automatically send downloaded &news to ebook reader"))
        self.delete_news.setText(_("&Delete news from library when it is automatically sent to reader"))
        self.label_6.setText(_("&Number of covers to show in browse mode (needs restart):"))
        self.groupBox_2.setTitle(_("Toolbar"))
        self.toolbar_button_size.setItemText(0, _("Large"))
        self.toolbar_button_size.setItemText(1, _("Medium"))
        self.toolbar_button_size.setItemText(2, _("Small"))
        self.label_4.setText(_("&Button size in toolbar"))
        self.show_toolbar_text.setText(_("Show &text in toolbar buttons"))
        self.groupBox.setTitle(_("Select visible &columns in library view"))
        self.column_up.setText(_("..."))
        self.del_custcol_button.setToolTip(_("Remove a user-defined column"))
        self.del_custcol_button.setText(_("..."))
        self.add_custcol_button.setToolTip(_("Add a user-defined column"))
        self.add_custcol_button.setText(_("..."))
        self.edit_custcol_button.setToolTip(_("Edit settings of a user-defined column"))
        self.edit_custcol_button.setText(_("..."))
        self.column_down.setText(_("..."))
        self.groupBox_3.setTitle(_("Use internal &viewer for:"))
        self.email_add.setToolTip(_("Add an email address to which to send books"))
        self.email_add.setText(_("&Add email"))
        self.email_make_default.setText(_("Make &default"))
        self.email_remove.setText(_("&Remove email"))
        self.label_22.setText(_("calibre can send your books to you (or your reader) by email. Emails will be automatically sent for downloaded news to all email addresses that have Auto-send checked."))
        self.label_5.setText(_("&Maximum number of waiting worker processes (needs restart):"))
        self.compact_button.setText(_("&Check database integrity"))
        self.button_osx_symlinks.setText(_("&Install command line tools"))
        self.button_open_config_dir.setText(_("Open calibre &configuration directory"))
        self.opt_enforce_cpu_limit.setText(_("Limit the max. simultaneous jobs to the available CPU &cores"))
        self.device_detection_button.setText(_("Debug &device detection"))
        self.label_9.setText(_("calibre contains a network server that allows you to access your book collection using a browser from anywhere in the world. Any changes to the settings will only take effect after a server restart."))
        self.label_10.setText(_("Server &port:"))
        self.label_11.setText(_("&Username:"))
        self.label_12.setText(_("&Password:"))
        self.password.setToolTip(_("If you leave the password blank, anyone will be able to access your book collection using the web interface."))
        self.max_cover_size.setToolTip(_("The maximum size (widthxheight) for displayed covers. Larger covers are resized. "))
        self.label_3.setText(_("Max. &cover size:"))
        self.show_server_password.setText(_("&Show password"))
        self.label_15.setText(_("Max. &OPDS items per query:"))
        self.label_16.setText(_("Max. OPDS &ungrouped items:"))
        self.start.setText(_("&Start Server"))
        self.stop.setText(_("St&op Server"))
        self.test.setText(_("&Test Server"))
        self.auto_launch.setText(_("Run server &automatically on startup"))
        self.view_logs.setText(_("View &server logs"))
        self.label_13.setText(_("<p>Remember to leave calibre running as the server only runs as long as calibre is running.\n"
"<p>Stanza should see your calibre collection automatically. If not, try adding the URL http://myhostname:8080 as a new catalog in the Stanza reader on your iPhone. Here myhostname should be the fully qualified hostname or the IP address of the computer calibre is running on."))
        self.label_8.setText(_("Here you can customize the behavior of Calibre by controlling what plugins it uses."))
        self.toggle_plugin.setText(_("Enable/&Disable plugin"))
        self.customize_plugin.setText(_("&Customize plugin"))
        self.remove_plugin.setText(_("&Remove plugin"))
        self.groupBox_4.setTitle(_("Add new plugin"))
        self.label_14.setText(_("Plugin &file:"))
        self.button_plugin_browse.setText(_("..."))
        self.button_plugin_add.setText(_("&Add"))

from calibre.gui2.wizard.send_email import SendEmail
from calibre.gui2.dialogs.config.add_save import AddSave


Generated by  Doxygen 1.6.0   Back to index