# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_9/eric3/Project/AddFoundFilesForm.ui'
#
# Created: So Nov 27 16:12:48 2005
#      by: The PyQt User Interface Compiler (pyuic) 3.15
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


class AddFoundFilesForm(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

        if not name:
            self.setName("AddFoundFilesForm")


        AddFoundFilesFormLayout = QVBoxLayout(self,11,6,"AddFoundFilesFormLayout")

        self.fileListBox = QListBox(self,"fileListBox")
        self.fileListBox.setSelectionMode(QListBox.Extended)
        AddFoundFilesFormLayout.addWidget(self.fileListBox)

        Layout12 = QHBoxLayout(None,0,6,"Layout12")
        Spacer9 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout12.addItem(Spacer9)

        self.addAllButton = QPushButton(self,"addAllButton")
        self.addAllButton.setDefault(1)
        Layout12.addWidget(self.addAllButton)

        self.addSelectedButton = QPushButton(self,"addSelectedButton")
        Layout12.addWidget(self.addSelectedButton)

        self.CancelButton = QPushButton(self,"CancelButton")
        Layout12.addWidget(self.CancelButton)
        Spacer10 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout12.addItem(Spacer10)
        AddFoundFilesFormLayout.addLayout(Layout12)

        self.languageChange()

        self.resize(QSize(600,480).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.CancelButton,SIGNAL("clicked()"),self.reject)
        self.connect(self.addAllButton,SIGNAL("clicked()"),self.handleAll)
        self.connect(self.addSelectedButton,SIGNAL("clicked()"),self.handleSelected)


    def languageChange(self):
        self.setCaption(self.__tr("Add found files to project"))
        QToolTip.add(self,self.__tr("Adds the found files to the current project."))
        QToolTip.add(self.fileListBox,self.__tr("List of found files."))
        self.addAllButton.setText(self.__tr("Add &All"))
        QToolTip.add(self.addAllButton,self.__tr("Add all files."))
        self.addSelectedButton.setText(self.__tr("Add &Selected"))
        QToolTip.add(self.addSelectedButton,self.__tr("Add selected files only."))
        self.CancelButton.setText(self.__tr("&Cancel"))
        QToolTip.add(self.CancelButton,self.__tr("Cancel the dialog."))


    def handleAll(self):
        print "AddFoundFilesForm.handleAll(): Not implemented yet"

    def handleSelected(self):
        print "AddFoundFilesForm.handleSelected(): Not implemented yet"

    def __tr(self,s,c = None):
        return qApp.translate("AddFoundFilesForm",s,c)

if __name__ == "__main__":
    a = QApplication(sys.argv)
    QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
    w = AddFoundFilesForm()
    a.setMainWidget(w)
    w.show()
    a.exec_loop()
