Completed the template editing functionality
[biaweb_qt.git] / ui_templates_dialog.py
1 # -*- coding: utf-8 -*-
2
3 # Form implementation generated from reading ui file 'templates_dialog.ui'
4 #
5 # Created: Mon Nov 29 18:11:30 2010
6 # by: PyQt4 UI code generator 4.7.4
7 #
8 # WARNING! All changes made in this file will be lost!
9
10 from PyQt4 import QtCore, QtGui
11
12 class Ui_TemplatesDialog(object):
13 def setupUi(self, TemplatesDialog):
14 TemplatesDialog.setObjectName("TemplatesDialog")
15 TemplatesDialog.resize(350, 256)
16 TemplatesDialog.setMinimumSize(QtCore.QSize(350, 256))
17 TemplatesDialog.setMaximumSize(QtCore.QSize(350, 256))
18 self.gridLayout = QtGui.QGridLayout(TemplatesDialog)
19 self.gridLayout.setObjectName("gridLayout")
20 self.label = QtGui.QLabel(TemplatesDialog)
21 self.label.setObjectName("label")
22 self.gridLayout.addWidget(self.label, 0, 0, 1, 2)
23 self.templates = QtGui.QListWidget(TemplatesDialog)
24 self.templates.setObjectName("templates")
25 self.gridLayout.addWidget(self.templates, 1, 0, 1, 3)
26 self.edit = QtGui.QPushButton(TemplatesDialog)
27 self.edit.setCheckable(False)
28 self.edit.setChecked(False)
29 self.edit.setObjectName("edit")
30 self.gridLayout.addWidget(self.edit, 2, 1, 1, 1)
31 self.close = QtGui.QPushButton(TemplatesDialog)
32 self.close.setObjectName("close")
33 self.gridLayout.addWidget(self.close, 2, 2, 1, 1)
34
35 self.retranslateUi(TemplatesDialog)
36 QtCore.QObject.connect(self.close, QtCore.SIGNAL("clicked()"), TemplatesDialog.accept)
37 QtCore.QObject.connect(self.edit, QtCore.SIGNAL("clicked()"), TemplatesDialog.onEdit)
38 QtCore.QMetaObject.connectSlotsByName(TemplatesDialog)
39 TemplatesDialog.setTabOrder(self.templates, self.edit)
40 TemplatesDialog.setTabOrder(self.edit, self.close)
41
42 def retranslateUi(self, TemplatesDialog):
43 TemplatesDialog.setWindowTitle(QtGui.QApplication.translate("TemplatesDialog", "Templates", None, QtGui.QApplication.UnicodeUTF8))
44 self.label.setText(QtGui.QApplication.translate("TemplatesDialog", "Choose template", None, QtGui.QApplication.UnicodeUTF8))
45 self.edit.setToolTip(QtGui.QApplication.translate("TemplatesDialog", "Click to edit the\n"
46 "selected template", None, QtGui.QApplication.UnicodeUTF8))
47 self.edit.setText(QtGui.QApplication.translate("TemplatesDialog", "&Edit", None, QtGui.QApplication.UnicodeUTF8))
48 self.close.setText(QtGui.QApplication.translate("TemplatesDialog", "&Close", None, QtGui.QApplication.UnicodeUTF8))
49