7e42cc7a64eb06329ec07c3a69625b7f83ef819f
1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'article_dialog.ui'
5 # Created: Sun Nov 28 13:59:41 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(654, 544)
16 ArticleDialog
.setAutoFillBackground(False)
17 ArticleDialog
.setSizeGripEnabled(True)
18 ArticleDialog
.setModal(True)
19 self
.gridLayout
= QtGui
.QGridLayout(ArticleDialog
)
20 self
.gridLayout
.setObjectName("gridLayout")
21 self
.label
= QtGui
.QLabel(ArticleDialog
)
22 self
.label
.setObjectName("label")
23 self
.gridLayout
.addWidget(self
.label
, 0, 0, 1, 1)
24 self
.article_title
= QtGui
.QLineEdit(ArticleDialog
)
25 self
.article_title
.setObjectName("article_title")
26 self
.gridLayout
.addWidget(self
.article_title
, 0, 3, 1, 19)
27 self
.label_2
= QtGui
.QLabel(ArticleDialog
)
28 self
.label_2
.setObjectName("label_2")
29 self
.gridLayout
.addWidget(self
.label_2
, 1, 0, 1, 2)
30 self
.keywords
= QtGui
.QLineEdit(ArticleDialog
)
31 self
.keywords
.setObjectName("keywords")
32 self
.gridLayout
.addWidget(self
.keywords
, 1, 3, 1, 19)
33 self
.label_3
= QtGui
.QLabel(ArticleDialog
)
34 self
.label_3
.setObjectName("label_3")
35 self
.gridLayout
.addWidget(self
.label_3
, 2, 0, 1, 2)
36 self
.summary
= QtGui
.QPlainTextEdit(ArticleDialog
)
37 self
.summary
.setVerticalScrollBarPolicy(QtCore
.Qt
.ScrollBarAlwaysOn
)
38 self
.summary
.setTabChangesFocus(True)
39 self
.summary
.setObjectName("summary")
40 self
.gridLayout
.addWidget(self
.summary
, 2, 3, 1, 19)
41 self
.label_5
= QtGui
.QLabel(ArticleDialog
)
42 self
.label_5
.setObjectName("label_5")
43 self
.gridLayout
.addWidget(self
.label_5
, 3, 0, 1, 3)
44 self
.bold
= QtGui
.QToolButton(ArticleDialog
)
48 self
.bold
.setFont(font
)
49 self
.bold
.setFocusPolicy(QtCore
.Qt
.NoFocus
)
52 icon
.addPixmap(QtGui
.QPixmap(":/bia/resources/bold.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
53 self
.bold
.setIcon(icon
)
54 self
.bold
.setAutoRaise(False)
55 self
.bold
.setObjectName("bold")
56 self
.gridLayout
.addWidget(self
.bold
, 4, 0, 1, 1)
57 self
.italic
= QtGui
.QToolButton(ArticleDialog
)
60 self
.italic
.setFont(font
)
61 self
.italic
.setFocusPolicy(QtCore
.Qt
.NoFocus
)
62 self
.italic
.setText("")
64 icon1
.addPixmap(QtGui
.QPixmap(":/bia/resources/italic.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
65 self
.italic
.setIcon(icon1
)
66 self
.italic
.setAutoRaise(False)
67 self
.italic
.setObjectName("italic")
68 self
.gridLayout
.addWidget(self
.italic
, 4, 1, 1, 1)
69 self
.preformat
= QtGui
.QToolButton(ArticleDialog
)
70 self
.preformat
.setFocusPolicy(QtCore
.Qt
.NoFocus
)
71 self
.preformat
.setText("")
73 icon2
.addPixmap(QtGui
.QPixmap(":/bia/resources/pre.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
74 self
.preformat
.setIcon(icon2
)
75 self
.preformat
.setAutoRaise(False)
76 self
.preformat
.setObjectName("preformat")
77 self
.gridLayout
.addWidget(self
.preformat
, 4, 2, 1, 1)
78 self
.pararight
= QtGui
.QToolButton(ArticleDialog
)
79 self
.pararight
.setFocusPolicy(QtCore
.Qt
.NoFocus
)
80 self
.pararight
.setText("")
82 icon3
.addPixmap(QtGui
.QPixmap(":/bia/resources/right.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
83 self
.pararight
.setIcon(icon3
)
84 self
.pararight
.setAutoRaise(False)
85 self
.pararight
.setObjectName("pararight")
86 self
.gridLayout
.addWidget(self
.pararight
, 4, 8, 1, 1)
87 self
.parajustify
= QtGui
.QToolButton(ArticleDialog
)
88 self
.parajustify
.setFocusPolicy(QtCore
.Qt
.NoFocus
)
89 self
.parajustify
.setText("")
91 icon4
.addPixmap(QtGui
.QPixmap(":/bia/resources/justify.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
92 self
.parajustify
.setIcon(icon4
)
93 self
.parajustify
.setAutoRaise(False)
94 self
.parajustify
.setObjectName("parajustify")
95 self
.gridLayout
.addWidget(self
.parajustify
, 4, 9, 1, 1)
96 self
.bullets
= QtGui
.QToolButton(ArticleDialog
)
97 self
.bullets
.setFocusPolicy(QtCore
.Qt
.NoFocus
)
98 self
.bullets
.setText("")
100 icon5
.addPixmap(QtGui
.QPixmap(":/bia/resources/bullets.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
101 self
.bullets
.setIcon(icon5
)
102 self
.bullets
.setAutoRaise(False)
103 self
.bullets
.setObjectName("bullets")
104 self
.gridLayout
.addWidget(self
.bullets
, 4, 13, 1, 1)
105 self
.numbered
= QtGui
.QToolButton(ArticleDialog
)
106 self
.numbered
.setFocusPolicy(QtCore
.Qt
.NoFocus
)
107 self
.numbered
.setText("")
108 icon6
= QtGui
.QIcon()
109 icon6
.addPixmap(QtGui
.QPixmap(":/bia/resources/numbers.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
110 self
.numbered
.setIcon(icon6
)
111 self
.numbered
.setAutoRaise(False)
112 self
.numbered
.setObjectName("numbered")
113 self
.gridLayout
.addWidget(self
.numbered
, 4, 14, 1, 1)
114 self
.codeblock
= QtGui
.QToolButton(ArticleDialog
)
115 self
.codeblock
.setFocusPolicy(QtCore
.Qt
.NoFocus
)
116 self
.codeblock
.setText("")
117 icon7
= QtGui
.QIcon()
118 icon7
.addPixmap(QtGui
.QPixmap(":/bia/resources/code.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
119 self
.codeblock
.setIcon(icon7
)
120 self
.codeblock
.setAutoRaise(False)
121 self
.codeblock
.setObjectName("codeblock")
122 self
.gridLayout
.addWidget(self
.codeblock
, 4, 16, 1, 1)
123 self
.table
= QtGui
.QToolButton(ArticleDialog
)
124 self
.table
.setFocusPolicy(QtCore
.Qt
.NoFocus
)
125 self
.table
.setText("")
126 icon8
= QtGui
.QIcon()
127 icon8
.addPixmap(QtGui
.QPixmap(":/bia/resources/table.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
128 self
.table
.setIcon(icon8
)
129 self
.table
.setAutoRaise(False)
130 self
.table
.setObjectName("table")
131 self
.gridLayout
.addWidget(self
.table
, 4, 17, 1, 1)
132 self
.hrule
= QtGui
.QToolButton(ArticleDialog
)
133 self
.hrule
.setFocusPolicy(QtCore
.Qt
.NoFocus
)
134 self
.hrule
.setText("")
135 icon9
= QtGui
.QIcon()
136 icon9
.addPixmap(QtGui
.QPixmap(":/bia/resources/hr.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
137 self
.hrule
.setIcon(icon9
)
138 self
.hrule
.setAutoRaise(False)
139 self
.hrule
.setObjectName("hrule")
140 self
.gridLayout
.addWidget(self
.hrule
, 4, 19, 1, 1)
141 self
.paragraph
= QtGui
.QToolButton(ArticleDialog
)
142 self
.paragraph
.setFocusPolicy(QtCore
.Qt
.NoFocus
)
143 self
.paragraph
.setText("")
144 icon10
= QtGui
.QIcon()
145 icon10
.addPixmap(QtGui
.QPixmap(":/bia/resources/par.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
146 self
.paragraph
.setIcon(icon10
)
147 self
.paragraph
.setAutoRaise(False)
148 self
.paragraph
.setObjectName("paragraph")
149 self
.gridLayout
.addWidget(self
.paragraph
, 4, 20, 1, 1)
150 self
.linebreak
= QtGui
.QToolButton(ArticleDialog
)
151 self
.linebreak
.setFocusPolicy(QtCore
.Qt
.NoFocus
)
152 self
.linebreak
.setText("")
153 icon11
= QtGui
.QIcon()
154 icon11
.addPixmap(QtGui
.QPixmap(":/bia/resources/br.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
155 self
.linebreak
.setIcon(icon11
)
156 self
.linebreak
.setAutoRaise(False)
157 self
.linebreak
.setObjectName("linebreak")
158 self
.gridLayout
.addWidget(self
.linebreak
, 4, 21, 1, 1)
159 self
.content
= QtGui
.QPlainTextEdit(ArticleDialog
)
160 self
.content
.setMinimumSize(QtCore
.QSize(0, 210))
161 self
.content
.setVerticalScrollBarPolicy(QtCore
.Qt
.ScrollBarAlwaysOn
)
162 self
.content
.setObjectName("content")
163 self
.gridLayout
.addWidget(self
.content
, 5, 0, 1, 22)
164 self
.label_4
= QtGui
.QLabel(ArticleDialog
)
165 self
.label_4
.setObjectName("label_4")
166 self
.gridLayout
.addWidget(self
.label_4
, 6, 0, 1, 2)
167 self
.category
= QtGui
.QComboBox(ArticleDialog
)
168 self
.category
.setObjectName("category")
169 self
.gridLayout
.addWidget(self
.category
, 6, 2, 1, 11)
170 self
.label_6
= QtGui
.QLabel(ArticleDialog
)
171 self
.label_6
.setObjectName("label_6")
172 self
.gridLayout
.addWidget(self
.label_6
, 6, 13, 1, 2)
173 self
.rating
= QtGui
.QSpinBox(ArticleDialog
)
174 self
.rating
.setMinimum(1)
175 self
.rating
.setMaximum(10)
176 self
.rating
.setObjectName("rating")
177 self
.gridLayout
.addWidget(self
.rating
, 6, 16, 1, 6)
178 self
.label_7
= QtGui
.QLabel(ArticleDialog
)
179 self
.label_7
.setObjectName("label_7")
180 self
.gridLayout
.addWidget(self
.label_7
, 7, 0, 1, 11)
181 self
.stub
= QtGui
.QLineEdit(ArticleDialog
)
182 self
.stub
.setObjectName("stub")
183 self
.gridLayout
.addWidget(self
.stub
, 7, 12, 1, 10)
184 self
.buttonBox
= QtGui
.QDialogButtonBox(ArticleDialog
)
185 self
.buttonBox
.setOrientation(QtCore
.Qt
.Horizontal
)
186 self
.buttonBox
.setStandardButtons(QtGui
.QDialogButtonBox
.Cancel|QtGui
.QDialogButtonBox
.Ok
)
187 self
.buttonBox
.setObjectName("buttonBox")
188 self
.gridLayout
.addWidget(self
.buttonBox
, 8, 0, 1, 22)
189 self
.image
= QtGui
.QToolButton(ArticleDialog
)
191 font
.setUnderline(True)
192 self
.image
.setFont(font
)
193 self
.image
.setFocusPolicy(QtCore
.Qt
.NoFocus
)
194 self
.image
.setText("")
195 icon12
= QtGui
.QIcon()
196 icon12
.addPixmap(QtGui
.QPixmap(":/bia/resources/img.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
197 self
.image
.setIcon(icon12
)
198 self
.image
.setAutoRaise(False)
199 self
.image
.setObjectName("image")
200 self
.gridLayout
.addWidget(self
.image
, 4, 3, 1, 1)
201 self
.link
= QtGui
.QToolButton(ArticleDialog
)
202 self
.link
.setFocusPolicy(QtCore
.Qt
.NoFocus
)
203 self
.link
.setText("")
204 icon13
= QtGui
.QIcon()
205 icon13
.addPixmap(QtGui
.QPixmap(":/bia/resources/link.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
206 self
.link
.setIcon(icon13
)
207 self
.link
.setObjectName("link")
208 self
.gridLayout
.addWidget(self
.link
, 4, 4, 1, 1)
209 self
.paracenter
= QtGui
.QToolButton(ArticleDialog
)
210 self
.paracenter
.setFocusPolicy(QtCore
.Qt
.NoFocus
)
211 self
.paracenter
.setText("")
212 icon14
= QtGui
.QIcon()
213 icon14
.addPixmap(QtGui
.QPixmap(":/bia/resources/center.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
214 self
.paracenter
.setIcon(icon14
)
215 self
.paracenter
.setAutoRaise(False)
216 self
.paracenter
.setObjectName("paracenter")
217 self
.gridLayout
.addWidget(self
.paracenter
, 4, 7, 1, 1)
218 self
.paraleft
= QtGui
.QToolButton(ArticleDialog
)
219 self
.paraleft
.setFocusPolicy(QtCore
.Qt
.NoFocus
)
220 self
.paraleft
.setText("")
221 icon15
= QtGui
.QIcon()
222 icon15
.addPixmap(QtGui
.QPixmap(":/bia/resources/left.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
223 self
.paraleft
.setIcon(icon15
)
224 self
.paraleft
.setAutoRaise(False)
225 self
.paraleft
.setObjectName("paraleft")
226 self
.gridLayout
.addWidget(self
.paraleft
, 4, 6, 1, 1)
227 self
.blockquote
= QtGui
.QToolButton(ArticleDialog
)
228 self
.blockquote
.setFocusPolicy(QtCore
.Qt
.NoFocus
)
229 self
.blockquote
.setText("")
230 icon16
= QtGui
.QIcon()
231 icon16
.addPixmap(QtGui
.QPixmap(":/bia/resources/bquote.gif"), QtGui
.QIcon
.Normal
, QtGui
.QIcon
.Off
)
232 self
.blockquote
.setIcon(icon16
)
233 self
.blockquote
.setAutoRaise(False)
234 self
.blockquote
.setObjectName("blockquote")
235 self
.gridLayout
.addWidget(self
.blockquote
, 4, 15, 1, 1)
237 self
.retranslateUi(ArticleDialog
)
238 QtCore
.QObject
.connect(self
.buttonBox
, QtCore
.SIGNAL("accepted()"), ArticleDialog
.accept
)
239 QtCore
.QObject
.connect(self
.buttonBox
, QtCore
.SIGNAL("rejected()"), ArticleDialog
.reject
)
240 QtCore
.QObject
.connect(self
.bold
, QtCore
.SIGNAL("clicked()"), ArticleDialog
.onBold
)
241 QtCore
.QObject
.connect(self
.italic
, QtCore
.SIGNAL("clicked()"), ArticleDialog
.onItalic
)
242 QtCore
.QObject
.connect(self
.preformat
, QtCore
.SIGNAL("clicked()"), ArticleDialog
.onPre
)
243 QtCore
.QObject
.connect(self
.image
, QtCore
.SIGNAL("clicked()"), ArticleDialog
.onImage
)
244 QtCore
.QObject
.connect(self
.link
, QtCore
.SIGNAL("clicked()"), ArticleDialog
.onLink
)
245 QtCore
.QObject
.connect(self
.paraleft
, QtCore
.SIGNAL("clicked()"), ArticleDialog
.onLeft
)
246 QtCore
.QObject
.connect(self
.paracenter
, QtCore
.SIGNAL("clicked()"), ArticleDialog
.onCenter
)
247 QtCore
.QObject
.connect(self
.pararight
, QtCore
.SIGNAL("clicked()"), ArticleDialog
.onRight
)
248 QtCore
.QObject
.connect(self
.parajustify
, QtCore
.SIGNAL("clicked()"), ArticleDialog
.onJustify
)
249 QtCore
.QObject
.connect(self
.bullets
, QtCore
.SIGNAL("clicked()"), ArticleDialog
.onBullet
)
250 QtCore
.QObject
.connect(self
.numbered
, QtCore
.SIGNAL("clicked()"), ArticleDialog
.onNumber
)
251 QtCore
.QObject
.connect(self
.blockquote
, QtCore
.SIGNAL("clicked()"), ArticleDialog
.onBQuote
)
252 QtCore
.QObject
.connect(self
.codeblock
, QtCore
.SIGNAL("clicked()"), ArticleDialog
.onCode
)
253 QtCore
.QObject
.connect(self
.table
, QtCore
.SIGNAL("clicked()"), ArticleDialog
.onTable
)
254 QtCore
.QObject
.connect(self
.hrule
, QtCore
.SIGNAL("clicked()"), ArticleDialog
.onHRule
)
255 QtCore
.QObject
.connect(self
.paragraph
, QtCore
.SIGNAL("clicked()"), ArticleDialog
.onPara
)
256 QtCore
.QObject
.connect(self
.linebreak
, QtCore
.SIGNAL("clicked()"), ArticleDialog
.onBreak
)
257 QtCore
.QMetaObject
.connectSlotsByName(ArticleDialog
)
258 ArticleDialog
.setTabOrder(self
.article_title
, self
.keywords
)
259 ArticleDialog
.setTabOrder(self
.keywords
, self
.summary
)
260 ArticleDialog
.setTabOrder(self
.summary
, self
.bold
)
261 ArticleDialog
.setTabOrder(self
.bold
, self
.italic
)
262 ArticleDialog
.setTabOrder(self
.italic
, self
.preformat
)
263 ArticleDialog
.setTabOrder(self
.preformat
, self
.image
)
264 ArticleDialog
.setTabOrder(self
.image
, self
.link
)
265 ArticleDialog
.setTabOrder(self
.link
, self
.paraleft
)
266 ArticleDialog
.setTabOrder(self
.paraleft
, self
.paracenter
)
267 ArticleDialog
.setTabOrder(self
.paracenter
, self
.pararight
)
268 ArticleDialog
.setTabOrder(self
.pararight
, self
.parajustify
)
269 ArticleDialog
.setTabOrder(self
.parajustify
, self
.bullets
)
270 ArticleDialog
.setTabOrder(self
.bullets
, self
.numbered
)
271 ArticleDialog
.setTabOrder(self
.numbered
, self
.blockquote
)
272 ArticleDialog
.setTabOrder(self
.blockquote
, self
.codeblock
)
273 ArticleDialog
.setTabOrder(self
.codeblock
, self
.table
)
274 ArticleDialog
.setTabOrder(self
.table
, self
.hrule
)
275 ArticleDialog
.setTabOrder(self
.hrule
, self
.paragraph
)
276 ArticleDialog
.setTabOrder(self
.paragraph
, self
.linebreak
)
277 ArticleDialog
.setTabOrder(self
.linebreak
, self
.content
)
278 ArticleDialog
.setTabOrder(self
.content
, self
.category
)
279 ArticleDialog
.setTabOrder(self
.category
, self
.rating
)
280 ArticleDialog
.setTabOrder(self
.rating
, self
.stub
)
281 ArticleDialog
.setTabOrder(self
.stub
, self
.buttonBox
)
283 def retranslateUi(self
, ArticleDialog
):
284 ArticleDialog
.setWindowTitle(QtGui
.QApplication
.translate("ArticleDialog", "Article", None, QtGui
.QApplication
.UnicodeUTF8
))
285 self
.label
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Title", None, QtGui
.QApplication
.UnicodeUTF8
))
286 self
.label_2
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Keywords", None, QtGui
.QApplication
.UnicodeUTF8
))
287 self
.label_3
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Summary", None, QtGui
.QApplication
.UnicodeUTF8
))
288 self
.label_5
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Article content", None, QtGui
.QApplication
.UnicodeUTF8
))
289 self
.bold
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
290 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
291 "p, li { white-space: pre-wrap; }\n"
292 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:600; font-style:normal;\">\n"
293 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Bold</p>\n"
294 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:400; font-style:italic;\">Shortcut: Ctrl+B</span></p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
295 self
.bold
.setShortcut(QtGui
.QApplication
.translate("ArticleDialog", "Ctrl+B", None, QtGui
.QApplication
.UnicodeUTF8
))
296 self
.italic
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
297 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
298 "p, li { white-space: pre-wrap; }\n"
299 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:italic;\">\n"
300 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Italic</p>\n"
301 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Shortcut: Ctrl+I</p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
302 self
.italic
.setShortcut(QtGui
.QApplication
.translate("ArticleDialog", "Ctrl+I", None, QtGui
.QApplication
.UnicodeUTF8
))
303 self
.preformat
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
304 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
305 "p, li { white-space: pre-wrap; }\n"
306 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
307 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Preformatted text</p>\n"
308 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Shortcut: Ctrl+F</span></p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
309 self
.preformat
.setShortcut(QtGui
.QApplication
.translate("ArticleDialog", "Ctrl+F", None, QtGui
.QApplication
.UnicodeUTF8
))
310 self
.pararight
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
311 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
312 "p, li { white-space: pre-wrap; }\n"
313 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
314 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Right align para</p>\n"
315 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Shortcut: Ctrl+R</span></p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
316 self
.pararight
.setShortcut(QtGui
.QApplication
.translate("ArticleDialog", "Ctrl+R", None, QtGui
.QApplication
.UnicodeUTF8
))
317 self
.parajustify
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
318 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
319 "p, li { white-space: pre-wrap; }\n"
320 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
321 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Justify para</p>\n"
322 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Shortcut: Ctrl+J</span></p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
323 self
.parajustify
.setShortcut(QtGui
.QApplication
.translate("ArticleDialog", "Ctrl+J", None, QtGui
.QApplication
.UnicodeUTF8
))
324 self
.bullets
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
325 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
326 "p, li { white-space: pre-wrap; }\n"
327 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
328 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Bulleted list</p>\n"
329 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Shortcut: Ctrl+. </span>(Ctrl+dot)</p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
330 self
.bullets
.setShortcut(QtGui
.QApplication
.translate("ArticleDialog", "Ctrl+.", None, QtGui
.QApplication
.UnicodeUTF8
))
331 self
.numbered
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
332 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
333 "p, li { white-space: pre-wrap; }\n"
334 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
335 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Numbered list</p>\n"
336 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Shortcut: Ctrl+1 </span>(Ctrl+One)</p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
337 self
.numbered
.setShortcut(QtGui
.QApplication
.translate("ArticleDialog", "Ctrl+1", None, QtGui
.QApplication
.UnicodeUTF8
))
338 self
.codeblock
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
339 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
340 "p, li { white-space: pre-wrap; }\n"
341 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
342 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Code block</p>\n"
343 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Shortcut: Ctrl+= </span>(Ctrl+Equals)</p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
344 self
.codeblock
.setShortcut(QtGui
.QApplication
.translate("ArticleDialog", "Ctrl+=", None, QtGui
.QApplication
.UnicodeUTF8
))
345 self
.table
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
346 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
347 "p, li { white-space: pre-wrap; }\n"
348 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
349 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Table</p>\n"
350 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Shortcut: Ctrl+T</span></p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
351 self
.table
.setShortcut(QtGui
.QApplication
.translate("ArticleDialog", "Ctrl+T", None, QtGui
.QApplication
.UnicodeUTF8
))
352 self
.hrule
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
353 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
354 "p, li { white-space: pre-wrap; }\n"
355 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
356 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Horizontal rule</p>\n"
357 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Shortcut: Ctrl+H</span></p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
358 self
.hrule
.setShortcut(QtGui
.QApplication
.translate("ArticleDialog", "Ctrl+H", None, QtGui
.QApplication
.UnicodeUTF8
))
359 self
.paragraph
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
360 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
361 "p, li { white-space: pre-wrap; }\n"
362 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
363 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Paragraph</p>\n"
364 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Shortcut: Ctrl+P</span></p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
365 self
.paragraph
.setShortcut(QtGui
.QApplication
.translate("ArticleDialog", "Ctrl+P", None, QtGui
.QApplication
.UnicodeUTF8
))
366 self
.linebreak
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
367 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
368 "p, li { white-space: pre-wrap; }\n"
369 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
370 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Line break</p>\n"
371 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Shortcut: Ctrl+Enter</span></p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
372 self
.linebreak
.setShortcut(QtGui
.QApplication
.translate("ArticleDialog", "Ctrl+Return", None, QtGui
.QApplication
.UnicodeUTF8
))
373 self
.label_4
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Category", None, QtGui
.QApplication
.UnicodeUTF8
))
374 self
.label_6
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Rating", None, QtGui
.QApplication
.UnicodeUTF8
))
375 self
.label_7
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Stub (file name without HTML extension)", None, QtGui
.QApplication
.UnicodeUTF8
))
376 self
.image
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
377 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
378 "p, li { white-space: pre-wrap; }\n"
379 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
380 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Insert image</p>\n"
381 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Shortcut: Ctrl+Shift+I</span></p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
382 self
.image
.setShortcut(QtGui
.QApplication
.translate("ArticleDialog", "Ctrl+Shift+I", None, QtGui
.QApplication
.UnicodeUTF8
))
383 self
.link
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
384 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
385 "p, li { white-space: pre-wrap; }\n"
386 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
387 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Insert link</p>\n"
388 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Shortcut: Ctrl+Shift+L</span></p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
389 self
.link
.setShortcut(QtGui
.QApplication
.translate("ArticleDialog", "Ctrl+Shift+L", None, QtGui
.QApplication
.UnicodeUTF8
))
390 self
.paracenter
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
391 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
392 "p, li { white-space: pre-wrap; }\n"
393 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
394 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Center para</p>\n"
395 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Shortcut: Ctrl+C</span></p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
396 self
.paracenter
.setShortcut(QtGui
.QApplication
.translate("ArticleDialog", "Ctrl+C", None, QtGui
.QApplication
.UnicodeUTF8
))
397 self
.paraleft
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
398 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
399 "p, li { white-space: pre-wrap; }\n"
400 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
401 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Left align para</p>\n"
402 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Shortcut: Ctrl+L</span></p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
403 self
.paraleft
.setShortcut(QtGui
.QApplication
.translate("ArticleDialog", "Ctrl+L", None, QtGui
.QApplication
.UnicodeUTF8
))
404 self
.blockquote
.setToolTip(QtGui
.QApplication
.translate("ArticleDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
405 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
406 "p, li { white-space: pre-wrap; }\n"
407 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
408 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Blockquote</p>\n"
409 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Shortcut: Ctrl+Q</span></p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
410 self
.blockquote
.setShortcut(QtGui
.QApplication
.translate("ArticleDialog", "Ctrl+Q", None, QtGui
.QApplication
.UnicodeUTF8
))