1
# -*- coding: utf-8 -*-
3
# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_9/eric3/Project/AddDirectoryForm.ui'
5
# Created: So Nov 27 16:12:48 2005
6
# by: The PyQt User Interface Compiler (pyuic) 3.15
8
# WARNING! All changes made in this file will be lost!
15
class AddDirForm(QDialog):
16
def __init__(self,parent = None,name = None,modal = 0,fl = 0):
17
QDialog.__init__(self,parent,name,modal,fl)
20
self.setName("AddDirForm")
23
AddDirFormLayout = QVBoxLayout(self,6,6,"AddDirFormLayout")
25
layout3 = QGridLayout(None,1,1,0,6,"layout3")
27
self.filterComboBox = QComboBox(0,self,"filterComboBox")
29
layout3.addMultiCellWidget(self.filterComboBox,0,0,1,2)
31
self.targetDirButton = QPushButton(self,"targetDirButton")
33
layout3.addWidget(self.targetDirButton,2,2)
35
self.targetDirLabel = QLabel(self,"targetDirLabel")
37
layout3.addWidget(self.targetDirLabel,2,0)
39
self.sourceDirEdit = QLineEdit(self,"sourceDirEdit")
41
layout3.addWidget(self.sourceDirEdit,1,1)
43
self.recursiveCheckBox = QCheckBox(self,"recursiveCheckBox")
45
layout3.addMultiCellWidget(self.recursiveCheckBox,3,3,0,2)
47
self.targetDirEdit = QLineEdit(self,"targetDirEdit")
49
layout3.addWidget(self.targetDirEdit,2,1)
51
self.sourceDirButton = QPushButton(self,"sourceDirButton")
53
layout3.addWidget(self.sourceDirButton,1,2)
55
self.sourceDirLabel = QLabel(self,"sourceDirLabel")
57
layout3.addWidget(self.sourceDirLabel,1,0)
59
self.textLabel1 = QLabel(self,"textLabel1")
61
layout3.addWidget(self.textLabel1,0,0)
62
AddDirFormLayout.addLayout(layout3)
64
Layout5 = QHBoxLayout(None,0,6,"Layout5")
65
Spacer4 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
66
Layout5.addItem(Spacer4)
68
self.okButton = QPushButton(self,"okButton")
69
self.okButton.setDefault(1)
70
Layout5.addWidget(self.okButton)
72
self.cancelButton = QPushButton(self,"cancelButton")
73
Layout5.addWidget(self.cancelButton)
74
Spacer5 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
75
Layout5.addItem(Spacer5)
76
AddDirFormLayout.addLayout(Layout5)
80
self.resize(QSize(391,169).expandedTo(self.minimumSizeHint()))
81
self.clearWState(Qt.WState_Polished)
83
self.connect(self.okButton,SIGNAL("clicked()"),self.accept)
84
self.connect(self.cancelButton,SIGNAL("clicked()"),self.reject)
85
self.connect(self.sourceDirButton,SIGNAL("clicked()"),self.handleSDirDialog)
86
self.connect(self.targetDirButton,SIGNAL("clicked()"),self.handleTDirDialog)
87
self.connect(self.sourceDirEdit,SIGNAL("textChanged(const QString&)"),self.handleSTextChanged)
88
self.connect(self.filterComboBox,SIGNAL("highlighted(const QString&)"),self.handleFileTypeSelected)
90
self.setTabOrder(self.filterComboBox,self.sourceDirEdit)
91
self.setTabOrder(self.sourceDirEdit,self.sourceDirButton)
92
self.setTabOrder(self.sourceDirButton,self.targetDirEdit)
93
self.setTabOrder(self.targetDirEdit,self.targetDirButton)
94
self.setTabOrder(self.targetDirButton,self.recursiveCheckBox)
95
self.setTabOrder(self.recursiveCheckBox,self.okButton)
96
self.setTabOrder(self.okButton,self.cancelButton)
98
self.targetDirLabel.setBuddy(self.targetDirEdit)
99
self.sourceDirLabel.setBuddy(self.sourceDirEdit)
100
self.textLabel1.setBuddy(self.filterComboBox)
103
def languageChange(self):
104
self.setCaption(self.__tr("Add Directory"))
105
QToolTip.add(self,self.__tr("Add a directory to the current project"))
106
QWhatsThis.add(self,self.__tr("<b>Add Directory Dialog</b>\n"
107
"<p>This dialog is used to add a directory to the current project.</p>"))
108
self.targetDirButton.setText(self.__tr("..."))
109
QWhatsThis.add(self.targetDirButton,self.__tr("<b>Target Directory</b>\n"
110
"<p>Select the target directory via a directory selection dialog.</p>"))
111
self.targetDirLabel.setText(self.__tr("&Target Directory:"))
112
QToolTip.add(self.sourceDirEdit,self.__tr("Enter the name of the directory to add"))
113
QWhatsThis.add(self.sourceDirEdit,self.__tr("<b>Source Directory</b>\n"
114
"<p>Enter the name of the directory to add to the current project.\n"
115
" You may select it with a dialog by pressing the button to\n"
117
self.recursiveCheckBox.setText(self.__tr("&Recurse into subdirectories"))
118
QToolTip.add(self.recursiveCheckBox,self.__tr("Select, whether a recursive add should be performed"))
119
QToolTip.add(self.targetDirEdit,self.__tr("Enter the target directory for the file"))
120
QWhatsThis.add(self.targetDirEdit,self.__tr("<b>Target Directory</b>\n"
121
"<p>Enter the target directory. You may select it\n"
122
" with a dialog by pressing the button to the right.</p>"))
123
self.sourceDirButton.setText(self.__tr("..."))
124
QWhatsThis.add(self.sourceDirButton,self.__tr("<b>Source Directory</b>\n"
125
"<p>Select the source directory via a directory selection dialog.</p>"))
126
self.sourceDirLabel.setText(self.__tr("&Source Directory:"))
127
self.textLabel1.setText(self.__tr("&File Type:"))
128
self.okButton.setText(self.__tr("&OK"))
129
self.cancelButton.setText(self.__tr("&Cancel"))
132
def handleSDirDialog(self):
133
print "AddDirForm.handleSDirDialog(): Not implemented yet"
135
def handleTDirDialog(self):
136
print "AddDirForm.handleTDirDialog(): Not implemented yet"
138
def handleSTextChanged(self,a0):
139
print "AddDirForm.handleSTextChanged(const QString&): Not implemented yet"
141
def handleFileTypeSelected(self,a0):
142
print "AddDirForm.handleFileTypeSelected(const QString&): Not implemented yet"
144
def __tr(self,s,c = None):
145
return qApp.translate("AddDirForm",s,c)
147
if __name__ == "__main__":
148
a = QApplication(sys.argv)
149
QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))