~ubuntu-branches/debian/wheezy/calibre/wheezy

« back to all changes in this revision

Viewing changes to src/calibre/gui2/catalog/catalog_bibtex_ui.py

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2010-08-11 11:30:57 UTC
  • mfrom: (1.3.14 upstream)
  • mto: (29.3.2 oneiric)
  • mto: This revision was merged to the branch mainline in revision 31.
  • Revision ID: james.westby@ubuntu.com-20100811113057-2jhbcbavxw7wlt0c
Tags: 0.7.13+dfsg-1
* New upstream version.
* debian/control: Add python-routes recommends. (Closes: #590561)
* Convert to 3.0 (quilt) source format.
* Bump debhelper compat level to 7, and drop now obsolete
  DEB_DH_INSTALL_SOURCEDIR in debian/rules.
* debian/control: Add missing ${misc:Depends}.
* debian/control: Bump Standards-Version to 3.9.1.
* debian/copyright: Replace obsolete reference to
  /usr/share/common-licenses/BSD with their verbatim text from the original
  source.
* debian/rules: Remove invalid hashbang lines from *.recipe, these have no
  __main__.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
 
 
3
# Form implementation generated from reading ui file '/home/kovid/work/calibre/src/calibre/gui2/catalog/catalog_bibtex.ui'
 
4
#
 
5
# Created: Fri Jul 16 10:06:31 2010
 
6
#      by: PyQt4 UI code generator 4.7.4
 
7
#
 
8
# WARNING! All changes made in this file will be lost!
 
9
 
 
10
from PyQt4 import QtCore, QtGui
 
11
 
 
12
class Ui_Form(object):
 
13
    def setupUi(self, Form):
 
14
        Form.setObjectName("Form")
 
15
        Form.resize(579, 411)
 
16
        self.gridLayout = QtGui.QGridLayout(Form)
 
17
        self.gridLayout.setObjectName("gridLayout")
 
18
        self.label = QtGui.QLabel(Form)
 
19
        self.label.setObjectName("label")
 
20
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
 
21
        self.label_5 = QtGui.QLabel(Form)
 
22
        self.label_5.setObjectName("label_5")
 
23
        self.gridLayout.addWidget(self.label_5, 0, 1, 1, 1)
 
24
        self.bibfile_enc = QtGui.QComboBox(Form)
 
25
        self.bibfile_enc.setObjectName("bibfile_enc")
 
26
        self.bibfile_enc.addItem("")
 
27
        self.bibfile_enc.setItemText(0, "utf-8")
 
28
        self.bibfile_enc.addItem("")
 
29
        self.bibfile_enc.setItemText(1, "cp1252")
 
30
        self.bibfile_enc.addItem("")
 
31
        self.gridLayout.addWidget(self.bibfile_enc, 1, 0, 1, 1)
 
32
        self.db_fields = QtGui.QListWidget(Form)
 
33
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
 
34
        sizePolicy.setHorizontalStretch(0)
 
35
        sizePolicy.setVerticalStretch(0)
 
36
        sizePolicy.setHeightForWidth(self.db_fields.sizePolicy().hasHeightForWidth())
 
37
        self.db_fields.setSizePolicy(sizePolicy)
 
38
        self.db_fields.setToolTip("")
 
39
        self.db_fields.setSelectionMode(QtGui.QAbstractItemView.MultiSelection)
 
40
        self.db_fields.setObjectName("db_fields")
 
41
        self.gridLayout.addWidget(self.db_fields, 1, 1, 12, 1)
 
42
        self.label_2 = QtGui.QLabel(Form)
 
43
        self.label_2.setObjectName("label_2")
 
44
        self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
 
45
        self.bibfile_enctag = QtGui.QComboBox(Form)
 
46
        self.bibfile_enctag.setObjectName("bibfile_enctag")
 
47
        self.bibfile_enctag.addItem("")
 
48
        self.bibfile_enctag.addItem("")
 
49
        self.bibfile_enctag.addItem("")
 
50
        self.bibfile_enctag.addItem("")
 
51
        self.gridLayout.addWidget(self.bibfile_enctag, 3, 0, 1, 1)
 
52
        spacerItem = QtGui.QSpacerItem(20, 60, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
 
53
        self.gridLayout.addItem(spacerItem, 4, 0, 1, 1)
 
54
        self.label_6 = QtGui.QLabel(Form)
 
55
        self.label_6.setObjectName("label_6")
 
56
        self.gridLayout.addWidget(self.label_6, 5, 0, 1, 1)
 
57
        self.bib_entry = QtGui.QComboBox(Form)
 
58
        self.bib_entry.setObjectName("bib_entry")
 
59
        self.bib_entry.addItem("")
 
60
        self.bib_entry.addItem("")
 
61
        self.bib_entry.addItem("")
 
62
        self.gridLayout.addWidget(self.bib_entry, 6, 0, 1, 1)
 
63
        self.impcit = QtGui.QCheckBox(Form)
 
64
        self.impcit.setObjectName("impcit")
 
65
        self.gridLayout.addWidget(self.impcit, 7, 0, 1, 1)
 
66
        self.label_3 = QtGui.QLabel(Form)
 
67
        self.label_3.setObjectName("label_3")
 
68
        self.gridLayout.addWidget(self.label_3, 8, 0, 1, 1)
 
69
        self.bib_cit = QtGui.QLineEdit(Form)
 
70
        self.bib_cit.setObjectName("bib_cit")
 
71
        self.gridLayout.addWidget(self.bib_cit, 10, 0, 1, 1)
 
72
        self.label_4 = QtGui.QLabel(Form)
 
73
        self.label_4.setScaledContents(False)
 
74
        self.label_4.setObjectName("label_4")
 
75
        self.gridLayout.addWidget(self.label_4, 11, 0, 1, 1)
 
76
 
 
77
        self.retranslateUi(Form)
 
78
        QtCore.QMetaObject.connectSlotsByName(Form)
 
79
 
 
80
    def retranslateUi(self, Form):
 
81
        Form.setWindowTitle(_("Form"))
 
82
        self.label.setText(_("Bib file encoding:"))
 
83
        self.label_5.setText(_("Fields to include in output:"))
 
84
        self.bibfile_enc.setItemText(2, _("ascii/LaTeX"))
 
85
        self.label_2.setText(_("Encoding configuration (change if you have errors) :"))
 
86
        self.bibfile_enctag.setItemText(0, _("strict"))
 
87
        self.bibfile_enctag.setItemText(1, _("replace"))
 
88
        self.bibfile_enctag.setItemText(2, _("ignore"))
 
89
        self.bibfile_enctag.setItemText(3, _("backslashreplace"))
 
90
        self.label_6.setText(_("BibTeX entry type:"))
 
91
        self.bib_entry.setItemText(0, _("mixed"))
 
92
        self.bib_entry.setItemText(1, _("misc"))
 
93
        self.bib_entry.setItemText(2, _("book"))
 
94
        self.impcit.setText(_("Create a citation tag?"))
 
95
        self.label_3.setText(_("Expression to form the BibTeX citation tag:"))
 
96
        self.label_4.setText(_("Some explanation about this template:\n"
 
97
" -The fields availables are \'author_sort\', \'authors\', \'id\',\n"
 
98
"    \'isbn\', \'pubdate\', \'publisher\', \'series_index\', \'series\',\n"
 
99
"   \'tags\', \'timestamp\', \'title\', \'uuid\'\n"
 
100
" -For list types ie authors and tags, only the first element\n"
 
101
"   wil be selected.\n"
 
102
" -For time field, only the date will be used. "))
 
103