X-Git-Url: https://harishankar.org/repos/?p=biaweb_qt.git;a=blobdiff_plain;f=ui_generate_dialog.py;fp=ui_generate_dialog.py;h=a14ac37c3e187585d126d68bf12f151a0ccd77fa;hp=0000000000000000000000000000000000000000;hb=9321b80905bca48d49a6b12a4d463c268736b166;hpb=54389d5adbbb1830a7e85545b2bdde816713a272 diff --git a/ui_generate_dialog.py b/ui_generate_dialog.py new file mode 100644 index 0000000..a14ac37 --- /dev/null +++ b/ui_generate_dialog.py @@ -0,0 +1,124 @@ +# -*- coding: utf-8 -*- + +# Form implementation generated from reading ui file 'generate_dialog.ui' +# +# Created: Mon Nov 29 22:36:32 2010 +# by: PyQt4 UI code generator 4.7.4 +# +# WARNING! All changes made in this file will be lost! + +from PyQt4 import QtCore, QtGui + +class Ui_SiteGenerateDialog(object): + def setupUi(self, SiteGenerateDialog): + SiteGenerateDialog.setObjectName("SiteGenerateDialog") + SiteGenerateDialog.resize(618, 537) + SiteGenerateDialog.setMinimumSize(QtCore.QSize(618, 537)) + SiteGenerateDialog.setMaximumSize(QtCore.QSize(618, 537)) + self.gridLayout_2 = QtGui.QGridLayout(SiteGenerateDialog) + self.gridLayout_2.setObjectName("gridLayout_2") + self.label = QtGui.QLabel(SiteGenerateDialog) + self.label.setWordWrap(True) + self.label.setObjectName("label") + self.gridLayout_2.addWidget(self.label, 0, 0, 1, 3) + self.tabWidget = QtGui.QTabWidget(SiteGenerateDialog) + self.tabWidget.setObjectName("tabWidget") + self.tab = QtGui.QWidget() + self.tab.setObjectName("tab") + self.gridLayout_3 = QtGui.QGridLayout(self.tab) + self.gridLayout_3.setObjectName("gridLayout_3") + self.label_2 = QtGui.QLabel(self.tab) + self.label_2.setObjectName("label_2") + self.gridLayout_3.addWidget(self.label_2, 0, 0, 1, 1) + self.addfile = QtGui.QPushButton(self.tab) + self.addfile.setObjectName("addfile") + self.gridLayout_3.addWidget(self.addfile, 0, 1, 1, 1) + self.removefile = QtGui.QPushButton(self.tab) + self.removefile.setObjectName("removefile") + self.gridLayout_3.addWidget(self.removefile, 0, 2, 1, 1) + self.additional_files = QtGui.QTreeWidget(self.tab) + self.additional_files.setObjectName("additional_files") + self.gridLayout_3.addWidget(self.additional_files, 1, 0, 1, 3) + self.tabWidget.addTab(self.tab, "") + self.tab_2 = QtGui.QWidget() + self.tab_2.setObjectName("tab_2") + self.gridLayout_4 = QtGui.QGridLayout(self.tab_2) + self.gridLayout_4.setObjectName("gridLayout_4") + self.label_3 = QtGui.QLabel(self.tab_2) + self.label_3.setObjectName("label_3") + self.gridLayout_4.addWidget(self.label_3, 0, 0, 1, 1) + self.addfolder = QtGui.QPushButton(self.tab_2) + self.addfolder.setObjectName("addfolder") + self.gridLayout_4.addWidget(self.addfolder, 0, 1, 1, 1) + self.removefolder = QtGui.QPushButton(self.tab_2) + self.removefolder.setObjectName("removefolder") + self.gridLayout_4.addWidget(self.removefolder, 0, 2, 1, 1) + self.additional_folders = QtGui.QTreeWidget(self.tab_2) + self.additional_folders.setObjectName("additional_folders") + self.gridLayout_4.addWidget(self.additional_folders, 1, 0, 1, 3) + self.tabWidget.addTab(self.tab_2, "") + self.gridLayout_2.addWidget(self.tabWidget, 1, 0, 1, 3) + self.groupBox = QtGui.QGroupBox(SiteGenerateDialog) + self.groupBox.setObjectName("groupBox") + self.gridLayout = QtGui.QGridLayout(self.groupBox) + self.gridLayout.setObjectName("gridLayout") + self.fulltextindex = QtGui.QRadioButton(self.groupBox) + self.fulltextindex.setChecked(True) + self.fulltextindex.setObjectName("fulltextindex") + self.gridLayout.addWidget(self.fulltextindex, 0, 0, 1, 1) + self.keywordindex = QtGui.QRadioButton(self.groupBox) + self.keywordindex.setChecked(False) + self.keywordindex.setObjectName("keywordindex") + self.gridLayout.addWidget(self.keywordindex, 0, 1, 1, 1) + self.gridLayout_2.addWidget(self.groupBox, 2, 0, 1, 1) + self.generate_site = QtGui.QPushButton(SiteGenerateDialog) + self.generate_site.setDefault(True) + self.generate_site.setObjectName("generate_site") + self.gridLayout_2.addWidget(self.generate_site, 3, 1, 1, 1) + self.close = QtGui.QPushButton(SiteGenerateDialog) + self.close.setObjectName("close") + self.gridLayout_2.addWidget(self.close, 3, 2, 1, 1) + + self.retranslateUi(SiteGenerateDialog) + self.tabWidget.setCurrentIndex(0) + QtCore.QObject.connect(self.close, QtCore.SIGNAL("clicked()"), SiteGenerateDialog.reject) + QtCore.QMetaObject.connectSlotsByName(SiteGenerateDialog) + SiteGenerateDialog.setTabOrder(self.tabWidget, self.addfile) + SiteGenerateDialog.setTabOrder(self.addfile, self.removefile) + SiteGenerateDialog.setTabOrder(self.removefile, self.additional_files) + SiteGenerateDialog.setTabOrder(self.additional_files, self.addfolder) + SiteGenerateDialog.setTabOrder(self.addfolder, self.removefolder) + SiteGenerateDialog.setTabOrder(self.removefolder, self.additional_folders) + SiteGenerateDialog.setTabOrder(self.additional_folders, self.fulltextindex) + SiteGenerateDialog.setTabOrder(self.fulltextindex, self.keywordindex) + SiteGenerateDialog.setTabOrder(self.keywordindex, self.generate_site) + SiteGenerateDialog.setTabOrder(self.generate_site, self.close) + + def retranslateUi(self, SiteGenerateDialog): + SiteGenerateDialog.setWindowTitle(QtGui.QApplication.translate("SiteGenerateDialog", "Generate Website", None, QtGui.QApplication.UnicodeUTF8)) + self.label.setText(QtGui.QApplication.translate("SiteGenerateDialog", "\n" +"\n" +"

