1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'site_configuration_dialog.ui'
5 # Created: Fri Nov 26 13:38:43 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_SiteConfigDialog(object):
13 def setupUi(self
, SiteConfigDialog
):
14 SiteConfigDialog
.setObjectName("SiteConfigDialog")
15 SiteConfigDialog
.setWindowModality(QtCore
.Qt
.ApplicationModal
)
16 SiteConfigDialog
.resize(562, 367)
17 SiteConfigDialog
.setModal(True)
18 self
.gridLayout
= QtGui
.QGridLayout(SiteConfigDialog
)
19 self
.gridLayout
.setObjectName("gridLayout")
20 self
.label
= QtGui
.QLabel(SiteConfigDialog
)
24 self
.label
.setFont(font
)
25 self
.label
.setObjectName("label")
26 self
.gridLayout
.addWidget(self
.label
, 0, 0, 1, 1)
27 self
.site_title
= QtGui
.QLineEdit(SiteConfigDialog
)
28 self
.site_title
.setObjectName("site_title")
29 self
.gridLayout
.addWidget(self
.site_title
, 0, 1, 1, 7)
30 self
.label_2
= QtGui
.QLabel(SiteConfigDialog
)
34 self
.label_2
.setFont(font
)
35 self
.label_2
.setObjectName("label_2")
36 self
.gridLayout
.addWidget(self
.label_2
, 1, 0, 1, 1)
37 self
.label_3
= QtGui
.QLabel(SiteConfigDialog
)
41 self
.label_3
.setFont(font
)
42 self
.label_3
.setObjectName("label_3")
43 self
.gridLayout
.addWidget(self
.label_3
, 2, 0, 1, 1)
44 self
.keywords
= QtGui
.QLineEdit(SiteConfigDialog
)
45 self
.keywords
.setObjectName("keywords")
46 self
.gridLayout
.addWidget(self
.keywords
, 2, 1, 1, 7)
47 self
.label_4
= QtGui
.QLabel(SiteConfigDialog
)
51 self
.label_4
.setFont(font
)
52 self
.label_4
.setObjectName("label_4")
53 self
.gridLayout
.addWidget(self
.label_4
, 3, 0, 1, 1)
54 self
.description
= QtGui
.QPlainTextEdit(SiteConfigDialog
)
55 self
.description
.setVerticalScrollBarPolicy(QtCore
.Qt
.ScrollBarAlwaysOn
)
56 self
.description
.setTabChangesFocus(True)
57 self
.description
.setObjectName("description")
58 self
.gridLayout
.addWidget(self
.description
, 3, 1, 1, 7)
59 self
.label_6
= QtGui
.QLabel(SiteConfigDialog
)
60 self
.label_6
.setObjectName("label_6")
61 self
.gridLayout
.addWidget(self
.label_6
, 4, 0, 1, 2)
62 self
.label_5
= QtGui
.QLabel(SiteConfigDialog
)
66 self
.label_5
.setFont(font
)
67 self
.label_5
.setObjectName("label_5")
68 self
.gridLayout
.addWidget(self
.label_5
, 5, 0, 1, 1)
69 self
.destination
= QtGui
.QLineEdit(SiteConfigDialog
)
70 self
.destination
.setObjectName("destination")
71 self
.gridLayout
.addWidget(self
.destination
, 5, 1, 1, 6)
72 self
.destination_browse_button
= QtGui
.QPushButton(SiteConfigDialog
)
73 self
.destination_browse_button
.setObjectName("destination_browse_button")
74 self
.gridLayout
.addWidget(self
.destination_browse_button
, 5, 7, 1, 1)
75 self
.buttonBox
= QtGui
.QDialogButtonBox(SiteConfigDialog
)
76 self
.buttonBox
.setOrientation(QtCore
.Qt
.Horizontal
)
77 self
.buttonBox
.setStandardButtons(QtGui
.QDialogButtonBox
.Cancel|QtGui
.QDialogButtonBox
.Ok
)
78 self
.buttonBox
.setObjectName("buttonBox")
79 self
.gridLayout
.addWidget(self
.buttonBox
, 6, 0, 1, 8)
80 self
.label_8
= QtGui
.QLabel(SiteConfigDialog
)
81 self
.label_8
.setObjectName("label_8")
82 self
.gridLayout
.addWidget(self
.label_8
, 1, 1, 1, 1)
83 self
.num_rss_items
= QtGui
.QSpinBox(SiteConfigDialog
)
84 self
.num_rss_items
.setMinimum(1)
85 self
.num_rss_items
.setMaximum(20)
86 self
.num_rss_items
.setObjectName("num_rss_items")
87 self
.gridLayout
.addWidget(self
.num_rss_items
, 4, 2, 1, 1)
88 self
.copyright
= QtGui
.QLineEdit(SiteConfigDialog
)
89 self
.copyright
.setObjectName("copyright")
90 self
.gridLayout
.addWidget(self
.copyright
, 4, 4, 1, 4)
91 self
.label_7
= QtGui
.QLabel(SiteConfigDialog
)
92 self
.label_7
.setObjectName("label_7")
93 self
.gridLayout
.addWidget(self
.label_7
, 4, 3, 1, 1)
94 self
.site_url
= QtGui
.QLineEdit(SiteConfigDialog
)
95 self
.site_url
.setObjectName("site_url")
96 self
.gridLayout
.addWidget(self
.site_url
, 1, 2, 1, 6)
98 self
.retranslateUi(SiteConfigDialog
)
99 QtCore
.QObject
.connect(self
.buttonBox
, QtCore
.SIGNAL("accepted()"), SiteConfigDialog
.accept
)
100 QtCore
.QObject
.connect(self
.buttonBox
, QtCore
.SIGNAL("rejected()"), SiteConfigDialog
.reject
)
101 QtCore
.QObject
.connect(self
.destination_browse_button
, QtCore
.SIGNAL("clicked()"), SiteConfigDialog
.on_browse
)
102 QtCore
.QMetaObject
.connectSlotsByName(SiteConfigDialog
)
103 SiteConfigDialog
.setTabOrder(self
.site_title
, self
.site_url
)
104 SiteConfigDialog
.setTabOrder(self
.site_url
, self
.keywords
)
105 SiteConfigDialog
.setTabOrder(self
.keywords
, self
.description
)
106 SiteConfigDialog
.setTabOrder(self
.description
, self
.num_rss_items
)
107 SiteConfigDialog
.setTabOrder(self
.num_rss_items
, self
.copyright
)
108 SiteConfigDialog
.setTabOrder(self
.copyright
, self
.destination
)
109 SiteConfigDialog
.setTabOrder(self
.destination
, self
.destination_browse_button
)
110 SiteConfigDialog
.setTabOrder(self
.destination_browse_button
, self
.buttonBox
)
112 def retranslateUi(self
, SiteConfigDialog
):
113 SiteConfigDialog
.setWindowTitle(QtGui
.QApplication
.translate("SiteConfigDialog", "Site Configuration", None, QtGui
.QApplication
.UnicodeUTF8
))
114 self
.label
.setText(QtGui
.QApplication
.translate("SiteConfigDialog", "Name of the site", None, QtGui
.QApplication
.UnicodeUTF8
))
115 self
.site_title
.setWhatsThis(QtGui
.QApplication
.translate("SiteConfigDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
116 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
117 "p, li { white-space: pre-wrap; }\n"
118 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
119 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Title of the site displayed in the header </p>\n"
120 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">of the generated website. <span style=\" font-style:italic;\">Required field</span></p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
121 self
.site_title
.setText(QtGui
.QApplication
.translate("SiteConfigDialog", "My Site", None, QtGui
.QApplication
.UnicodeUTF8
))
122 self
.label_2
.setText(QtGui
.QApplication
.translate("SiteConfigDialog", "Site URL", None, QtGui
.QApplication
.UnicodeUTF8
))
123 self
.label_3
.setText(QtGui
.QApplication
.translate("SiteConfigDialog", "Keywords", None, QtGui
.QApplication
.UnicodeUTF8
))
124 self
.keywords
.setWhatsThis(QtGui
.QApplication
.translate("SiteConfigDialog", "Site keywords. This influences only the main\n"
125 "site page. Individual articles will have their own\n"
126 "keywords.", None, QtGui
.QApplication
.UnicodeUTF8
))
127 self
.keywords
.setText(QtGui
.QApplication
.translate("SiteConfigDialog", "some keywords here", None, QtGui
.QApplication
.UnicodeUTF8
))
128 self
.label_4
.setText(QtGui
.QApplication
.translate("SiteConfigDialog", "Description", None, QtGui
.QApplication
.UnicodeUTF8
))
129 self
.description
.setWhatsThis(QtGui
.QApplication
.translate("SiteConfigDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
130 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
131 "p, li { white-space: pre-wrap; }\n"
132 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
133 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Description. This is displayed below the site title</p>\n"
134 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">in the generated HTML page. <span style=\" font-style:italic;\">Required field</span></p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
135 self
.description
.setPlainText(QtGui
.QApplication
.translate("SiteConfigDialog", "Your site\'s description here. This appears in the site header.", None, QtGui
.QApplication
.UnicodeUTF8
))
136 self
.label_6
.setText(QtGui
.QApplication
.translate("SiteConfigDialog", "# of RSS feed items", None, QtGui
.QApplication
.UnicodeUTF8
))
137 self
.label_5
.setText(QtGui
.QApplication
.translate("SiteConfigDialog", "Export destination", None, QtGui
.QApplication
.UnicodeUTF8
))
138 self
.destination
.setWhatsThis(QtGui
.QApplication
.translate("SiteConfigDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
139 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
140 "p, li { white-space: pre-wrap; }\n"
141 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
142 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Desination to generate the HTML output when </p>\n"
143 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">exported. <span style=\" font-style:italic;\">Required field</span></p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
144 self
.destination_browse_button
.setText(QtGui
.QApplication
.translate("SiteConfigDialog", "browse...", None, QtGui
.QApplication
.UnicodeUTF8
))
145 self
.label_8
.setText(QtGui
.QApplication
.translate("SiteConfigDialog", "http://", None, QtGui
.QApplication
.UnicodeUTF8
))
146 self
.num_rss_items
.setWhatsThis(QtGui
.QApplication
.translate("SiteConfigDialog", "Number of items to display in RSS feed for the site.\n"
147 "The RSS feed is updated every time you create a \n"
148 "new article and export it to HTML.", None, QtGui
.QApplication
.UnicodeUTF8
))
149 self
.copyright
.setWhatsThis(QtGui
.QApplication
.translate("SiteConfigDialog", "Copyright text displayed on the footer of all\n"
150 "the generated pages of the website.", None, QtGui
.QApplication
.UnicodeUTF8
))
151 self
.copyright
.setText(QtGui
.QApplication
.translate("SiteConfigDialog", "Copyright (C) year, your name here", None, QtGui
.QApplication
.UnicodeUTF8
))
152 self
.label_7
.setText(QtGui
.QApplication
.translate("SiteConfigDialog", "Copyright text", None, QtGui
.QApplication
.UnicodeUTF8
))
153 self
.site_url
.setWhatsThis(QtGui
.QApplication
.translate("SiteConfigDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
154 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
155 "p, li { white-space: pre-wrap; }\n"
156 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
157 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">URL of the site without the HTTP part. This is the </p>\n"
158 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">base href URL when exported and all site links are</p>\n"
159 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">relative to this. <span style=\" font-style:italic;\">Required field</span></p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
160 self
.site_url
.setText(QtGui
.QApplication
.translate("SiteConfigDialog", "example.com", None, QtGui
.QApplication
.UnicodeUTF8
))