Ejemplo n.º 1
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(807, 331)
        self.gridLayout = QtWidgets.QGridLayout(Form)
        self.gridLayout.setObjectName("gridLayout")
        self.mm_label = QtWidgets.QLabel(Form)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mm_label.sizePolicy().hasHeightForWidth())
        self.mm_label.setSizePolicy(sizePolicy)
        self.mm_label.setObjectName("mm_label")
        self.gridLayout.addWidget(self.mm_label, 0, 0, 1, 1)
        self.opt_manage_device_metadata = QtWidgets.QComboBox(Form)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.opt_manage_device_metadata.sizePolicy().hasHeightForWidth())
        self.opt_manage_device_metadata.setSizePolicy(sizePolicy)
        self.opt_manage_device_metadata.setObjectName("opt_manage_device_metadata")
        self.opt_manage_device_metadata.addItem("")
        self.opt_manage_device_metadata.addItem("")
        self.opt_manage_device_metadata.addItem("")
        self.gridLayout.addWidget(self.opt_manage_device_metadata, 0, 1, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(457, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 0, 2, 1, 1)
        self.label_41 = QtWidgets.QLabel(Form)
        self.label_41.setWordWrap(True)
        self.label_41.setObjectName("label_41")
        self.gridLayout.addWidget(self.label_41, 1, 0, 1, 3)
        self.label_2 = QtWidgets.QLabel(Form)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
        self.opt_send_timefmt = QtWidgets.QLineEdit(Form)
        self.opt_send_timefmt.setObjectName("opt_send_timefmt")
        self.gridLayout.addWidget(self.opt_send_timefmt, 2, 1, 1, 1)
        self.send_template = SaveTemplate(Form)
        self.send_template.setObjectName("send_template")
        self.gridLayout.addWidget(self.send_template, 3, 0, 1, 3)
        self.mm_label.setBuddy(self.opt_manage_device_metadata)
        self.label_2.setBuddy(self.opt_send_timefmt)

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

    def retranslateUi(self, Form):

        Form.setWindowTitle(_("Form"))
        self.mm_label.setText(_("Me&tadata management:"))
        self.opt_manage_device_metadata.setItemText(0, _("Manual management"))
        self.opt_manage_device_metadata.setItemText(1, _("Only on send"))
        self.opt_manage_device_metadata.setItemText(2, _("Automatic management"))
        self.label_41.setText(_("<li><b>Manual management</b>: calibre updates the metadata and adds collections only when a book is sent. With this option, calibre will never remove a collection.</li>\n"
"<li><b>Only on send</b>: calibre updates metadata and adds/removes collections for a book only when it is sent to the device. </li>\n"
"<li><b>Automatic management</b>: calibre automatically keeps metadata on the device in sync with the calibre library, on every connect</li></ul>"))
        self.label_2.setText(_("Format &dates as:"))
Ejemplo n.º 2
0
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(807, 331)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.mm_label = QtGui.QLabel(Form)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mm_label.sizePolicy().hasHeightForWidth())
        self.mm_label.setSizePolicy(sizePolicy)
        self.mm_label.setObjectName(_fromUtf8("mm_label"))
        self.gridLayout.addWidget(self.mm_label, 0, 0, 1, 1)
        self.opt_manage_device_metadata = QtGui.QComboBox(Form)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.opt_manage_device_metadata.sizePolicy().hasHeightForWidth())
        self.opt_manage_device_metadata.setSizePolicy(sizePolicy)
        self.opt_manage_device_metadata.setObjectName(
            _fromUtf8("opt_manage_device_metadata"))
        self.opt_manage_device_metadata.addItem(_fromUtf8(""))
        self.opt_manage_device_metadata.addItem(_fromUtf8(""))
        self.opt_manage_device_metadata.addItem(_fromUtf8(""))
        self.gridLayout.addWidget(self.opt_manage_device_metadata, 0, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(457, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 0, 2, 1, 1)
        self.label_41 = QtGui.QLabel(Form)
        self.label_41.setWordWrap(True)
        self.label_41.setObjectName(_fromUtf8("label_41"))
        self.gridLayout.addWidget(self.label_41, 1, 0, 1, 3)
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
        self.opt_send_timefmt = QtGui.QLineEdit(Form)
        self.opt_send_timefmt.setObjectName(_fromUtf8("opt_send_timefmt"))
        self.gridLayout.addWidget(self.opt_send_timefmt, 2, 1, 1, 1)
        self.label_43 = QtGui.QLabel(Form)
        self.label_43.setWordWrap(True)
        self.label_43.setObjectName(_fromUtf8("label_43"))
        self.gridLayout.addWidget(self.label_43, 3, 0, 1, 3)
        self.send_template = SaveTemplate(Form)
        self.send_template.setObjectName(_fromUtf8("send_template"))
        self.gridLayout.addWidget(self.send_template, 4, 0, 1, 3)
        self.mm_label.setBuddy(self.opt_manage_device_metadata)
        self.label_2.setBuddy(self.opt_send_timefmt)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
Ejemplo n.º 3
0
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(707, 340)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(Form)
        self.label.setWordWrap(True)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 2)
        self.opt_save_cover = QtGui.QCheckBox(Form)
        self.opt_save_cover.setObjectName(_fromUtf8("opt_save_cover"))
        self.gridLayout.addWidget(self.opt_save_cover, 1, 0, 1, 1)
        self.opt_replace_whitespace = QtGui.QCheckBox(Form)
        self.opt_replace_whitespace.setObjectName(
            _fromUtf8("opt_replace_whitespace"))
        self.gridLayout.addWidget(self.opt_replace_whitespace, 1, 1, 1, 1)
        self.opt_update_metadata = QtGui.QCheckBox(Form)
        self.opt_update_metadata.setObjectName(
            _fromUtf8("opt_update_metadata"))
        self.gridLayout.addWidget(self.opt_update_metadata, 2, 0, 1, 1)
        self.opt_to_lowercase = QtGui.QCheckBox(Form)
        self.opt_to_lowercase.setObjectName(_fromUtf8("opt_to_lowercase"))
        self.gridLayout.addWidget(self.opt_to_lowercase, 2, 1, 1, 1)
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 6, 0, 1, 1)
        self.opt_timefmt = QtGui.QLineEdit(Form)
        self.opt_timefmt.setObjectName(_fromUtf8("opt_timefmt"))
        self.gridLayout.addWidget(self.opt_timefmt, 6, 1, 1, 1)
        self.label_3 = QtGui.QLabel(Form)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 7, 0, 1, 1)
        self.opt_formats = QtGui.QLineEdit(Form)
        self.opt_formats.setObjectName(_fromUtf8("opt_formats"))
        self.gridLayout.addWidget(self.opt_formats, 7, 1, 1, 1)
        self.save_template = SaveTemplate(Form)
        self.save_template.setObjectName(_fromUtf8("save_template"))
        self.gridLayout.addWidget(self.save_template, 8, 0, 1, 2)
        self.opt_asciiize = QtGui.QCheckBox(Form)
        self.opt_asciiize.setObjectName(_fromUtf8("opt_asciiize"))
        self.gridLayout.addWidget(self.opt_asciiize, 3, 1, 1, 1)
        self.opt_write_opf = QtGui.QCheckBox(Form)
        self.opt_write_opf.setObjectName(_fromUtf8("opt_write_opf"))
        self.gridLayout.addWidget(self.opt_write_opf, 3, 0, 1, 1)
        self.opt_show_files_after_save = QtGui.QCheckBox(Form)
        self.opt_show_files_after_save.setObjectName(
            _fromUtf8("opt_show_files_after_save"))
        self.gridLayout.addWidget(self.opt_show_files_after_save, 4, 0, 1, 2)
        self.label_2.setBuddy(self.opt_timefmt)
        self.label_3.setBuddy(self.opt_formats)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