Important Information

\n" +"

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!

\n" +"

\n" +"

You need to re-copy additional files/folders you require in the destination folder (e.g. image files or directories) every time you generate the site. Specify additional files/folders to copy below.

", None, QtGui.QApplication.UnicodeUTF8)) + self.label_2.setText(QtGui.QApplication.translate("SiteGenerateDialog", "Additional files to add to destination", None, QtGui.QApplication.UnicodeUTF8)) + self.addfile.setText(QtGui.QApplication.translate("SiteGenerateDialog", "&Add file", None, QtGui.QApplication.UnicodeUTF8)) + self.removefile.setText(QtGui.QApplication.translate("SiteGenerateDialog", "&Remove", None, QtGui.QApplication.UnicodeUTF8)) + self.additional_files.headerItem().setText(0, QtGui.QApplication.translate("SiteGenerateDialog", "Source file", None, QtGui.QApplication.UnicodeUTF8)) + self.additional_files.headerItem().setText(1, QtGui.QApplication.translate("SiteGenerateDialog", "Destination (relative to dest-dir)", None, QtGui.QApplication.UnicodeUTF8)) + self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), QtGui.QApplication.translate("SiteGenerateDialog", "Files", None, QtGui.QApplication.UnicodeUTF8)) + self.label_3.setText(QtGui.QApplication.translate("SiteGenerateDialog", "Additional folders to add to destination", None, QtGui.QApplication.UnicodeUTF8)) + self.addfolder.setText(QtGui.QApplication.translate("SiteGenerateDialog", "&Add folder", None, QtGui.QApplication.UnicodeUTF8)) + self.removefolder.setText(QtGui.QApplication.translate("SiteGenerateDialog", "&Remove", None, QtGui.QApplication.UnicodeUTF8)) + self.additional_folders.headerItem().setText(0, QtGui.QApplication.translate("SiteGenerateDialog", "Source folder", None, QtGui.QApplication.UnicodeUTF8)) + self.additional_folders.headerItem().setText(1, QtGui.QApplication.translate("SiteGenerateDialog", "Destination (relative to dest-dir)", None, QtGui.QApplication.UnicodeUTF8)) + self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), QtGui.QApplication.translate("SiteGenerateDialog", "Folders", None, QtGui.QApplication.UnicodeUTF8)) + self.groupBox.setTitle(QtGui.QApplication.translate("SiteGenerateDialog", "Search index type", None, QtGui.QApplication.UnicodeUTF8)) + self.fulltextindex.setText(QtGui.QApplication.translate("SiteGenerateDialog", "Full text index", None, QtGui.QApplication.UnicodeUTF8)) + self.keywordindex.setText(QtGui.QApplication.translate("SiteGenerateDialog", "Keyword index", None, QtGui.QApplication.UnicodeUTF8)) + self.generate_site.setText(QtGui.QApplication.translate("SiteGenerateDialog", "&Generate site", None, QtGui.QApplication.UnicodeUTF8)) + self.close.setText(QtGui.QApplication.translate("SiteGenerateDialog", "&Close", None, QtGui.QApplication.UnicodeUTF8)) +