Table of Contents

Eric3 Source Documentation: Project  
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3/Project/AddFoundFilesForm.ui'
#
# Created: Mon Jan 20 20:44:55 2003
#      by: The PyQt User Interface Compiler (pyuic)
#
# 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")
        spacer = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout12.addItem(spacer)

        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)
        spacer_2 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout12.addItem(spacer_2)
        AddFoundFilesFormLayout.addLayout(Layout12)

        self.languageChange()

        self.resize(QSize(600,480).expandedTo(self.minimumSizeHint()))

        self.connect(self.CancelButton,SIGNAL("clicked()"),self,SLOT("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"


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()

Table of Contents

This document was automatically generated by HappyDoc version 2.1