Ejemplo n.º 4
0
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(807, 331)
        Form.setWindowTitle(_("Form"))
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.mm_label = QtGui.QLabel(Form)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mm_label.sizePolicy().hasHeightForWidth())
        self.mm_label.setSizePolicy(sizePolicy)
        self.mm_label.setText(_("Metadata &management:"))
        self.mm_label.setObjectName(_fromUtf8("mm_label"))
        self.gridLayout.addWidget(self.mm_label, 0, 0, 1, 1)
        self.opt_manage_device_metadata = QtGui.QComboBox(Form)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.opt_manage_device_metadata.sizePolicy().hasHeightForWidth())
        self.opt_manage_device_metadata.setSizePolicy(sizePolicy)
        self.opt_manage_device_metadata.setObjectName(_fromUtf8("opt_manage_device_metadata"))
        self.opt_manage_device_metadata.addItem(_fromUtf8(""))
        self.opt_manage_device_metadata.setItemText(0, _("Manual management"))
        self.opt_manage_device_metadata.addItem(_fromUtf8(""))
        self.opt_manage_device_metadata.setItemText(1, _("Only on send"))
        self.opt_manage_device_metadata.addItem(_fromUtf8(""))
        self.opt_manage_device_metadata.setItemText(2, _("Automatic management"))
        self.gridLayout.addWidget(self.opt_manage_device_metadata, 0, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(457, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 0, 2, 1, 1)
        self.label_41 = QtGui.QLabel(Form)
        self.label_41.setText(_("<li><b>Manual management</b>: Calibre updates the metadata and adds collections only when a book is sent. With this option, calibre will never remove a collection.</li>\n"
"<li><b>Only on send</b>: Calibre updates metadata and adds/removes collections for a book only when it is sent to the device. </li>\n"
"<li><b>Automatic management</b>: Calibre automatically keeps metadata on the device in sync with the calibre library, on every connect</li></ul>"))
        self.label_41.setWordWrap(True)
        self.label_41.setObjectName(_fromUtf8("label_41"))
        self.gridLayout.addWidget(self.label_41, 1, 0, 1, 3)
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setText(_("Format &dates as:"))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
        self.opt_send_timefmt = QtGui.QLineEdit(Form)
        self.opt_send_timefmt.setObjectName(_fromUtf8("opt_send_timefmt"))
        self.gridLayout.addWidget(self.opt_send_timefmt, 2, 1, 1, 1)
        self.label_43 = QtGui.QLabel(Form)
        self.label_43.setText(_("Here you can control how calibre will save your books when you click the Send to Device button. This setting can be overriden for individual devices by customizing the device interface plugins in Preferences->Advanced->Plugins"))
        self.label_43.setWordWrap(True)
        self.label_43.setObjectName(_fromUtf8("label_43"))
        self.gridLayout.addWidget(self.label_43, 3, 0, 1, 3)
        self.send_template = SaveTemplate(Form)
        self.send_template.setObjectName(_fromUtf8("send_template"))
        self.gridLayout.addWidget(self.send_template, 4, 0, 1, 3)
        self.mm_label.setBuddy(self.opt_manage_device_metadata)
        self.label_2.setBuddy(self.opt_send_timefmt)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
Ejemplo n.º 5
0
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(707, 340)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(Form)
        self.label.setWordWrap(True)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 2)
        self.opt_save_cover = QtGui.QCheckBox(Form)
        self.opt_save_cover.setObjectName(_fromUtf8("opt_save_cover"))
        self.gridLayout.addWidget(self.opt_save_cover, 1, 0, 1, 1)
        self.opt_replace_whitespace = QtGui.QCheckBox(Form)
        self.opt_replace_whitespace.setObjectName(_fromUtf8("opt_replace_whitespace"))
        self.gridLayout.addWidget(self.opt_replace_whitespace, 1, 1, 1, 1)
        self.opt_update_metadata = QtGui.QCheckBox(Form)
        self.opt_update_metadata.setObjectName(_fromUtf8("opt_update_metadata"))
        self.gridLayout.addWidget(self.opt_update_metadata, 2, 0, 1, 1)
        self.opt_to_lowercase = QtGui.QCheckBox(Form)
        self.opt_to_lowercase.setObjectName(_fromUtf8("opt_to_lowercase"))
        self.gridLayout.addWidget(self.opt_to_lowercase, 2, 1, 1, 1)
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 6, 0, 1, 1)
        self.opt_timefmt = QtGui.QLineEdit(Form)
        self.opt_timefmt.setObjectName(_fromUtf8("opt_timefmt"))
        self.gridLayout.addWidget(self.opt_timefmt, 6, 1, 1, 1)
        self.label_3 = QtGui.QLabel(Form)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 7, 0, 1, 1)
        self.opt_formats = QtGui.QLineEdit(Form)
        self.opt_formats.setObjectName(_fromUtf8("opt_formats"))
        self.gridLayout.addWidget(self.opt_formats, 7, 1, 1, 1)
        self.save_template = SaveTemplate(Form)
        self.save_template.setObjectName(_fromUtf8("save_template"))
        self.gridLayout.addWidget(self.save_template, 8, 0, 1, 2)
        self.opt_asciiize = QtGui.QCheckBox(Form)
        self.opt_asciiize.setObjectName(_fromUtf8("opt_asciiize"))
        self.gridLayout.addWidget(self.opt_asciiize, 3, 1, 1, 1)
        self.opt_write_opf = QtGui.QCheckBox(Form)
        self.opt_write_opf.setObjectName(_fromUtf8("opt_write_opf"))
        self.gridLayout.addWidget(self.opt_write_opf, 3, 0, 1, 1)
        self.opt_show_files_after_save = QtGui.QCheckBox(Form)
        self.opt_show_files_after_save.setObjectName(_fromUtf8("opt_show_files_after_save"))
        self.gridLayout.addWidget(self.opt_show_files_after_save, 4, 0, 1, 2)
        self.label_2.setBuddy(self.opt_timefmt)
        self.label_3.setBuddy(self.opt_formats)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
