# Form implementation generated from reading ui file 'templates_dialog.ui'
#
-# Created: Mon Nov 29 13:37:20 2010
+# Created: Mon Nov 29 18:11:30 2010
# by: PyQt4 UI code generator 4.7.4
#
# WARNING! All changes made in this file will be lost!
class Ui_TemplatesDialog(object):
def setupUi(self, TemplatesDialog):
TemplatesDialog.setObjectName("TemplatesDialog")
- TemplatesDialog.resize(751, 535)
+ TemplatesDialog.resize(350, 256)
+ TemplatesDialog.setMinimumSize(QtCore.QSize(350, 256))
+ TemplatesDialog.setMaximumSize(QtCore.QSize(350, 256))
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.gridLayout.addWidget(self.label, 0, 0, 1, 2)
+ self.templates = QtGui.QListWidget(TemplatesDialog)
self.templates.setObjectName("templates")
- self.gridLayout.addWidget(self.templates, 0, 1, 1, 1)
+ self.gridLayout.addWidget(self.templates, 1, 0, 1, 3)
self.edit = QtGui.QPushButton(TemplatesDialog)
+ self.edit.setCheckable(False)
+ self.edit.setChecked(False)
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.gridLayout.addWidget(self.edit, 2, 1, 1, 1)
self.close = QtGui.QPushButton(TemplatesDialog)
self.close.setObjectName("close")
- self.gridLayout.addWidget(self.close, 2, 3, 1, 1)
+ self.gridLayout.addWidget(self.close, 2, 2, 1, 1)
self.retranslateUi(TemplatesDialog)
QtCore.QObject.connect(self.close, QtCore.SIGNAL("clicked()"), TemplatesDialog.accept)
+ QtCore.QObject.connect(self.edit, QtCore.SIGNAL("clicked()"), TemplatesDialog.onEdit)
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)
+ TemplatesDialog.setTabOrder(self.edit, 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))
+ TemplatesDialog.setWindowTitle(QtGui.QApplication.translate("TemplatesDialog", "Templates", None, QtGui.QApplication.UnicodeUTF8))
+ self.label.setText(QtGui.QApplication.translate("TemplatesDialog", "Choose 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))