comparison trunk/src/translator/ui_langfile_properties.py @ 482:1401e38d1e2e

Translator: implemented project properties dialog. Added language file properties dialog.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Sat, 17 Nov 2007 23:16:12 +0100
parents
children
comparison
equal deleted inserted replaced
481:04adc4e3fdda 482:1401e38d1e2e
1 # -*- coding: utf-8 -*-
2
3 # Form implementation generated from reading ui file 'langfile_properties.ui'
4 #
5 # Created: Sat Nov 17 23:14:57 2007
6 # by: PyQt4 UI code generator 4.1
7 #
8 # WARNING! All changes made in this file will be lost!
9
10 import sys
11 from PyQt4 import QtCore, QtGui
12
13 class Ui_LangFilePropertiesDialog(object):
14 def setupUi(self, LangFilePropertiesDialog):
15 LangFilePropertiesDialog.setObjectName("LangFilePropertiesDialog")
16 LangFilePropertiesDialog.resize(QtCore.QSize(QtCore.QRect(0,0,400,228).size()).expandedTo(LangFilePropertiesDialog.minimumSizeHint()))
17
18 self.vboxlayout = QtGui.QVBoxLayout(LangFilePropertiesDialog)
19 self.vboxlayout.setObjectName("vboxlayout")
20
21 self.gridlayout = QtGui.QGridLayout()
22 self.gridlayout.setObjectName("gridlayout")
23
24 self.label_2 = QtGui.QLabel(LangFilePropertiesDialog)
25 self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
26 self.label_2.setObjectName("label_2")
27 self.gridlayout.addWidget(self.label_2,1,0,1,1)
28
29 self.langCodeField = QtGui.QLineEdit(LangFilePropertiesDialog)
30 self.langCodeField.setObjectName("langCodeField")
31 self.gridlayout.addWidget(self.langCodeField,1,1,1,1)
32
33 self.label = QtGui.QLabel(LangFilePropertiesDialog)
34 self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
35 self.label.setObjectName("label")
36 self.gridlayout.addWidget(self.label,2,0,1,1)
37
38 self.creationDateField = QtGui.QLineEdit(LangFilePropertiesDialog)
39 self.creationDateField.setObjectName("creationDateField")
40 self.gridlayout.addWidget(self.creationDateField,2,1,1,1)
41
42 self.authorsField = QtGui.QTextEdit(LangFilePropertiesDialog)
43 self.authorsField.setObjectName("authorsField")
44 self.gridlayout.addWidget(self.authorsField,0,1,1,1)
45
46 self.label_3 = QtGui.QLabel(LangFilePropertiesDialog)
47 self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTop|QtCore.Qt.AlignTrailing)
48 self.label_3.setObjectName("label_3")
49 self.gridlayout.addWidget(self.label_3,0,0,1,1)
50 self.vboxlayout.addLayout(self.gridlayout)
51
52 spacerItem = QtGui.QSpacerItem(20,10,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Fixed)
53 self.vboxlayout.addItem(spacerItem)
54
55 self.buttonBox = QtGui.QDialogButtonBox(LangFilePropertiesDialog)
56 self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
57 self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.NoButton|QtGui.QDialogButtonBox.Ok)
58 self.buttonBox.setObjectName("buttonBox")
59 self.vboxlayout.addWidget(self.buttonBox)
60 self.label_2.setBuddy(self.langCodeField)
61 self.label.setBuddy(self.creationDateField)
62
63 self.retranslateUi(LangFilePropertiesDialog)
64 QtCore.QObject.connect(self.buttonBox,QtCore.SIGNAL("accepted()"),LangFilePropertiesDialog.accept)
65 QtCore.QObject.connect(self.buttonBox,QtCore.SIGNAL("rejected()"),LangFilePropertiesDialog.reject)
66 QtCore.QMetaObject.connectSlotsByName(LangFilePropertiesDialog)
67
68 def retranslateUi(self, LangFilePropertiesDialog):
69 LangFilePropertiesDialog.setWindowTitle(QtGui.QApplication.translate("LangFilePropertiesDialog", "Language File Properties", None, QtGui.QApplication.UnicodeUTF8))
70 self.label_2.setText(QtGui.QApplication.translate("LangFilePropertiesDialog", "Language code:", None, QtGui.QApplication.UnicodeUTF8))
71 self.label.setText(QtGui.QApplication.translate("LangFilePropertiesDialog", "Creation date:", None, QtGui.QApplication.UnicodeUTF8))
72 self.label_3.setText(QtGui.QApplication.translate("LangFilePropertiesDialog", "Author(s):", None, QtGui.QApplication.UnicodeUTF8))
73