1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'editor_dialog.ui'
5 # Created: Mon Nov 29 17:43:54 2010
6 # by: PyQt4 UI code generator 4.7.4
8 # WARNING! All changes made in this file will be lost!
10 from PyQt4
import QtCore
, QtGui
12 class Ui_EditorDialog(object):
13 def setupUi(self
, EditorDialog
):
14 EditorDialog
.setObjectName("EditorDialog")
15 EditorDialog
.resize(663, 463)
16 self
.gridLayout
= QtGui
.QGridLayout(EditorDialog
)
17 self
.gridLayout
.setObjectName("gridLayout")
18 self
.template_text
= QtGui
.QPlainTextEdit(EditorDialog
)
20 font
.setFamily("Monospace")
21 self
.template_text
.setFont(font
)
22 self
.template_text
.setVerticalScrollBarPolicy(QtCore
.Qt
.ScrollBarAlwaysOn
)
23 self
.template_text
.setTabChangesFocus(True)
24 self
.template_text
.setLineWrapMode(QtGui
.QPlainTextEdit
.NoWrap
)
25 self
.template_text
.setObjectName("template_text")
26 self
.gridLayout
.addWidget(self
.template_text
, 0, 0, 1, 1)
27 self
.buttonBox
= QtGui
.QDialogButtonBox(EditorDialog
)
28 self
.buttonBox
.setOrientation(QtCore
.Qt
.Horizontal
)
29 self
.buttonBox
.setStandardButtons(QtGui
.QDialogButtonBox
.Cancel|QtGui
.QDialogButtonBox
.Ok
)
30 self
.buttonBox
.setObjectName("buttonBox")
31 self
.gridLayout
.addWidget(self
.buttonBox
, 1, 0, 1, 1)
33 self
.retranslateUi(EditorDialog
)
34 QtCore
.QObject
.connect(self
.buttonBox
, QtCore
.SIGNAL("accepted()"), EditorDialog
.accept
)
35 QtCore
.QObject
.connect(self
.buttonBox
, QtCore
.SIGNAL("rejected()"), EditorDialog
.reject
)
36 QtCore
.QObject
.connect(self
.template_text
, QtCore
.SIGNAL("textChanged()"), EditorDialog
.onTextChanged
)
37 QtCore
.QMetaObject
.connectSlotsByName(EditorDialog
)
39 def retranslateUi(self
, EditorDialog
):
40 EditorDialog
.setWindowTitle(QtGui
.QApplication
.translate("EditorDialog", "Editor", None, QtGui
.QApplication
.UnicodeUTF8
))