-
{>c sC d Z
d k T d k l Z d e f d YZ d S( sC
Module implementing a dialog to show the found files to the user.
( s *( s AddFoundFilesForms AddFoundFilesDialogc s\ t Z d Z e e d d d Z . d Z 8 d Z B d Z P d Z RS( s7
Class implementing a dialog to show the found files to the user.
The found files are displayed in a listview.
Pressing the 'Add All' button adds all files to the current project,
the 'Add Selected' button adds only the selected files and the 'Cancel'
button cancels the operation.
i c sK ' ( t i | | | | | * | i i | , | i
d } d S( s
Constructor
Arguments
files -- list of files, that have been found for addition (QStringList)
parent -- parent widget of this dialog (QWidget)
name -- name of this dialog (string or QString)
modal -- flag to indicate a modal dialog (boolean)
fl -- window flags
s dummyN( s AddFoundFilesForms __init__s selfs parents names modals fls fileListBoxs insertStringLists filess trUtf8s dummy( s selfs filess parents names modals fls dummy( ( sI /home/detlev/Development/Python/Eric/eric3/Project/AddFoundFilesDialog.pys __init__ s c s . 5 6 | i d d S( s
Private slot to handle the 'Add All' button press.
Returns
always 1 (int)
i N( s selfs done( s self( ( sI /home/detlev/Development/Python/Eric/eric3/Project/AddFoundFilesDialog.pys handleAll. s c s 8 ? @ | i d d S( s
Private slot to handle the 'Add Selected' button press.
Returns
always 2 (int)
i N( s selfs done( s self( ( sI /home/detlev/Development/Python/Eric/eric3/Project/AddFoundFilesDialog.pys handleSelected8 s c s B M N | i i | Sd S( s
Public method telling whether an item is selected in the listbox.
Arguments
index -- index of the item to check
Returns
boolean indicating the selection status of the item
N( s selfs fileListBoxs
isSelecteds index( s selfs index( ( sI /home/detlev/Development/Python/Eric/eric3/Project/AddFoundFilesDialog.pys
isSelectedB s c s P W X t } Y x\ t | i i DY ]B } Z | i i | o& |