X-Git-Url: https://harishankar.org/repos/?p=biaweb_qt.git;a=blobdiff_plain;f=ui_templates_dialog.py;fp=ui_templates_dialog.py;h=6845dc2c903a758c7af9a8f39a37361def405e68;hp=0000000000000000000000000000000000000000;hb=c78ebaf4ae0e486c54907edf51159615f2b4f81e;hpb=e897998f0634d3518f069846c62592fe43dc63bf diff --git a/ui_templates_dialog.py b/ui_templates_dialog.py new file mode 100644 index 0000000..6845dc2 --- /dev/null +++ b/ui_templates_dialog.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- + +# Form implementation generated from reading ui file 'templates_dialog.ui' +# +# Created: Mon Nov 29 13:37:20 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_TemplatesDialog(object): + def setupUi(self, TemplatesDialog): + TemplatesDialog.setObjectName("TemplatesDialog") + TemplatesDialog.resize(751, 535) + self.gridLayout = QtGui.QGridLayout(TemplatesDialog) + self.gridLayout.setObjectName("gridLayout") + self.label = QtGui.QLabel(TemplatesDialog) + self.label.setObjectName("label") + self.gridLayout.addWidget(self.label, 0, 0, 1, 1) + self.templates = QtGui.QComboBox(TemplatesDialog) + self.templates.setMinimumSize(QtCore.QSize(250, 0)) + self.templates.setObjectName("templates") + self.gridLayout.addWidget(self.templates, 0, 1, 1, 1) + self.edit = QtGui.QPushButton(TemplatesDialog) + self.edit.setObjectName("edit") + self.gridLayout.addWidget(self.edit, 0, 2, 1, 1) + self.pushButton = QtGui.QPushButton(TemplatesDialog) + self.pushButton.setObjectName("pushButton") + self.gridLayout.addWidget(self.pushButton, 0, 3, 1, 1) + self.template_text = QtGui.QPlainTextEdit(TemplatesDialog) + font = QtGui.QFont() + font.setFamily("Monospace") + self.template_text.setFont(font) + self.template_text.setTabChangesFocus(True) + self.template_text.setObjectName("template_text") + self.gridLayout.addWidget(self.template_text, 1, 0, 1, 4) + self.close = QtGui.QPushButton(TemplatesDialog) + self.close.setObjectName("close") + self.gridLayout.addWidget(self.close, 2, 3, 1, 1) + + self.retranslateUi(TemplatesDialog) + QtCore.QObject.connect(self.close, QtCore.SIGNAL("clicked()"), TemplatesDialog.accept) + QtCore.QMetaObject.connectSlotsByName(TemplatesDialog) + TemplatesDialog.setTabOrder(self.templates, self.edit) + TemplatesDialog.setTabOrder(self.edit, self.pushButton) + TemplatesDialog.setTabOrder(self.pushButton, self.template_text) + TemplatesDialog.setTabOrder(self.template_text, self.close) + + def retranslateUi(self, TemplatesDialog): + TemplatesDialog.setWindowTitle(QtGui.QApplication.translate("TemplatesDialog", "Template Editor", None, QtGui.QApplication.UnicodeUTF8)) + self.label.setText(QtGui.QApplication.translate("TemplatesDialog", "Template", None, QtGui.QApplication.UnicodeUTF8)) + self.edit.setToolTip(QtGui.QApplication.translate("TemplatesDialog", "Click to edit the\n" +"selected template", None, QtGui.QApplication.UnicodeUTF8)) + self.edit.setText(QtGui.QApplication.translate("TemplatesDialog", "&Edit", None, QtGui.QApplication.UnicodeUTF8)) + self.pushButton.setToolTip(QtGui.QApplication.translate("TemplatesDialog", "Save the template\n" +"modified below", None, QtGui.QApplication.UnicodeUTF8)) + self.pushButton.setText(QtGui.QApplication.translate("TemplatesDialog", "&Save", None, QtGui.QApplication.UnicodeUTF8)) + self.close.setText(QtGui.QApplication.translate("TemplatesDialog", "&Close", None, QtGui.QApplication.UnicodeUTF8)) +