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

add_save_ui.py

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

# Form implementation generated from reading ui file '/home/kovid/work/calibre/src/calibre/gui2/dialogs/config/add_save.ui'
#
# Created: Thu Dec 31 16:26:17 2009
#      by: PyQt4 UI code generator 4.6.2
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_TabWidget(object):
    def setupUi(self, TabWidget):
        TabWidget.setObjectName("TabWidget")
        TabWidget.resize(645, 516)
        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")
        self.gridLayout_3 = QtGui.QGridLayout(self.tab)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.label_6 = QtGui.QLabel(self.tab)
        self.label_6.setWordWrap(True)
        self.label_6.setObjectName("label_6")
        self.gridLayout_3.addWidget(self.label_6, 0, 0, 1, 2)
        self.opt_read_metadata_from_filename = QtGui.QCheckBox(self.tab)
        self.opt_read_metadata_from_filename.setObjectName("opt_read_metadata_from_filename")
        self.gridLayout_3.addWidget(self.opt_read_metadata_from_filename, 1, 0, 1, 1)
        self.opt_swap_author_names = QtGui.QCheckBox(self.tab)
        self.opt_swap_author_names.setObjectName("opt_swap_author_names")
        self.gridLayout_3.addWidget(self.opt_swap_author_names, 1, 1, 1, 1)
        self.metadata_box = QtGui.QGroupBox(self.tab)
        self.metadata_box.setObjectName("metadata_box")
        self.verticalLayout = QtGui.QVBoxLayout(self.metadata_box)
        self.verticalLayout.setObjectName("verticalLayout")
        spacerItem = QtGui.QSpacerItem(20, 363, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.gridLayout_3.addWidget(self.metadata_box, 2, 0, 1, 2)
        TabWidget.addTab(self.tab, "")
        self.tab1 = QtGui.QWidget()
        self.tab1.setObjectName("tab1")
        self.gridLayout = QtGui.QGridLayout(self.tab1)
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtGui.QLabel(self.tab1)
        self.label.setWordWrap(True)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 2)
        self.opt_save_cover = QtGui.QCheckBox(self.tab1)
        self.opt_save_cover.setObjectName("opt_save_cover")
        self.gridLayout.addWidget(self.opt_save_cover, 1, 0, 1, 1)
        self.opt_update_metadata = QtGui.QCheckBox(self.tab1)
        self.opt_update_metadata.setObjectName("opt_update_metadata")
        self.gridLayout.addWidget(self.opt_update_metadata, 2, 0, 1, 1)
        self.opt_write_opf = QtGui.QCheckBox(self.tab1)
        self.opt_write_opf.setObjectName("opt_write_opf")
        self.gridLayout.addWidget(self.opt_write_opf, 3, 0, 1, 2)
        self.opt_asciiize = QtGui.QCheckBox(self.tab1)
        self.opt_asciiize.setObjectName("opt_asciiize")
        self.gridLayout.addWidget(self.opt_asciiize, 4, 0, 1, 2)
        self.label_2 = QtGui.QLabel(self.tab1)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 5, 0, 1, 1)
        self.opt_timefmt = QtGui.QLineEdit(self.tab1)
        self.opt_timefmt.setObjectName("opt_timefmt")
        self.gridLayout.addWidget(self.opt_timefmt, 5, 1, 1, 1)
        self.label_3 = QtGui.QLabel(self.tab1)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 6, 0, 1, 1)
        self.opt_formats = QtGui.QLineEdit(self.tab1)
        self.opt_formats.setObjectName("opt_formats")
        self.gridLayout.addWidget(self.opt_formats, 6, 1, 1, 1)
        self.opt_replace_whitespace = QtGui.QCheckBox(self.tab1)
        self.opt_replace_whitespace.setObjectName("opt_replace_whitespace")
        self.gridLayout.addWidget(self.opt_replace_whitespace, 1, 1, 1, 1)
        self.opt_to_lowercase = QtGui.QCheckBox(self.tab1)
        self.opt_to_lowercase.setObjectName("opt_to_lowercase")
        self.gridLayout.addWidget(self.opt_to_lowercase, 2, 1, 1, 1)
        self.save_template = SaveTemplate(self.tab1)
        self.save_template.setObjectName("save_template")
        self.gridLayout.addWidget(self.save_template, 7, 0, 1, 2)
        TabWidget.addTab(self.tab1, "")
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.tab_2)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_4 = QtGui.QLabel(self.tab_2)
        self.label_4.setWordWrap(True)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_2.addWidget(self.label_4)
        self.send_template = SaveTemplate(self.tab_2)
        self.send_template.setObjectName("send_template")
        self.verticalLayout_2.addWidget(self.send_template)
        TabWidget.addTab(self.tab_2, "")
        self.label_2.setBuddy(self.opt_timefmt)
        self.label_3.setBuddy(self.opt_formats)

        self.retranslateUi(TabWidget)
        TabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(TabWidget)

    def retranslateUi(self, TabWidget):
        TabWidget.setWindowTitle(_("TabWidget"))
        self.label_6.setText(_("Here you can control how calibre will read metadata from the files you add to it. calibre can either read metadata from the contents of the file, or from the filename."))
        self.opt_read_metadata_from_filename.setText(_("Read metadata only from &file name"))
        self.opt_swap_author_names.setToolTip(_("Swap the firstname and lastname of the author. This affects only metadata read from file names."))
        self.opt_swap_author_names.setText(_("&Swap author firstname and lastname"))
        self.metadata_box.setTitle(_("&Configure metadata from file name"))
        TabWidget.setTabText(TabWidget.indexOf(self.tab), _("&Adding books"))
        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_update_metadata.setText(_("Update &metadata in saved copies"))
        self.opt_write_opf.setText(_("Save metadata in &OPF file"))
        self.opt_asciiize.setText(_("Convert non-English characters to &English equivalents"))
        self.label_2.setText(_("Format &dates as:"))
        self.label_3.setText(_("File &formats to save:"))
        self.opt_replace_whitespace.setText(_("Replace space with &underscores"))
        self.opt_to_lowercase.setText(_("Change paths to &lowercase"))
        TabWidget.setTabText(TabWidget.indexOf(self.tab1), _("&Saving books"))
        self.label_4.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->Plugins"))
        TabWidget.setTabText(TabWidget.indexOf(self.tab_2), _("Sending to &device"))

from calibre.gui2.dialogs.config.save_template import SaveTemplate

Generated by  Doxygen 1.6.0   Back to index