Table of Contents

Eric3 Source Documentation: Project  
-í
Â?csOdZ
dkZdkTdklZdefd„ƒYZdS(s<
Module implementing a dialog to add a file to the project.
N(s*(sAddFileForms
AddFileDialogcs_tZdZeeeddd„Z,d„Z6d„ZPd„Zad„ZRS(sC
    Class implementing a dialog to add a file to the project.
    icsW%&ti|||d|ƒ(|ii|i	ƒ)||_
*|i	|_	dS(s×
        Constructor
        
        Arguments
        
            pro -- reference to the project object
            
            parent -- parent widget of this dialog (QWidget)
            
            filter -- filter specification for the file to add (string or QString)
            
            name -- name of this dialog (string or QString)
            
            modal -- flag for a modal dialog (boolean)
            
            fl -- window flags
        iN(sAddFileForms__init__sselfsparentsnamesfls
targetDirEditssetTextsprosppathsfilter(sselfsprosparentsfiltersnamesmodalsfl((sC/home/detlev/Development/Python/Eric/eric3/Project/AddFileDialog.pys__init__s
csn,/0ti|iiƒ1|t|idƒdƒ}3|iƒo 4|ii	t
i|ƒƒndS(sG
        Private slot to display a directory selection dialog.
        sSelect target directoryiN(sQFileDialogsgetExistingDirectorysselfs
targetDirEditstextsNonestrUtf8s	directorysisNullssetTextsQDirsconvertSeparators(sselfs	directory((sC/home/detlev/Development/Python/Eric/eric3/Project/AddFileDialog.pyshandleDirDialog,s
csK69:|iiƒ};|iƒo<|iiƒ}n=|itjo>|idƒ}nƒA|idjoB|idƒ}nZC|idjoD|idƒ}n1E|idjoF|idƒ}nHdSIt
i|J|K|t|id	ƒƒ}M|i
ƒo N|iiti|ƒƒndS(
sB
        Private slot to display a file selection dialog.
        sLPython Files (*.py);;Qt User-Interface Files (*.ui);;Interface Files (*.idl)suisQt User-Interface Files (*.ui)spysPython Files (*.py)sidlsInterface Files (*.idl)NsSelect source file(sselfssourceFileEditstextsdirsisEmptys
targetDirEditsfiltersNonestrUtf8sdfiltersQFileDialogsgetOpenFileNamesfnsisNullssetTextsQDirsconvertSeparators(sselfsdirsdfiltersfn((sC/home/detlev/Development/Python/Eric/eric3/Project/AddFileDialog.pyshandleFileDialog6s$csRP\]|i|iƒo2^tiit|ƒƒ}_|i	i
|ƒndS(s¦
        Private slot to handle the source dir text changed.
        
        If the entered source directory is a subdirectory of the current
        projects main directory, the target directory path is synchronized.
        It is assumed, that the user wants to add a bunch of files to
        the project in place.
        
        Arguments
        
            sfile -- the text of the source file line edit
        N(ssfiles
startsWithsselfsppathsosspathsdirnamesstrsdirs
targetDirEditssetText(sselfssfilesdir((sC/home/detlev/Development/Python/Eric/eric3/Project/AddFileDialog.pyshandleSTextChangedPscs5aijt|iiƒƒt|iiƒƒfSdS(sÉ
        Public slot to retrieve the dialogs data.
        
        Returns
        
            tuple of two values (string string) giving the source file and
            the target directory
        N(sstrsselfssourceFileEditstexts
targetDirEdit(sself((sC/home/detlev/Development/Python/Eric/eric3/Project/AddFileDialog.pysgetDataas(	s__name__s
__module__s__doc__sNones__init__shandleDirDialogshandleFileDialogshandleSTextChangedsgetData(((sC/home/detlev/Development/Python/Eric/eric3/Project/AddFileDialog.pys
AddFileDialogs
(s__doc__sossqtsAddFileForms
AddFileDialog(soss
AddFileDialogsAddFileForm((sC/home/detlev/Development/Python/Eric/eric3/Project/AddFileDialog.pys?s


Table of Contents

This document was automatically generated by HappyDoc version 2.1