# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3/Project/AddDirectoryForm.ui'
#
# Created: Don Jan 30 20:24:33 2003
# by: The PyQt User Interface Compiler (pyuic)
#
# WARNING! All changes made in this file will be lost!
import sys
from qt import *
class AddDirForm(QDialog):
def __init__(self,parent = None,name = None,modal = 0,fl = 0):
QDialog.__init__(self,parent,name,modal,fl)
if not name:
self.setName("AddDirForm")
AddDirFormLayout = QVBoxLayout(self,6,6,"AddDirFormLayout")
Layout3 = QGridLayout(None,1,1,0,6,"Layout3")
self.recursiveCheckBox = QCheckBox(self,"recursiveCheckBox")
Layout3.addMultiCellWidget(self.recursiveCheckBox,2,2,0,2)
self.sourceDirButton = QPushButton(self,"sourceDirButton")
Layout3.addWidget(self.sourceDirButton,0,2)
self.sourceDirEdit = QLineEdit(self,"sourceDirEdit")
Layout3.addWidget(self.sourceDirEdit,0,1)
self.sourceDirLabel = QLabel(self,"sourceDirLabel")
Layout3.addWidget(self.sourceDirLabel,0,0)
self.targetDirEdit = QLineEdit(self,"targetDirEdit")
Layout3.addWidget(self.targetDirEdit,1,1)
self.targetDirLabel = QLabel(self,"targetDirLabel")
Layout3.addWidget(self.targetDirLabel,1,0)
self.targetDirButton = QPushButton(self,"targetDirButton")
Layout3.addWidget(self.targetDirButton,1,2)
AddDirFormLayout.addLayout(Layout3)
Layout5 = QHBoxLayout(None,0,6,"Layout5")
spacer = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
Layout5.addItem(spacer)
self.okButton = QPushButton(self,"okButton")
self.okButton.setDefault(1)
Layout5.addWidget(self.okButton)
self.cancelButton = QPushButton(self,"cancelButton")
Layout5.addWidget(self.cancelButton)
spacer_2 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
Layout5.addItem(spacer_2)
AddDirFormLayout.addLayout(Layout5)
self.languageChange()
self.resize(QSize(391,134).expandedTo(self.minimumSizeHint()))
self.connect(self.okButton,SIGNAL("clicked()"),self,SLOT("accept()"))
self.connect(self.cancelButton,SIGNAL("clicked()"),self,SLOT("reject()"))
self.connect(self.sourceDirButton,SIGNAL("clicked()"),self.handleSDirDialog)
self.connect(self.targetDirButton,SIGNAL("clicked()"),self.handleTDirDialog)
self.connect(self.sourceDirEdit,SIGNAL("textChanged(const QString&)"),self.handleSTextChanged)
self.setTabOrder(self.sourceDirEdit,self.sourceDirButton)
self.setTabOrder(self.sourceDirButton,self.targetDirEdit)
self.setTabOrder(self.targetDirEdit,self.targetDirButton)
self.setTabOrder(self.targetDirButton,self.okButton)
self.setTabOrder(self.okButton,self.cancelButton)
self.sourceDirLabel.setBuddy(self.sourceDirEdit)
self.targetDirLabel.setBuddy(self.targetDirEdit)
def languageChange(self):
self.setCaption(self.tr("Add Directory"))
QToolTip.add(self,self.tr("Add a directory to the current project"))
QWhatsThis.add(self,self.tr("<b>Add Directory Dialog</b>\n"
"<p>This dialog is used to add a directory to the current project.</p>"))
self.recursiveCheckBox.setText(self.tr("&Recurse into subdirectories"))
QToolTip.add(self.recursiveCheckBox,self.tr("Select, whether a recursive add should be performed"))
self.sourceDirButton.setText(self.tr("..."))
QWhatsThis.add(self.sourceDirButton,self.tr("<b>Source Directory</b>\n"
"<p>Select the source directory via a directory selection dialog.</p>"))
QToolTip.add(self.sourceDirEdit,self.tr("Enter the name of the directory to add"))
QWhatsThis.add(self.sourceDirEdit,self.tr("<b>Source Directory</b>\n"
"<p>Enter the name of the directory to add to the current project.\n"
" You may select it with a dialog by pressing the button to\n"
" the right.</p>"))
self.sourceDirLabel.setText(self.tr("&Source Directory:"))
QToolTip.add(self.targetDirEdit,self.tr("Enter the target directory for the file"))
QWhatsThis.add(self.targetDirEdit,self.tr("<b>Target Directory</b>\n"
"<p>Enter the target directory. You may select it\n"
" with a dialog by pressing the button to the right.</p>"))
self.targetDirLabel.setText(self.tr("&Target Directory:"))
self.targetDirButton.setText(self.tr("..."))
QWhatsThis.add(self.targetDirButton,self.tr("<b>Target Directory</b>\n"
"<p>Select the target directory via a directory selection dialog.</p>"))
self.okButton.setText(self.tr("&OK"))
self.cancelButton.setText(self.tr("&Cancel"))
def handleSDirDialog(self):
print "AddDirForm.handleSDirDialog(): Not implemented yet"
def handleTDirDialog(self):
print "AddDirForm.handleTDirDialog(): Not implemented yet"
def handleSTextChanged(self,a0):
print "AddDirForm.handleSTextChanged(const QString&): Not implemented yet"
if __name__ == "__main__":
a = QApplication(sys.argv)
QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
w = AddDirForm()
a.setMainWidget(w)
w.show()
a.exec_loop()
|