Mercurial > projects > dil
comparison trunk/src/translator/ui_project_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 | 77c17bbe9d20 |
children |
comparison
equal
deleted
inserted
replaced
481:04adc4e3fdda | 482:1401e38d1e2e |
---|---|
1 # -*- coding: utf-8 -*- | 1 # -*- coding: utf-8 -*- |
2 | 2 |
3 # Form implementation generated from reading ui file 'project_properties.ui' | 3 # Form implementation generated from reading ui file 'project_properties.ui' |
4 # | 4 # |
5 # Created: Sun Oct 21 17:33:29 2007 | 5 # Created: Sat Nov 17 23:14:55 2007 |
6 # by: PyQt4 UI code generator 4.1 | 6 # by: PyQt4 UI code generator 4.1 |
7 # | 7 # |
8 # WARNING! All changes made in this file will be lost! | 8 # WARNING! All changes made in this file will be lost! |
9 | 9 |
10 import sys | 10 import sys |
11 from PyQt4 import QtCore, QtGui | 11 from PyQt4 import QtCore, QtGui |
12 | 12 |
13 class Ui_ProjectProperties(object): | 13 class Ui_ProjectPropertiesDialog(object): |
14 def setupUi(self, ProjectProperties): | 14 def setupUi(self, ProjectPropertiesDialog): |
15 ProjectProperties.setObjectName("ProjectProperties") | 15 ProjectPropertiesDialog.setObjectName("ProjectPropertiesDialog") |
16 ProjectProperties.resize(QtCore.QSize(QtCore.QRect(0,0,400,148).size()).expandedTo(ProjectProperties.minimumSizeHint())) | 16 ProjectPropertiesDialog.resize(QtCore.QSize(QtCore.QRect(0,0,400,152).size()).expandedTo(ProjectPropertiesDialog.minimumSizeHint())) |
17 | 17 |
18 self.vboxlayout = QtGui.QVBoxLayout(ProjectProperties) | 18 self.vboxlayout = QtGui.QVBoxLayout(ProjectPropertiesDialog) |
19 self.vboxlayout.setObjectName("vboxlayout") | 19 self.vboxlayout.setObjectName("vboxlayout") |
20 | 20 |
21 self.gridlayout = QtGui.QGridLayout() | 21 self.gridlayout = QtGui.QGridLayout() |
22 self.gridlayout.setObjectName("gridlayout") | 22 self.gridlayout.setObjectName("gridlayout") |
23 | 23 |
24 self.label_2 = QtGui.QLabel(ProjectProperties) | 24 self.label_2 = QtGui.QLabel(ProjectPropertiesDialog) |
25 self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) | 25 self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) |
26 self.label_2.setObjectName("label_2") | 26 self.label_2.setObjectName("label_2") |
27 self.gridlayout.addWidget(self.label_2,0,0,1,1) | 27 self.gridlayout.addWidget(self.label_2,0,0,1,1) |
28 | 28 |
29 self.projectNameField = QtGui.QLineEdit(ProjectProperties) | 29 self.projectNameField = QtGui.QLineEdit(ProjectPropertiesDialog) |
30 self.projectNameField.setObjectName("projectNameField") | 30 self.projectNameField.setObjectName("projectNameField") |
31 self.gridlayout.addWidget(self.projectNameField,0,1,1,1) | 31 self.gridlayout.addWidget(self.projectNameField,0,1,1,1) |
32 | 32 |
33 self.label = QtGui.QLabel(ProjectProperties) | 33 self.label = QtGui.QLabel(ProjectPropertiesDialog) |
34 self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) | 34 self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) |
35 self.label.setObjectName("label") | 35 self.label.setObjectName("label") |
36 self.gridlayout.addWidget(self.label,1,0,1,1) | 36 self.gridlayout.addWidget(self.label,1,0,1,1) |
37 | 37 |
38 self.buildCommandField = QtGui.QLineEdit(ProjectProperties) | 38 self.hboxlayout = QtGui.QHBoxLayout() |
39 self.buildCommandField.setObjectName("buildCommandField") | 39 self.hboxlayout.setObjectName("hboxlayout") |
40 self.gridlayout.addWidget(self.buildCommandField,1,1,1,1) | 40 |
41 self.buildScriptField = QtGui.QLineEdit(ProjectPropertiesDialog) | |
42 self.buildScriptField.setObjectName("buildScriptField") | |
43 self.hboxlayout.addWidget(self.buildScriptField) | |
44 | |
45 self.pickFileButton = QtGui.QToolButton(ProjectPropertiesDialog) | |
46 self.pickFileButton.setObjectName("pickFileButton") | |
47 self.hboxlayout.addWidget(self.pickFileButton) | |
48 self.gridlayout.addLayout(self.hboxlayout,1,1,1,1) | |
49 | |
50 self.creationDateField = QtGui.QLineEdit(ProjectPropertiesDialog) | |
51 self.creationDateField.setObjectName("creationDateField") | |
52 self.gridlayout.addWidget(self.creationDateField,2,1,1,1) | |
53 | |
54 self.label_3 = QtGui.QLabel(ProjectPropertiesDialog) | |
55 self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) | |
56 self.label_3.setObjectName("label_3") | |
57 self.gridlayout.addWidget(self.label_3,2,0,1,1) | |
41 self.vboxlayout.addLayout(self.gridlayout) | 58 self.vboxlayout.addLayout(self.gridlayout) |
42 | 59 |
43 spacerItem = QtGui.QSpacerItem(20,40,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding) | 60 spacerItem = QtGui.QSpacerItem(20,40,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding) |
44 self.vboxlayout.addItem(spacerItem) | 61 self.vboxlayout.addItem(spacerItem) |
45 | 62 |
46 self.buttonBox = QtGui.QDialogButtonBox(ProjectProperties) | 63 self.buttonBox = QtGui.QDialogButtonBox(ProjectPropertiesDialog) |
47 self.buttonBox.setOrientation(QtCore.Qt.Horizontal) | 64 self.buttonBox.setOrientation(QtCore.Qt.Horizontal) |
48 self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.NoButton|QtGui.QDialogButtonBox.Ok) | 65 self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.NoButton|QtGui.QDialogButtonBox.Ok) |
49 self.buttonBox.setObjectName("buttonBox") | 66 self.buttonBox.setObjectName("buttonBox") |
50 self.vboxlayout.addWidget(self.buttonBox) | 67 self.vboxlayout.addWidget(self.buttonBox) |
51 self.label_2.setBuddy(self.projectNameField) | 68 self.label_2.setBuddy(self.projectNameField) |
52 self.label.setBuddy(self.buildCommandField) | 69 self.label.setBuddy(self.buildScriptField) |
53 | 70 |
54 self.retranslateUi(ProjectProperties) | 71 self.retranslateUi(ProjectPropertiesDialog) |
55 QtCore.QObject.connect(self.buttonBox,QtCore.SIGNAL("accepted()"),ProjectProperties.accept) | 72 QtCore.QObject.connect(self.buttonBox,QtCore.SIGNAL("accepted()"),ProjectPropertiesDialog.accept) |
56 QtCore.QObject.connect(self.buttonBox,QtCore.SIGNAL("rejected()"),ProjectProperties.reject) | 73 QtCore.QObject.connect(self.buttonBox,QtCore.SIGNAL("rejected()"),ProjectPropertiesDialog.reject) |
57 QtCore.QMetaObject.connectSlotsByName(ProjectProperties) | 74 QtCore.QMetaObject.connectSlotsByName(ProjectPropertiesDialog) |
58 | 75 |
59 def retranslateUi(self, ProjectProperties): | 76 def retranslateUi(self, ProjectPropertiesDialog): |
60 ProjectProperties.setWindowTitle(QtGui.QApplication.translate("ProjectProperties", "Project Properties", None, QtGui.QApplication.UnicodeUTF8)) | 77 ProjectPropertiesDialog.setWindowTitle(QtGui.QApplication.translate("ProjectPropertiesDialog", "Project Properties", None, QtGui.QApplication.UnicodeUTF8)) |
61 self.label_2.setText(QtGui.QApplication.translate("ProjectProperties", "Project name:", None, QtGui.QApplication.UnicodeUTF8)) | 78 self.label_2.setText(QtGui.QApplication.translate("ProjectPropertiesDialog", "Project name:", None, QtGui.QApplication.UnicodeUTF8)) |
62 self.label.setText(QtGui.QApplication.translate("ProjectProperties", "Build command:", None, QtGui.QApplication.UnicodeUTF8)) | 79 self.label.setText(QtGui.QApplication.translate("ProjectPropertiesDialog", "Build script:", None, QtGui.QApplication.UnicodeUTF8)) |
80 self.pickFileButton.setText(QtGui.QApplication.translate("ProjectPropertiesDialog", "...", None, QtGui.QApplication.UnicodeUTF8)) | |
81 self.label_3.setText(QtGui.QApplication.translate("ProjectPropertiesDialog", "Creation date:", None, QtGui.QApplication.UnicodeUTF8)) | |
63 | 82 |