Ejemplo n.º 6
0
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(807, 331)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.mm_label = QtGui.QLabel(Form)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mm_label.sizePolicy().hasHeightForWidth())
        self.mm_label.setSizePolicy(sizePolicy)
        self.mm_label.setObjectName(_fromUtf8("mm_label"))
        self.gridLayout.addWidget(self.mm_label, 0, 0, 1, 1)
        self.opt_manage_device_metadata = QtGui.QComboBox(Form)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.opt_manage_device_metadata.sizePolicy().hasHeightForWidth())
        self.opt_manage_device_metadata.setSizePolicy(sizePolicy)
        self.opt_manage_device_metadata.setObjectName(_fromUtf8("opt_manage_device_metadata"))
        self.opt_manage_device_metadata.addItem(_fromUtf8(""))
        self.opt_manage_device_metadata.addItem(_fromUtf8(""))
        self.opt_manage_device_metadata.addItem(_fromUtf8(""))
        self.gridLayout.addWidget(self.opt_manage_device_metadata, 0, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(457, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 0, 2, 1, 1)
        self.label_41 = QtGui.QLabel(Form)
        self.label_41.setWordWrap(True)
        self.label_41.setObjectName(_fromUtf8("label_41"))
        self.gridLayout.addWidget(self.label_41, 1, 0, 1, 3)
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
        self.opt_send_timefmt = QtGui.QLineEdit(Form)
        self.opt_send_timefmt.setObjectName(_fromUtf8("opt_send_timefmt"))
        self.gridLayout.addWidget(self.opt_send_timefmt, 2, 1, 1, 1)
        self.label_43 = QtGui.QLabel(Form)
        self.label_43.setWordWrap(True)
        self.label_43.setObjectName(_fromUtf8("label_43"))
        self.gridLayout.addWidget(self.label_43, 3, 0, 1, 3)
        self.send_template = SaveTemplate(Form)
        self.send_template.setObjectName(_fromUtf8("send_template"))
        self.gridLayout.addWidget(self.send_template, 4, 0, 1, 3)
        self.mm_label.setBuddy(self.opt_manage_device_metadata)
        self.label_2.setBuddy(self.opt_send_timefmt)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
Ejemplo n.º 7
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(707, 340)
        self.gridLayout = QtWidgets.QGridLayout(Form)
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtWidgets.QLabel(Form)
        self.label.setWordWrap(True)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 2)
        self.opt_save_cover = QtWidgets.QCheckBox(Form)
        self.opt_save_cover.setObjectName("opt_save_cover")
        self.gridLayout.addWidget(self.opt_save_cover, 1, 0, 1, 1)
        self.opt_replace_whitespace = QtWidgets.QCheckBox(Form)
        self.opt_replace_whitespace.setObjectName("opt_replace_whitespace")
        self.gridLayout.addWidget(self.opt_replace_whitespace, 1, 1, 1, 1)
        self.opt_update_metadata = QtWidgets.QCheckBox(Form)
        self.opt_update_metadata.setObjectName("opt_update_metadata")
        self.gridLayout.addWidget(self.opt_update_metadata, 2, 0, 1, 1)
        self.opt_to_lowercase = QtWidgets.QCheckBox(Form)
        self.opt_to_lowercase.setObjectName("opt_to_lowercase")
        self.gridLayout.addWidget(self.opt_to_lowercase, 2, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(Form)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 6, 0, 1, 1)
        self.opt_timefmt = QtWidgets.QLineEdit(Form)
        self.opt_timefmt.setObjectName("opt_timefmt")
        self.gridLayout.addWidget(self.opt_timefmt, 6, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(Form)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 7, 0, 1, 1)
        self.opt_formats = QtWidgets.QLineEdit(Form)
        self.opt_formats.setObjectName("opt_formats")
        self.gridLayout.addWidget(self.opt_formats, 7, 1, 1, 1)
        self.save_template = SaveTemplate(Form)
        self.save_template.setObjectName("save_template")
        self.gridLayout.addWidget(self.save_template, 8, 0, 1, 2)
        self.opt_asciiize = QtWidgets.QCheckBox(Form)
        self.opt_asciiize.setObjectName("opt_asciiize")
        self.gridLayout.addWidget(self.opt_asciiize, 3, 1, 1, 1)
        self.opt_write_opf = QtWidgets.QCheckBox(Form)
        self.opt_write_opf.setObjectName("opt_write_opf")
        self.gridLayout.addWidget(self.opt_write_opf, 3, 0, 1, 1)
        self.opt_show_files_after_save = QtWidgets.QCheckBox(Form)
        self.opt_show_files_after_save.setObjectName("opt_show_files_after_save")
        self.gridLayout.addWidget(self.opt_show_files_after_save, 4, 0, 1, 2)
        self.label_2.setBuddy(self.opt_timefmt)
        self.label_3.setBuddy(self.opt_formats)

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

    def retranslateUi(self, Form):

        Form.setWindowTitle(_("Form"))
        self.label.setText(_("Here you can control how calibre will save your books when you click the \"Save to disk\" button:"))
        self.opt_save_cover.setText(_("Save &cover separately"))
        self.opt_replace_whitespace.setText(_("Replace space with &underscores"))
        self.opt_update_metadata.setText(_("Update &metadata in saved copies"))
        self.opt_to_lowercase.setText(_("Change paths to &lowercase"))
        self.label_2.setText(_("Format &dates as:"))
        self.label_3.setText(_("File &formats to save:"))
        self.opt_asciiize.setText(_("Convert non-English characters to &English equivalents"))
        self.opt_write_opf.setText(_("Save metadata in a separate &OPF file"))
        self.opt_show_files_after_save.setText(_("&Show files in the file browser after saving to disk"))
