1
# -*- coding: utf-8 -*-
3
# Form implementation generated from reading ui file '/home/detlev/Development/eric4_0/eric4/Preferences/ConfigurationPages/QtPage.ui'
5
# Created: Wed May 2 19:07:37 2007
6
# by: PyQt4 UI code generator 4-snapshot-20070428
8
# WARNING! All changes made in this file will be lost!
10
from PyQt4 import QtCore, QtGui
12
class Ui_QtPage(object):
13
def setupUi(self, QtPage):
14
QtPage.setObjectName("QtPage")
15
QtPage.resize(QtCore.QSize(QtCore.QRect(0,0,642,614).size()).expandedTo(QtPage.minimumSizeHint()))
17
self.vboxlayout = QtGui.QVBoxLayout(QtPage)
18
self.vboxlayout.setMargin(6)
19
self.vboxlayout.setSpacing(6)
20
self.vboxlayout.setObjectName("vboxlayout")
22
self.headerLabel = QtGui.QLabel(QtPage)
23
self.headerLabel.setObjectName("headerLabel")
24
self.vboxlayout.addWidget(self.headerLabel)
26
self.line12 = QtGui.QFrame(QtPage)
27
self.line12.setFrameShape(QtGui.QFrame.HLine)
28
self.line12.setFrameShadow(QtGui.QFrame.Sunken)
29
self.line12.setFrameShape(QtGui.QFrame.HLine)
30
self.line12.setFrameShadow(QtGui.QFrame.Sunken)
31
self.line12.setObjectName("line12")
32
self.vboxlayout.addWidget(self.line12)
34
self.disableQt3CheckBox = QtGui.QCheckBox(QtPage)
35
self.disableQt3CheckBox.setObjectName("disableQt3CheckBox")
36
self.vboxlayout.addWidget(self.disableQt3CheckBox)
38
self.groupBox = QtGui.QGroupBox(QtPage)
39
self.groupBox.setObjectName("groupBox")
41
self.gridlayout = QtGui.QGridLayout(self.groupBox)
42
self.gridlayout.setMargin(6)
43
self.gridlayout.setSpacing(6)
44
self.gridlayout.setObjectName("gridlayout")
46
self.exportQtDirCheckBox = QtGui.QCheckBox(self.groupBox)
47
self.exportQtDirCheckBox.setEnabled(False)
48
self.exportQtDirCheckBox.setObjectName("exportQtDirCheckBox")
49
self.gridlayout.addWidget(self.exportQtDirCheckBox,3,0,1,2)
51
self.textLabel1_2_2 = QtGui.QLabel(self.groupBox)
52
self.textLabel1_2_2.setObjectName("textLabel1_2_2")
53
self.gridlayout.addWidget(self.textLabel1_2_2,2,0,1,2)
55
self.TextLabel1_2_2_3 = QtGui.QLabel(self.groupBox)
56
self.TextLabel1_2_2_3.setObjectName("TextLabel1_2_2_3")
57
self.gridlayout.addWidget(self.TextLabel1_2_2_3,0,0,1,2)
59
self.qtEdit = QtGui.QLineEdit(self.groupBox)
60
self.qtEdit.setObjectName("qtEdit")
61
self.gridlayout.addWidget(self.qtEdit,1,0,1,1)
63
self.qtButton = QtGui.QPushButton(self.groupBox)
64
self.qtButton.setObjectName("qtButton")
65
self.gridlayout.addWidget(self.qtButton,1,1,1,1)
66
self.vboxlayout.addWidget(self.groupBox)
68
self.groupBox_2 = QtGui.QGroupBox(QtPage)
69
self.groupBox_2.setObjectName("groupBox_2")
71
self.gridlayout1 = QtGui.QGridLayout(self.groupBox_2)
72
self.gridlayout1.setMargin(6)
73
self.gridlayout1.setSpacing(6)
74
self.gridlayout1.setObjectName("gridlayout1")
76
self.exportQt4DirCheckBox = QtGui.QCheckBox(self.groupBox_2)
77
self.exportQt4DirCheckBox.setEnabled(False)
78
self.exportQt4DirCheckBox.setObjectName("exportQt4DirCheckBox")
79
self.gridlayout1.addWidget(self.exportQt4DirCheckBox,3,0,1,2)
81
self.textLabel1_2_3 = QtGui.QLabel(self.groupBox_2)
82
self.textLabel1_2_3.setObjectName("textLabel1_2_3")
83
self.gridlayout1.addWidget(self.textLabel1_2_3,2,0,1,2)
85
self.TextLabel1_2_2_4 = QtGui.QLabel(self.groupBox_2)
86
self.TextLabel1_2_2_4.setObjectName("TextLabel1_2_2_4")
87
self.gridlayout1.addWidget(self.TextLabel1_2_2_4,0,0,1,2)
89
self.qt4Edit = QtGui.QLineEdit(self.groupBox_2)
90
self.qt4Edit.setObjectName("qt4Edit")
91
self.gridlayout1.addWidget(self.qt4Edit,1,0,1,1)
93
self.qt4Button = QtGui.QPushButton(self.groupBox_2)
94
self.qt4Button.setObjectName("qt4Button")
95
self.gridlayout1.addWidget(self.qt4Button,1,1,1,1)
96
self.vboxlayout.addWidget(self.groupBox_2)
98
self.groupBox_3 = QtGui.QGroupBox(QtPage)
99
self.groupBox_3.setObjectName("groupBox_3")
101
self.gridlayout2 = QtGui.QGridLayout(self.groupBox_3)
102
self.gridlayout2.setMargin(6)
103
self.gridlayout2.setSpacing(6)
104
self.gridlayout2.setObjectName("gridlayout2")
106
self.qt4TransButton = QtGui.QPushButton(self.groupBox_3)
107
self.qt4TransButton.setObjectName("qt4TransButton")
108
self.gridlayout2.addWidget(self.qt4TransButton,1,1,1,1)
110
self.qt4TransEdit = QtGui.QLineEdit(self.groupBox_3)
111
self.qt4TransEdit.setObjectName("qt4TransEdit")
112
self.gridlayout2.addWidget(self.qt4TransEdit,1,0,1,1)
114
self.TextLabel1_2_2_5 = QtGui.QLabel(self.groupBox_3)
115
self.TextLabel1_2_2_5.setObjectName("TextLabel1_2_2_5")
116
self.gridlayout2.addWidget(self.TextLabel1_2_2_5,0,0,1,2)
118
self.textLabel1_2_4 = QtGui.QLabel(self.groupBox_3)
119
self.textLabel1_2_4.setObjectName("textLabel1_2_4")
120
self.gridlayout2.addWidget(self.textLabel1_2_4,2,0,1,2)
121
self.vboxlayout.addWidget(self.groupBox_3)
123
self.groupBox_4 = QtGui.QGroupBox(QtPage)
124
self.groupBox_4.setObjectName("groupBox_4")
126
self.gridlayout3 = QtGui.QGridLayout(self.groupBox_4)
127
self.gridlayout3.setMargin(6)
128
self.gridlayout3.setSpacing(6)
129
self.gridlayout3.setObjectName("gridlayout3")
131
self.label = QtGui.QLabel(self.groupBox_4)
132
self.label.setWordWrap(True)
133
self.label.setObjectName("label")
134
self.gridlayout3.addWidget(self.label,0,0,1,5)
136
self.label_3 = QtGui.QLabel(self.groupBox_4)
137
self.label_3.setObjectName("label_3")
138
self.gridlayout3.addWidget(self.label_3,2,0,1,1)
140
self.label_2 = QtGui.QLabel(self.groupBox_4)
141
self.label_2.setObjectName("label_2")
142
self.gridlayout3.addWidget(self.label_2,1,0,1,1)
144
self.qt3PrefixEdit = QtGui.QLineEdit(self.groupBox_4)
145
self.qt3PrefixEdit.setObjectName("qt3PrefixEdit")
146
self.gridlayout3.addWidget(self.qt3PrefixEdit,1,1,1,1)
148
self.qt4PrefixEdit = QtGui.QLineEdit(self.groupBox_4)
149
self.qt4PrefixEdit.setObjectName("qt4PrefixEdit")
150
self.gridlayout3.addWidget(self.qt4PrefixEdit,2,1,1,1)
152
self.label_4 = QtGui.QLabel(self.groupBox_4)
153
self.label_4.setObjectName("label_4")
154
self.gridlayout3.addWidget(self.label_4,1,2,1,1)
156
self.label_5 = QtGui.QLabel(self.groupBox_4)
157
self.label_5.setObjectName("label_5")
158
self.gridlayout3.addWidget(self.label_5,2,2,1,1)
160
self.qt3PostfixEdit = QtGui.QLineEdit(self.groupBox_4)
161
self.qt3PostfixEdit.setObjectName("qt3PostfixEdit")
162
self.gridlayout3.addWidget(self.qt3PostfixEdit,1,3,1,1)
164
self.qt4PostfixEdit = QtGui.QLineEdit(self.groupBox_4)
165
self.qt4PostfixEdit.setObjectName("qt4PostfixEdit")
166
self.gridlayout3.addWidget(self.qt4PostfixEdit,2,3,1,1)
168
self.qt4SampleLabel = QtGui.QLabel(self.groupBox_4)
170
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7),QtGui.QSizePolicy.Policy(5))
171
sizePolicy.setHorizontalStretch(1)
172
sizePolicy.setVerticalStretch(0)
173
sizePolicy.setHeightForWidth(self.qt4SampleLabel.sizePolicy().hasHeightForWidth())
174
self.qt4SampleLabel.setSizePolicy(sizePolicy)
175
self.qt4SampleLabel.setObjectName("qt4SampleLabel")
176
self.gridlayout3.addWidget(self.qt4SampleLabel,2,4,1,1)
178
self.qt3SampleLabel = QtGui.QLabel(self.groupBox_4)
180
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7),QtGui.QSizePolicy.Policy(5))
181
sizePolicy.setHorizontalStretch(1)
182
sizePolicy.setVerticalStretch(0)
183
sizePolicy.setHeightForWidth(self.qt3SampleLabel.sizePolicy().hasHeightForWidth())
184
self.qt3SampleLabel.setSizePolicy(sizePolicy)
185
self.qt3SampleLabel.setObjectName("qt3SampleLabel")
186
self.gridlayout3.addWidget(self.qt3SampleLabel,1,4,1,1)
187
self.vboxlayout.addWidget(self.groupBox_4)
189
spacerItem = QtGui.QSpacerItem(496,20,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
190
self.vboxlayout.addItem(spacerItem)
192
self.retranslateUi(QtPage)
193
QtCore.QObject.connect(self.disableQt3CheckBox,QtCore.SIGNAL("toggled(bool)"),self.groupBox.setDisabled)
194
QtCore.QMetaObject.connectSlotsByName(QtPage)
195
QtPage.setTabOrder(self.disableQt3CheckBox,self.qtEdit)
196
QtPage.setTabOrder(self.qtEdit,self.qtButton)
197
QtPage.setTabOrder(self.qtButton,self.exportQtDirCheckBox)
198
QtPage.setTabOrder(self.exportQtDirCheckBox,self.qt4Edit)
199
QtPage.setTabOrder(self.qt4Edit,self.qt4Button)
200
QtPage.setTabOrder(self.qt4Button,self.exportQt4DirCheckBox)
201
QtPage.setTabOrder(self.exportQt4DirCheckBox,self.qt4TransEdit)
202
QtPage.setTabOrder(self.qt4TransEdit,self.qt4TransButton)
203
QtPage.setTabOrder(self.qt4TransButton,self.qt3PrefixEdit)
204
QtPage.setTabOrder(self.qt3PrefixEdit,self.qt3PostfixEdit)
205
QtPage.setTabOrder(self.qt3PostfixEdit,self.qt4PrefixEdit)
206
QtPage.setTabOrder(self.qt4PrefixEdit,self.qt4PostfixEdit)
208
def retranslateUi(self, QtPage):
209
self.headerLabel.setText(QtGui.QApplication.translate("QtPage", "<b>Configure Qt</b>", None, QtGui.QApplication.UnicodeUTF8))
210
self.disableQt3CheckBox.setToolTip(QtGui.QApplication.translate("QtPage", "Select to disable the Qt3 support or if Qt3 is not installed", None, QtGui.QApplication.UnicodeUTF8))
211
self.disableQt3CheckBox.setText(QtGui.QApplication.translate("QtPage", "Disable Qt3 support", None, QtGui.QApplication.UnicodeUTF8))
212
self.groupBox.setTitle(QtGui.QApplication.translate("QtPage", "Qt3 Directory", None, QtGui.QApplication.UnicodeUTF8))
213
self.exportQtDirCheckBox.setToolTip(QtGui.QApplication.translate("QtPage", "Select, whether the Qt Directory entered should be exported to the environment", None, QtGui.QApplication.UnicodeUTF8))
214
self.exportQtDirCheckBox.setText(QtGui.QApplication.translate("QtPage", "Export Qt3 Directory entered above", None, QtGui.QApplication.UnicodeUTF8))
215
self.textLabel1_2_2.setText(QtGui.QApplication.translate("QtPage", "<b>Note:</b> Leave this entry empty to use the QTDIR environment variable.", None, QtGui.QApplication.UnicodeUTF8))
216
self.TextLabel1_2_2_3.setText(QtGui.QApplication.translate("QtPage", "<font color=\"#FF0000\"><b>Note:</b> These settings are activated at the next startup of the application.</font>", None, QtGui.QApplication.UnicodeUTF8))
217
self.qtEdit.setToolTip(QtGui.QApplication.translate("QtPage", "Enter the path of the Qt3 directory.", None, QtGui.QApplication.UnicodeUTF8))
218
self.qtButton.setToolTip(QtGui.QApplication.translate("QtPage", "Press to select the Qt3 directory via a directory selection dialog", None, QtGui.QApplication.UnicodeUTF8))
219
self.qtButton.setText(QtGui.QApplication.translate("QtPage", "...", None, QtGui.QApplication.UnicodeUTF8))
220
self.groupBox_2.setTitle(QtGui.QApplication.translate("QtPage", "Qt4 Directory", None, QtGui.QApplication.UnicodeUTF8))
221
self.exportQt4DirCheckBox.setToolTip(QtGui.QApplication.translate("QtPage", "Select, whether the Qt Directory entered should be exported to the environment", None, QtGui.QApplication.UnicodeUTF8))
222
self.exportQt4DirCheckBox.setText(QtGui.QApplication.translate("QtPage", "Export Qt4 Directory entered above", None, QtGui.QApplication.UnicodeUTF8))
223
self.textLabel1_2_3.setText(QtGui.QApplication.translate("QtPage", "<b>Note:</b> Leave this entry empty to use the QT4DIR environment variable.", None, QtGui.QApplication.UnicodeUTF8))
224
self.TextLabel1_2_2_4.setText(QtGui.QApplication.translate("QtPage", "<font color=\"#FF0000\"><b>Note:</b> These settings are activated at the next startup of the application.</font>", None, QtGui.QApplication.UnicodeUTF8))
225
self.qt4Edit.setToolTip(QtGui.QApplication.translate("QtPage", "Enter the path of the Qt4 directory.", None, QtGui.QApplication.UnicodeUTF8))
226
self.qt4Button.setToolTip(QtGui.QApplication.translate("QtPage", "Press to select the Qt4 directory via a directory selection dialog", None, QtGui.QApplication.UnicodeUTF8))
227
self.qt4Button.setText(QtGui.QApplication.translate("QtPage", "...", None, QtGui.QApplication.UnicodeUTF8))
228
self.groupBox_3.setTitle(QtGui.QApplication.translate("QtPage", "Qt4 Translations Directory", None, QtGui.QApplication.UnicodeUTF8))
229
self.qt4TransButton.setToolTip(QtGui.QApplication.translate("QtPage", "Press to select the Qt4 translations directory via a directory selection dialog", None, QtGui.QApplication.UnicodeUTF8))
230
self.qt4TransButton.setText(QtGui.QApplication.translate("QtPage", "...", None, QtGui.QApplication.UnicodeUTF8))
231
self.qt4TransEdit.setToolTip(QtGui.QApplication.translate("QtPage", "Enter the path of the Qt4 translations directory.", None, QtGui.QApplication.UnicodeUTF8))
232
self.TextLabel1_2_2_5.setText(QtGui.QApplication.translate("QtPage", "<font color=\"#FF0000\"><b>Note:</b> These settings are activated at the next startup of the application.</font>", None, QtGui.QApplication.UnicodeUTF8))
233
self.textLabel1_2_4.setText(QtGui.QApplication.translate("QtPage", "<b>Note:</b> Leave this entry empty to use the QT4DIR environment variable.", None, QtGui.QApplication.UnicodeUTF8))
234
self.groupBox_4.setTitle(QtGui.QApplication.translate("QtPage", "Qt Tools", None, QtGui.QApplication.UnicodeUTF8))
235
self.label.setText(QtGui.QApplication.translate("QtPage", "The tool executable is composed of the prefix, the tool name and the postfix. For win32, the extension is added automatically.", None, QtGui.QApplication.UnicodeUTF8))
236
self.label_3.setText(QtGui.QApplication.translate("QtPage", "Qt4-Prefix:", None, QtGui.QApplication.UnicodeUTF8))
237
self.label_2.setText(QtGui.QApplication.translate("QtPage", "Qt3-Prefix:", None, QtGui.QApplication.UnicodeUTF8))
238
self.qt3PrefixEdit.setToolTip(QtGui.QApplication.translate("QtPage", "Enter the prefix for the Qt3 tools name", None, QtGui.QApplication.UnicodeUTF8))
239
self.qt4PrefixEdit.setToolTip(QtGui.QApplication.translate("QtPage", "Enter the prefix for the Qt4 tools name", None, QtGui.QApplication.UnicodeUTF8))
240
self.label_4.setText(QtGui.QApplication.translate("QtPage", "Qt3-Postfix:", None, QtGui.QApplication.UnicodeUTF8))
241
self.label_5.setText(QtGui.QApplication.translate("QtPage", "Qt4-Postfix:", None, QtGui.QApplication.UnicodeUTF8))
242
self.qt3PostfixEdit.setToolTip(QtGui.QApplication.translate("QtPage", "Enter the postfix for the Qt3 tools name", None, QtGui.QApplication.UnicodeUTF8))
243
self.qt4PostfixEdit.setToolTip(QtGui.QApplication.translate("QtPage", "Enter the postfix for the Qt4 tools name", None, QtGui.QApplication.UnicodeUTF8))
244
self.qt4SampleLabel.setToolTip(QtGui.QApplication.translate("QtPage", "This gives an example of the complete tool name", None, QtGui.QApplication.UnicodeUTF8))
245
self.qt4SampleLabel.setText(QtGui.QApplication.translate("QtPage", "designer", None, QtGui.QApplication.UnicodeUTF8))
246
self.qt3SampleLabel.setToolTip(QtGui.QApplication.translate("QtPage", "This gives an example of the complete tool name", None, QtGui.QApplication.UnicodeUTF8))
247
self.qt3SampleLabel.setText(QtGui.QApplication.translate("QtPage", "designer", None, QtGui.QApplication.UnicodeUTF8))
251
if __name__ == "__main__":
253
app = QtGui.QApplication(sys.argv)
254
QtPage = QtGui.QWidget()
258
sys.exit(app.exec_())