1
# -*- coding: utf-8 -*-
3
# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric4/eric4_0/eric4/Templates/TemplatePropertiesDialog.ui'
5
# Created: Sat Feb 3 15:33:54 2007
6
# by: PyQt4 UI code generator 4-snapshot-20070125
8
# WARNING! All changes made in this file will be lost!
10
from PyQt4 import QtCore, QtGui
12
class Ui_TemplatePropertiesDialog(object):
13
def setupUi(self, TemplatePropertiesDialog):
14
TemplatePropertiesDialog.setObjectName("TemplatePropertiesDialog")
15
TemplatePropertiesDialog.resize(QtCore.QSize(QtCore.QRect(0,0,448,323).size()).expandedTo(TemplatePropertiesDialog.minimumSizeHint()))
16
TemplatePropertiesDialog.setSizeGripEnabled(True)
18
self.vboxlayout = QtGui.QVBoxLayout(TemplatePropertiesDialog)
19
self.vboxlayout.setMargin(6)
20
self.vboxlayout.setSpacing(6)
21
self.vboxlayout.setObjectName("vboxlayout")
23
self.gridlayout = QtGui.QGridLayout()
24
self.gridlayout.setMargin(0)
25
self.gridlayout.setSpacing(6)
26
self.gridlayout.setObjectName("gridlayout")
28
self.groupCombo = QtGui.QComboBox(TemplatePropertiesDialog)
29
self.groupCombo.setObjectName("groupCombo")
30
self.gridlayout.addWidget(self.groupCombo,1,1,1,1)
32
self.templateLabel = QtGui.QLabel(TemplatePropertiesDialog)
33
self.templateLabel.setAlignment(QtCore.Qt.AlignTop)
34
self.templateLabel.setObjectName("templateLabel")
35
self.gridlayout.addWidget(self.templateLabel,2,0,1,1)
37
self.helpButton = QtGui.QPushButton(TemplatePropertiesDialog)
38
self.helpButton.setObjectName("helpButton")
39
self.gridlayout.addWidget(self.helpButton,3,0,1,1)
41
self.templateEdit = QtGui.QTextEdit(TemplatePropertiesDialog)
42
self.templateEdit.setLineWrapMode(QtGui.QTextEdit.NoWrap)
43
self.templateEdit.setAcceptRichText(False)
44
self.templateEdit.setObjectName("templateEdit")
45
self.gridlayout.addWidget(self.templateEdit,2,1,3,1)
47
self.nameEdit = QtGui.QLineEdit(TemplatePropertiesDialog)
48
self.nameEdit.setObjectName("nameEdit")
49
self.gridlayout.addWidget(self.nameEdit,0,1,1,1)
51
self.textLabel1 = QtGui.QLabel(TemplatePropertiesDialog)
52
self.textLabel1.setObjectName("textLabel1")
53
self.gridlayout.addWidget(self.textLabel1,0,0,1,1)
55
spacerItem = QtGui.QSpacerItem(87,155,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
56
self.gridlayout.addItem(spacerItem,4,0,1,1)
58
self.groupLabel = QtGui.QLabel(TemplatePropertiesDialog)
59
self.groupLabel.setObjectName("groupLabel")
60
self.gridlayout.addWidget(self.groupLabel,1,0,1,1)
61
self.vboxlayout.addLayout(self.gridlayout)
63
self.buttonBox = QtGui.QDialogButtonBox(TemplatePropertiesDialog)
64
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
65
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.NoButton|QtGui.QDialogButtonBox.Ok)
66
self.buttonBox.setObjectName("buttonBox")
67
self.vboxlayout.addWidget(self.buttonBox)
69
self.retranslateUi(TemplatePropertiesDialog)
70
QtCore.QObject.connect(self.buttonBox,QtCore.SIGNAL("accepted()"),TemplatePropertiesDialog.accept)
71
QtCore.QObject.connect(self.buttonBox,QtCore.SIGNAL("rejected()"),TemplatePropertiesDialog.reject)
72
QtCore.QMetaObject.connectSlotsByName(TemplatePropertiesDialog)
73
TemplatePropertiesDialog.setTabOrder(self.nameEdit,self.groupCombo)
74
TemplatePropertiesDialog.setTabOrder(self.groupCombo,self.templateEdit)
75
TemplatePropertiesDialog.setTabOrder(self.templateEdit,self.helpButton)
77
def retranslateUi(self, TemplatePropertiesDialog):
78
TemplatePropertiesDialog.setWindowTitle(QtGui.QApplication.translate("TemplatePropertiesDialog", "Template Properties", None, QtGui.QApplication.UnicodeUTF8))
79
self.templateLabel.setText(QtGui.QApplication.translate("TemplatePropertiesDialog", "Template:", None, QtGui.QApplication.UnicodeUTF8))
80
self.helpButton.setText(QtGui.QApplication.translate("TemplatePropertiesDialog", "&Help", None, QtGui.QApplication.UnicodeUTF8))
81
self.helpButton.setShortcut(QtGui.QApplication.translate("TemplatePropertiesDialog", "Alt+H", None, QtGui.QApplication.UnicodeUTF8))
82
self.templateEdit.setToolTip(QtGui.QApplication.translate("TemplatePropertiesDialog", "Enter the text of the template", None, QtGui.QApplication.UnicodeUTF8))
83
self.templateEdit.setWhatsThis(QtGui.QApplication.translate("TemplatePropertiesDialog", "<b>Template Text</b>\n"
84
"<p>Enter the template text in this area. Every occurance of $VAR$ will be replaced\n"
85
"by the associated text when the template is applied. The separator character might\n"
86
"be changed via the preferences dialog. Press the help button for more information.</p>", None, QtGui.QApplication.UnicodeUTF8))
87
self.nameEdit.setToolTip(QtGui.QApplication.translate("TemplatePropertiesDialog", "Enter the name of the template/group", None, QtGui.QApplication.UnicodeUTF8))
88
self.textLabel1.setText(QtGui.QApplication.translate("TemplatePropertiesDialog", "Name:", None, QtGui.QApplication.UnicodeUTF8))
89
self.groupLabel.setText(QtGui.QApplication.translate("TemplatePropertiesDialog", "Group:", None, QtGui.QApplication.UnicodeUTF8))
93
if __name__ == "__main__":
95
app = QtGui.QApplication(sys.argv)
96
TemplatePropertiesDialog = QtGui.QDialog()
97
ui = Ui_TemplatePropertiesDialog()
98
ui.setupUi(TemplatePropertiesDialog)
99
TemplatePropertiesDialog.show()
100
sys.exit(app.exec_())