Ejemplo n.º 8
0
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(707, 340)
        Form.setWindowTitle(_("Form"))
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(Form)
        self.label.setText(_("Here you can control how calibre will save your books when you click the Save to Disk button:"))
        self.label.setWordWrap(True)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 2)
        self.opt_save_cover = QtGui.QCheckBox(Form)
        self.opt_save_cover.setText(_("Save &cover separately"))
        self.opt_save_cover.setObjectName(_fromUtf8("opt_save_cover"))
        self.gridLayout.addWidget(self.opt_save_cover, 1, 0, 1, 1)
        self.opt_replace_whitespace = QtGui.QCheckBox(Form)
        self.opt_replace_whitespace.setText(_("Replace space with &underscores"))
        self.opt_replace_whitespace.setObjectName(_fromUtf8("opt_replace_whitespace"))
        self.gridLayout.addWidget(self.opt_replace_whitespace, 1, 1, 1, 1)
        self.opt_update_metadata = QtGui.QCheckBox(Form)
        self.opt_update_metadata.setText(_("Update &metadata in saved copies"))
        self.opt_update_metadata.setObjectName(_fromUtf8("opt_update_metadata"))
        self.gridLayout.addWidget(self.opt_update_metadata, 2, 0, 1, 1)
        self.opt_to_lowercase = QtGui.QCheckBox(Form)
        self.opt_to_lowercase.setText(_("Change paths to &lowercase"))
        self.opt_to_lowercase.setObjectName(_fromUtf8("opt_to_lowercase"))
        self.gridLayout.addWidget(self.opt_to_lowercase, 2, 1, 1, 1)
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setText(_("Format &dates as:"))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 6, 0, 1, 1)
        self.opt_timefmt = QtGui.QLineEdit(Form)
        self.opt_timefmt.setObjectName(_fromUtf8("opt_timefmt"))
        self.gridLayout.addWidget(self.opt_timefmt, 6, 1, 1, 1)
        self.label_3 = QtGui.QLabel(Form)
        self.label_3.setText(_("File &formats to save:"))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 7, 0, 1, 1)
        self.opt_formats = QtGui.QLineEdit(Form)
        self.opt_formats.setObjectName(_fromUtf8("opt_formats"))
        self.gridLayout.addWidget(self.opt_formats, 7, 1, 1, 1)
        self.save_template = SaveTemplate(Form)
        self.save_template.setObjectName(_fromUtf8("save_template"))
        self.gridLayout.addWidget(self.save_template, 8, 0, 1, 2)
        self.opt_asciiize = QtGui.QCheckBox(Form)
        self.opt_asciiize.setText(_("Convert non-English characters to &English equivalents"))
        self.opt_asciiize.setObjectName(_fromUtf8("opt_asciiize"))
        self.gridLayout.addWidget(self.opt_asciiize, 3, 1, 1, 1)
        self.opt_write_opf = QtGui.QCheckBox(Form)
        self.opt_write_opf.setText(_("Save metadata in &OPF file"))
        self.opt_write_opf.setObjectName(_fromUtf8("opt_write_opf"))
        self.gridLayout.addWidget(self.opt_write_opf, 3, 0, 1, 1)
        self.opt_show_files_after_save = QtGui.QCheckBox(Form)
        self.opt_show_files_after_save.setText(_("&Show files in file browser after saving to disk"))
        self.opt_show_files_after_save.setObjectName(_fromUtf8("opt_show_files_after_save"))
        self.gridLayout.addWidget(self.opt_show_files_after_save, 4, 0, 1, 2)
        self.label_2.setBuddy(self.opt_timefmt)
        self.label_3.setBuddy(self.opt_formats)

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