10 from PyQt4.QtCore import * |
10 from PyQt4.QtCore import * |
11 from PyQt4.QtGui import * |
11 from PyQt4.QtGui import * |
12 |
12 |
13 from .Ui_AddFoundFilesDialog import Ui_AddFoundFilesDialog |
13 from .Ui_AddFoundFilesDialog import Ui_AddFoundFilesDialog |
14 |
14 |
|
15 |
15 class AddFoundFilesDialog(QDialog, Ui_AddFoundFilesDialog): |
16 class AddFoundFilesDialog(QDialog, Ui_AddFoundFilesDialog): |
16 """ |
17 """ |
17 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. |
18 |
19 |
19 The found files are displayed in a listview. |
20 The found files are displayed in a listview. |
20 Pressing the 'Add All' button adds all files to the current project, |
21 Pressing the 'Add All' button adds all files to the current project, |
21 the 'Add Selected' button adds only the selected files and the 'Cancel' |
22 the 'Add Selected' button adds only the selected files and the 'Cancel' |
22 button cancels the operation. |
23 button cancels the operation. |
23 """ |
24 """ |
24 |
25 |
25 def __init__(self, files, parent = None, name = None): |
26 def __init__(self, files, parent=None, name=None): |
26 """ |
27 """ |
27 Constructor |
28 Constructor |
28 |
29 |
29 @param files list of files, that have been found for addition (list of strings) |
30 @param files list of files, that have been found for addition (list of strings) |
30 @param parent parent widget of this dialog (QWidget) |
31 @param parent parent widget of this dialog (QWidget) |