fab5abf2f76f94e56ebda48b4ba385ead7d9eea3
1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'generate_dialog.ui'
5 # Created: Tue Nov 30 14:05:23 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_SiteGenerateDialog(object):
13 def setupUi(self
, SiteGenerateDialog
):
14 SiteGenerateDialog
.setObjectName("SiteGenerateDialog")
15 SiteGenerateDialog
.resize(618, 537)
16 SiteGenerateDialog
.setMinimumSize(QtCore
.QSize(618, 537))
17 SiteGenerateDialog
.setMaximumSize(QtCore
.QSize(618, 537))
18 self
.gridLayout_2
= QtGui
.QGridLayout(SiteGenerateDialog
)
19 self
.gridLayout_2
.setObjectName("gridLayout_2")
20 self
.label
= QtGui
.QLabel(SiteGenerateDialog
)
21 self
.label
.setWordWrap(True)
22 self
.label
.setObjectName("label")
23 self
.gridLayout_2
.addWidget(self
.label
, 0, 0, 1, 3)
24 self
.tabWidget
= QtGui
.QTabWidget(SiteGenerateDialog
)
25 self
.tabWidget
.setObjectName("tabWidget")
26 self
.tab
= QtGui
.QWidget()
27 self
.tab
.setObjectName("tab")
28 self
.gridLayout_3
= QtGui
.QGridLayout(self
.tab
)
29 self
.gridLayout_3
.setObjectName("gridLayout_3")
30 self
.label_2
= QtGui
.QLabel(self
.tab
)
31 self
.label_2
.setObjectName("label_2")
32 self
.gridLayout_3
.addWidget(self
.label_2
, 0, 0, 1, 1)
33 self
.addfile
= QtGui
.QPushButton(self
.tab
)
34 self
.addfile
.setObjectName("addfile")
35 self
.gridLayout_3
.addWidget(self
.addfile
, 0, 1, 1, 1)
36 self
.removefile
= QtGui
.QPushButton(self
.tab
)
37 self
.removefile
.setObjectName("removefile")
38 self
.gridLayout_3
.addWidget(self
.removefile
, 0, 2, 1, 1)
39 self
.additional_files
= QtGui
.QTreeWidget(self
.tab
)
40 self
.additional_files
.setObjectName("additional_files")
41 self
.gridLayout_3
.addWidget(self
.additional_files
, 1, 0, 1, 3)
42 self
.tabWidget
.addTab(self
.tab
, "")
43 self
.tab_2
= QtGui
.QWidget()
44 self
.tab_2
.setObjectName("tab_2")
45 self
.gridLayout_4
= QtGui
.QGridLayout(self
.tab_2
)
46 self
.gridLayout_4
.setObjectName("gridLayout_4")
47 self
.label_3
= QtGui
.QLabel(self
.tab_2
)
48 self
.label_3
.setObjectName("label_3")
49 self
.gridLayout_4
.addWidget(self
.label_3
, 0, 0, 1, 1)
50 self
.addfolder
= QtGui
.QPushButton(self
.tab_2
)
51 self
.addfolder
.setObjectName("addfolder")
52 self
.gridLayout_4
.addWidget(self
.addfolder
, 0, 1, 1, 1)
53 self
.removefolder
= QtGui
.QPushButton(self
.tab_2
)
54 self
.removefolder
.setObjectName("removefolder")
55 self
.gridLayout_4
.addWidget(self
.removefolder
, 0, 2, 1, 1)
56 self
.additional_folders
= QtGui
.QTreeWidget(self
.tab_2
)
57 self
.additional_folders
.setObjectName("additional_folders")
58 self
.gridLayout_4
.addWidget(self
.additional_folders
, 1, 0, 1, 3)
59 self
.tabWidget
.addTab(self
.tab_2
, "")
60 self
.gridLayout_2
.addWidget(self
.tabWidget
, 1, 0, 1, 3)
61 self
.groupBox
= QtGui
.QGroupBox(SiteGenerateDialog
)
62 self
.groupBox
.setObjectName("groupBox")
63 self
.gridLayout
= QtGui
.QGridLayout(self
.groupBox
)
64 self
.gridLayout
.setObjectName("gridLayout")
65 self
.fulltextindex
= QtGui
.QRadioButton(self
.groupBox
)
66 self
.fulltextindex
.setChecked(True)
67 self
.fulltextindex
.setObjectName("fulltextindex")
68 self
.gridLayout
.addWidget(self
.fulltextindex
, 0, 0, 1, 1)
69 self
.keywordindex
= QtGui
.QRadioButton(self
.groupBox
)
70 self
.keywordindex
.setChecked(False)
71 self
.keywordindex
.setObjectName("keywordindex")
72 self
.gridLayout
.addWidget(self
.keywordindex
, 0, 1, 1, 1)
73 self
.gridLayout_2
.addWidget(self
.groupBox
, 2, 0, 1, 1)
74 self
.generate_site
= QtGui
.QPushButton(SiteGenerateDialog
)
75 self
.generate_site
.setDefault(True)
76 self
.generate_site
.setObjectName("generate_site")
77 self
.gridLayout_2
.addWidget(self
.generate_site
, 3, 1, 1, 1)
78 self
.close
= QtGui
.QPushButton(SiteGenerateDialog
)
79 self
.close
.setObjectName("close")
80 self
.gridLayout_2
.addWidget(self
.close
, 3, 2, 1, 1)
82 self
.retranslateUi(SiteGenerateDialog
)
83 self
.tabWidget
.setCurrentIndex(0)
84 QtCore
.QObject
.connect(self
.close
, QtCore
.SIGNAL("clicked()"), SiteGenerateDialog
.reject
)
85 QtCore
.QObject
.connect(self
.addfile
, QtCore
.SIGNAL("clicked()"), SiteGenerateDialog
.onFileAdd
)
86 QtCore
.QObject
.connect(self
.removefile
, QtCore
.SIGNAL("clicked()"), SiteGenerateDialog
.onFileRemove
)
87 QtCore
.QObject
.connect(self
.addfolder
, QtCore
.SIGNAL("clicked()"), SiteGenerateDialog
.onFolderAdd
)
88 QtCore
.QObject
.connect(self
.removefolder
, QtCore
.SIGNAL("clicked()"), SiteGenerateDialog
.onFolderRemove
)
89 QtCore
.QObject
.connect(self
.generate_site
, QtCore
.SIGNAL("clicked()"), SiteGenerateDialog
.onSiteGenerate
)
90 QtCore
.QMetaObject
.connectSlotsByName(SiteGenerateDialog
)
91 SiteGenerateDialog
.setTabOrder(self
.tabWidget
, self
.addfile
)
92 SiteGenerateDialog
.setTabOrder(self
.addfile
, self
.removefile
)
93 SiteGenerateDialog
.setTabOrder(self
.removefile
, self
.additional_files
)
94 SiteGenerateDialog
.setTabOrder(self
.additional_files
, self
.addfolder
)
95 SiteGenerateDialog
.setTabOrder(self
.addfolder
, self
.removefolder
)
96 SiteGenerateDialog
.setTabOrder(self
.removefolder
, self
.additional_folders
)
97 SiteGenerateDialog
.setTabOrder(self
.additional_folders
, self
.fulltextindex
)
98 SiteGenerateDialog
.setTabOrder(self
.fulltextindex
, self
.keywordindex
)
99 SiteGenerateDialog
.setTabOrder(self
.keywordindex
, self
.generate_site
)
100 SiteGenerateDialog
.setTabOrder(self
.generate_site
, self
.close
)
102 def retranslateUi(self
, SiteGenerateDialog
):
103 SiteGenerateDialog
.setWindowTitle(QtGui
.QApplication
.translate("SiteGenerateDialog", "Generate Website", None, QtGui
.QApplication
.UnicodeUTF8
))
104 self
.label
.setText(QtGui
.QApplication
.translate("SiteGenerateDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
105 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
106 "p, li { white-space: pre-wrap; }\n"
107 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
108 "<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:600; color:#55007f;\">Important Information</span></p>\n"
109 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">This will generate your website in the destination directory specified in the site configuration dialog. The entire directory tree will be re-created from scratch and any manual changes you made to the generated files will be gone!</p>\n"
110 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"> </p>\n"
111 "<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;\">You need to re-copy the additional files/folders you require in the destination folder (e.g. the rating (star) image files or directories, the search.py CGI script) every time you generate the site. Specify the files/folders to copy to generated site.</span></p></body></html>", None, QtGui
.QApplication
.UnicodeUTF8
))
112 self
.label_2
.setText(QtGui
.QApplication
.translate("SiteGenerateDialog", "Additional files to add to destination", None, QtGui
.QApplication
.UnicodeUTF8
))
113 self
.addfile
.setText(QtGui
.QApplication
.translate("SiteGenerateDialog", "&Add file", None, QtGui
.QApplication
.UnicodeUTF8
))
114 self
.removefile
.setText(QtGui
.QApplication
.translate("SiteGenerateDialog", "&Remove", None, QtGui
.QApplication
.UnicodeUTF8
))
115 self
.additional_files
.headerItem().setText(0, QtGui
.QApplication
.translate("SiteGenerateDialog", "Source file", None, QtGui
.QApplication
.UnicodeUTF8
))
116 self
.additional_files
.headerItem().setText(1, QtGui
.QApplication
.translate("SiteGenerateDialog", "Destination (relative to dest-dir)", None, QtGui
.QApplication
.UnicodeUTF8
))
117 self
.tabWidget
.setTabText(self
.tabWidget
.indexOf(self
.tab
), QtGui
.QApplication
.translate("SiteGenerateDialog", "Files", None, QtGui
.QApplication
.UnicodeUTF8
))
118 self
.label_3
.setText(QtGui
.QApplication
.translate("SiteGenerateDialog", "Additional folders to add to destination", None, QtGui
.QApplication
.UnicodeUTF8
))
119 self
.addfolder
.setText(QtGui
.QApplication
.translate("SiteGenerateDialog", "&Add folder", None, QtGui
.QApplication
.UnicodeUTF8
))
120 self
.removefolder
.setText(QtGui
.QApplication
.translate("SiteGenerateDialog", "&Remove", None, QtGui
.QApplication
.UnicodeUTF8
))
121 self
.additional_folders
.headerItem().setText(0, QtGui
.QApplication
.translate("SiteGenerateDialog", "Source folder", None, QtGui
.QApplication
.UnicodeUTF8
))
122 self
.additional_folders
.headerItem().setText(1, QtGui
.QApplication
.translate("SiteGenerateDialog", "Destination (relative to dest-dir)", None, QtGui
.QApplication
.UnicodeUTF8
))
123 self
.tabWidget
.setTabText(self
.tabWidget
.indexOf(self
.tab_2
), QtGui
.QApplication
.translate("SiteGenerateDialog", "Folders", None, QtGui
.QApplication
.UnicodeUTF8
))
124 self
.groupBox
.setTitle(QtGui
.QApplication
.translate("SiteGenerateDialog", "Search index type", None, QtGui
.QApplication
.UnicodeUTF8
))
125 self
.fulltextindex
.setText(QtGui
.QApplication
.translate("SiteGenerateDialog", "Full text index", None, QtGui
.QApplication
.UnicodeUTF8
))
126 self
.keywordindex
.setText(QtGui
.QApplication
.translate("SiteGenerateDialog", "Keyword index", None, QtGui
.QApplication
.UnicodeUTF8
))
127 self
.generate_site
.setText(QtGui
.QApplication
.translate("SiteGenerateDialog", "&Generate site", None, QtGui
.QApplication
.UnicodeUTF8
))
128 self
.close
.setText(QtGui
.QApplication
.translate("SiteGenerateDialog", "&Close", None, QtGui
.QApplication
.UnicodeUTF8
))