1
# -*- coding: utf-8 -*-
3
# Form implementation generated from reading ui file '/home/offedetl/Development/Eric4/eric4_0/eric4/Preferences/ConfigurationPages/EditorTypingPage.ui'
5
# Created: Mon May 21 08:01:55 2007
6
# by: PyQt4 UI code generator 4-snapshot-20070513
8
# WARNING! All changes made in this file will be lost!
10
from PyQt4 import QtCore, QtGui
12
class Ui_EditorTypingPage(object):
13
def setupUi(self, EditorTypingPage):
14
EditorTypingPage.setObjectName("EditorTypingPage")
15
EditorTypingPage.resize(QtCore.QSize(QtCore.QRect(0,0,531,531).size()).expandedTo(EditorTypingPage.minimumSizeHint()))
17
self.vboxlayout = QtGui.QVBoxLayout(EditorTypingPage)
18
self.vboxlayout.setMargin(6)
19
self.vboxlayout.setSpacing(6)
20
self.vboxlayout.setObjectName("vboxlayout")
22
self.headerLabel = QtGui.QLabel(EditorTypingPage)
23
self.headerLabel.setObjectName("headerLabel")
24
self.vboxlayout.addWidget(self.headerLabel)
26
self.line1 = QtGui.QFrame(EditorTypingPage)
27
self.line1.setFrameShape(QtGui.QFrame.HLine)
28
self.line1.setFrameShadow(QtGui.QFrame.Sunken)
29
self.line1.setFrameShape(QtGui.QFrame.HLine)
30
self.line1.setFrameShadow(QtGui.QFrame.Sunken)
31
self.line1.setObjectName("line1")
32
self.vboxlayout.addWidget(self.line1)
34
self.hboxlayout = QtGui.QHBoxLayout()
35
self.hboxlayout.setMargin(0)
36
self.hboxlayout.setSpacing(6)
37
self.hboxlayout.setObjectName("hboxlayout")
39
self.TextLabel1_3 = QtGui.QLabel(EditorTypingPage)
40
self.TextLabel1_3.setObjectName("TextLabel1_3")
41
self.hboxlayout.addWidget(self.TextLabel1_3)
43
self.languageCombo = QtGui.QComboBox(EditorTypingPage)
45
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7),QtGui.QSizePolicy.Policy(0))
46
sizePolicy.setHorizontalStretch(0)
47
sizePolicy.setVerticalStretch(0)
48
sizePolicy.setHeightForWidth(self.languageCombo.sizePolicy().hasHeightForWidth())
49
self.languageCombo.setSizePolicy(sizePolicy)
50
self.languageCombo.setObjectName("languageCombo")
51
self.hboxlayout.addWidget(self.languageCombo)
52
self.vboxlayout.addLayout(self.hboxlayout)
54
self.stackedWidget = QtGui.QStackedWidget(EditorTypingPage)
55
self.stackedWidget.setObjectName("stackedWidget")
57
self.emptyPage = QtGui.QWidget()
58
self.emptyPage.setObjectName("emptyPage")
59
self.stackedWidget.addWidget(self.emptyPage)
61
self.pythonPage = QtGui.QWidget()
62
self.pythonPage.setObjectName("pythonPage")
64
self.vboxlayout1 = QtGui.QVBoxLayout(self.pythonPage)
65
self.vboxlayout1.setMargin(6)
66
self.vboxlayout1.setSpacing(6)
67
self.vboxlayout1.setObjectName("vboxlayout1")
69
self.pythonGroup = QtGui.QGroupBox(self.pythonPage)
70
self.pythonGroup.setFocusPolicy(QtCore.Qt.TabFocus)
71
self.pythonGroup.setCheckable(True)
72
self.pythonGroup.setObjectName("pythonGroup")
74
self.gridlayout = QtGui.QGridLayout(self.pythonGroup)
75
self.gridlayout.setMargin(6)
76
self.gridlayout.setSpacing(6)
77
self.gridlayout.setObjectName("gridlayout")
79
self.pythonDedentExceptCheckBox = QtGui.QCheckBox(self.pythonGroup)
80
self.pythonDedentExceptCheckBox.setObjectName("pythonDedentExceptCheckBox")
81
self.gridlayout.addWidget(self.pythonDedentExceptCheckBox,6,0,1,2)
83
self.pythonDedentExceptPy24CheckBox = QtGui.QCheckBox(self.pythonGroup)
84
self.pythonDedentExceptPy24CheckBox.setEnabled(False)
85
self.pythonDedentExceptPy24CheckBox.setObjectName("pythonDedentExceptPy24CheckBox")
86
self.gridlayout.addWidget(self.pythonDedentExceptPy24CheckBox,7,1,1,1)
88
spacerItem = QtGui.QSpacerItem(20,20,QtGui.QSizePolicy.Fixed,QtGui.QSizePolicy.Minimum)
89
self.gridlayout.addItem(spacerItem,7,0,1,1)
91
spacerItem1 = QtGui.QSpacerItem(20,20,QtGui.QSizePolicy.Fixed,QtGui.QSizePolicy.Minimum)
92
self.gridlayout.addItem(spacerItem1,1,0,1,1)
94
self.pythonDedentElseCheckBox = QtGui.QCheckBox(self.pythonGroup)
95
self.pythonDedentElseCheckBox.setObjectName("pythonDedentElseCheckBox")
96
self.gridlayout.addWidget(self.pythonDedentElseCheckBox,5,0,1,2)
98
self.pythonInsertBlankCheckBox = QtGui.QCheckBox(self.pythonGroup)
99
self.pythonInsertBlankCheckBox.setObjectName("pythonInsertBlankCheckBox")
100
self.gridlayout.addWidget(self.pythonInsertBlankCheckBox,10,0,1,2)
102
self.pythonInsertSelfCheckBox = QtGui.QCheckBox(self.pythonGroup)
103
self.pythonInsertSelfCheckBox.setObjectName("pythonInsertSelfCheckBox")
104
self.gridlayout.addWidget(self.pythonInsertSelfCheckBox,9,0,1,2)
106
self.pythonInsertImportCheckBox = QtGui.QCheckBox(self.pythonGroup)
107
self.pythonInsertImportCheckBox.setObjectName("pythonInsertImportCheckBox")
108
self.gridlayout.addWidget(self.pythonInsertImportCheckBox,8,0,1,2)
110
self.pythonSkipBraceCheckBox = QtGui.QCheckBox(self.pythonGroup)
111
self.pythonSkipBraceCheckBox.setEnabled(False)
112
self.pythonSkipBraceCheckBox.setObjectName("pythonSkipBraceCheckBox")
113
self.gridlayout.addWidget(self.pythonSkipBraceCheckBox,1,1,1,1)
115
self.pythonInsertQuoteCheckBox = QtGui.QCheckBox(self.pythonGroup)
116
self.pythonInsertQuoteCheckBox.setObjectName("pythonInsertQuoteCheckBox")
117
self.gridlayout.addWidget(self.pythonInsertQuoteCheckBox,4,0,1,2)
119
self.pythonColonDetectionCheckBox = QtGui.QCheckBox(self.pythonGroup)
120
self.pythonColonDetectionCheckBox.setObjectName("pythonColonDetectionCheckBox")
121
self.gridlayout.addWidget(self.pythonColonDetectionCheckBox,2,0,1,2)
123
self.pythonInsertClosingBraceCheckBox = QtGui.QCheckBox(self.pythonGroup)
124
self.pythonInsertClosingBraceCheckBox.setObjectName("pythonInsertClosingBraceCheckBox")
125
self.gridlayout.addWidget(self.pythonInsertClosingBraceCheckBox,0,0,1,2)
127
self.pythonIndentBraceCheckBox = QtGui.QCheckBox(self.pythonGroup)
128
self.pythonIndentBraceCheckBox.setObjectName("pythonIndentBraceCheckBox")
129
self.gridlayout.addWidget(self.pythonIndentBraceCheckBox,3,0,1,2)
130
self.vboxlayout1.addWidget(self.pythonGroup)
132
spacerItem2 = QtGui.QSpacerItem(20,40,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
133
self.vboxlayout1.addItem(spacerItem2)
134
self.stackedWidget.addWidget(self.pythonPage)
136
self.rubyPage = QtGui.QWidget()
137
self.rubyPage.setObjectName("rubyPage")
139
self.vboxlayout2 = QtGui.QVBoxLayout(self.rubyPage)
140
self.vboxlayout2.setMargin(6)
141
self.vboxlayout2.setSpacing(6)
142
self.vboxlayout2.setObjectName("vboxlayout2")
144
self.rubyGroup = QtGui.QGroupBox(self.rubyPage)
145
self.rubyGroup.setFocusPolicy(QtCore.Qt.TabFocus)
146
self.rubyGroup.setCheckable(True)
147
self.rubyGroup.setObjectName("rubyGroup")
149
self.vboxlayout3 = QtGui.QVBoxLayout(self.rubyGroup)
150
self.vboxlayout3.setMargin(6)
151
self.vboxlayout3.setSpacing(6)
152
self.vboxlayout3.setObjectName("vboxlayout3")
154
self.rubyInsertClosingBraceCheckBox = QtGui.QCheckBox(self.rubyGroup)
155
self.rubyInsertClosingBraceCheckBox.setObjectName("rubyInsertClosingBraceCheckBox")
156
self.vboxlayout3.addWidget(self.rubyInsertClosingBraceCheckBox)
158
spacerItem3 = QtGui.QSpacerItem(20,20,QtGui.QSizePolicy.Fixed,QtGui.QSizePolicy.Minimum)
159
self.vboxlayout3.addItem(spacerItem3)
161
self.rubySkipBraceCheckBox = QtGui.QCheckBox(self.rubyGroup)
162
self.rubySkipBraceCheckBox.setObjectName("rubySkipBraceCheckBox")
163
self.vboxlayout3.addWidget(self.rubySkipBraceCheckBox)
165
self.rubyIndentBraceCheckBox = QtGui.QCheckBox(self.rubyGroup)
166
self.rubyIndentBraceCheckBox.setObjectName("rubyIndentBraceCheckBox")
167
self.vboxlayout3.addWidget(self.rubyIndentBraceCheckBox)
169
self.rubyInsertQuoteCheckBox = QtGui.QCheckBox(self.rubyGroup)
170
self.rubyInsertQuoteCheckBox.setObjectName("rubyInsertQuoteCheckBox")
171
self.vboxlayout3.addWidget(self.rubyInsertQuoteCheckBox)
173
self.rubyInsertBlankCheckBox = QtGui.QCheckBox(self.rubyGroup)
174
self.rubyInsertBlankCheckBox.setObjectName("rubyInsertBlankCheckBox")
175
self.vboxlayout3.addWidget(self.rubyInsertBlankCheckBox)
177
self.rubyInsertHereDocCheckBox = QtGui.QCheckBox(self.rubyGroup)
178
self.rubyInsertHereDocCheckBox.setObjectName("rubyInsertHereDocCheckBox")
179
self.vboxlayout3.addWidget(self.rubyInsertHereDocCheckBox)
181
self.rubyInsertInlineDocCheckBox = QtGui.QCheckBox(self.rubyGroup)
182
self.rubyInsertInlineDocCheckBox.setObjectName("rubyInsertInlineDocCheckBox")
183
self.vboxlayout3.addWidget(self.rubyInsertInlineDocCheckBox)
184
self.vboxlayout2.addWidget(self.rubyGroup)
186
spacerItem4 = QtGui.QSpacerItem(20,40,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
187
self.vboxlayout2.addItem(spacerItem4)
188
self.stackedWidget.addWidget(self.rubyPage)
189
self.vboxlayout.addWidget(self.stackedWidget)
191
spacerItem5 = QtGui.QSpacerItem(519,31,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
192
self.vboxlayout.addItem(spacerItem5)
194
self.retranslateUi(EditorTypingPage)
195
self.stackedWidget.setCurrentIndex(1)
196
QtCore.QObject.connect(self.pythonInsertClosingBraceCheckBox,QtCore.SIGNAL("toggled(bool)"),self.pythonSkipBraceCheckBox.setEnabled)
197
QtCore.QObject.connect(self.pythonInsertClosingBraceCheckBox,QtCore.SIGNAL("toggled(bool)"),self.pythonSkipBraceCheckBox.setChecked)
198
QtCore.QObject.connect(self.pythonDedentExceptCheckBox,QtCore.SIGNAL("toggled(bool)"),self.pythonDedentExceptPy24CheckBox.setEnabled)
199
QtCore.QMetaObject.connectSlotsByName(EditorTypingPage)
200
EditorTypingPage.setTabOrder(self.languageCombo,self.pythonGroup)
201
EditorTypingPage.setTabOrder(self.pythonGroup,self.pythonInsertClosingBraceCheckBox)
202
EditorTypingPage.setTabOrder(self.pythonInsertClosingBraceCheckBox,self.pythonSkipBraceCheckBox)
203
EditorTypingPage.setTabOrder(self.pythonSkipBraceCheckBox,self.pythonColonDetectionCheckBox)
204
EditorTypingPage.setTabOrder(self.pythonColonDetectionCheckBox,self.pythonIndentBraceCheckBox)
205
EditorTypingPage.setTabOrder(self.pythonIndentBraceCheckBox,self.pythonInsertQuoteCheckBox)
206
EditorTypingPage.setTabOrder(self.pythonInsertQuoteCheckBox,self.pythonDedentElseCheckBox)
207
EditorTypingPage.setTabOrder(self.pythonDedentElseCheckBox,self.pythonDedentExceptCheckBox)
208
EditorTypingPage.setTabOrder(self.pythonDedentExceptCheckBox,self.pythonDedentExceptPy24CheckBox)
209
EditorTypingPage.setTabOrder(self.pythonDedentExceptPy24CheckBox,self.pythonInsertImportCheckBox)
210
EditorTypingPage.setTabOrder(self.pythonInsertImportCheckBox,self.pythonInsertSelfCheckBox)
211
EditorTypingPage.setTabOrder(self.pythonInsertSelfCheckBox,self.pythonInsertBlankCheckBox)
212
EditorTypingPage.setTabOrder(self.pythonInsertBlankCheckBox,self.rubyGroup)
213
EditorTypingPage.setTabOrder(self.rubyGroup,self.rubyInsertClosingBraceCheckBox)
214
EditorTypingPage.setTabOrder(self.rubyInsertClosingBraceCheckBox,self.rubySkipBraceCheckBox)
215
EditorTypingPage.setTabOrder(self.rubySkipBraceCheckBox,self.rubyIndentBraceCheckBox)
216
EditorTypingPage.setTabOrder(self.rubyIndentBraceCheckBox,self.rubyInsertQuoteCheckBox)
217
EditorTypingPage.setTabOrder(self.rubyInsertQuoteCheckBox,self.rubyInsertBlankCheckBox)
219
def retranslateUi(self, EditorTypingPage):
220
self.headerLabel.setText(QtGui.QApplication.translate("EditorTypingPage", "<b>Configure typing</b>", None, QtGui.QApplication.UnicodeUTF8))
221
self.TextLabel1_3.setText(QtGui.QApplication.translate("EditorTypingPage", "Programming Language:", None, QtGui.QApplication.UnicodeUTF8))
222
self.languageCombo.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select the programming language to be configured.", None, QtGui.QApplication.UnicodeUTF8))
223
self.pythonGroup.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to enable Python typing aids", None, QtGui.QApplication.UnicodeUTF8))
224
self.pythonGroup.setTitle(QtGui.QApplication.translate("EditorTypingPage", "Enable Python typing aids", None, QtGui.QApplication.UnicodeUTF8))
225
self.pythonDedentExceptCheckBox.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to dedent \'except\' and \'finally\' to the matching \'try:\'", None, QtGui.QApplication.UnicodeUTF8))
226
self.pythonDedentExceptCheckBox.setText(QtGui.QApplication.translate("EditorTypingPage", "Automatic dedent of \'except\' and \'finally\'", None, QtGui.QApplication.UnicodeUTF8))
227
self.pythonDedentExceptPy24CheckBox.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to treat code as Python 2.4 code", None, QtGui.QApplication.UnicodeUTF8))
228
self.pythonDedentExceptPy24CheckBox.setText(QtGui.QApplication.translate("EditorTypingPage", "Python 2.4 style \'try:\' blocks", None, QtGui.QApplication.UnicodeUTF8))
229
self.pythonDedentElseCheckBox.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to dedent \'else:\' and \'elif\' to the matching \'if\'", None, QtGui.QApplication.UnicodeUTF8))
230
self.pythonDedentElseCheckBox.setText(QtGui.QApplication.translate("EditorTypingPage", "Automatic dedent of \'else:\' and \'elif\'", None, QtGui.QApplication.UnicodeUTF8))
231
self.pythonInsertBlankCheckBox.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to insert a blank after \',\'", None, QtGui.QApplication.UnicodeUTF8))
232
self.pythonInsertBlankCheckBox.setText(QtGui.QApplication.translate("EditorTypingPage", "Automatic insertion of \' \' (blank) after \',\'", None, QtGui.QApplication.UnicodeUTF8))
233
self.pythonInsertSelfCheckBox.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to insert the \'self\' string when declaring a method", None, QtGui.QApplication.UnicodeUTF8))
234
self.pythonInsertSelfCheckBox.setText(QtGui.QApplication.translate("EditorTypingPage", "Automatic insertion of \'self\' when declaring methods", None, QtGui.QApplication.UnicodeUTF8))
235
self.pythonInsertImportCheckBox.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to insert the \'import\' string", None, QtGui.QApplication.UnicodeUTF8))
236
self.pythonInsertImportCheckBox.setText(QtGui.QApplication.translate("EditorTypingPage", "Automatic insertion of the \'import\' string on \'from xxx\'", None, QtGui.QApplication.UnicodeUTF8))
237
self.pythonSkipBraceCheckBox.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to skip matching braces when typing", None, QtGui.QApplication.UnicodeUTF8))
238
self.pythonSkipBraceCheckBox.setText(QtGui.QApplication.translate("EditorTypingPage", "Automatically skip matching braces when typing", None, QtGui.QApplication.UnicodeUTF8))
239
self.pythonInsertQuoteCheckBox.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to insert the matching quote character", None, QtGui.QApplication.UnicodeUTF8))
240
self.pythonInsertQuoteCheckBox.setText(QtGui.QApplication.translate("EditorTypingPage", "Automatic quote insertion", None, QtGui.QApplication.UnicodeUTF8))
241
self.pythonColonDetectionCheckBox.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to skip a \':\', if typed next to another \':\'", None, QtGui.QApplication.UnicodeUTF8))
242
self.pythonColonDetectionCheckBox.setText(QtGui.QApplication.translate("EditorTypingPage", "Automatic colon detection", None, QtGui.QApplication.UnicodeUTF8))
243
self.pythonInsertClosingBraceCheckBox.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to insert a closing parenthesis", None, QtGui.QApplication.UnicodeUTF8))
244
self.pythonInsertClosingBraceCheckBox.setText(QtGui.QApplication.translate("EditorTypingPage", "Automatic parenthesis insertion", None, QtGui.QApplication.UnicodeUTF8))
245
self.pythonIndentBraceCheckBox.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to indent to the brace level after typing \'return\'", None, QtGui.QApplication.UnicodeUTF8))
246
self.pythonIndentBraceCheckBox.setText(QtGui.QApplication.translate("EditorTypingPage", "After \'(\' indent to its level", None, QtGui.QApplication.UnicodeUTF8))
247
self.rubyGroup.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to enable Ruby typing aids", None, QtGui.QApplication.UnicodeUTF8))
248
self.rubyGroup.setTitle(QtGui.QApplication.translate("EditorTypingPage", "Enable Ruby typing aids", None, QtGui.QApplication.UnicodeUTF8))
249
self.rubyInsertClosingBraceCheckBox.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to insert a closing parenthesis", None, QtGui.QApplication.UnicodeUTF8))
250
self.rubyInsertClosingBraceCheckBox.setText(QtGui.QApplication.translate("EditorTypingPage", "Automatic parenthesis insertion", None, QtGui.QApplication.UnicodeUTF8))
251
self.rubySkipBraceCheckBox.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to skip matching braces when typing", None, QtGui.QApplication.UnicodeUTF8))
252
self.rubySkipBraceCheckBox.setText(QtGui.QApplication.translate("EditorTypingPage", "Automatically skip matching braces when typing", None, QtGui.QApplication.UnicodeUTF8))
253
self.rubyIndentBraceCheckBox.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to indent to the brace level after typing \'return\'", None, QtGui.QApplication.UnicodeUTF8))
254
self.rubyIndentBraceCheckBox.setText(QtGui.QApplication.translate("EditorTypingPage", "After \'(\' indent to its level", None, QtGui.QApplication.UnicodeUTF8))
255
self.rubyInsertQuoteCheckBox.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to insert the matching quote character", None, QtGui.QApplication.UnicodeUTF8))
256
self.rubyInsertQuoteCheckBox.setText(QtGui.QApplication.translate("EditorTypingPage", "Automatic quote insertion", None, QtGui.QApplication.UnicodeUTF8))
257
self.rubyInsertBlankCheckBox.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to insert a blank after \',\'", None, QtGui.QApplication.UnicodeUTF8))
258
self.rubyInsertBlankCheckBox.setText(QtGui.QApplication.translate("EditorTypingPage", "Automatic insertion of \' \' (blank) after \',\'", None, QtGui.QApplication.UnicodeUTF8))
259
self.rubyInsertHereDocCheckBox.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to automatically complete a here document", None, QtGui.QApplication.UnicodeUTF8))
260
self.rubyInsertHereDocCheckBox.setText(QtGui.QApplication.translate("EditorTypingPage", "Automatic completion of here document", None, QtGui.QApplication.UnicodeUTF8))
261
self.rubyInsertInlineDocCheckBox.setToolTip(QtGui.QApplication.translate("EditorTypingPage", "Select to automatically insert \'=end\' after entering \'=begin\'", None, QtGui.QApplication.UnicodeUTF8))
262
self.rubyInsertInlineDocCheckBox.setText(QtGui.QApplication.translate("EditorTypingPage", "Automatic insertion of \'=end\' after \'=begin\'", None, QtGui.QApplication.UnicodeUTF8))
266
if __name__ == "__main__":
268
app = QtGui.QApplication(sys.argv)
269
EditorTypingPage = QtGui.QWidget()
270
ui = Ui_EditorTypingPage()
271
ui.setupUi(EditorTypingPage)
272
EditorTypingPage.show()
273
sys.exit(app.exec_())