1
# -*- coding: utf-8 -*-
3
# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_9/eric3/UI/ToolConfigurationForm.ui'
5
# Created: So Nov 27 16:12:51 2005
6
# by: The PyQt User Interface Compiler (pyuic) 3.15
8
# WARNING! All changes made in this file will be lost!
15
class ToolConfigurationForm(QDialog):
16
def __init__(self,parent = None,name = None,modal = 0,fl = 0):
17
QDialog.__init__(self,parent,name,modal,fl)
20
self.setName("ToolConfigurationForm")
23
ToolConfigurationFormLayout = QVBoxLayout(self,6,6,"ToolConfigurationFormLayout")
25
layout3 = QGridLayout(None,1,1,0,6,"layout3")
26
Spacer3 = QSpacerItem(20,20,QSizePolicy.Minimum,QSizePolicy.Expanding)
27
layout3.addItem(Spacer3,6,3)
29
self.TextLabel1 = QLabel(self,"TextLabel1")
31
layout3.addWidget(self.TextLabel1,7,0)
33
self.redirectCheckBox = QCheckBox(self,"redirectCheckBox")
35
layout3.addMultiCellWidget(self.redirectCheckBox,10,10,0,1)
37
self.downButton = QPushButton(self,"downButton")
38
self.downButton.setEnabled(0)
40
layout3.addWidget(self.downButton,5,3)
42
self.addButton = QPushButton(self,"addButton")
44
layout3.addWidget(self.addButton,1,3)
46
self.toolsListBox = QListBox(self,"toolsListBox")
48
layout3.addMultiCellWidget(self.toolsListBox,0,6,0,2)
50
self.TextLabel2 = QLabel(self,"TextLabel2")
52
layout3.addWidget(self.TextLabel2,8,0)
54
self.menuEdit = QLineEdit(self,"menuEdit")
56
layout3.addWidget(self.menuEdit,8,1)
58
self.deleteButton = QPushButton(self,"deleteButton")
59
self.deleteButton.setEnabled(0)
61
layout3.addWidget(self.deleteButton,3,3)
63
self.executableButton = QPushButton(self,"executableButton")
64
self.executableButton.setFocusPolicy(QPushButton.NoFocus)
66
layout3.addWidget(self.executableButton,7,2)
68
self.argumentsEdit = QLineEdit(self,"argumentsEdit")
70
layout3.addWidget(self.argumentsEdit,9,1)
72
self.changeButton = QPushButton(self,"changeButton")
73
self.changeButton.setEnabled(0)
75
layout3.addWidget(self.changeButton,2,3)
77
self.TextLabel3 = QLabel(self,"TextLabel3")
79
layout3.addWidget(self.TextLabel3,9,0)
81
self.newButton = QPushButton(self,"newButton")
83
layout3.addWidget(self.newButton,0,3)
85
self.executableEdit = QLineEdit(self,"executableEdit")
87
layout3.addWidget(self.executableEdit,7,1)
89
self.upButton = QPushButton(self,"upButton")
90
self.upButton.setEnabled(0)
92
layout3.addWidget(self.upButton,4,3)
93
ToolConfigurationFormLayout.addLayout(layout3)
95
Layout1 = QHBoxLayout(None,0,6,"Layout1")
96
Spacer1 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
97
Layout1.addItem(Spacer1)
99
self.okButton = QPushButton(self,"okButton")
100
self.okButton.setDefault(1)
101
Layout1.addWidget(self.okButton)
103
self.cancelButton = QPushButton(self,"cancelButton")
104
Layout1.addWidget(self.cancelButton)
105
Spacer2 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
106
Layout1.addItem(Spacer2)
107
ToolConfigurationFormLayout.addLayout(Layout1)
109
self.languageChange()
111
self.resize(QSize(475,391).expandedTo(self.minimumSizeHint()))
112
self.clearWState(Qt.WState_Polished)
114
self.connect(self.cancelButton,SIGNAL("clicked()"),self.reject)
115
self.connect(self.addButton,SIGNAL("clicked()"),self.handleAdd)
116
self.connect(self.deleteButton,SIGNAL("clicked()"),self.handleDelete)
117
self.connect(self.upButton,SIGNAL("clicked()"),self.handleUp)
118
self.connect(self.downButton,SIGNAL("clicked()"),self.handleDown)
119
self.connect(self.executableButton,SIGNAL("clicked()"),self.handleExeSelect)
120
self.connect(self.toolsListBox,SIGNAL("highlighted(int)"),self.handleToolEntrySelected)
121
self.connect(self.okButton,SIGNAL("clicked()"),self.accept)
122
self.connect(self.changeButton,SIGNAL("clicked()"),self.handleChange)
123
self.connect(self.newButton,SIGNAL("clicked()"),self.handleNew)
125
self.setTabOrder(self.toolsListBox,self.executableEdit)
126
self.setTabOrder(self.executableEdit,self.menuEdit)
127
self.setTabOrder(self.menuEdit,self.argumentsEdit)
128
self.setTabOrder(self.argumentsEdit,self.redirectCheckBox)
129
self.setTabOrder(self.redirectCheckBox,self.newButton)
130
self.setTabOrder(self.newButton,self.addButton)
131
self.setTabOrder(self.addButton,self.changeButton)
132
self.setTabOrder(self.changeButton,self.deleteButton)
133
self.setTabOrder(self.deleteButton,self.upButton)
134
self.setTabOrder(self.upButton,self.downButton)
135
self.setTabOrder(self.downButton,self.okButton)
136
self.setTabOrder(self.okButton,self.cancelButton)
137
self.setTabOrder(self.cancelButton,self.executableButton)
139
self.TextLabel1.setBuddy(self.executableEdit)
140
self.TextLabel2.setBuddy(self.menuEdit)
141
self.TextLabel3.setBuddy(self.argumentsEdit)
144
def languageChange(self):
145
self.setCaption(self.__tr("Configure Tools Menu"))
146
self.TextLabel1.setText(self.__tr("&Executable file:"))
147
self.redirectCheckBox.setText(self.__tr("&Redirect output"))
148
self.redirectCheckBox.setAccel(self.__tr("Alt+R"))
149
QToolTip.add(self.redirectCheckBox,self.__tr("Select whether the output of the tool should be redirected"))
150
QWhatsThis.add(self.redirectCheckBox,self.__tr("<b>Redirect output</b>\n"
151
"<p>Select whether the output of the tool should be redirected to our StdOut and StdErr windows.</p>"))
152
self.downButton.setText(self.__tr("Do&wn"))
153
self.downButton.setAccel(self.__tr("Alt+W"))
154
QToolTip.add(self.downButton,self.__tr("Move down"))
155
QWhatsThis.add(self.downButton,self.__tr("<b>Move Down</b>\n"
156
"<p>Move the selected entry down.</p>"))
157
self.addButton.setText(self.__tr("&Add"))
158
self.addButton.setAccel(self.__tr("Alt+A"))
159
QToolTip.add(self.addButton,self.__tr("Add a new tools entry"))
160
QWhatsThis.add(self.addButton,self.__tr("<b>Add</b>\n"
161
"<p>Add a new tools entry with the values entered below.</p>"))
162
self.TextLabel2.setText(self.__tr("&Menu text:"))
163
QToolTip.add(self.menuEdit,self.__tr("Enter the menu text"))
164
QWhatsThis.add(self.menuEdit,self.__tr("<b>Menu text</b>\n"
165
"<p>Enter the menu text. Precede the accelerator key with an & character.</p>"))
166
self.deleteButton.setText(self.__tr("&Delete"))
167
self.deleteButton.setAccel(self.__tr("Alt+D"))
168
QToolTip.add(self.deleteButton,self.__tr("Delete the selected entry"))
169
QWhatsThis.add(self.deleteButton,self.__tr("<b>Delete</b>\n"
170
"<p>Delete the selected entry.</p>"))
171
self.executableButton.setText(self.__tr("..."))
172
QToolTip.add(self.executableButton,self.__tr("Select the executable via a file selection dialog"))
173
QWhatsThis.add(self.executableButton,self.__tr("<b>Executable</b>\n"
174
"<p>Select the executable via a file selection dialog.</p>"))
175
QToolTip.add(self.argumentsEdit,self.__tr("Enter the arguments for the executable"))
176
QWhatsThis.add(self.argumentsEdit,self.__tr("<b>Arguments</b>\n"
177
"<p>Enter the arguments for the executable.</p>"))
178
self.changeButton.setText(self.__tr("C&hange"))
179
self.changeButton.setAccel(self.__tr("Alt+H"))
180
QToolTip.add(self.changeButton,self.__tr("Change the values of the selected entry"))
181
QWhatsThis.add(self.changeButton,self.__tr("<b>Change</b>\n"
182
"<p>Change the values of the selected entry.</p>"))
183
self.TextLabel3.setText(self.__tr("Ar&guments:"))
184
self.newButton.setText(self.__tr("&New"))
185
self.newButton.setAccel(self.__tr("Alt+N"))
186
QToolTip.add(self.newButton,self.__tr("Clear all entry fields"))
187
QWhatsThis.add(self.newButton,self.__tr("<b>New</b>\n"
188
"<p>Clear all entry fields for entering a new tools entry.</p>"))
189
QToolTip.add(self.executableEdit,self.__tr("Enter the filename of the executable"))
190
QWhatsThis.add(self.executableEdit,self.__tr("<b>Executable</b>\n"
191
"<p>Enter the filename of the executable.</p>"))
192
self.upButton.setText(self.__tr("&Up"))
193
self.upButton.setAccel(self.__tr("Alt+U"))
194
QToolTip.add(self.upButton,self.__tr("Move up"))
195
QWhatsThis.add(self.upButton,self.__tr("<b>Move Up</b>\n"
196
"<p>Move the selected entry up.</p>"))
197
self.okButton.setText(self.__tr("&OK"))
198
self.cancelButton.setText(self.__tr("&Cancel"))
202
print "ToolConfigurationForm.handleAdd(): Not implemented yet"
204
def handleDelete(self):
205
print "ToolConfigurationForm.handleDelete(): Not implemented yet"
207
def handleDown(self):
208
print "ToolConfigurationForm.handleDown(): Not implemented yet"
210
def handleExeSelect(self):
211
print "ToolConfigurationForm.handleExeSelect(): Not implemented yet"
213
def handleToolEntrySelected(self,a0):
214
print "ToolConfigurationForm.handleToolEntrySelected(int): Not implemented yet"
217
print "ToolConfigurationForm.handleUp(): Not implemented yet"
219
def handleChange(self):
220
print "ToolConfigurationForm.handleChange(): Not implemented yet"
223
print "ToolConfigurationForm.handleNew(): Not implemented yet"
225
def __tr(self,s,c = None):
226
return qApp.translate("ToolConfigurationForm",s,c)
228
if __name__ == "__main__":
229
a = QApplication(sys.argv)
230
QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
231
w = ToolConfigurationForm()