1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'article_dialog.ui'
5 # Created: Sat Nov 27 10:58:22 2010
6 # by: PyQt4 UI code generator 4.7.4
8 # WARNING! All changes made in this file will be lost!
10 from PyQt4
import QtCore
, QtGui
12 class Ui_ArticleDialog(object):
13 def setupUi(self
, ArticleDialog
):
14 ArticleDialog
.setObjectName("ArticleDialog")
15 ArticleDialog
.resize(624, 544)
16 ArticleDialog
.setSizeGripEnabled(True)
17 ArticleDialog
.setModal(True)
18 self
.gridLayout
= QtGui
.QGridLayout(ArticleDialog
)
19 self
.gridLayout
.setObjectName("gridLayout")
20 self
.label
= QtGui
.QLabel(ArticleDialog
)
21 self
.label
.setObjectName("label")
22 self
.gridLayout
.addWidget(self
.label
, 0, 0, 1, 1)
23 self
.article_title
= QtGui
.QLineEdit(ArticleDialog
)
24 self
.article_title
.setObjectName("article_title")
25 self
.gridLayout
.addWidget(self
.article_title
, 0, 3, 1, 14)
26 self
.label_2
= QtGui
.QLabel(ArticleDialog
)
27 self
.label_2
.setObjectName("label_2")
28 self
.gridLayout
.addWidget(self
.label_2
, 1, 0, 1, 2)
29 self
.keywords
= QtGui
.QLineEdit(ArticleDialog
)
30 self
.keywords
.setObjectName("keywords")
31 self
.gridLayout
.addWidget(self
.keywords
, 1, 3, 1, 14)
32 self
.label_3
= QtGui
.QLabel(ArticleDialog
)
33 self
.label_3
.setObjectName("label_3")
34 self
.gridLayout
.addWidget(self
.label_3
, 2, 0, 1, 2)
35 self
.summary
= QtGui
.QPlainTextEdit(ArticleDialog
)
36 self
.summary
.setVerticalScrollBarPolicy(QtCore
.Qt
.ScrollBarAlwaysOn
)
37 self
.summary
.setTabChangesFocus(True)
38 self
.summary
.setObjectName("summary")
39 self
.gridLayout
.addWidget(self
.summary
, 2, 3, 1, 14)
40 self
.label_5
= QtGui
.QLabel(ArticleDialog
)
41 self
.label_5
.setObjectName("label_5")
42 self
.gridLayout
.addWidget(self
.label_5
, 3, 0, 1, 3)
43 self
.bold
= QtGui
.QToolButton(ArticleDialog
)
47 self
.bold
.setFont(font
)
50 icon
.addPixmap(QtGui
.QPixmap(":/bia/resources/bold.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
51 self
.bold
.setIcon(icon
)
52 self
.bold
.setAutoRaise(False)
53 self
.bold
.setObjectName("bold")
54 self
.gridLayout
.addWidget(self
.bold
, 4, 0, 1, 1)
55 self
.italic
= QtGui
.QToolButton(ArticleDialog
)
58 self
.italic
.setFont(font
)
59 self
.italic
.setText("")
61 icon1
.addPixmap(QtGui
.QPixmap(":/bia/resources/italic.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
62 self
.italic
.setIcon(icon1
)
63 self
.italic
.setAutoRaise(False)
64 self
.italic
.setObjectName("italic")
65 self
.gridLayout
.addWidget(self
.italic
, 4, 1, 1, 1)
66 self
.preformat
= QtGui
.QToolButton(ArticleDialog
)
67 self
.preformat
.setText("")
69 icon2
.addPixmap(QtGui
.QPixmap(":/bia/resources/pre.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
70 self
.preformat
.setIcon(icon2
)
71 self
.preformat
.setAutoRaise(False)
72 self
.preformat
.setObjectName("preformat")
73 self
.gridLayout
.addWidget(self
.preformat
, 4, 2, 1, 1)
74 self
.paraleft
= QtGui
.QToolButton(ArticleDialog
)
75 self
.paraleft
.setText("")
77 icon3
.addPixmap(QtGui
.QPixmap(":/bia/resources/left.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
78 self
.paraleft
.setIcon(icon3
)
79 self
.paraleft
.setAutoRaise(False)
80 self
.paraleft
.setObjectName("paraleft")
81 self
.gridLayout
.addWidget(self
.paraleft
, 4, 3, 1, 1)
82 self
.paracenter
= QtGui
.QToolButton(ArticleDialog
)
83 self
.paracenter
.setText("")
85 icon4
.addPixmap(QtGui
.QPixmap(":/bia/resources/center.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
86 self
.paracenter
.setIcon(icon4
)
87 self
.paracenter
.setAutoRaise(False)
88 self
.paracenter
.setObjectName("paracenter")
89 self
.gridLayout
.addWidget(self
.paracenter
, 4, 4, 1, 1)
90 self
.pararight
= QtGui
.QToolButton(ArticleDialog
)
91 self
.pararight
.setText("")
93 icon5
.addPixmap(QtGui
.QPixmap(":/bia/resources/right.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
94 self
.pararight
.setIcon(icon5
)
95 self
.pararight
.setAutoRaise(False)
96 self
.pararight
.setObjectName("pararight")
97 self
.gridLayout
.addWidget(self
.pararight
, 4, 5, 1, 1)
98 self
.parajustify
= QtGui
.QToolButton(ArticleDialog
)
99 self
.parajustify
.setText("")
100 icon6
= QtGui
.QIcon()
101 icon6
.addPixmap(QtGui
.QPixmap(":/bia/resources/justify.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
102 self
.parajustify
.setIcon(icon6
)
103 self
.parajustify
.setAutoRaise(False)
104 self
.parajustify
.setObjectName("parajustify")
105 self
.gridLayout
.addWidget(self
.parajustify
, 4, 6, 1, 1)
106 self
.image
= QtGui
.QToolButton(ArticleDialog
)
108 font
.setUnderline(True)
109 self
.image
.setFont(font
)
110 self
.image
.setText("")
111 icon7
= QtGui
.QIcon()
112 icon7
.addPixmap(QtGui
.QPixmap(":/bia/resources/img.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
113 self
.image
.setIcon(icon7
)
114 self
.image
.setAutoRaise(False)
115 self
.image
.setObjectName("image")
116 self
.gridLayout
.addWidget(self
.image
, 4, 7, 1, 1)
117 self
.flash
= QtGui
.QToolButton(ArticleDialog
)
118 self
.flash
.setText("")
119 icon8
= QtGui
.QIcon()
120 icon8
.addPixmap(QtGui
.QPixmap(":/bia/resources/flash.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
121 self
.flash
.setIcon(icon8
)
122 self
.flash
.setAutoRaise(False)
123 self
.flash
.setObjectName("flash")
124 self
.gridLayout
.addWidget(self
.flash
, 4, 8, 1, 1)
125 self
.bullets
= QtGui
.QToolButton(ArticleDialog
)
126 self
.bullets
.setText("")
127 icon9
= QtGui
.QIcon()
128 icon9
.addPixmap(QtGui
.QPixmap(":/bia/resources/bullets.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
129 self
.bullets
.setIcon(icon9
)
130 self
.bullets
.setAutoRaise(False)
131 self
.bullets
.setObjectName("bullets")
132 self
.gridLayout
.addWidget(self
.bullets
, 4, 9, 1, 1)
133 self
.numbered
= QtGui
.QToolButton(ArticleDialog
)
134 self
.numbered
.setText("")
135 icon10
= QtGui
.QIcon()
136 icon10
.addPixmap(QtGui
.QPixmap(":/bia/resources/numbers.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
137 self
.numbered
.setIcon(icon10
)
138 self
.numbered
.setAutoRaise(False)
139 self
.numbered
.setObjectName("numbered")
140 self
.gridLayout
.addWidget(self
.numbered
, 4, 10, 1, 1)
141 self
.codeblock
= QtGui
.QToolButton(ArticleDialog
)
142 self
.codeblock
.setText("")
143 icon11
= QtGui
.QIcon()
144 icon11
.addPixmap(QtGui
.QPixmap(":/bia/resources/code.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
145 self
.codeblock
.setIcon(icon11
)
146 self
.codeblock
.setAutoRaise(False)
147 self
.codeblock
.setObjectName("codeblock")
148 self
.gridLayout
.addWidget(self
.codeblock
, 4, 11, 1, 1)
149 self
.table
= QtGui
.QToolButton(ArticleDialog
)
150 self
.table
.setText("")
151 icon12
= QtGui
.QIcon()
152 icon12
.addPixmap(QtGui
.QPixmap(":/bia/resources/table.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
153 self
.table
.setIcon(icon12
)
154 self
.table
.setAutoRaise(False)
155 self
.table
.setObjectName("table")
156 self
.gridLayout
.addWidget(self
.table
, 4, 12, 1, 1)
157 self
.blockquote
= QtGui
.QToolButton(ArticleDialog
)
158 self
.blockquote
.setText("")
159 icon13
= QtGui
.QIcon()
160 icon13
.addPixmap(QtGui
.QPixmap(":/bia/resources/bquote.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
161 self
.blockquote
.setIcon(icon13
)
162 self
.blockquote
.setAutoRaise(False)
163 self
.blockquote
.setObjectName("blockquote")
164 self
.gridLayout
.addWidget(self
.blockquote
, 4, 13, 1, 1)
165 self
.hrule
= QtGui
.QToolButton(ArticleDialog
)
166 self
.hrule
.setText("")
167 icon14
= QtGui
.QIcon()
168 icon14
.addPixmap(QtGui
.QPixmap(":/bia/resources/hr.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
169 self
.hrule
.setIcon(icon14
)
170 self
.hrule
.setAutoRaise(False)
171 self
.hrule
.setObjectName("hrule")
172 self
.gridLayout
.addWidget(self
.hrule
, 4, 14, 1, 1)
173 self
.paragraph
= QtGui
.QToolButton(ArticleDialog
)
174 self
.paragraph
.setText("")
175 icon15
= QtGui
.QIcon()
176 icon15
.addPixmap(QtGui
.QPixmap(":/bia/resources/par.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
177 self
.paragraph
.setIcon(icon15
)
178 self
.paragraph
.setAutoRaise(False)
179 self
.paragraph
.setObjectName("paragraph")
180 self
.gridLayout
.addWidget(self
.paragraph
, 4, 15, 1, 1)
181 self
.linebreak
= QtGui
.QToolButton(ArticleDialog
)
182 self
.linebreak
.setText("")
183 icon16
= QtGui
.QIcon()
184 icon16
.addPixmap(QtGui
.QPixmap(":/bia/resources/br.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
185 self
.linebreak
.setIcon(icon16
)
186 self
.linebreak
.setAutoRaise(False)
187 self
.linebreak
.setObjectName("linebreak")
188 self
.gridLayout
.addWidget(self
.linebreak
, 4, 16, 1, 1)
189 self
.content
= QtGui
.QPlainTextEdit(ArticleDialog
)
190 self
.content
.setMinimumSize(QtCore
.QSize(0, 210))
191 self
.content
.setVerticalScrollBarPolicy(QtCore
.Qt
.ScrollBarAlwaysOn
)
192 self
.content
.setObjectName("content")
193 self
.gridLayout
.addWidget(self
.content
, 5, 0, 1, 17)
194 self
.label_4
= QtGui
.QLabel(ArticleDialog
)
195 self
.label_4
.setObjectName("label_4")
196 self
.gridLayout
.addWidget(self
.label_4
, 6, 0, 1, 2)
197 self
.category
= QtGui
.QComboBox(ArticleDialog
)
198 self
.category
.setObjectName("category")
199 self
.gridLayout
.addWidget(self
.category
, 6, 2, 1, 7)
200 self
.label_6
= QtGui
.QLabel(ArticleDialog
)
201 self
.label_6
.setObjectName("label_6")
202 self
.gridLayout
.addWidget(self
.label_6
, 6, 9, 1, 2)
203 self
.rating
= QtGui
.QSpinBox(ArticleDialog
)
204 self
.rating
.setMinimum(1)
205 self
.rating
.setMaximum(10)
206 self
.rating
.setObjectName("rating")
207 self
.gridLayout
.addWidget(self
.rating
, 6, 11, 1, 6)
208 self
.label_7
= QtGui
.QLabel(ArticleDialog
)
209 self
.label_7
.setObjectName("label_7")
210 self
.gridLayout
.addWidget(self
.label_7
, 7, 0, 1, 8)
211 self
.stub
= QtGui
.QLineEdit(ArticleDialog
)
212 self
.stub
.setObjectName("stub")
213 self
.gridLayout
.addWidget(self
.stub
, 7, 8, 1, 9)
214 self
.buttonBox
= QtGui
.QDialogButtonBox(ArticleDialog
)
215 self
.buttonBox
.setOrientation(QtCore
.Qt
.Horizontal
)
216 self
.buttonBox
.setStandardButtons(QtGui
.QDialogButtonBox
.Cancel|QtGui
.QDialogButtonBox
.Ok
)
217 self
.buttonBox
.setObjectName("buttonBox")
218 self
.gridLayout
.addWidget(self
.buttonBox
, 8, 0, 1, 17)
220 self
.retranslateUi(ArticleDialog
)
221 QtCore
.QObject
.connect(self
.buttonBox
, QtCore
.SIGNAL("accepted()"), ArticleDialog
.accept
)
222 QtCore
.QObject
.connect(self
.buttonBox
, QtCore
.SIGNAL("rejected()"), ArticleDialog
.reject
)
223 QtCore
.QMetaObject
.connectSlotsByName(ArticleDialog
)
225 def retranslateUi(self
, ArticleDialog
):
226 ArticleDialog
.setWindowTitle(QtGui
.QApplication
.translate("ArticleDialog", "Article", None, QtGui
.QApplication
.UnicodeUTF8
))
227 self
.label
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Title", None, QtGui
.QApplication
.UnicodeUTF8
))
228 self
.label_2
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Keywords", None, QtGui
.QApplication
.UnicodeUTF8
))
229 self
.label_3
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Summary", None, QtGui
.QApplication
.UnicodeUTF8
))
230 self
.label_5
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Article content", None, QtGui
.QApplication
.UnicodeUTF8
))
231 self
.bold
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "Bold", None, QtGui
.QApplication
.UnicodeUTF8
))
232 self
.italic
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "Italic", None, QtGui
.QApplication
.UnicodeUTF8
))
233 self
.preformat
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "Preformatted text", None, QtGui
.QApplication
.UnicodeUTF8
))
234 self
.paraleft
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "Left align para", None, QtGui
.QApplication
.UnicodeUTF8
))
235 self
.paracenter
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "Center para", None, QtGui
.QApplication
.UnicodeUTF8
))
236 self
.pararight
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "Right align para", None, QtGui
.QApplication
.UnicodeUTF8
))
237 self
.parajustify
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "Justify para", None, QtGui
.QApplication
.UnicodeUTF8
))
238 self
.image
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "Insert image", None, QtGui
.QApplication
.UnicodeUTF8
))
239 self
.flash
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "Insert flash object", None, QtGui
.QApplication
.UnicodeUTF8
))
240 self
.bullets
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "Bulleted list", None, QtGui
.QApplication
.UnicodeUTF8
))
241 self
.numbered
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "Numbered list", None, QtGui
.QApplication
.UnicodeUTF8
))
242 self
.codeblock
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "Code block", None, QtGui
.QApplication
.UnicodeUTF8
))
243 self
.table
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "Table", None, QtGui
.QApplication
.UnicodeUTF8
))
244 self
.blockquote
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "Blockquote", None, QtGui
.QApplication
.UnicodeUTF8
))
245 self
.hrule
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "Horizontal rule", None, QtGui
.QApplication
.UnicodeUTF8
))
246 self
.linebreak
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "Line break", None, QtGui
.QApplication
.UnicodeUTF8
))
247 self
.label_4
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Category", None, QtGui
.QApplication
.UnicodeUTF8
))
248 self
.label_6
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Rating", None, QtGui
.QApplication
.UnicodeUTF8
))
249 self
.label_7
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Stub (file name without HTML extension)", None, QtGui
.QApplication
.UnicodeUTF8
))