1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'article_dialog.ui'
5 # Created: Fri Nov 26 21:22:47 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(660, 506)
16 self
.gridLayout
= QtGui
.QGridLayout(ArticleDialog
)
17 self
.gridLayout
.setObjectName("gridLayout")
18 self
.label
= QtGui
.QLabel(ArticleDialog
)
19 self
.label
.setObjectName("label")
20 self
.gridLayout
.addWidget(self
.label
, 0, 0, 1, 1)
21 self
.article_title
= QtGui
.QLineEdit(ArticleDialog
)
22 self
.article_title
.setObjectName("article_title")
23 self
.gridLayout
.addWidget(self
.article_title
, 0, 1, 1, 4)
24 self
.label_2
= QtGui
.QLabel(ArticleDialog
)
25 self
.label_2
.setObjectName("label_2")
26 self
.gridLayout
.addWidget(self
.label_2
, 1, 0, 1, 1)
27 self
.keywords
= QtGui
.QLineEdit(ArticleDialog
)
28 self
.keywords
.setObjectName("keywords")
29 self
.gridLayout
.addWidget(self
.keywords
, 1, 1, 1, 4)
30 self
.label_3
= QtGui
.QLabel(ArticleDialog
)
31 self
.label_3
.setObjectName("label_3")
32 self
.gridLayout
.addWidget(self
.label_3
, 2, 0, 1, 1)
33 self
.summary
= QtGui
.QPlainTextEdit(ArticleDialog
)
34 self
.summary
.setVerticalScrollBarPolicy(QtCore
.Qt
.ScrollBarAlwaysOn
)
35 self
.summary
.setObjectName("summary")
36 self
.gridLayout
.addWidget(self
.summary
, 2, 1, 1, 4)
37 self
.label_5
= QtGui
.QLabel(ArticleDialog
)
38 self
.label_5
.setObjectName("label_5")
39 self
.gridLayout
.addWidget(self
.label_5
, 3, 0, 1, 2)
40 self
.content
= QtGui
.QPlainTextEdit(ArticleDialog
)
41 self
.content
.setMinimumSize(QtCore
.QSize(0, 210))
42 self
.content
.setVerticalScrollBarPolicy(QtCore
.Qt
.ScrollBarAlwaysOn
)
43 self
.content
.setObjectName("content")
44 self
.gridLayout
.addWidget(self
.content
, 4, 0, 1, 5)
45 self
.label_4
= QtGui
.QLabel(ArticleDialog
)
46 self
.label_4
.setObjectName("label_4")
47 self
.gridLayout
.addWidget(self
.label_4
, 5, 0, 1, 1)
48 self
.category
= QtGui
.QComboBox(ArticleDialog
)
49 self
.category
.setObjectName("category")
50 self
.gridLayout
.addWidget(self
.category
, 5, 1, 1, 2)
51 self
.label_6
= QtGui
.QLabel(ArticleDialog
)
52 self
.label_6
.setObjectName("label_6")
53 self
.gridLayout
.addWidget(self
.label_6
, 5, 3, 1, 1)
54 self
.rating
= QtGui
.QSpinBox(ArticleDialog
)
55 self
.rating
.setMinimum(1)
56 self
.rating
.setMaximum(10)
57 self
.rating
.setObjectName("rating")
58 self
.gridLayout
.addWidget(self
.rating
, 5, 4, 1, 1)
59 self
.label_7
= QtGui
.QLabel(ArticleDialog
)
60 self
.label_7
.setObjectName("label_7")
61 self
.gridLayout
.addWidget(self
.label_7
, 6, 0, 1, 2)
62 self
.stub
= QtGui
.QLineEdit(ArticleDialog
)
63 self
.stub
.setObjectName("stub")
64 self
.gridLayout
.addWidget(self
.stub
, 6, 2, 1, 3)
65 self
.buttonBox
= QtGui
.QDialogButtonBox(ArticleDialog
)
66 self
.buttonBox
.setOrientation(QtCore
.Qt
.Horizontal
)
67 self
.buttonBox
.setStandardButtons(QtGui
.QDialogButtonBox
.Cancel|QtGui
.QDialogButtonBox
.Ok
)
68 self
.buttonBox
.setObjectName("buttonBox")
69 self
.gridLayout
.addWidget(self
.buttonBox
, 7, 0, 1, 5)
71 self
.retranslateUi(ArticleDialog
)
72 QtCore
.QObject
.connect(self
.buttonBox
, QtCore
.SIGNAL("accepted()"), ArticleDialog
.accept
)
73 QtCore
.QObject
.connect(self
.buttonBox
, QtCore
.SIGNAL("rejected()"), ArticleDialog
.reject
)
74 QtCore
.QMetaObject
.connectSlotsByName(ArticleDialog
)
76 def retranslateUi(self
, ArticleDialog
):
77 ArticleDialog
.setWindowTitle(QtGui
.QApplication
.translate("ArticleDialog", "Article", None, QtGui
.QApplication
.UnicodeUTF8
))
78 self
.label
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Title", None, QtGui
.QApplication
.UnicodeUTF8
))
79 self
.label_2
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Keywords", None, QtGui
.QApplication
.UnicodeUTF8
))
80 self
.label_3
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Summary", None, QtGui
.QApplication
.UnicodeUTF8
))
81 self
.label_5
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Article content", None, QtGui
.QApplication
.UnicodeUTF8
))
82 self
.label_4
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Category", None, QtGui
.QApplication
.UnicodeUTF8
))
83 self
.label_6
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Rating", None, QtGui
.QApplication
.UnicodeUTF8
))
84 self
.label_7
.setText(QtGui
.QApplication
.translate("ArticleDialog", "Stub (file name without HTML extension)", None, QtGui
.QApplication
.UnicodeUTF8
))