Project/AddFoundFilesDialog.py

changeset 2964
84b65fb9e780
parent 2302
f29e9405c851
child 2995
63d874899b8b
equal deleted inserted replaced
2963:745d38097b7f 2964:84b65fb9e780
15 15
16 class AddFoundFilesDialog(QDialog, Ui_AddFoundFilesDialog): 16 class AddFoundFilesDialog(QDialog, Ui_AddFoundFilesDialog):
17 """ 17 """
18 Class implementing a dialog to show the found files to the user. 18 Class implementing a dialog to show the found files to the user.
19 19
20 The found files are displayed in a listview. 20 The found files are displayed in a listview. Pressing the 'Add All' button
21 Pressing the 'Add All' button adds all files to the current project, 21 adds all files to the current project, the 'Add Selected' button adds only
22 the 'Add Selected' button adds only the selected files and the 'Cancel' 22 the selected files and the 'Cancel' button cancels the operation.
23 button cancels the operation.
24 """ 23 """
25
26 def __init__(self, files, parent=None, name=None): 24 def __init__(self, files, parent=None, name=None):
27 """ 25 """
28 Constructor 26 Constructor
29 27
30 @param files list of files, that have been found for addition (list of strings) 28 @param files list of files, that have been found for addition (list of strings)
59 @pyqtSlot() 57 @pyqtSlot()
60 def on_addAllButton_clicked(self): 58 def on_addAllButton_clicked(self):
61 """ 59 """
62 Private slot to handle the 'Add All' button press. 60 Private slot to handle the 'Add All' button press.
63 61
64 @return always 1 (int) 62 Always returns the value 1 (integer).
65 """ 63 """
66 self.done(1) 64 self.done(1)
67 65
68 @pyqtSlot() 66 @pyqtSlot()
69 def on_addSelectedButton_clicked(self): 67 def on_addSelectedButton_clicked(self):
70 """ 68 """
71 Private slot to handle the 'Add Selected' button press. 69 Private slot to handle the 'Add Selected' button press.
72 70
73 @return always 2 (int) 71 Always returns the value 2 (integer).
74 """ 72 """
75 self.done(2) 73 self.done(2)
76 74
77 def getSelection(self): 75 def getSelection(self):
78 """ 76 """

eric ide

mercurial